/// <summary> /// Lists IKE Security Associations for Vpn Site Link Connection in the /// specified resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='gatewayName'> /// The name of the gateway. /// </param> /// <param name='connectionName'> /// The name of the vpn connection. /// </param> /// <param name='linkConnectionName'> /// The name of the vpn link connection. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <string> BeginGetIkeSasAsync(this IVpnLinkConnectionsOperations operations, string resourceGroupName, string gatewayName, string connectionName, string linkConnectionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginGetIkeSasWithHttpMessagesAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieves all vpn site link connections for a particular virtual wan vpn /// gateway vpn connection. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <VpnSiteLinkConnection> > ListByVpnConnectionNextAsync(this IVpnLinkConnectionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByVpnConnectionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieves all vpn site link connections for a particular virtual wan vpn /// gateway vpn connection. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <VpnSiteLinkConnection> ListByVpnConnectionNext(this IVpnLinkConnectionsOperations operations, string nextPageLink) { return(operations.ListByVpnConnectionNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Retrieves all vpn site link connections for a particular virtual wan vpn /// gateway vpn connection. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name of the VpnGateway. /// </param> /// <param name='gatewayName'> /// The name of the gateway. /// </param> /// <param name='connectionName'> /// The name of the vpn connection. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <VpnSiteLinkConnection> > ListByVpnConnectionAsync(this IVpnLinkConnectionsOperations operations, string resourceGroupName, string gatewayName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByVpnConnectionWithHttpMessagesAsync(resourceGroupName, gatewayName, connectionName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieves all vpn site link connections for a particular virtual wan vpn /// gateway vpn connection. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name of the VpnGateway. /// </param> /// <param name='gatewayName'> /// The name of the gateway. /// </param> /// <param name='connectionName'> /// The name of the vpn connection. /// </param> public static IPage <VpnSiteLinkConnection> ListByVpnConnection(this IVpnLinkConnectionsOperations operations, string resourceGroupName, string gatewayName, string connectionName) { return(operations.ListByVpnConnectionAsync(resourceGroupName, gatewayName, connectionName).GetAwaiter().GetResult()); }
/// <summary> /// Lists IKE Security Associations for Vpn Site Link Connection in the /// specified resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='gatewayName'> /// The name of the gateway. /// </param> /// <param name='connectionName'> /// The name of the vpn connection. /// </param> /// <param name='linkConnectionName'> /// The name of the vpn link connection. /// </param> public static string GetIkeSas(this IVpnLinkConnectionsOperations operations, string resourceGroupName, string gatewayName, string connectionName, string linkConnectionName) { return(operations.GetIkeSasAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName).GetAwaiter().GetResult()); }
/// <summary> /// Resets the VpnLink connection specified. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='gatewayName'> /// The name of the gateway. /// </param> /// <param name='connectionName'> /// The name of the vpn connection. /// </param> /// <param name='linkConnectionName'> /// The name of the vpn link connection. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ResetConnectionAsync(this IVpnLinkConnectionsOperations operations, string resourceGroupName, string gatewayName, string connectionName, string linkConnectionName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.ResetConnectionWithHttpMessagesAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Resets the VpnLink connection specified. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='gatewayName'> /// The name of the gateway. /// </param> /// <param name='connectionName'> /// The name of the vpn connection. /// </param> /// <param name='linkConnectionName'> /// The name of the vpn link connection. /// </param> public static void ResetConnection(this IVpnLinkConnectionsOperations operations, string resourceGroupName, string gatewayName, string connectionName, string linkConnectionName) { operations.ResetConnectionAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName).GetAwaiter().GetResult(); }