import type { SqlManagementContext } from "../../api/sqlManagementContext.js"; import type { FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams, FailoverGroupsForceFailoverAllowDataLossOptionalParams, FailoverGroupsFailoverOptionalParams, FailoverGroupsListByServerOptionalParams, FailoverGroupsDeleteOptionalParams, FailoverGroupsUpdateOptionalParams, FailoverGroupsCreateOrUpdateOptionalParams, FailoverGroupsGetOptionalParams } from "../../api/failoverGroups/options.js"; import type { FailoverGroup, FailoverGroupUpdate } from "../../models/models.js"; import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; import type { SimplePollerLike } from "../../static-helpers/simplePollerHelpers.js"; import type { PollerLike, OperationState } from "@azure/core-lro"; /** Interface representing a FailoverGroups operations. */ export interface FailoverGroupsOperations { /** Fails over from the current primary server to this server. This operation tries planned before forced failover but might still result in data loss. */ tryPlannedBeforeForcedFailover: (resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams) => PollerLike, FailoverGroup>; /** @deprecated use tryPlannedBeforeForcedFailover instead */ beginTryPlannedBeforeForcedFailover: (resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams) => Promise, FailoverGroup>>; /** @deprecated use tryPlannedBeforeForcedFailover instead */ beginTryPlannedBeforeForcedFailoverAndWait: (resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams) => Promise; /** Fails over from the current primary server to this server. This operation might result in data loss. */ forceFailoverAllowDataLoss: (resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsForceFailoverAllowDataLossOptionalParams) => PollerLike, FailoverGroup>; /** @deprecated use forceFailoverAllowDataLoss instead */ beginForceFailoverAllowDataLoss: (resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsForceFailoverAllowDataLossOptionalParams) => Promise, FailoverGroup>>; /** @deprecated use forceFailoverAllowDataLoss instead */ beginForceFailoverAllowDataLossAndWait: (resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsForceFailoverAllowDataLossOptionalParams) => Promise; /** Fails over from the current primary server to this server. */ failover: (resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsFailoverOptionalParams) => PollerLike, FailoverGroup>; /** @deprecated use failover instead */ beginFailover: (resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsFailoverOptionalParams) => Promise, FailoverGroup>>; /** @deprecated use failover instead */ beginFailoverAndWait: (resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsFailoverOptionalParams) => Promise; /** Lists the failover groups in a server. */ listByServer: (resourceGroupName: string, serverName: string, options?: FailoverGroupsListByServerOptionalParams) => PagedAsyncIterableIterator; /** Deletes a failover group. */ delete: (resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsDeleteOptionalParams) => PollerLike, void>; /** @deprecated use delete instead */ beginDelete: (resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsDeleteOptionalParams) => Promise, void>>; /** @deprecated use delete instead */ beginDeleteAndWait: (resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsDeleteOptionalParams) => Promise; /** Updates a failover group. */ update: (resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroupUpdate, options?: FailoverGroupsUpdateOptionalParams) => PollerLike, FailoverGroup>; /** @deprecated use update instead */ beginUpdate: (resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroupUpdate, options?: FailoverGroupsUpdateOptionalParams) => Promise, FailoverGroup>>; /** @deprecated use update instead */ beginUpdateAndWait: (resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroupUpdate, options?: FailoverGroupsUpdateOptionalParams) => Promise; /** Creates or updates a failover group. */ createOrUpdate: (resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroup, options?: FailoverGroupsCreateOrUpdateOptionalParams) => PollerLike, FailoverGroup>; /** @deprecated use createOrUpdate instead */ beginCreateOrUpdate: (resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroup, options?: FailoverGroupsCreateOrUpdateOptionalParams) => Promise, FailoverGroup>>; /** @deprecated use createOrUpdate instead */ beginCreateOrUpdateAndWait: (resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroup, options?: FailoverGroupsCreateOrUpdateOptionalParams) => Promise; /** Gets a failover group. */ get: (resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsGetOptionalParams) => Promise; } export declare function _getFailoverGroupsOperations(context: SqlManagementContext): FailoverGroupsOperations; //# sourceMappingURL=index.d.ts.map