/// <summary> /// Gets the definition for a role on a billing account. The operation is /// supported for billing accounts with agreement type Microsoft Partner /// Agreement or 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='billingRoleDefinitionName'> /// The ID that uniquely identifies a role definition. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <BillingRoleDefinition> GetByBillingAccountAsync(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingRoleDefinitionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByBillingAccountWithHttpMessagesAsync(billingAccountName, billingRoleDefinitionName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the role definition for a role /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='invoiceSectionName'> /// InvoiceSection Id. /// </param> /// <param name='billingRoleDefinitionName'> /// role definition id. /// </param> public static BillingRoleDefinition GetByInvoiceSectionName(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string invoiceSectionName, string billingRoleDefinitionName) { return(operations.GetByInvoiceSectionNameAsync(billingAccountName, invoiceSectionName, billingRoleDefinitionName).GetAwaiter().GetResult()); }
/// <summary> /// Lists the role definition for a Billing Profile /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='billingProfileName'> /// Billing Profile Id. /// </param> public static BillingRoleDefinitionListResult ListByBillingProfileName(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName) { return(operations.ListByBillingProfileNameAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult()); }
/// <summary> /// Lists the role definitions for a billing profile. The operation is /// supported for billing accounts with agreement type Microsoft Partner /// Agreement or 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='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <BillingRoleDefinition> > ListByBillingProfileNextAsync(this IBillingRoleDefinitionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByBillingProfileNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists the role definitions for a billing profile. The operation is /// supported for billing accounts with agreement type Microsoft Partner /// Agreement or 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='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <BillingRoleDefinition> ListByBillingProfileNext(this IBillingRoleDefinitionsOperations operations, string nextPageLink) { return(operations.ListByBillingProfileNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Lists the role definitions for an invoice section. The operation is /// supported for billing accounts with agreement type Microsoft Partner /// Agreement or 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='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <BillingRoleDefinition> > ListByInvoiceSectionAsync(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByInvoiceSectionWithHttpMessagesAsync(billingAccountName, billingProfileName, invoiceSectionName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists the role definitions for an invoice section. The operation is /// supported for billing accounts with agreement type Microsoft Partner /// Agreement or 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> public static IPage <BillingRoleDefinition> ListByInvoiceSection(this IBillingRoleDefinitionsOperations operations, string billingAccountName, string billingProfileName, string invoiceSectionName) { return(operations.ListByInvoiceSectionAsync(billingAccountName, billingProfileName, invoiceSectionName).GetAwaiter().GetResult()); }
/// <summary> /// Lists the role definitions for a billing account. The operation is /// supported for billing accounts with agreement type Microsoft Partner /// Agreement or 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> public static IPage <BillingRoleDefinition> ListByBillingAccount(this IBillingRoleDefinitionsOperations operations, string billingAccountName) { return(operations.ListByBillingAccountAsync(billingAccountName).GetAwaiter().GetResult()); }