/// <summary> /// Retrieves the details of a vpn site link 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='linkConnectionName'> /// The name of the vpn connection. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <VpnSiteLinkConnectionInner> GetAsync(this IVpnSiteLinkConnectionsOperations operations, string resourceGroupName, string gatewayName, string connectionName, string linkConnectionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieves the details of a vpn site link 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='linkConnectionName'> /// The name of the vpn connection. /// </param> public static VpnSiteLinkConnection Get(this IVpnSiteLinkConnectionsOperations operations, string resourceGroupName, string gatewayName, string connectionName, string linkConnectionName) { return(operations.GetAsync(resourceGroupName, gatewayName, connectionName, linkConnectionName).GetAwaiter().GetResult()); }