/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListByServerOptionalParams, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams, TagsObject, PrivateEndpointConnectionsUpdateTagsOptionalParams, PrivateEndpointConnectionsUpdateTagsResponse } from "../models"; /// /** Interface representing a PrivateEndpointConnections. */ export interface PrivateEndpointConnections { /** * Gets all private endpoint connections on a server. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param options The options parameters. */ listByServer( resourceGroupName: string, serverName: string, options?: PrivateEndpointConnectionsListByServerOptionalParams ): PagedAsyncIterableIterator; /** * Gets a private endpoint connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param options The options parameters. */ get( resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams ): Promise; /** * Approve or reject a private endpoint connection with a given name. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param privateEndpointConnectionName * @param parameters A private endpoint connection * @param options The options parameters. */ beginCreateOrUpdate( resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams ): Promise< PollerLike< PollOperationState, PrivateEndpointConnectionsCreateOrUpdateResponse > >; /** * Approve or reject a private endpoint connection with a given name. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param privateEndpointConnectionName * @param parameters A private endpoint connection * @param options The options parameters. */ beginCreateOrUpdateAndWait( resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams ): Promise; /** * Deletes a private endpoint connection with a given name. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param privateEndpointConnectionName * @param options The options parameters. */ beginDelete( resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams ): Promise, void>>; /** * Deletes a private endpoint connection with a given name. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param privateEndpointConnectionName * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams ): Promise; /** * Updates private endpoint connection with the specified tags. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param privateEndpointConnectionName * @param parameters Parameters supplied to the Update private endpoint connection Tags operation. * @param options The options parameters. */ beginUpdateTags( resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, parameters: TagsObject, options?: PrivateEndpointConnectionsUpdateTagsOptionalParams ): Promise< PollerLike< PollOperationState, PrivateEndpointConnectionsUpdateTagsResponse > >; /** * Updates private endpoint connection with the specified tags. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serverName The name of the server. * @param privateEndpointConnectionName * @param parameters Parameters supplied to the Update private endpoint connection Tags operation. * @param options The options parameters. */ beginUpdateTagsAndWait( resourceGroupName: string, serverName: string, privateEndpointConnectionName: string, parameters: TagsObject, options?: PrivateEndpointConnectionsUpdateTagsOptionalParams ): Promise; }