/*
* 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 {
ManagedDatabase,
ManagedDatabasesListByInstanceOptionalParams,
ManagedDatabasesListInaccessibleByInstanceOptionalParams,
ManagedDatabasesGetOptionalParams,
ManagedDatabasesGetResponse,
ManagedDatabasesCreateOrUpdateOptionalParams,
ManagedDatabasesCreateOrUpdateResponse,
ManagedDatabasesDeleteOptionalParams,
ManagedDatabaseUpdate,
ManagedDatabasesUpdateOptionalParams,
ManagedDatabasesUpdateResponse,
ManagedDatabaseMoveDefinition,
ManagedDatabasesCancelMoveOptionalParams,
ManagedDatabasesCompleteMoveOptionalParams,
CompleteDatabaseRestoreDefinition,
ManagedDatabasesCompleteRestoreOptionalParams,
ManagedDatabaseStartMoveDefinition,
ManagedDatabasesStartMoveOptionalParams
} from "../models";
///
/** Interface representing a ManagedDatabases. */
export interface ManagedDatabases {
/**
* Gets a list of managed databases.
* @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 managedInstanceName The name of the managed instance.
* @param options The options parameters.
*/
listByInstance(
resourceGroupName: string,
managedInstanceName: string,
options?: ManagedDatabasesListByInstanceOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets a list of inaccessible managed databases in a 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 managedInstanceName The name of the managed instance.
* @param options The options parameters.
*/
listInaccessibleByInstance(
resourceGroupName: string,
managedInstanceName: string,
options?: ManagedDatabasesListInaccessibleByInstanceOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets a managed 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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
options?: ManagedDatabasesGetOptionalParams
): Promise;
/**
* Creates a new database or updates an existing 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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param parameters The requested database resource state.
* @param options The options parameters.
*/
beginCreateOrUpdate(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
parameters: ManagedDatabase,
options?: ManagedDatabasesCreateOrUpdateOptionalParams
): Promise<
SimplePollerLike<
OperationState,
ManagedDatabasesCreateOrUpdateResponse
>
>;
/**
* Creates a new database or updates an existing 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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param parameters The requested database resource state.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
parameters: ManagedDatabase,
options?: ManagedDatabasesCreateOrUpdateOptionalParams
): Promise;
/**
* Deletes a managed 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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param options The options parameters.
*/
beginDelete(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
options?: ManagedDatabasesDeleteOptionalParams
): Promise, void>>;
/**
* Deletes a managed 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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param options The options parameters.
*/
beginDeleteAndWait(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
options?: ManagedDatabasesDeleteOptionalParams
): Promise;
/**
* Updates an existing 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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param parameters The requested database resource state.
* @param options The options parameters.
*/
beginUpdate(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
parameters: ManagedDatabaseUpdate,
options?: ManagedDatabasesUpdateOptionalParams
): Promise<
SimplePollerLike<
OperationState,
ManagedDatabasesUpdateResponse
>
>;
/**
* Updates an existing 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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param parameters The requested database resource state.
* @param options The options parameters.
*/
beginUpdateAndWait(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
parameters: ManagedDatabaseUpdate,
options?: ManagedDatabasesUpdateOptionalParams
): Promise;
/**
* Cancels a managed database move operation.
* @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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param parameters Parameters of the cancel managed database move operation.
* @param options The options parameters.
*/
beginCancelMove(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
parameters: ManagedDatabaseMoveDefinition,
options?: ManagedDatabasesCancelMoveOptionalParams
): Promise, void>>;
/**
* Cancels a managed database move operation.
* @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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param parameters Parameters of the cancel managed database move operation.
* @param options The options parameters.
*/
beginCancelMoveAndWait(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
parameters: ManagedDatabaseMoveDefinition,
options?: ManagedDatabasesCancelMoveOptionalParams
): Promise;
/**
* Completes a managed database move operation.
* @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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param parameters Parameters of the complete managed database move operation.
* @param options The options parameters.
*/
beginCompleteMove(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
parameters: ManagedDatabaseMoveDefinition,
options?: ManagedDatabasesCompleteMoveOptionalParams
): Promise, void>>;
/**
* Completes a managed database move operation.
* @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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param parameters Parameters of the complete managed database move operation.
* @param options The options parameters.
*/
beginCompleteMoveAndWait(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
parameters: ManagedDatabaseMoveDefinition,
options?: ManagedDatabasesCompleteMoveOptionalParams
): Promise;
/**
* Completes the restore operation on a managed 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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param parameters The definition for completing the restore of this managed database.
* @param options The options parameters.
*/
beginCompleteRestore(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
parameters: CompleteDatabaseRestoreDefinition,
options?: ManagedDatabasesCompleteRestoreOptionalParams
): Promise, void>>;
/**
* Completes the restore operation on a managed 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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param parameters The definition for completing the restore of this managed database.
* @param options The options parameters.
*/
beginCompleteRestoreAndWait(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
parameters: CompleteDatabaseRestoreDefinition,
options?: ManagedDatabasesCompleteRestoreOptionalParams
): Promise;
/**
* Starts a managed database move operation.
* @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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param parameters Parameters of the start managed database move operation.
* @param options The options parameters.
*/
beginStartMove(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
parameters: ManagedDatabaseStartMoveDefinition,
options?: ManagedDatabasesStartMoveOptionalParams
): Promise, void>>;
/**
* Starts a managed database move operation.
* @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 managedInstanceName The name of the managed instance.
* @param databaseName The name of the database.
* @param parameters Parameters of the start managed database move operation.
* @param options The options parameters.
*/
beginStartMoveAndWait(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
parameters: ManagedDatabaseStartMoveDefinition,
options?: ManagedDatabasesStartMoveOptionalParams
): Promise;
}