Esempio n. 1
0
 /// <summary>
 /// The New Dedicated Circuit Link operation creates a new dedicated
 /// circuit link.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitLinkOperations.
 /// </param>
 /// <param name='serviceKey'>
 /// Required.
 /// </param>
 /// <param name='vnetName'>
 /// Required.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static ExpressRouteOperationResponse BeginNew(this IDedicatedCircuitLinkOperations operations, string serviceKey, string vnetName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IDedicatedCircuitLinkOperations)s).BeginNewAsync(serviceKey, vnetName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// The Get Express Route operation status gets information on the
 /// status of Express Route operations in Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154112.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitLinkOperations.
 /// </param>
 /// <param name='operationId'>
 /// Required. The id  of the 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 also includes error
 /// information regarding the failure.
 /// </returns>
 public static ExpressRouteOperationStatusResponse GetOperationStatus(this IDedicatedCircuitLinkOperations operations, string operationId)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IDedicatedCircuitLinkOperations)s).GetOperationStatusAsync(operationId);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 3
0
 /// <summary>
 /// The List Dedicated Circuit Links operation retrieves a list of
 /// Vnets that are linked to the circuit with the specified service
 /// key.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitLinkOperations.
 /// </param>
 /// <param name='serviceKey'>
 /// Optional.
 /// </param>
 /// <returns>
 /// The List Dedicated Circuit Link operation response.
 /// </returns>
 public static DedicatedCircuitLinkListResponse List(this IDedicatedCircuitLinkOperations operations, string serviceKey)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IDedicatedCircuitLinkOperations)s).ListAsync(serviceKey);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Initializes a new instance of the ExpressRouteManagementClient
 /// class.
 /// </summary>
 private ExpressRouteManagementClient()
     : base()
 {
     this._bgpPeering                      = new BgpPeeringOperations(this);
     this._crossConnection                 = new CrossConnectionOperations(this);
     this._dedicatedCircuitLink            = new DedicatedCircuitLinkOperations(this);
     this._dedicatedCircuit                = new DedicatedCircuitOperations(this);
     this._dedicatedCircuitServiceProvider = new DedicatedCircuitServiceProviderOperations(this);
     this.HttpClient.Timeout               = TimeSpan.FromSeconds(300);
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the ExpressRouteManagementClient
 /// class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 private ExpressRouteManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._borderGatewayProtocolPeerings = new BorderGatewayProtocolPeeringOperations(this);
     this._crossConnections                 = new CrossConnectionOperations(this);
     this._dedicatedCircuitLinks            = new DedicatedCircuitLinkOperations(this);
     this._dedicatedCircuits                = new DedicatedCircuitOperations(this);
     this._dedicatedCircuitServiceProviders = new DedicatedCircuitServiceProviderOperations(this);
     this._apiVersion = "2011-10-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
 /// <summary>
 /// The Remove Dedicated Circuit Link operation deletes an existing
 /// dedicated circuit link.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitLinkOperations.
 /// </param>
 /// <param name='serviceKey'>
 /// Service key representing the dedicated circuit.
 /// </param>
 /// <returns>
 /// A standard express route gateway response including an HTTP status
 /// code and request ID.
 /// </returns>
 public static ExpressRouteOperationResponse BeginRemove(this IDedicatedCircuitLinkOperations operations, string serviceKey, string vnetName)
 {
     try
     {
         return(operations.BeginRemoveAsync(serviceKey, vnetName).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
 /// <summary>
 /// The New Dedicated Circuit Link operation creates a new dedicated
 /// circuit link.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitLinkOperations.
 /// </param>
 /// <returns>
 /// The Get Dedicated Circuit Link operation response.
 /// </returns>
 public static DedicatedCircuitLinkGetResponse New(this IDedicatedCircuitLinkOperations operations, string serviceKey, string vnetName)
 {
     try
     {
         return(operations.NewAsync(serviceKey, vnetName).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
 /// <summary>
 /// The List Dedicated Circuit Links operation retrieves a list of
 /// Vnets that are linked to the circuit with the specified service
 /// key.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitLinkOperations.
 /// </param>
 /// <returns>
 /// The List Dedicated Circuit Link operation response.
 /// </returns>
 public static DedicatedCircuitLinkListResponse List(this IDedicatedCircuitLinkOperations operations, string serviceKey)
 {
     try
     {
         return(operations.ListAsync(serviceKey).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
Esempio n. 9
0
 /// <summary>
 /// Initializes a new instance of the ExpressRouteManagementClient
 /// class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public ExpressRouteManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._authorizedDedicatedCircuits   = new AuthorizedDedicatedCircuitOperations(this);
     this._borderGatewayProtocolPeerings = new BorderGatewayProtocolPeeringOperations(this);
     this._crossConnections = new CrossConnectionOperations(this);
     this._dedicatedCircuitLinkAuthorizationMicrosoftIds = new DedicatedCircuitLinkAuthorizationMicrosoftIdOperations(this);
     this._dedicatedCircuitLinkAuthorizations            = new DedicatedCircuitLinkAuthorizationOperations(this);
     this._dedicatedCircuitLinks                    = new DedicatedCircuitLinkOperations(this);
     this._dedicatedCircuits                        = new DedicatedCircuitOperations(this);
     this._dedicatedCircuitPeeringArpInfo           = new DedicatedCircuitPeeringArpInfoOperations(this);
     this._dedicatedCircuitPeeringRouteTableInfo    = new DedicatedCircuitPeeringRouteTableInfoOperations(this);
     this._dedicatedCircuitPeeringRouteTableSummary = new DedicatedCircuitPeeringRouteTableSummaryOperations(this);
     this._dedicatedCircuitServiceProviders         = new DedicatedCircuitServiceProviderOperations(this);
     this._dedicatedCircuitStats                    = new DedicatedCircuitStatsOperations(this);
     this._apiVersion = "2011-10-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
Esempio n. 10
0
 /// <summary>
 /// The New Dedicated Circuit Link operation creates a new dedicated
 /// circuit link.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitLinkOperations.
 /// </param>
 /// <param name='serviceKey'>
 /// Required.
 /// </param>
 /// <param name='vnetName'>
 /// Required.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <ExpressRouteOperationResponse> BeginNewAsync(this IDedicatedCircuitLinkOperations operations, string serviceKey, string vnetName)
 {
     return(operations.BeginNewAsync(serviceKey, vnetName, CancellationToken.None));
 }
Esempio n. 11
0
 /// <summary>
 /// The New Dedicated Circuit Link operation creates a new dedicated
 /// circuit link.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitLinkOperations.
 /// </param>
 /// <param name='serviceKey'>
 /// Required.
 /// </param>
 /// <param name='vnetName'>
 /// Required.
 /// </param>
 /// <returns>
 /// The Get Dedicated Circuit Link operation response.
 /// </returns>
 public static Task <DedicatedCircuitLinkGetResponse> NewAsync(this IDedicatedCircuitLinkOperations operations, string serviceKey, string vnetName)
 {
     return(operations.NewAsync(serviceKey, vnetName, CancellationToken.None));
 }
Esempio n. 12
0
 /// <summary>
 /// The List Dedicated Circuit Links operation retrieves a list of
 /// Vnets that are linked to the circuit with the specified service
 /// key.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitLinkOperations.
 /// </param>
 /// <param name='serviceKey'>
 /// Optional.
 /// </param>
 /// <returns>
 /// The List Dedicated Circuit Link operation response.
 /// </returns>
 public static Task <DedicatedCircuitLinkListResponse> ListAsync(this IDedicatedCircuitLinkOperations operations, string serviceKey)
 {
     return(operations.ListAsync(serviceKey, CancellationToken.None));
 }
 /// <summary>
 /// The Get Express Route operation status gets information on the
 /// status of Express Route operations in Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154112.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitLinkOperations.
 /// </param>
 /// <param name='operationId'>
 /// Required. The id  of the 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 also includes error
 /// information regarding the failure.
 /// </returns>
 public static Task <ExpressRouteOperationStatusResponse> GetOperationStatusAsync(this IDedicatedCircuitLinkOperations operations, string operationId)
 {
     return(operations.GetOperationStatusAsync(operationId, CancellationToken.None));
 }