/*
* 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 { SimplePollerLike, OperationState } from "@azure/core-lro";
import {
ServerCommunicationLink,
ServerCommunicationLinksListByServerOptionalParams,
ServerCommunicationLinksDeleteOptionalParams,
ServerCommunicationLinksGetOptionalParams,
ServerCommunicationLinksGetResponse,
ServerCommunicationLinksCreateOrUpdateOptionalParams,
ServerCommunicationLinksCreateOrUpdateResponse
} from "../models";
///
/** Interface representing a ServerCommunicationLinks. */
export interface ServerCommunicationLinks {
/**
* Gets a list of server communication links.
* @param 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 serverName The name of the server.
* @param options The options parameters.
*/
listByServer(
resourceGroupName: string,
serverName: string,
options?: ServerCommunicationLinksListByServerOptionalParams
): PagedAsyncIterableIterator;
/**
* Deletes a server communication link.
* @param 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 serverName The name of the server.
* @param communicationLinkName The name of the server communication link.
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
serverName: string,
communicationLinkName: string,
options?: ServerCommunicationLinksDeleteOptionalParams
): Promise;
/**
* Returns a server communication link.
* @param 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 serverName The name of the server.
* @param communicationLinkName The name of the server communication link.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
serverName: string,
communicationLinkName: string,
options?: ServerCommunicationLinksGetOptionalParams
): Promise;
/**
* Creates a server communication link.
* @param 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 serverName The name of the server.
* @param communicationLinkName The name of the server communication link.
* @param parameters The required parameters for creating a server communication link.
* @param options The options parameters.
*/
beginCreateOrUpdate(
resourceGroupName: string,
serverName: string,
communicationLinkName: string,
parameters: ServerCommunicationLink,
options?: ServerCommunicationLinksCreateOrUpdateOptionalParams
): Promise<
SimplePollerLike<
OperationState,
ServerCommunicationLinksCreateOrUpdateResponse
>
>;
/**
* Creates a server communication link.
* @param 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 serverName The name of the server.
* @param communicationLinkName The name of the server communication link.
* @param parameters The required parameters for creating a server communication link.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(
resourceGroupName: string,
serverName: string,
communicationLinkName: string,
parameters: ServerCommunicationLink,
options?: ServerCommunicationLinksCreateOrUpdateOptionalParams
): Promise;
}