示例#1
0
 /// <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);
 }
示例#2
0
 /// <summary>
 /// The Put VirtualNetworkGatewayConnectionSharedKey operation sets the
 /// virtual network gateway connection shared key for passed virtual
 /// network gateway connection in the specified resource group through
 /// Network resource provider.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IVirtualNetworkGatewayConnectionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='virtualNetworkGatewayConnectionName'>
 /// Required. The virtual network gateway connection name.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Begin Create or update Virtual
 /// Network Gateway connection shared key operation through Network
 /// resource provider.
 /// </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 SetSharedKey(this IVirtualNetworkGatewayConnectionOperations operations, string resourceGroupName, string virtualNetworkGatewayConnectionName, ConnectionSharedKey parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVirtualNetworkGatewayConnectionOperations)s).SetSharedKeyAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
示例#3
0
 /// <summary>
 /// The List VirtualNetworkGatewayConnections operation retrieves all
 /// the virtual network gateways connections created.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IVirtualNetworkGatewayConnectionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <returns>
 /// Response for ListVirtualNetworkGatewayConnections Api service call
 /// </returns>
 public static VirtualNetworkGatewayConnectionListResponse List(this IVirtualNetworkGatewayConnectionOperations operations, string resourceGroupName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVirtualNetworkGatewayConnectionOperations)s).ListAsync(resourceGroupName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
示例#4
0
 /// <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);
 }
示例#5
0
 /// <summary>
 /// The Put VirtualNetworkGatewayConnection operation creates/updates a
 /// virtual network gateway connection in the specified resource group
 /// through Network resource provider.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IVirtualNetworkGatewayConnectionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='virtualNetworkGatewayConnectionName'>
 /// Required. The name of the virtual network gateway conenction.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Begin Create or update Virtual
 /// Network Gateway connection operation through Network resource
 /// provider.
 /// </param>
 /// <returns>
 /// Response for CreateOrUpdateVirtualNetworkGatewayConnection Api
 /// servive call
 /// </returns>
 public static Task <VirtualNetworkGatewayConnectionPutResponse> BeginCreateOrUpdatingAsync(this IVirtualNetworkGatewayConnectionOperations operations, string resourceGroupName, string virtualNetworkGatewayConnectionName, VirtualNetworkGatewayConnection parameters)
 {
     return(operations.BeginCreateOrUpdatingAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, CancellationToken.None));
 }
示例#6
0
 /// <summary>
 /// The Put VirtualNetworkGatewayConnectionSharedKey operation sets the
 /// virtual network gateway connection shared key for passed virtual
 /// network gateway connection in the specified resource group through
 /// Network resource provider.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IVirtualNetworkGatewayConnectionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='virtualNetworkGatewayConnectionName'>
 /// Required. The virtual network gateway connection name.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Begin Create or update Virtual
 /// Network Gateway connection shared key operation through Network
 /// resource provider.
 /// </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> SetSharedKeyAsync(this IVirtualNetworkGatewayConnectionOperations operations, string resourceGroupName, string virtualNetworkGatewayConnectionName, ConnectionSharedKey parameters)
 {
     return(operations.SetSharedKeyAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, CancellationToken.None));
 }
示例#7
0
 /// <summary>
 /// The Put VirtualNetworkGatewayConnection operation creates/updates a
 /// virtual network gateway connection in the specified resource group
 /// through Network resource provider.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IVirtualNetworkGatewayConnectionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='virtualNetworkGatewayConnectionName'>
 /// Required. The name of the virtual network gateway conenction.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Begin Create or update Virtual
 /// Network Gateway connection operation through Network resource
 /// provider.
 /// </param>
 /// <returns>
 /// Response for CreateOrUpdateVirtualNetworkGatewayConnection Api
 /// servive call
 /// </returns>
 public static VirtualNetworkGatewayConnectionPutResponse BeginCreateOrUpdating(this IVirtualNetworkGatewayConnectionOperations operations, string resourceGroupName, string virtualNetworkGatewayConnectionName, VirtualNetworkGatewayConnection parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVirtualNetworkGatewayConnectionOperations)s).BeginCreateOrUpdatingAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
示例#8
0
 /// <summary>
 /// The List VirtualNetworkGatewayConnections operation retrieves all
 /// the virtual network gateways connections created.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IVirtualNetworkGatewayConnectionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <returns>
 /// Response for ListVirtualNetworkGatewayConnections Api service call
 /// </returns>
 public static Task <VirtualNetworkGatewayConnectionListResponse> ListAsync(this IVirtualNetworkGatewayConnectionOperations operations, string resourceGroupName)
 {
     return(operations.ListAsync(resourceGroupName, CancellationToken.None));
 }
示例#9
0
 /// <summary>
 /// The Get VirtualNetworkGatewayConnectionSharedKey operation
 /// retrieves information about the specified virtual network gateway
 /// connection shared key through Network resource provider.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IVirtualNetworkGatewayConnectionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='connectionSharedKeyName'>
 /// Required. The virtual network gateway connection shared key name.
 /// </param>
 /// <returns>
 /// Response for CheckConnectionSharedKey Api servive call
 /// </returns>
 public static Task <ConnectionSharedKeyResponse> GetSharedKeyAsync(this IVirtualNetworkGatewayConnectionOperations operations, string resourceGroupName, string connectionSharedKeyName)
 {
     return(operations.GetSharedKeyAsync(resourceGroupName, connectionSharedKeyName, CancellationToken.None));
 }
示例#10
0
 /// <summary>
 /// The Delete VirtualNetworkGatewayConnection operation deletes the
 /// specifed virtual network Gateway connection through Network
 /// resource provider.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IVirtualNetworkGatewayConnectionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='virtualNetworkGatewayConnectionName'>
 /// Required. The name of the virtual network gateway connection.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IVirtualNetworkGatewayConnectionOperations operations, string resourceGroupName, string virtualNetworkGatewayConnectionName)
 {
     return(operations.DeleteAsync(resourceGroupName, virtualNetworkGatewayConnectionName, CancellationToken.None));
 }