/*
* 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 {
RestorePoint,
RestorePointsListByDatabaseOptionalParams,
CreateDatabaseRestorePointDefinition,
RestorePointsCreateOptionalParams,
RestorePointsCreateResponse,
RestorePointsGetOptionalParams,
RestorePointsGetResponse,
RestorePointsDeleteOptionalParams
} from "../models";
///
/** Interface representing a RestorePoints. */
export interface RestorePoints {
/**
* Gets a list of database restore points.
* @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?: RestorePointsListByDatabaseOptionalParams
): PagedAsyncIterableIterator;
/**
* Creates a restore point for a data warehouse.
* @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 parameters The definition for creating the restore point of this database.
* @param options The options parameters.
*/
beginCreate(
resourceGroupName: string,
serverName: string,
databaseName: string,
parameters: CreateDatabaseRestorePointDefinition,
options?: RestorePointsCreateOptionalParams
): Promise<
SimplePollerLike<
OperationState,
RestorePointsCreateResponse
>
>;
/**
* Creates a restore point for a data warehouse.
* @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 parameters The definition for creating the restore point of this database.
* @param options The options parameters.
*/
beginCreateAndWait(
resourceGroupName: string,
serverName: string,
databaseName: string,
parameters: CreateDatabaseRestorePointDefinition,
options?: RestorePointsCreateOptionalParams
): Promise;
/**
* Gets a restore point.
* @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 restorePointName The name of the restore point.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
serverName: string,
databaseName: string,
restorePointName: string,
options?: RestorePointsGetOptionalParams
): Promise;
/**
* Deletes a restore point.
* @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 restorePointName The name of the restore point.
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
serverName: string,
databaseName: string,
restorePointName: string,
options?: RestorePointsDeleteOptionalParams
): Promise;
}