/// <summary>
 /// Gets a private link resource for SQL server.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='groupName'>
 /// The name of the private link resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ManagedInstancePrivateLink> GetAsync(this IManagedInstancePrivateLinkResourcesOperations operations, string resourceGroupName, string managedInstanceName, string groupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, managedInstanceName, groupName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets a private link resource for SQL server.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='groupName'>
 /// The name of the private link resource.
 /// </param>
 public static ManagedInstancePrivateLink Get(this IManagedInstancePrivateLinkResourcesOperations operations, string resourceGroupName, string managedInstanceName, string groupName)
 {
     return(operations.GetAsync(resourceGroupName, managedInstanceName, groupName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the private link resources for SQL server.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 public static IPage <ManagedInstancePrivateLink> ListByManagedInstance(this IManagedInstancePrivateLinkResourcesOperations operations, string resourceGroupName, string managedInstanceName)
 {
     return(operations.ListByManagedInstanceAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the private link resources for SQL server.
 /// </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 <ManagedInstancePrivateLink> > ListByManagedInstanceNextAsync(this IManagedInstancePrivateLinkResourcesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByManagedInstanceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the private link resources for SQL server.
 /// </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 <ManagedInstancePrivateLink> ListByManagedInstanceNext(this IManagedInstancePrivateLinkResourcesOperations operations, string nextPageLink)
 {
     return(operations.ListByManagedInstanceNextAsync(nextPageLink).GetAwaiter().GetResult());
 }