/*
* 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 {
ReplicationLink,
ReplicationLinksListByDatabaseOptionalParams,
ReplicationLinksListByServerOptionalParams,
ReplicationLinksGetOptionalParams,
ReplicationLinksGetResponse,
ReplicationLinksDeleteOptionalParams,
ReplicationLinksFailoverOptionalParams,
ReplicationLinksFailoverResponse,
ReplicationLinksFailoverAllowDataLossOptionalParams,
ReplicationLinksFailoverAllowDataLossResponse
} from "../models";
///
/** Interface representing a ReplicationLinks. */
export interface ReplicationLinks {
/**
* Gets a list of replication links on database.
* @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 databaseName The name of the database.
* @param options The options parameters.
*/
listByDatabase(
resourceGroupName: string,
serverName: string,
databaseName: string,
options?: ReplicationLinksListByDatabaseOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets a list of replication 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?: ReplicationLinksListByServerOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets a replication 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 databaseName The name of the database.
* @param linkId The name of the replication link.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
serverName: string,
databaseName: string,
linkId: string,
options?: ReplicationLinksGetOptionalParams
): Promise;
/**
* Deletes the replication 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 databaseName The name of the database.
* @param linkId
* @param options The options parameters.
*/
beginDelete(
resourceGroupName: string,
serverName: string,
databaseName: string,
linkId: string,
options?: ReplicationLinksDeleteOptionalParams
): Promise, void>>;
/**
* Deletes the replication 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 databaseName The name of the database.
* @param linkId
* @param options The options parameters.
*/
beginDeleteAndWait(
resourceGroupName: string,
serverName: string,
databaseName: string,
linkId: string,
options?: ReplicationLinksDeleteOptionalParams
): Promise;
/**
* Fails over from the current primary server to this server.
* @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 databaseName The name of the database.
* @param linkId The name of the replication link.
* @param options The options parameters.
*/
beginFailover(
resourceGroupName: string,
serverName: string,
databaseName: string,
linkId: string,
options?: ReplicationLinksFailoverOptionalParams
): Promise<
SimplePollerLike<
OperationState,
ReplicationLinksFailoverResponse
>
>;
/**
* Fails over from the current primary server to this server.
* @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 databaseName The name of the database.
* @param linkId The name of the replication link.
* @param options The options parameters.
*/
beginFailoverAndWait(
resourceGroupName: string,
serverName: string,
databaseName: string,
linkId: string,
options?: ReplicationLinksFailoverOptionalParams
): Promise;
/**
* Fails over from the current primary server to this server allowing data loss.
* @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 databaseName The name of the database.
* @param linkId The name of the replication link.
* @param options The options parameters.
*/
beginFailoverAllowDataLoss(
resourceGroupName: string,
serverName: string,
databaseName: string,
linkId: string,
options?: ReplicationLinksFailoverAllowDataLossOptionalParams
): Promise<
SimplePollerLike<
OperationState,
ReplicationLinksFailoverAllowDataLossResponse
>
>;
/**
* Fails over from the current primary server to this server allowing data loss.
* @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 databaseName The name of the database.
* @param linkId The name of the replication link.
* @param options The options parameters.
*/
beginFailoverAllowDataLossAndWait(
resourceGroupName: string,
serverName: string,
databaseName: string,
linkId: string,
options?: ReplicationLinksFailoverAllowDataLossOptionalParams
): Promise;
}