/// <summary> /// Get the status of a long running azure asynchronous operation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// The region name of operation. /// </param> /// <param name='asyncOperationId'> /// The operation Id. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <OperationStatus> GetAsync(this IOperationStatusesOperations operations, string location, string asyncOperationId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(location, asyncOperationId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get operation status. /// </summary> /// <remarks> /// Get asset track operation status. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the Azure subscription. /// </param> /// <param name='accountName'> /// The Media Services account name. /// </param> /// <param name='assetName'> /// The Asset name. /// </param> /// <param name='trackName'> /// The Asset Track name. /// </param> /// <param name='operationId'> /// Operation Id. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <AssetTrackOperationStatus> GetAsync(this IOperationStatusesOperations operations, string resourceGroupName, string accountName, string assetName, string trackName, string operationId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, assetName, trackName, operationId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get the status of a long running azure asynchronous operation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// The region name of operation. /// </param> /// <param name='asyncOperationId'> /// The operation Id. /// </param> public static OperationStatus Get(this IOperationStatusesOperations operations, string location, string asyncOperationId) { return(operations.GetAsync(location, asyncOperationId).GetAwaiter().GetResult()); }
/// <summary> /// Get operation status. /// </summary> /// <remarks> /// Get private endpoint connection operation status. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='accountName'> /// The Video Analyzer account name. /// </param> /// <param name='name'> /// Private endpoint connection name. /// </param> /// <param name='operationId'> /// Operation Id. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <VideoAnalyzerPrivateEndpointConnectionOperationStatus> GetAsync(this IOperationStatusesOperations operations, string resourceGroupName, string accountName, string name, string operationId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, name, operationId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get operation status. /// </summary> /// <remarks> /// Get private endpoint connection operation status. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='accountName'> /// The Video Analyzer account name. /// </param> /// <param name='name'> /// Private endpoint connection name. /// </param> /// <param name='operationId'> /// Operation Id. /// </param> public static VideoAnalyzerPrivateEndpointConnectionOperationStatus Get(this IOperationStatusesOperations operations, string resourceGroupName, string accountName, string name, string operationId) { return(operations.GetAsync(resourceGroupName, accountName, name, operationId).GetAwaiter().GetResult()); }
/// <summary> /// Get operation status. /// </summary> /// <remarks> /// Get asset track operation status. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the Azure subscription. /// </param> /// <param name='accountName'> /// The Media Services account name. /// </param> /// <param name='assetName'> /// The Asset name. /// </param> /// <param name='trackName'> /// The Asset Track name. /// </param> /// <param name='operationId'> /// Operation Id. /// </param> public static AssetTrackOperationStatus Get(this IOperationStatusesOperations operations, string resourceGroupName, string accountName, string assetName, string trackName, string operationId) { return(operations.GetAsync(resourceGroupName, accountName, assetName, trackName, operationId).GetAwaiter().GetResult()); }