/// <summary> /// Gets the definition for a role on an invoice section. The operation is /// supported only for billing accounts with agreement type Microsoft Customer /// Agreement. /// <see href="https://docs.microsoft.com/en-us/rest/api/billing/" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// The ID that uniquely identifies a billing account. /// </param> /// <param name='billingProfileName'> /// The ID that uniquely identifies a billing profile. /// </param> /// <param name='invoiceSectionName'> /// The ID that uniquely identifies an invoice section. /// </param> /// <param name='billingRoleDefinitionName'> /// The ID that uniquely identifies a role definition. /// </param> public static BillingRoleDefinition GetByInvoiceSection(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, string billingRoleDefinitionName) { return(operations.GetByInvoiceSectionAsync(billingAccountName, billingProfileName, invoiceSectionName, billingRoleDefinitionName).GetAwaiter().GetResult()); }