/// <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 RouteTable operation creates/updates a route tablein the /// specified resource group. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IRouteTableOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='routeTableName'> /// Required. The name of the route table. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the create/update Route Table /// operation /// </param> /// <returns> /// Response for PUT RouteTables Api servive call /// </returns> public static RouteTablePutResponse BeginCreateOrUpdating(this IRouteTableOperations operations, string resourceGroupName, string routeTableName, RouteTable parameters) { return(Task.Factory.StartNew((object s) => { return ((IRouteTableOperations)s).BeginCreateOrUpdatingAsync(resourceGroupName, routeTableName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// The list RouteTables returns all route tables in a subscription /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IRouteTableOperations. /// </param> /// <returns> /// Response for ListRouteTable Api servive call /// </returns> public static RouteTableListResponse ListAll(this IRouteTableOperations operations) { return(Task.Factory.StartNew((object s) => { return ((IRouteTableOperations)s).ListAllAsync(); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// The Delete RouteTable operation deletes the specifed Route Table /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IRouteTableOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='routeTableName'> /// Required. The name of the route table. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static AzureOperationResponse Delete(this IRouteTableOperations operations, string resourceGroupName, string routeTableName) { return(Task.Factory.StartNew((object s) => { return ((IRouteTableOperations)s).DeleteAsync(resourceGroupName, routeTableName); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// The Put RouteTable operation creates/updates a route tablein the /// specified resource group. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IRouteTableOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='routeTableName'> /// Required. The name of the route table. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the create/update Route Table /// operation /// </param> /// <returns> /// Response for PUT RouteTables Api servive call /// </returns> public static Task <RouteTablePutResponse> BeginCreateOrUpdatingAsync(this IRouteTableOperations operations, string resourceGroupName, string routeTableName, RouteTable parameters) { return(operations.BeginCreateOrUpdatingAsync(resourceGroupName, routeTableName, parameters, CancellationToken.None)); }
/// <summary> /// The list RouteTables returns all route tables in a subscription /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IRouteTableOperations. /// </param> /// <returns> /// Response for ListRouteTable Api servive call /// </returns> public static Task <RouteTableListResponse> ListAllAsync(this IRouteTableOperations operations) { return(operations.ListAllAsync(CancellationToken.None)); }
/// <summary> /// The list RouteTables returns all route tables in a resource group /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IRouteTableOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <returns> /// Response for ListRouteTable Api servive call /// </returns> public static Task <RouteTableListResponse> ListAsync(this IRouteTableOperations operations, string resourceGroupName) { return(operations.ListAsync(resourceGroupName, CancellationToken.None)); }
/// <summary> /// The Delete RouteTable operation deletes the specifed Route Table /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IRouteTableOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='routeTableName'> /// Required. The name of the route table. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this IRouteTableOperations operations, string resourceGroupName, string routeTableName) { return(operations.DeleteAsync(resourceGroupName, routeTableName, CancellationToken.None)); }
/// <summary> /// The Delete RouteTable operation deletes the specifed Route Table /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IRouteTableOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='routeTableName'> /// Required. The name of the route table. /// </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 IRouteTableOperations operations, string resourceGroupName, string routeTableName) { return(operations.BeginDeletingAsync(resourceGroupName, routeTableName, CancellationToken.None)); }