/// <summary> /// Return the requested a storage pool. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group. /// </param> /// <param name='location'> /// Location of the resource. /// </param> /// <param name='storageSubSystem'> /// Name of the storage system. /// </param> /// <param name='storagePool'> /// Storage pool name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <StoragePool> GetAsync(this IStoragePoolsOperations operations, string resourceGroupName, string location, string storageSubSystem, string storagePool, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, location, storageSubSystem, storagePool, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns a list of all storage pools for a location. /// </summary> /// <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 <StoragePool> > ListNextAsync(this IStoragePoolsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns a list of all storage pools for a location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group. /// </param> /// <param name='location'> /// Location of the resource. /// </param> /// <param name='storageSubSystem'> /// Name of the storage system. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <StoragePool> List(this IStoragePoolsOperations operations, string resourceGroupName, string location, string storageSubSystem, ODataQuery <StoragePool> odataQuery = default(ODataQuery <StoragePool>)) { return(operations.ListAsync(resourceGroupName, location, storageSubSystem, odataQuery).GetAwaiter().GetResult()); }
/// <summary> /// Return the requested a storage pool. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group. /// </param> /// <param name='location'> /// Location of the resource. /// </param> /// <param name='storageSubSystem'> /// Name of the storage system. /// </param> /// <param name='storagePool'> /// Storage pool name. /// </param> public static StoragePool Get(this IStoragePoolsOperations operations, string resourceGroupName, string location, string storageSubSystem, string storagePool) { return(operations.GetAsync(resourceGroupName, location, storageSubSystem, storagePool).GetAwaiter().GetResult()); }
/// <summary> /// Returns a list of all storage pools for a location. /// </summary> /// <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 <StoragePool> ListNext(this IStoragePoolsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }