/*
* 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 {
ManagedBackupShortTermRetentionPolicy,
ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams,
ManagedShortTermRetentionPolicyName,
ManagedBackupShortTermRetentionPoliciesGetOptionalParams,
ManagedBackupShortTermRetentionPoliciesGetResponse,
ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams,
ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse,
ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams,
ManagedBackupShortTermRetentionPoliciesUpdateResponse
} from "../models";
///
/** Interface representing a ManagedBackupShortTermRetentionPolicies. */
export interface ManagedBackupShortTermRetentionPolicies {
/**
* Gets a managed database's short term retention policy list.
* @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.
*/
listByDatabase(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
options?: ManagedBackupShortTermRetentionPoliciesListByDatabaseOptionalParams
): PagedAsyncIterableIterator;
/**
* Gets a managed database's short term retention policy.
* @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 policyName The policy name.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
policyName: ManagedShortTermRetentionPolicyName,
options?: ManagedBackupShortTermRetentionPoliciesGetOptionalParams
): Promise;
/**
* Updates a managed database's short term retention policy.
* @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 policyName The policy name. Should always be "default".
* @param parameters The short term retention policy info.
* @param options The options parameters.
*/
beginCreateOrUpdate(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
policyName: ManagedShortTermRetentionPolicyName,
parameters: ManagedBackupShortTermRetentionPolicy,
options?: ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams
): Promise<
SimplePollerLike<
OperationState<
ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse
>,
ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse
>
>;
/**
* Updates a managed database's short term retention policy.
* @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 policyName The policy name. Should always be "default".
* @param parameters The short term retention policy info.
* @param options The options parameters.
*/
beginCreateOrUpdateAndWait(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
policyName: ManagedShortTermRetentionPolicyName,
parameters: ManagedBackupShortTermRetentionPolicy,
options?: ManagedBackupShortTermRetentionPoliciesCreateOrUpdateOptionalParams
): Promise;
/**
* Updates a managed database's short term retention policy.
* @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 policyName The policy name. Should always be "default".
* @param parameters The short term retention policy info.
* @param options The options parameters.
*/
beginUpdate(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
policyName: ManagedShortTermRetentionPolicyName,
parameters: ManagedBackupShortTermRetentionPolicy,
options?: ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams
): Promise<
SimplePollerLike<
OperationState,
ManagedBackupShortTermRetentionPoliciesUpdateResponse
>
>;
/**
* Updates a managed database's short term retention policy.
* @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 policyName The policy name. Should always be "default".
* @param parameters The short term retention policy info.
* @param options The options parameters.
*/
beginUpdateAndWait(
resourceGroupName: string,
managedInstanceName: string,
databaseName: string,
policyName: ManagedShortTermRetentionPolicyName,
parameters: ManagedBackupShortTermRetentionPolicy,
options?: ManagedBackupShortTermRetentionPoliciesUpdateOptionalParams
): Promise;
}