/// <summary> /// Gets extended information associated with the job. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='vaultName'> /// The name of the recovery services vault. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the recovery services vault is /// present. /// </param> /// <param name='jobName'> /// Name of the job whose details are to be fetched. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <JobResource> GetAsync(this IJobDetailsOperations operations, string vaultName, string resourceGroupName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(vaultName, resourceGroupName, jobName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets extended information associated with the job. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='vaultName'> /// The name of the recovery services vault. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the recovery services vault is /// present. /// </param> /// <param name='jobName'> /// Name of the job whose details are to be fetched. /// </param> public static JobResource Get(this IJobDetailsOperations operations, string vaultName, string resourceGroupName, string jobName) { return(operations.GetAsync(vaultName, resourceGroupName, jobName).GetAwaiter().GetResult()); }