/// <summary> /// Returns the requested logical subnet. /// </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='logicalNetwork'> /// Name of the logical network. /// </param> /// <param name='logicalSubnet'> /// Name of the logical subnet. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LogicalSubnet> GetAsync(this ILogicalSubnetsOperations operations, string resourceGroupName, string location, string logicalNetwork, string logicalSubnet, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, location, logicalNetwork, logicalSubnet, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns a list of all logical subnets. /// </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 <LogicalSubnet> > ListNextAsync(this ILogicalSubnetsOperations 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 logical subnets. /// </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='logicalNetwork'> /// Name of the logical network. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <LogicalSubnet> > ListAsync(this ILogicalSubnetsOperations operations, string resourceGroupName, string location, string logicalNetwork, ODataQuery <LogicalSubnet> odataQuery = default(ODataQuery <LogicalSubnet>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, location, logicalNetwork, odataQuery, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns a list of all logical subnets. /// </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='logicalNetwork'> /// Name of the logical network. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <LogicalSubnet> List(this ILogicalSubnetsOperations operations, string resourceGroupName, string location, string logicalNetwork, ODataQuery <LogicalSubnet> odataQuery = default(ODataQuery <LogicalSubnet>)) { return(operations.ListAsync(resourceGroupName, location, logicalNetwork, odataQuery).GetAwaiter().GetResult()); }
/// <summary> /// Returns the requested logical subnet. /// </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='logicalNetwork'> /// Name of the logical network. /// </param> /// <param name='logicalSubnet'> /// Name of the logical subnet. /// </param> public static LogicalSubnet Get(this ILogicalSubnetsOperations operations, string resourceGroupName, string location, string logicalNetwork, string logicalSubnet) { return(operations.GetAsync(resourceGroupName, location, logicalNetwork, logicalSubnet).GetAwaiter().GetResult()); }
/// <summary> /// Returns a list of all logical subnets. /// </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 <LogicalSubnet> ListNext(this ILogicalSubnetsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }