/// <summary> /// Gets the volume resource with the given name. /// </summary> /// <remarks> /// Gets the information about the volume resource with the given name. The /// information include the description and other properties of the volume. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Azure resource group name /// </param> /// <param name='volumeResourceName'> /// The identity of the volume. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <VolumeResourceDescription> GetAsync(this IVolumeOperations operations, string resourceGroupName, string volumeResourceName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, volumeResourceName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }