コード例 #1
0
 /// <summary>
 /// Lists the reservations summaries for daily or monthly grain.
 /// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='reservationOrderId'>
 /// Order Id of the reservation
 /// </param>
 /// <param name='reservationId'>
 /// Id of the reservation
 /// </param>
 /// <param name='grain'>
 /// Can be daily or monthly. Possible values include: 'DailyGrain',
 /// 'MonthlyGrain'
 /// </param>
 /// <param name='filter'>
 /// Required only for daily grain. The properties/UsageDate for start date and
 /// end date. The filter supports 'le' and  'ge'
 /// </param>
 public static IPage <ReservationSummaries> ListByReservationOrderAndReservation(this IReservationsSummariesOperations operations, string reservationOrderId, string reservationId, string grain, string filter = default(string))
 {
     return(operations.ListByReservationOrderAndReservationAsync(reservationOrderId, reservationId, grain, filter).GetAwaiter().GetResult());
 }
コード例 #2
0
 /// <summary>
 /// Lists the reservations summaries for daily or monthly grain.
 /// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
 /// </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 <ReservationSummaries> > ListByReservationOrderAndReservationNextAsync(this IReservationsSummariesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByReservationOrderAndReservationNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #3
0
 /// <summary>
 /// Lists the reservations summaries for daily or monthly grain.
 /// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='reservationOrderId'>
 /// Order Id of the reservation
 /// </param>
 /// <param name='grain'>
 /// Can be daily or monthly. Possible values include: 'DailyGrain',
 /// 'MonthlyGrain'
 /// </param>
 /// <param name='filter'>
 /// Required only for daily grain. The properties/UsageDate for start date and
 /// end date. The filter supports 'le' and  'ge'
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ReservationSummaries> > ListByReservationOrderAsync(this IReservationsSummariesOperations operations, string reservationOrderId, string grain, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByReservationOrderWithHttpMessagesAsync(reservationOrderId, grain, filter, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #4
0
 /// <summary>
 /// Lists the reservations summaries for daily or monthly grain.
 /// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
 /// </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 <ReservationSummaries> ListByReservationOrderAndReservationNext(this IReservationsSummariesOperations operations, string nextPageLink)
 {
     return(operations.ListByReservationOrderAndReservationNextAsync(nextPageLink).GetAwaiter().GetResult());
 }