BackupShortTermRetentionPoliciesClient Interface

public interface BackupShortTermRetentionPoliciesClient

An instance of this class provides access to all the operations defined in BackupShortTermRetentionPoliciesClient.

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<BackupShortTermRetentionPolicyInner>,BackupShortTermRetentionPolicyInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

abstract SyncPoller<PollResult<BackupShortTermRetentionPolicyInner>,BackupShortTermRetentionPolicyInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters, Context context)

Updates a database's short term retention policy.

abstract PollerFlux<PollResult<BackupShortTermRetentionPolicyInner>,BackupShortTermRetentionPolicyInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

abstract SyncPoller<PollResult<BackupShortTermRetentionPolicyInner>,BackupShortTermRetentionPolicyInner> beginUpdate(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

abstract SyncPoller<PollResult<BackupShortTermRetentionPolicyInner>,BackupShortTermRetentionPolicyInner> beginUpdate(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters, Context context)

Updates a database's short term retention policy.

abstract PollerFlux<PollResult<BackupShortTermRetentionPolicyInner>,BackupShortTermRetentionPolicyInner> beginUpdateAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

abstract BackupShortTermRetentionPolicyInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

abstract BackupShortTermRetentionPolicyInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters, Context context)

Updates a database's short term retention policy.

abstract Mono<BackupShortTermRetentionPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

abstract Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

abstract BackupShortTermRetentionPolicyInner get(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName)

Gets a database's short term retention policy.

abstract Mono<BackupShortTermRetentionPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName)

Gets a database's short term retention policy.

abstract Response<BackupShortTermRetentionPolicyInner> getWithResponse(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, Context context)

Gets a database's short term retention policy.

abstract Mono<Response<BackupShortTermRetentionPolicyInner>> getWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName)

Gets a database's short term retention policy.

abstract PagedIterable<BackupShortTermRetentionPolicyInner> listByDatabase(String resourceGroupName, String serverName, String databaseName)

Gets a database's short term retention policy.

abstract PagedIterable<BackupShortTermRetentionPolicyInner> listByDatabase(String resourceGroupName, String serverName, String databaseName, Context context)

Gets a database's short term retention policy.

abstract PagedFlux<BackupShortTermRetentionPolicyInner> listByDatabaseAsync(String resourceGroupName, String serverName, String databaseName)

Gets a database's short term retention policy.

abstract BackupShortTermRetentionPolicyInner update(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

abstract BackupShortTermRetentionPolicyInner update(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters, Context context)

Updates a database's short term retention policy.

abstract Mono<BackupShortTermRetentionPolicyInner> updateAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

abstract Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

Method Details

beginCreateOrUpdate

public abstract SyncPoller,BackupShortTermRetentionPolicyInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
parameters - The short term retention policy info.

Returns:

the SyncPoller<T,U> for polling of a short term retention policy.

beginCreateOrUpdate

public abstract SyncPoller,BackupShortTermRetentionPolicyInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters, Context context)

Updates a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
parameters - The short term retention policy info.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of a short term retention policy.

beginCreateOrUpdateAsync

public abstract PollerFlux,BackupShortTermRetentionPolicyInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
parameters - The short term retention policy info.

Returns:

the PollerFlux<T,U> for polling of a short term retention policy.

beginUpdate

public abstract SyncPoller,BackupShortTermRetentionPolicyInner> beginUpdate(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
parameters - The short term retention policy info.

Returns:

the SyncPoller<T,U> for polling of a short term retention policy.

beginUpdate

public abstract SyncPoller,BackupShortTermRetentionPolicyInner> beginUpdate(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters, Context context)

Updates a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
parameters - The short term retention policy info.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of a short term retention policy.

beginUpdateAsync

public abstract PollerFlux,BackupShortTermRetentionPolicyInner> beginUpdateAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
parameters - The short term retention policy info.

Returns:

the PollerFlux<T,U> for polling of a short term retention policy.

createOrUpdate

public abstract BackupShortTermRetentionPolicyInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
parameters - The short term retention policy info.

Returns:

a short term retention policy.

createOrUpdate

public abstract BackupShortTermRetentionPolicyInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters, Context context)

Updates a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
parameters - The short term retention policy info.
context - The context to associate with this operation.

Returns:

a short term retention policy.

createOrUpdateAsync

public abstract Mono createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
parameters - The short term retention policy info.

Returns:

a short term retention policy on successful completion of Mono.

createOrUpdateWithResponseAsync

public abstract Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
parameters - The short term retention policy info.

Returns:

a short term retention policy along with Response<T> on successful completion of Mono.

get

public abstract BackupShortTermRetentionPolicyInner get(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName)

Gets a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".

Returns:

a database's short term retention policy.

getAsync

public abstract Mono getAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName)

Gets a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".

Returns:

a database's short term retention policy on successful completion of Mono.

getWithResponse

public abstract Response getWithResponse(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, Context context)

Gets a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
context - The context to associate with this operation.

Returns:

a database's short term retention policy along with Response<T>.

getWithResponseAsync

public abstract Mono> getWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName)

Gets a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".

Returns:

a database's short term retention policy along with Response<T> on successful completion of Mono.

listByDatabase

public abstract PagedIterable listByDatabase(String resourceGroupName, String serverName, String databaseName)

Gets a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.

Returns:

a database's short term retention policy as paginated response with PagedIterable<T>.

listByDatabase

public abstract PagedIterable listByDatabase(String resourceGroupName, String serverName, String databaseName, Context context)

Gets a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
context - The context to associate with this operation.

Returns:

a database's short term retention policy as paginated response with PagedIterable<T>.

listByDatabaseAsync

public abstract PagedFlux listByDatabaseAsync(String resourceGroupName, String serverName, String databaseName)

Gets a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.

Returns:

a database's short term retention policy as paginated response with PagedFlux<T>.

update

public abstract BackupShortTermRetentionPolicyInner update(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
parameters - The short term retention policy info.

Returns:

a short term retention policy.

update

public abstract BackupShortTermRetentionPolicyInner update(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters, Context context)

Updates a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
parameters - The short term retention policy info.
context - The context to associate with this operation.

Returns:

a short term retention policy.

updateAsync

public abstract Mono updateAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
parameters - The short term retention policy info.

Returns:

a short term retention policy on successful completion of Mono.

updateWithResponseAsync

public abstract Mono>> updateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ShortTermRetentionPolicyName policyName, BackupShortTermRetentionPolicyInner parameters)

Updates a database's short term retention policy.

Parameters:

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.
serverName - The name of the server.
databaseName - The name of the database.
policyName - The policy name. Should always be "default".
parameters - The short term retention policy info.

Returns:

a short term retention policy along with Response<T> on successful completion of Mono.

Applies to