/// <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 LocalNetworkGateway operation creates/updates a local /// network gateway in the specified resource group through Network /// resource provider. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILocalNetworkGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='localNetworkGatewayName'> /// Required. The name of the local network gateway. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Begin Create or update Local /// Network Gateway operation through Network resource provider. /// </param> /// <returns> /// Response for PutLocalNetworkGateway Api servive call /// </returns> public static LocalNetworkGatewayPutResponse BeginCreateOrUpdating(this ILocalNetworkGatewayOperations operations, string resourceGroupName, string localNetworkGatewayName, LocalNetworkGateway parameters) { return(Task.Factory.StartNew((object s) => { return ((ILocalNetworkGatewayOperations)s).BeginCreateOrUpdatingAsync(resourceGroupName, localNetworkGatewayName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// The List LocalNetworkGateways opertion retrieves all the local /// network gateways stored. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILocalNetworkGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <returns> /// Response for ListLocalNetworkGateways Api service call /// </returns> public static LocalNetworkGatewayListResponse List(this ILocalNetworkGatewayOperations operations, string resourceGroupName) { return(Task.Factory.StartNew((object s) => { return ((ILocalNetworkGatewayOperations)s).ListAsync(resourceGroupName); } , 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 LocalNetworkGateway operation creates/updates a local /// network gateway in the specified resource group through Network /// resource provider. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILocalNetworkGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='localNetworkGatewayName'> /// Required. The name of the local network gateway. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Begin Create or update Local /// Network Gateway operation through Network resource provider. /// </param> /// <returns> /// Response for PutLocalNetworkGateway Api servive call /// </returns> public static Task <LocalNetworkGatewayPutResponse> BeginCreateOrUpdatingAsync(this ILocalNetworkGatewayOperations operations, string resourceGroupName, string localNetworkGatewayName, LocalNetworkGateway parameters) { return(operations.BeginCreateOrUpdatingAsync(resourceGroupName, localNetworkGatewayName, parameters, CancellationToken.None)); }
/// <summary> /// The List LocalNetworkGateways opertion retrieves all the local /// network gateways stored. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILocalNetworkGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <returns> /// Response for ListLocalNetworkGateways Api service call /// </returns> public static Task <LocalNetworkGatewayListResponse> ListAsync(this ILocalNetworkGatewayOperations operations, string resourceGroupName) { return(operations.ListAsync(resourceGroupName, CancellationToken.None)); }
/// <summary> /// The Delete LocalNetworkGateway operation deletes the specifed local /// network Gateway through Network resource provider. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILocalNetworkGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='localNetworkGatewayName'> /// Required. The name of the local network gateway. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this ILocalNetworkGatewayOperations operations, string resourceGroupName, string localNetworkGatewayName) { return(operations.DeleteAsync(resourceGroupName, localNetworkGatewayName, CancellationToken.None)); }