/// <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> /// Add an internal load balancer to a an existing deployment. When /// used by an input endpoint, the internal load balancer will provide /// an additional private VIP that can be used for load balancing to /// the roles in this deployment. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.ILoadBalancerOperations. /// </param> /// <param name='serviceName'> /// Required. The name of the service. /// </param> /// <param name='deploymentName'> /// Required. The name of the deployment. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Create Load Balancer operation. /// </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 OperationStatusResponse BeginCreating(this ILoadBalancerOperations operations, string serviceName, string deploymentName, LoadBalancerCreateParameters parameters) { return(Task.Factory.StartNew((object s) => { return ((ILoadBalancerOperations)s).BeginCreatingAsync(serviceName, deploymentName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Delete an internal load balancer from the deployment. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.ILoadBalancerOperations. /// </param> /// <param name='serviceName'> /// Required. The name of the service. /// </param> /// <param name='deploymentName'> /// Required. The name of the deployment. /// </param> /// <param name='loadBalancerName'> /// Required. The name of the load balancer. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static AzureOperationResponse Delete(this ILoadBalancerOperations operations, string serviceName, string deploymentName, string loadBalancerName) { return(Task.Factory.StartNew((object s) => { return ((ILoadBalancerOperations)s).DeleteAsync(serviceName, deploymentName, loadBalancerName); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// The Put LoadBalancer operation creates/updates a LoadBalancer /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILoadBalancerOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='loadBalancerName'> /// Required. The name of the loadBalancer. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the create/delete LoadBalancer /// operation /// </param> /// <returns> /// Response of a PUT Load Balancer operation /// </returns> public static LoadBalancerPutResponse BeginCreateOrUpdating(this ILoadBalancerOperations operations, string resourceGroupName, string loadBalancerName, LoadBalancer parameters) { return(Task.Factory.StartNew((object s) => { return ((ILoadBalancerOperations)s).BeginCreateOrUpdatingAsync(resourceGroupName, loadBalancerName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// The List loadBalancer opertion retrieves all the loadbalancers in a /// subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILoadBalancerOperations. /// </param> /// <returns> /// Response for ListLoadBalancers Api service call /// </returns> public static LoadBalancerListResponse ListAll(this ILoadBalancerOperations operations) { return(Task.Factory.StartNew((object s) => { return ((ILoadBalancerOperations)s).ListAllAsync(); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Initializes a new instance of the ComputeManagementClient class. /// </summary> /// <param name='httpClient'> /// The Http client /// </param> private ComputeManagementClient(HttpClient httpClient) : base(httpClient) { this._deployments = new DeploymentOperations(this); this._hostedServices = new HostedServiceOperations(this); this._loadBalancers = new LoadBalancerOperations(this); this._operatingSystems = new OperatingSystemOperations(this); this._serviceCertificates = new ServiceCertificateOperations(this); this._virtualMachineDisks = new VirtualMachineDiskOperations(this); this._virtualMachineExtensions = new VirtualMachineExtensionOperations(this); this._virtualMachines = new VirtualMachineOperations(this); this._virtualMachineOSImages = new VirtualMachineOSImageOperations(this); this._virtualMachineVMImages = new VirtualMachineVMImageOperations(this); this._apiVersion = "2014-05-01"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
/// <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> /// Updates an internal load balancer associated with an existing /// deployment. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.ILoadBalancerOperations. /// </param> /// <param name='serviceName'> /// Required. The name of the service. /// </param> /// <param name='deploymentName'> /// Required. The name of the deployment. /// </param> /// <param name='loadBalancerName'> /// Required. The name of the loadBalancer. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Update Load Balancer operation. /// </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 <OperationStatusResponse> UpdateAsync(this ILoadBalancerOperations operations, string serviceName, string deploymentName, string loadBalancerName, LoadBalancerUpdateParameters parameters) { return(operations.UpdateAsync(serviceName, deploymentName, loadBalancerName, parameters, CancellationToken.None)); }
/// <summary> /// Delete an internal load balancer from the deployment. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.ILoadBalancerOperations. /// </param> /// <param name='serviceName'> /// Required. The name of the service. /// </param> /// <param name='deploymentName'> /// Required. The name of the deployment. /// </param> /// <param name='loadBalancerName'> /// Required. The name of the load balancer. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this ILoadBalancerOperations operations, string serviceName, string deploymentName, string loadBalancerName) { return(operations.DeleteAsync(serviceName, deploymentName, loadBalancerName, CancellationToken.None)); }
/// <summary> /// Delete an internal load balancer from the deployment. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.ILoadBalancerOperations. /// </param> /// <param name='serviceName'> /// Required. The name of the service. /// </param> /// <param name='deploymentName'> /// Required. The name of the deployment. /// </param> /// <param name='loadBalancerName'> /// Required. The name of the load balancer. /// </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 <OperationStatusResponse> BeginDeletingAsync(this ILoadBalancerOperations operations, string serviceName, string deploymentName, string loadBalancerName) { return(operations.BeginDeletingAsync(serviceName, deploymentName, loadBalancerName, CancellationToken.None)); }
/// <summary> /// The Put LoadBalancer operation creates/updates a LoadBalancer /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILoadBalancerOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='loadBalancerName'> /// Required. The name of the loadBalancer. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the create/delete LoadBalancer /// operation /// </param> /// <returns> /// Response of a PUT Load Balancer operation /// </returns> public static Task <LoadBalancerPutResponse> BeginCreateOrUpdatingAsync(this ILoadBalancerOperations operations, string resourceGroupName, string loadBalancerName, LoadBalancer parameters) { return(operations.BeginCreateOrUpdatingAsync(resourceGroupName, loadBalancerName, parameters, CancellationToken.None)); }
/// <summary> /// The List loadBalancer opertion retrieves all the loadbalancers in a /// subscription. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILoadBalancerOperations. /// </param> /// <returns> /// Response for ListLoadBalancers Api service call /// </returns> public static Task <LoadBalancerListResponse> ListAllAsync(this ILoadBalancerOperations operations) { return(operations.ListAllAsync(CancellationToken.None)); }
/// <summary> /// The List loadBalancer opertion retrieves all the loadbalancers in a /// resource group. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILoadBalancerOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <returns> /// Response for ListLoadBalancers Api service call /// </returns> public static Task <LoadBalancerListResponse> ListAsync(this ILoadBalancerOperations operations, string resourceGroupName) { return(operations.ListAsync(resourceGroupName, CancellationToken.None)); }
/// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILoadBalancerOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='loadBalancerName'> /// Required. The name of the loadBalancer. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this ILoadBalancerOperations operations, string resourceGroupName, string loadBalancerName) { return(operations.DeleteAsync(resourceGroupName, loadBalancerName, CancellationToken.None)); }
/// <summary> /// The delete loadbalancer operation deletes the specified /// loadbalancer. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILoadBalancerOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='loadBalancerName'> /// Required. The name of the loadBalancer. /// </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 ILoadBalancerOperations operations, string resourceGroupName, string loadBalancerName) { return(operations.BeginDeletingAsync(resourceGroupName, loadBalancerName, CancellationToken.None)); }