Beispiel #1
0
 /// <summary>
 /// Lists all the vpnSiteLinks in a resource group for a vpn site.
 /// </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 <VpnSiteLinkInner> > ListByVpnSiteNextAsync(this IVpnSiteLinksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByVpnSiteNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Lists all the vpnSiteLinks in a resource group for a vpn site.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name of the VpnSite.
 /// </param>
 /// <param name='vpnSiteName'>
 /// The name of the VpnSite.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <VpnSiteLinkInner> > ListByVpnSiteAsync(this IVpnSiteLinksOperations operations, string resourceGroupName, string vpnSiteName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByVpnSiteWithHttpMessagesAsync(resourceGroupName, vpnSiteName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #3
0
 /// <summary>
 /// Retrieves the details of a VPN site link.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name of the VpnSite.
 /// </param>
 /// <param name='vpnSiteName'>
 /// The name of the VpnSite.
 /// </param>
 /// <param name='vpnSiteLinkName'>
 /// The name of the VpnSiteLink being retrieved.
 /// </param>
 public static VpnSiteLink Get(this IVpnSiteLinksOperations operations, string resourceGroupName, string vpnSiteName, string vpnSiteLinkName)
 {
     return(operations.GetAsync(resourceGroupName, vpnSiteName, vpnSiteLinkName).GetAwaiter().GetResult());
 }
Beispiel #4
0
 /// <summary>
 /// Lists all the vpnSiteLinks in a resource group for a vpn site.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name of the VpnSite.
 /// </param>
 /// <param name='vpnSiteName'>
 /// The name of the VpnSite.
 /// </param>
 public static IPage <VpnSiteLink> ListByVpnSite(this IVpnSiteLinksOperations operations, string resourceGroupName, string vpnSiteName)
 {
     return(operations.ListByVpnSiteAsync(resourceGroupName, vpnSiteName).GetAwaiter().GetResult());
 }
Beispiel #5
0
 /// <summary>
 /// Lists all the vpnSiteLinks in a resource group for a vpn site.
 /// </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 <VpnSiteLink> ListByVpnSiteNext(this IVpnSiteLinksOperations operations, string nextPageLink)
 {
     return(operations.ListByVpnSiteNextAsync(nextPageLink).GetAwaiter().GetResult());
 }