/// <summary> /// Gets the list of jobs. /// </summary> /// <remarks> /// Gets the list of Azure Site Recovery Jobs for the vault. /// </remarks> /// <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 <Job> > ListNextAsync(this IReplicationJobsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the job details. /// </summary> /// <remarks> /// Get the details of an Azure Site Recovery job. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='jobName'> /// Job identifier /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Job> GetAsync(this IReplicationJobsOperations operations, string jobName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(jobName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the list of jobs. /// </summary> /// <remarks> /// Gets the list of Azure Site Recovery Jobs for the vault. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Job> > ListAsync(this IReplicationJobsOperations operations, ODataQuery <JobQueryParameter> odataQuery = default(ODataQuery <JobQueryParameter>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Exports the details of the Azure Site Recovery jobs of the vault. /// </summary> /// <remarks> /// The operation to export the details of the Azure Site Recovery jobs of the /// vault. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='jobQueryParameter'> /// job query filter. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Job> BeginExportAsync(this IReplicationJobsOperations operations, JobQueryParameter jobQueryParameter, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginExportWithHttpMessagesAsync(jobQueryParameter, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the job details. /// </summary> /// <remarks> /// Get the details of an Azure Site Recovery job. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='jobName'> /// Job identifier /// </param> public static Job Get(this IReplicationJobsOperations operations, string jobName) { return(operations.GetAsync(jobName).GetAwaiter().GetResult()); }
/// <summary> /// Gets the list of jobs. /// </summary> /// <remarks> /// Gets the list of Azure Site Recovery Jobs for the vault. /// </remarks> /// <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 <Job> ListNext(this IReplicationJobsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Exports the details of the Azure Site Recovery jobs of the vault. /// </summary> /// <remarks> /// The operation to export the details of the Azure Site Recovery jobs of the /// vault. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='jobQueryParameter'> /// job query filter. /// </param> public static Job BeginExport(this IReplicationJobsOperations operations, JobQueryParameter jobQueryParameter) { return(operations.BeginExportAsync(jobQueryParameter).GetAwaiter().GetResult()); }
/// <summary> /// Resumes the specified job. /// </summary> /// <remarks> /// The operation to resume an Azure Site Recovery job /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='jobName'> /// Job identifier. /// </param> /// <param name='resumeJobParams'> /// Resume rob comments. /// </param> public static Job BeginResume(this IReplicationJobsOperations operations, string jobName, ResumeJobParams resumeJobParams) { return(operations.BeginResumeAsync(jobName, resumeJobParams).GetAwaiter().GetResult()); }
/// <summary> /// Gets the list of jobs. /// </summary> /// <remarks> /// Gets the list of Azure Site Recovery Jobs for the vault. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <Job> List(this IReplicationJobsOperations operations, ODataQuery <JobQueryParameter> odataQuery = default(ODataQuery <JobQueryParameter>)) { return(operations.ListAsync(odataQuery).GetAwaiter().GetResult()); }