/// <summary> /// List the changes of a resource within the specified time range. Customer /// data will be masked if the user doesn't have access. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceId'> /// The identifier of the resource. /// </param> /// <param name='startTime'> /// Specifies the start time of the changes request. /// </param> /// <param name='endTime'> /// Specifies the end time of the changes request. /// </param> /// <param name='skipToken'> /// A skip token is used to continue retrieving items after an operation /// returns a partial result. If a previous response contains a nextLink /// element, the value of the nextLink element will include a skipToken /// parameter that specifies a starting point to use for subsequent calls. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Change> > ListAsync(this IResourceChangesOperations operations, string resourceId, System.DateTime startTime, System.DateTime endTime, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceId, startTime, endTime, skipToken, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List the changes of a resource within the specified time range. Customer /// data will be masked if the user doesn't have access. /// </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 <Change> > ListNextAsync(this IResourceChangesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List the changes of a resource within the specified time range. Customer /// data will be masked if the user doesn't have access. /// </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 <Change> ListNext(this IResourceChangesOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// List the changes of a resource within the specified time range. Customer /// data will be masked if the user doesn't have access. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceId'> /// The identifier of the resource. /// </param> /// <param name='startTime'> /// Specifies the start time of the changes request. /// </param> /// <param name='endTime'> /// Specifies the end time of the changes request. /// </param> /// <param name='skipToken'> /// A skip token is used to continue retrieving items after an operation /// returns a partial result. If a previous response contains a nextLink /// element, the value of the nextLink element will include a skipToken /// parameter that specifies a starting point to use for subsequent calls. /// </param> public static IPage <Change> List(this IResourceChangesOperations operations, string resourceId, System.DateTime startTime, System.DateTime endTime, string skipToken = default(string)) { return(operations.ListAsync(resourceId, startTime, endTime, skipToken).GetAwaiter().GetResult()); }