/// <summary> /// Gets the list of CRR jobs from the target region. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='azureRegion'> /// Azure region to hit Api /// </param> /// <param name='parameters'> /// Backup CRR Job request /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='skipToken'> /// skipToken Filter. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <JobResource> > ListAsync(this IBackupCrrJobsOperations operations, string azureRegion, CrrJobRequest parameters, ODataQuery <JobQueryObject> odataQuery = default(ODataQuery <JobQueryObject>), string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, parameters, odataQuery, skipToken, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the list of CRR jobs from the target region. /// </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 <JobResource> > ListNextAsync(this IBackupCrrJobsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the list of CRR jobs from the target region. /// </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 <JobResource> ListNext(this IBackupCrrJobsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Gets the list of CRR jobs from the target region. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='azureRegion'> /// Azure region to hit Api /// </param> /// <param name='parameters'> /// Backup CRR Job request /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='skipToken'> /// skipToken Filter. /// </param> public static IPage <JobResource> List(this IBackupCrrJobsOperations operations, string azureRegion, CrrJobRequest parameters, ODataQuery <JobQueryObject> odataQuery = default(ODataQuery <JobQueryObject>), string skipToken = default(string)) { return(operations.ListAsync(azureRegion, parameters, odataQuery, skipToken).GetAwaiter().GetResult()); }
/// <summary> /// Gets the list of CRR jobs from the target region. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='azureRegion'> /// Azure region to hit Api /// </param> public static IPage <JobResource> List(this IBackupCrrJobsOperations operations, string azureRegion) { return(operations.ListAsync(azureRegion).GetAwaiter().GetResult()); }