/// <summary> /// Returns the requested fabric location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group. /// </param> /// <param name='fabricLocation'> /// Fabric location. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <FabricLocation> GetAsync(this IFabricLocationsOperations operations, string resourceGroupName, string fabricLocation, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, fabricLocation, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns a list of all fabric locations. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <FabricLocation> > ListAsync(this IFabricLocationsOperations operations, string resourceGroupName, ODataQuery <FabricLocation> odataQuery = default(ODataQuery <FabricLocation>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, odataQuery, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns a list of all fabric locations. /// </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 <FabricLocation> > ListNextAsync(this IFabricLocationsOperations 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 fabric locations. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <FabricLocation> List(this IFabricLocationsOperations operations, string resourceGroupName, ODataQuery <FabricLocation> odataQuery = default(ODataQuery <FabricLocation>)) { return(operations.ListAsync(resourceGroupName, odataQuery).GetAwaiter().GetResult()); }
/// <summary> /// Returns the requested fabric location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group. /// </param> /// <param name='fabricLocation'> /// Fabric location. /// </param> public static FabricLocation Get(this IFabricLocationsOperations operations, string resourceGroupName, string fabricLocation) { return(operations.GetAsync(resourceGroupName, fabricLocation).GetAwaiter().GetResult()); }
/// <summary> /// Returns a list of all fabric locations. /// </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 <FabricLocation> ListNext(this IFabricLocationsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Creates or updates a fabric location. This will fail if called outside /// deployment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group. /// </param> /// <param name='fabricObject'> /// Fabric location object. /// </param> public static FabricLocation Create(this IFabricLocationsOperations operations, string resourceGroupName, FabricLocation fabricObject) { return(operations.CreateAsync(resourceGroupName, fabricObject).GetAwaiter().GetResult()); }