Example #1
0
 /// <summary>
 /// Gets a private endpoint connection.
 /// </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='privateEndpointConnectionName'>
 /// The name of the private endpoint connection.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ManagedInstancePrivateEndpointConnection> GetAsync(this IManagedInstancePrivateEndpointConnectionsOperations operations, string resourceGroupName, string managedInstanceName, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, managedInstanceName, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <summary>
 /// Approve or reject a private endpoint connection with a given name.
 /// </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='privateEndpointConnectionName'>
 /// </param>
 /// <param name='parameters'>
 /// </param>
 public static ManagedInstancePrivateEndpointConnection CreateOrUpdate(this IManagedInstancePrivateEndpointConnectionsOperations operations, string resourceGroupName, string managedInstanceName, string privateEndpointConnectionName, ManagedInstancePrivateEndpointConnection parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, managedInstanceName, privateEndpointConnectionName, parameters).GetAwaiter().GetResult());
 }
Example #3
0
 /// <summary>
 /// Gets a private endpoint connection.
 /// </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='privateEndpointConnectionName'>
 /// The name of the private endpoint connection.
 /// </param>
 public static ManagedInstancePrivateEndpointConnection Get(this IManagedInstancePrivateEndpointConnectionsOperations operations, string resourceGroupName, string managedInstanceName, string privateEndpointConnectionName)
 {
     return(operations.GetAsync(resourceGroupName, managedInstanceName, privateEndpointConnectionName).GetAwaiter().GetResult());
 }
Example #4
0
 /// <summary>
 /// Gets all private endpoint connections on a 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 <ManagedInstancePrivateEndpointConnection> > ListByManagedInstanceNextAsync(this IManagedInstancePrivateEndpointConnectionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByManagedInstanceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #5
0
 /// <summary>
 /// Gets all private endpoint connections on a 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 <ManagedInstancePrivateEndpointConnection> ListByManagedInstanceNext(this IManagedInstancePrivateEndpointConnectionsOperations operations, string nextPageLink)
 {
     return(operations.ListByManagedInstanceNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Example #6
0
 /// <summary>
 /// Deletes a private endpoint connection with a given name.
 /// </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='privateEndpointConnectionName'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IManagedInstancePrivateEndpointConnectionsOperations operations, string resourceGroupName, string managedInstanceName, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Example #7
0
 /// <summary>
 /// Deletes a private endpoint connection with a given name.
 /// </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='privateEndpointConnectionName'>
 /// </param>
 public static void BeginDelete(this IManagedInstancePrivateEndpointConnectionsOperations operations, string resourceGroupName, string managedInstanceName, string privateEndpointConnectionName)
 {
     operations.BeginDeleteAsync(resourceGroupName, managedInstanceName, privateEndpointConnectionName).GetAwaiter().GetResult();
 }
Example #8
0
 /// <summary>
 /// Gets all private endpoint connections on a 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 <ManagedInstancePrivateEndpointConnection> ListByManagedInstance(this IManagedInstancePrivateEndpointConnectionsOperations operations, string resourceGroupName, string managedInstanceName)
 {
     return(operations.ListByManagedInstanceAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult());
 }