/* * 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 { InstanceFailoverGroup, InstanceFailoverGroupsListByLocationOptionalParams, InstanceFailoverGroupsGetOptionalParams, InstanceFailoverGroupsGetResponse, InstanceFailoverGroupsCreateOrUpdateOptionalParams, InstanceFailoverGroupsCreateOrUpdateResponse, InstanceFailoverGroupsDeleteOptionalParams, InstanceFailoverGroupsFailoverOptionalParams, InstanceFailoverGroupsFailoverResponse, InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams, InstanceFailoverGroupsForceFailoverAllowDataLossResponse } from "../models"; /// /** Interface representing a InstanceFailoverGroups. */ export interface InstanceFailoverGroups { /** * Lists the failover groups in a location. * @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 locationName The name of the region where the resource is located. * @param options The options parameters. */ listByLocation( resourceGroupName: string, locationName: string, options?: InstanceFailoverGroupsListByLocationOptionalParams ): PagedAsyncIterableIterator; /** * Gets a failover group. * @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 locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ get( resourceGroupName: string, locationName: string, failoverGroupName: string, options?: InstanceFailoverGroupsGetOptionalParams ): Promise; /** * Creates or updates a failover group. * @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 locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param parameters The failover group parameters. * @param options The options parameters. */ beginCreateOrUpdate( resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: InstanceFailoverGroup, options?: InstanceFailoverGroupsCreateOrUpdateOptionalParams ): Promise< SimplePollerLike< OperationState, InstanceFailoverGroupsCreateOrUpdateResponse > >; /** * Creates or updates a failover group. * @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 locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param parameters The failover group parameters. * @param options The options parameters. */ beginCreateOrUpdateAndWait( resourceGroupName: string, locationName: string, failoverGroupName: string, parameters: InstanceFailoverGroup, options?: InstanceFailoverGroupsCreateOrUpdateOptionalParams ): Promise; /** * Deletes a failover group. * @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 locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginDelete( resourceGroupName: string, locationName: string, failoverGroupName: string, options?: InstanceFailoverGroupsDeleteOptionalParams ): Promise, void>>; /** * Deletes a failover group. * @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 locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, locationName: string, failoverGroupName: string, options?: InstanceFailoverGroupsDeleteOptionalParams ): Promise; /** * Fails over from the current primary managed instance to this managed instance. * @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 locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginFailover( resourceGroupName: string, locationName: string, failoverGroupName: string, options?: InstanceFailoverGroupsFailoverOptionalParams ): Promise< SimplePollerLike< OperationState, InstanceFailoverGroupsFailoverResponse > >; /** * Fails over from the current primary managed instance to this managed instance. * @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 locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginFailoverAndWait( resourceGroupName: string, locationName: string, failoverGroupName: string, options?: InstanceFailoverGroupsFailoverOptionalParams ): Promise; /** * Fails over from the current primary managed instance to this managed instance. This operation might * result in 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 locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginForceFailoverAllowDataLoss( resourceGroupName: string, locationName: string, failoverGroupName: string, options?: InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams ): Promise< SimplePollerLike< OperationState, InstanceFailoverGroupsForceFailoverAllowDataLossResponse > >; /** * Fails over from the current primary managed instance to this managed instance. This operation might * result in 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 locationName The name of the region where the resource is located. * @param failoverGroupName The name of the failover group. * @param options The options parameters. */ beginForceFailoverAllowDataLossAndWait( resourceGroupName: string, locationName: string, failoverGroupName: string, options?: InstanceFailoverGroupsForceFailoverAllowDataLossOptionalParams ): Promise; }