コード例 #1
0
 /// <summary>
 /// Lists the instructions by billing profile id.
 /// <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='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Instruction> > ListByBillingProfileAsync(this IInstructionsOperations operations, string billingAccountName, string billingProfileName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Creates or updates an instruction. These are custom billing instructions
 /// and are only applicable for certain customers.
 /// </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='instructionName'>
 /// Instruction Name.
 /// </param>
 /// <param name='parameters'>
 /// The new instruction.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Instruction> PutAsync(this IInstructionsOperations operations, string billingAccountName, string billingProfileName, string instructionName, Instruction parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PutWithHttpMessagesAsync(billingAccountName, billingProfileName, instructionName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #3
0
 /// <summary>
 /// Get the instruction by name. These are custom billing instructions and are
 /// only applicable for certain customers.
 /// <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='instructionName'>
 /// Instruction Name.
 /// </param>
 public static Instruction Get(this IInstructionsOperations operations, string billingAccountName, string billingProfileName, string instructionName)
 {
     return(operations.GetAsync(billingAccountName, billingProfileName, instructionName).GetAwaiter().GetResult());
 }
コード例 #4
0
 /// <summary>
 /// Lists the instructions by billing profile id.
 /// <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>
 public static IPage <Instruction> ListByBillingProfile(this IInstructionsOperations operations, string billingAccountName, string billingProfileName)
 {
     return(operations.ListByBillingProfileAsync(billingAccountName, billingProfileName).GetAwaiter().GetResult());
 }
コード例 #5
0
 /// <summary>
 /// Lists the instructions by billing profile id.
 /// <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 <Instruction> ListByBillingProfileNext(this IInstructionsOperations operations, string nextPageLink)
 {
     return(operations.ListByBillingProfileNextAsync(nextPageLink).GetAwaiter().GetResult());
 }