/// <summary>
 /// Get all PrivateEndpointConnections in the PrivateLinkHub
 /// </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 <PrivateEndpointConnectionForPrivateLinkHub> > ListNextAsync(this IPrivateEndpointConnectionsPrivateLinkHubOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get all PrivateEndpointConnections in the PrivateLinkHub
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateLinkHubName'>
 /// Name of the privateLinkHub
 /// </param>
 public static IPage <PrivateEndpointConnectionForPrivateLinkHub> List(this IPrivateEndpointConnectionsPrivateLinkHubOperations operations, string resourceGroupName, string privateLinkHubName)
 {
     return(operations.ListAsync(resourceGroupName, privateLinkHubName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get all PrivateEndpointConnections in the PrivateLinkHub
 /// </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 <PrivateEndpointConnectionForPrivateLinkHub> ListNext(this IPrivateEndpointConnectionsPrivateLinkHubOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Beispiel #4
0
 /// <summary>
 /// Get all PrivateEndpointConnection in the PrivateLinkHub by name
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateLinkHubName'>
 /// Name of the privateLinkHub
 /// </param>
 /// <param name='privateEndpointConnectionName'>
 /// Name of the privateEndpointConnection
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PrivateEndpointConnectionForPrivateLinkHub> GetAsync(this IPrivateEndpointConnectionsPrivateLinkHubOperations operations, string resourceGroupName, string privateLinkHubName, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, privateLinkHubName, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }