/// <summary> /// Gets the operation result of operation triggered by Export Jobs API. If the /// operation is successful, then it also /// contains URL of a Blob and a SAS key to access the same. The blob contains /// exported jobs in JSON serialized format. /// </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='operationId'> /// OperationID which represents the export job. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <OperationResultInfoBaseResource> GetAsync(this IExportJobsOperationResultsOperations operations, string vaultName, string resourceGroupName, string operationId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(vaultName, resourceGroupName, operationId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the operation result of operation triggered by Export Jobs API. If the /// operation is successful, then it also /// contains URL of a Blob and a SAS key to access the same. The blob contains /// exported jobs in JSON serialized format. /// </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='operationId'> /// OperationID which represents the export job. /// </param> public static OperationResultInfoBaseResource Get(this IExportJobsOperationResultsOperations operations, string vaultName, string resourceGroupName, string operationId) { return(operations.GetAsync(vaultName, resourceGroupName, operationId).GetAwaiter().GetResult()); }