/// <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'> /// Required. Service key representing the dedicated circuit. /// </param> /// <param name='vnetName'> /// Required. /// </param> /// <returns> /// A standard express route gateway response including an HTTP status /// code and request ID. /// </returns> public static Task<ExpressRouteOperationResponse> BeginRemoveAsync(this IDedicatedCircuitLinkOperations operations, string serviceKey, string vnetName) { return operations.BeginRemoveAsync(serviceKey, vnetName, CancellationToken.None); }
/// <summary> /// The Remove Dedicated Circuit operation deletes an existing /// dedicated circuit. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitOperations. /// </param> /// <param name='serviceKey'> /// Service key representing the dedicated circuit to be deleted. /// </param> /// <returns> /// A standard express route gateway response including an HTTP status /// code and request ID. /// </returns> public static ExpressRouteOperationResponse BeginRemove(this IDedicatedCircuitOperations operations, string serviceKey) { try { return operations.BeginRemoveAsync(serviceKey).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// The Remove Bgp Peering Route operation deletes an existing bgp /// peering. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.ExpressRoute.IBgpPeeringOperations. /// </param> /// <param name='serviceKey'> /// Service Key representing the bgp peering to be deleted. /// </param> /// <param name='accessType'> /// Whether the peering is private or public. /// </param> /// <returns> /// A standard express route gateway response including an HTTP status /// code and request ID. /// </returns> public static ExpressRouteOperationResponse BeginRemove(this IBgpPeeringOperations operations, string serviceKey, BgpPeeringAccessType accessType) { try { return operations.BeginRemoveAsync(serviceKey, accessType).Result; } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// The Remove Bgp Peering Route operation deletes an existing bgp /// peering. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.ExpressRoute.IBgpPeeringOperations. /// </param> /// <param name='serviceKey'> /// Service Key representing the bgp peering to be deleted. /// </param> /// <param name='accessType'> /// Whether the peering is private or public. /// </param> /// <returns> /// A standard express route gateway response including an HTTP status /// code and request ID. /// </returns> public static Task<ExpressRouteOperationResponse> BeginRemoveAsync(this IBgpPeeringOperations operations, string serviceKey, BgpPeeringAccessType accessType) { return operations.BeginRemoveAsync(serviceKey, accessType, CancellationToken.None); }
/// <summary> /// The Remove Dedicated Circuit Link Authorization operation deletes /// an existing dedicated circuit link. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitLinkAuthorizationOperations. /// </param> /// <param name='serviceKey'> /// Required. Service key representing the dedicated circuit. /// </param> /// <param name='authId'> /// Required. The GUID representing the authorization /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<ExpressRouteOperationResponse> BeginRemoveAsync(this IDedicatedCircuitLinkAuthorizationOperations operations, string serviceKey, string authId) { return operations.BeginRemoveAsync(serviceKey, authId, CancellationToken.None); }