/// <summary> /// Initializes a new instance of the NetworkResourceProviderClient /// class. /// </summary> /// <param name='httpClient'> /// The Http client /// </param> public NetworkResourceProviderClient(HttpClient httpClient) : base(httpClient) { this._applicationGateways = new ApplicationGatewayOperations(this); this._expressRouteCircuitAuthorizations = new ExpressRouteCircuitAuthorizationOperations(this); this._expressRouteCircuits = new ExpressRouteCircuitOperations(this); this._expressRouteCircuitPeerings = new ExpressRouteCircuitPeeringOperations(this); this._expressRouteServiceProviders = new ExpressRouteServiceProviderOperations(this); this._loadBalancers = new LoadBalancerOperations(this); this._localNetworkGateways = new LocalNetworkGatewayOperations(this); this._networkInterfaces = new NetworkInterfaceOperations(this); this._networkSecurityGroups = new NetworkSecurityGroupOperations(this); this._publicIpAddresses = new PublicIpAddressOperations(this); this._routes = new RouteOperations(this); this._routeTables = new RouteTableOperations(this); this._securityRules = new SecurityRuleOperations(this); this._subnets = new SubnetOperations(this); this._usages = new UsageOperations(this); this._virtualNetworkGatewayConnections = new VirtualNetworkGatewayConnectionOperations(this); this._virtualNetworkGateways = new VirtualNetworkGatewayOperations(this); this._virtualNetworks = new VirtualNetworkOperations(this); this._apiVersion = "2015-05-01-preview"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
/// <summary> /// The Put Subnet operation creates/updates a subnet in thespecified /// virtual network /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ISubnetOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='virtualNetworkName'> /// Required. The name of the virtual network. /// </param> /// <param name='subnetName'> /// Required. The name of the subnet. /// </param> /// <param name='subnetParameters'> /// Required. Parameters supplied to the create/update Subnet operation /// </param> /// <returns> /// Response for PutSubnet Api service call /// </returns> public static SubnetPutResponse BeginCreateOrUpdating(this ISubnetOperations operations, string resourceGroupName, string virtualNetworkName, string subnetName, Subnet subnetParameters) { return(Task.Factory.StartNew((object s) => { return ((ISubnetOperations)s).BeginCreateOrUpdatingAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// The List subnets opertion retrieves all the subnets in a virtual /// network. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ISubnetOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='virtualNetworkName'> /// Required. The name of the virtual network. /// </param> /// <returns> /// Response for ListSubnets Api service callRetrieves all subnet that /// belongs to a virtual network /// </returns> public static SubnetListResponse List(this ISubnetOperations operations, string resourceGroupName, string virtualNetworkName) { return(Task.Factory.StartNew((object s) => { return ((ISubnetOperations)s).ListAsync(resourceGroupName, virtualNetworkName); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Initializes a new instance of the NetworkResourceProviderClient /// class. /// </summary> public NetworkResourceProviderClient() : base() { this._loadBalancers = new LoadBalancerOperations(this); this._localNetworkGateways = new LocalNetworkGatewayOperations(this); this._networkInterfaces = new NetworkInterfaceOperations(this); this._networkSecurityGroups = new NetworkSecurityGroupOperations(this); this._publicIpAddresses = new PublicIpAddressOperations(this); this._securityRules = new SecurityRuleOperations(this); this._subnets = new SubnetOperations(this); this._usages = new UsageOperations(this); this._virtualNetworkGatewayConnections = new VirtualNetworkGatewayConnectionOperations(this); this._virtualNetworkGateways = new VirtualNetworkGatewayOperations(this); this._virtualNetworks = new VirtualNetworkOperations(this); this._apiVersion = "2015-05-01-preview"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
/// <summary> /// The Put Subnet operation creates/updates a subnet in thespecified /// virtual network /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ISubnetOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='virtualNetworkName'> /// Required. The name of the virtual network. /// </param> /// <param name='subnetName'> /// Required. The name of the subnet. /// </param> /// <param name='subnetParameters'> /// Required. Parameters supplied to the create/update Subnet operation /// </param> /// <returns> /// Response for PutSubnet Api service call /// </returns> public static Task <SubnetPutResponse> BeginCreateOrUpdatingAsync(this ISubnetOperations operations, string resourceGroupName, string virtualNetworkName, string subnetName, Subnet subnetParameters) { return(operations.BeginCreateOrUpdatingAsync(resourceGroupName, virtualNetworkName, subnetName, subnetParameters, CancellationToken.None)); }
/// <summary> /// The List subnets opertion retrieves all the subnets in a virtual /// network. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ISubnetOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='virtualNetworkName'> /// Required. The name of the virtual network. /// </param> /// <returns> /// Response for ListSubnets Api service callRetrieves all subnet that /// belongs to a virtual network /// </returns> public static Task <SubnetListResponse> ListAsync(this ISubnetOperations operations, string resourceGroupName, string virtualNetworkName) { return(operations.ListAsync(resourceGroupName, virtualNetworkName, CancellationToken.None)); }
/// <summary> /// The delete subnet operation deletes the specified subnet. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ISubnetOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='virtualNetworkName'> /// Required. The name of the virtual network. /// </param> /// <param name='subnetName'> /// Required. The name of the subnet. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this ISubnetOperations operations, string resourceGroupName, string virtualNetworkName, string subnetName) { return(operations.DeleteAsync(resourceGroupName, virtualNetworkName, subnetName, CancellationToken.None)); }