public SetConfigApplicationGateway(IApplicationGatewayOperations applicationGatewayClient, string gatewayName, ApplicationGatewaySetConfiguration config) { this.applicationGatewayClient = applicationGatewayClient; this.gatewayName = gatewayName; this.config = config; }
/// <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 ApplicationGateway operation creates/updates a /// ApplicationGateway /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IApplicationGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// Required. The name of the ApplicationGateway. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the create/delete /// ApplicationGateway operation /// </param> /// <returns> /// Response of Put ApplicationGateway operation /// </returns> public static ApplicationGatewayPutResponse BeginCreateOrUpdating(this IApplicationGatewayOperations operations, string resourceGroupName, string applicationGatewayName, ApplicationGateway parameters) { return(Task.Factory.StartNew((object s) => { return ((IApplicationGatewayOperations)s).BeginCreateOrUpdatingAsync(resourceGroupName, applicationGatewayName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// The STOP ApplicationGateway operation stops application gatewayin /// the specified resource group through Network resource provider. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IApplicationGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// Required. The name of the application gateway. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request and error information regarding /// the failure. /// </returns> public static AzureAsyncOperationResponse Stop(this IApplicationGatewayOperations operations, string resourceGroupName, string applicationGatewayName) { return(Task.Factory.StartNew((object s) => { return ((IApplicationGatewayOperations)s).StopAsync(resourceGroupName, applicationGatewayName); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// The List applicationgateway opertion retrieves all the /// applicationgateways in a subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IApplicationGatewayOperations. /// </param> /// <returns> /// Response for ListLoadBalancers Api service call /// </returns> public static ApplicationGatewayListResponse ListAll(this IApplicationGatewayOperations operations) { return(Task.Factory.StartNew((object s) => { return ((IApplicationGatewayOperations)s).ListAllAsync(); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Initializes a new instance of the NetworkManagementClient class. /// </summary> /// <param name='httpClient'> /// The Http client /// </param> public NetworkManagementClient(HttpClient httpClient) : base(httpClient) { this._applicationGateways = new ApplicationGatewayOperations(this); this._clientRootCertificates = new ClientRootCertificateOperations(this); this._gateways = new GatewayOperations(this); this._networks = new NetworkOperations(this); this._networkSecurityGroups = new NetworkSecurityGroupOperations(this); this._reservedIPs = new ReservedIPOperations(this); this._routes = new RouteOperations(this); this._staticIPs = new StaticIPOperations(this); this._apiVersion = "2014-10-01"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
public StopApplicationGateway(IApplicationGatewayOperations applicationGatewayClient, string gatewayName, ApplicationGatewayOperation op) { this.applicationGatewayClient = applicationGatewayClient; this.gatewayName = gatewayName; this.op = op; }
public DeleteApplicationGateway(IApplicationGatewayOperations applicationGatewayClient, string gatewayName) { this.applicationGatewayClient = applicationGatewayClient; this.gatewayName = gatewayName; }
public ApplicationGatewayTestClient(NetworkTestClient testClient, IApplicationGatewayOperations applicationGatewayClient) { this.testClient = testClient; this.applicationGatewayClient = applicationGatewayClient; }
public StartApplicationGateway(IApplicationGatewayOperations applicationGatewayClient, string gatewayName) { this.applicationGatewayClient = applicationGatewayClient; this.gatewayName = gatewayName; }
/// <summary> /// The List ApplicationGateway opertion retrieves all the /// applicationgateways in a resource group. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IApplicationGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <returns> /// Response for ListLoadBalancers Api service call /// </returns> public static Task <ApplicationGatewayListResponse> ListAsync(this IApplicationGatewayOperations operations, string resourceGroupName) { return(operations.ListAsync(resourceGroupName, CancellationToken.None)); }
/// <summary> /// The Put ApplicationGateway operation creates/updates a /// ApplicationGateway /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IApplicationGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// Required. The name of the ApplicationGateway. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the create/delete /// ApplicationGateway operation /// </param> /// <returns> /// Response of Put ApplicationGateway operation /// </returns> public static Task <ApplicationGatewayPutResponse> BeginCreateOrUpdatingAsync(this IApplicationGatewayOperations operations, string resourceGroupName, string applicationGatewayName, ApplicationGateway parameters) { return(operations.BeginCreateOrUpdatingAsync(resourceGroupName, applicationGatewayName, parameters, CancellationToken.None)); }
/// <summary> /// The STOP ApplicationGateway operation stops application gatewayin /// the specified resource group through Network resource provider. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IApplicationGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// Required. The name of the application gateway. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request and error information regarding /// the failure. /// </returns> public static Task <AzureAsyncOperationResponse> StopAsync(this IApplicationGatewayOperations operations, string resourceGroupName, string applicationGatewayName) { return(operations.StopAsync(resourceGroupName, applicationGatewayName, CancellationToken.None)); }
/// <summary> /// The List applicationgateway opertion retrieves all the /// applicationgateways in a subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IApplicationGatewayOperations. /// </param> /// <returns> /// Response for ListLoadBalancers Api service call /// </returns> public static Task <ApplicationGatewayListResponse> ListAllAsync(this IApplicationGatewayOperations operations) { return(operations.ListAllAsync(CancellationToken.None)); }
/// <summary> /// The delete applicationgateway operation deletes the specified /// applicationgateway. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IApplicationGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// Required. The name of the applicationgateway. /// </param> /// <returns> /// If the resource provide needs to return an error to any operation, /// it should return the appropriate HTTP error code and a message /// body as can be seen below.The message should be localized per the /// Accept-Language header specified in the original request such /// thatit could be directly be exposed to users /// </returns> public static Task <UpdateOperationResponse> BeginDeletingAsync(this IApplicationGatewayOperations operations, string resourceGroupName, string applicationGatewayName) { return(operations.BeginDeletingAsync(resourceGroupName, applicationGatewayName, CancellationToken.None)); }
public CreateApplicationGateway(IApplicationGatewayOperations applicationGatewayClient, CreateApplicationGatewayParameters parameters) { this.applicationGatewayClient = applicationGatewayClient; this.parameters = parameters; }
/// <summary> /// The STOP ApplicationGateway operation stops application gatewayin /// the specified resource group through Network resource provider. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IApplicationGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='applicationGatewayName'> /// Required. The name of the application gateway. /// </param> /// <returns> /// Response for PutVirtualNetworkGateway Api servive call /// </returns> public static Task <VirtualNetworkGatewayPutResponse> BeginStopAsync(this IApplicationGatewayOperations operations, string resourceGroupName, string applicationGatewayName) { return(operations.BeginStopAsync(resourceGroupName, applicationGatewayName, CancellationToken.None)); }