示例#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);
 }
 /// <summary>
 /// The Put PublicIPAddress operation creates/updates a stable/dynamic
 /// PublicIP address
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IPublicIpAddressOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='publicIpAddressName'>
 /// Required. The name of the publicIpAddress.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the create/update PublicIPAddress
 /// operation
 /// </param>
 /// <returns>
 /// Response for PutPublicIpAddress Api servive call
 /// </returns>
 public static PublicIpAddressPutResponse BeginCreateOrUpdating(this IPublicIpAddressOperations operations, string resourceGroupName, string publicIpAddressName, PublicIpAddress parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IPublicIpAddressOperations)s).BeginCreateOrUpdatingAsync(resourceGroupName, publicIpAddressName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// The List publicIpAddress opertion retrieves all the
 /// publicIpAddresses in a subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IPublicIpAddressOperations.
 /// </param>
 /// <returns>
 /// Response for ListPublicIpAddresses Api service call
 /// </returns>
 public static PublicIpAddressListResponse ListAll(this IPublicIpAddressOperations operations)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IPublicIpAddressOperations)s).ListAllAsync();
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// The Get Role operation retrieves information about the specified
 /// virtual machine.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IPublicIpAddressOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='publicIpAddressName'>
 /// Required. The name of the subnet.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static AzureOperationResponse Delete(this IPublicIpAddressOperations operations, string resourceGroupName, string publicIpAddressName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IPublicIpAddressOperations)s).DeleteAsync(resourceGroupName, publicIpAddressName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
示例#5
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);
 }
 /// <summary>
 /// The Put PublicIPAddress operation creates/updates a stable/dynamic
 /// PublicIP address
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IPublicIpAddressOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='publicIpAddressName'>
 /// Required. The name of the publicIpAddress.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the create/update PublicIPAddress
 /// operation
 /// </param>
 /// <returns>
 /// Response for PutPublicIpAddress Api servive call
 /// </returns>
 public static Task <PublicIpAddressPutResponse> BeginCreateOrUpdatingAsync(this IPublicIpAddressOperations operations, string resourceGroupName, string publicIpAddressName, PublicIpAddress parameters)
 {
     return(operations.BeginCreateOrUpdatingAsync(resourceGroupName, publicIpAddressName, parameters, CancellationToken.None));
 }
 /// <summary>
 /// The List publicIpAddress opertion retrieves all the
 /// publicIpAddresses in a subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IPublicIpAddressOperations.
 /// </param>
 /// <returns>
 /// Response for ListPublicIpAddresses Api service call
 /// </returns>
 public static Task <PublicIpAddressListResponse> ListAllAsync(this IPublicIpAddressOperations operations)
 {
     return(operations.ListAllAsync(CancellationToken.None));
 }
 /// <summary>
 /// The List publicIpAddress opertion retrieves all the
 /// publicIpAddresses in a resource group.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IPublicIpAddressOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <returns>
 /// Response for ListPublicIpAddresses Api service call
 /// </returns>
 public static Task <PublicIpAddressListResponse> ListAsync(this IPublicIpAddressOperations operations, string resourceGroupName)
 {
     return(operations.ListAsync(resourceGroupName, CancellationToken.None));
 }
 /// <summary>
 /// The Get Role operation retrieves information about the specified
 /// virtual machine.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IPublicIpAddressOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='publicIpAddressName'>
 /// Required. The name of the subnet.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IPublicIpAddressOperations operations, string resourceGroupName, string publicIpAddressName)
 {
     return(operations.DeleteAsync(resourceGroupName, publicIpAddressName, CancellationToken.None));
 }
 /// <summary>
 /// The delete publicIpAddress operation deletes the specified
 /// publicIpAddress.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IPublicIpAddressOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='publicIpAddressName'>
 /// Required. The name of the subnet.
 /// </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 IPublicIpAddressOperations operations, string resourceGroupName, string publicIpAddressName)
 {
     return(operations.BeginDeletingAsync(resourceGroupName, publicIpAddressName, CancellationToken.None));
 }