Esempio n. 1
0
 /// <summary>
 /// Executes a batch get, create, update, delete operation on multiple time
 /// series types.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='parameters'>
 /// Time series types batch request body.
 /// </param>
 /// <param name='clientRequestId'>
 /// Optional client request ID. Service records this value. Allows the service
 /// to trace operation across services, and allows the customer to contact
 /// support regarding a particular request.
 /// </param>
 /// <param name='clientSessionId'>
 /// Optional client session ID. Service records this value. Allows the service
 /// to trace a group of related operations across services, and allows the
 /// customer to contact support regarding a particular group of requests.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <TypesBatchResponse> ExecuteBatchAsync(this ITimeSeriesTypes operations, TypesBatchRequest parameters, string clientRequestId = default(string), string clientSessionId = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ExecuteBatchWithHttpMessagesAsync(parameters, clientRequestId, clientSessionId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Gets time series types in pages.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='continuationToken'>
 /// Continuation token from previous page of results to retrieve the next page
 /// of the results in calls that support pagination. To get the first page
 /// results, specify null continuation token as parameter value. Returned
 /// continuation token is null if all results have been returned, and there is
 /// no next page of results.
 /// </param>
 /// <param name='clientRequestId'>
 /// Optional client request ID. Service records this value. Allows the service
 /// to trace operation across services, and allows the customer to contact
 /// support regarding a particular request.
 /// </param>
 /// <param name='clientSessionId'>
 /// Optional client session ID. Service records this value. Allows the service
 /// to trace a group of related operations across services, and allows the
 /// customer to contact support regarding a particular group of requests.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <GetTypesPage> GetAsync(this ITimeSeriesTypes operations, string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(continuationToken, clientRequestId, clientSessionId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }