com.azure.resourcemanager.sql.fluent.LongTermRetentionBackupsClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-sql Show documentation
Show all versions of azure-resourcemanager-sql Show documentation
This package contains Microsoft Azure Sql Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.sql.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.sql.fluent.models.LongTermRetentionBackupInner;
import com.azure.resourcemanager.sql.fluent.models.LongTermRetentionBackupOperationResultInner;
import com.azure.resourcemanager.sql.models.CopyLongTermRetentionBackupParameters;
import com.azure.resourcemanager.sql.models.DatabaseState;
import com.azure.resourcemanager.sql.models.UpdateLongTermRetentionBackupParameters;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
* An instance of this class provides access to all the operations defined in LongTermRetentionBackupsClient.
*/
public interface LongTermRetentionBackupsClient {
/**
* Lists the long term retention backups for a given location.
*
* @param locationName The location of the database.
* @param onlyLatestPerDatabase Whether or not to only get the latest backup for each database.
* @param databaseState Whether to query against just live databases, just deleted databases, or all databases.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByLocationAsync(String locationName, Boolean onlyLatestPerDatabase,
DatabaseState databaseState);
/**
* Lists the long term retention backups for a given location.
*
* @param locationName The location of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByLocationAsync(String locationName);
/**
* Lists the long term retention backups for a given location.
*
* @param locationName The location of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByLocation(String locationName);
/**
* Lists the long term retention backups for a given location.
*
* @param locationName The location of the database.
* @param onlyLatestPerDatabase Whether or not to only get the latest backup for each database.
* @param databaseState Whether to query against just live databases, just deleted databases, or all databases.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByLocation(String locationName, Boolean onlyLatestPerDatabase,
DatabaseState databaseState, Context context);
/**
* Lists the long term retention backups for a given server.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param onlyLatestPerDatabase Whether or not to only get the latest backup for each database.
* @param databaseState Whether to query against just live databases, just deleted databases, or all databases.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByServerAsync(String locationName, String longTermRetentionServerName,
Boolean onlyLatestPerDatabase, DatabaseState databaseState);
/**
* Lists the long term retention backups for a given server.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByServerAsync(String locationName, String longTermRetentionServerName);
/**
* Lists the long term retention backups for a given server.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String locationName, String longTermRetentionServerName);
/**
* Lists the long term retention backups for a given server.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param onlyLatestPerDatabase Whether or not to only get the latest backup for each database.
* @param databaseState Whether to query against just live databases, just deleted databases, or all databases.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByServer(String locationName, String longTermRetentionServerName,
Boolean onlyLatestPerDatabase, DatabaseState databaseState, Context context);
/**
* Lists all long term retention backups for a database.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param onlyLatestPerDatabase Whether or not to only get the latest backup for each database.
* @param databaseState Whether to query against just live databases, just deleted databases, or all databases.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByDatabaseAsync(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, Boolean onlyLatestPerDatabase, DatabaseState databaseState);
/**
* Lists all long term retention backups for a database.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByDatabaseAsync(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName);
/**
* Lists all long term retention backups for a database.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDatabase(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName);
/**
* Lists all long term retention backups for a database.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param onlyLatestPerDatabase Whether or not to only get the latest backup for each database.
* @param databaseState Whether to query against just live databases, just deleted databases, or all databases.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDatabase(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, Boolean onlyLatestPerDatabase, DatabaseState databaseState,
Context context);
/**
* Gets a long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a long term retention backup along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> getWithResponseAsync(String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName);
/**
* Gets a long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a long term retention backup on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono getAsync(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName);
/**
* Gets a long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a long term retention backup along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName, Context context);
/**
* Gets a long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a long term retention backup.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
LongTermRetentionBackupInner get(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName);
/**
* Deletes a long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> deleteWithResponseAsync(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName);
/**
* Deletes a long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, Void> beginDeleteAsync(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName);
/**
* Deletes a long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName);
/**
* Deletes a long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName, Context context);
/**
* Deletes a long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono deleteAsync(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName);
/**
* Deletes a long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
String backupName);
/**
* Deletes a long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
String backupName, Context context);
/**
* Copy an existing long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The parameters needed for long term retention copy request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource along with {@link Response} on successful completion
* of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> copyWithResponseAsync(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters);
/**
* Copy an existing long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The parameters needed for long term retention copy request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, LongTermRetentionBackupOperationResultInner>
beginCopyAsync(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
String backupName, CopyLongTermRetentionBackupParameters parameters);
/**
* Copy an existing long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The parameters needed for long term retention copy request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LongTermRetentionBackupOperationResultInner>
beginCopy(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
String backupName, CopyLongTermRetentionBackupParameters parameters);
/**
* Copy an existing long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The parameters needed for long term retention copy request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LongTermRetentionBackupOperationResultInner>
beginCopy(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
String backupName, CopyLongTermRetentionBackupParameters parameters, Context context);
/**
* Copy an existing long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The parameters needed for long term retention copy request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono copyAsync(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters);
/**
* Copy an existing long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The parameters needed for long term retention copy request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
LongTermRetentionBackupOperationResultInner copy(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters);
/**
* Copy an existing long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The parameters needed for long term retention copy request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
LongTermRetentionBackupOperationResultInner copy(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters,
Context context);
/**
* Updates an existing long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The requested backup resource state.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource along with {@link Response} on successful completion
* of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> updateWithResponseAsync(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters);
/**
* Updates an existing long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The requested backup resource state.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, LongTermRetentionBackupOperationResultInner>
beginUpdateAsync(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
String backupName, UpdateLongTermRetentionBackupParameters parameters);
/**
* Updates an existing long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The requested backup resource state.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LongTermRetentionBackupOperationResultInner>
beginUpdate(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
String backupName, UpdateLongTermRetentionBackupParameters parameters);
/**
* Updates an existing long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The requested backup resource state.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LongTermRetentionBackupOperationResultInner>
beginUpdate(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
String backupName, UpdateLongTermRetentionBackupParameters parameters, Context context);
/**
* Updates an existing long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The requested backup resource state.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono updateAsync(String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName,
UpdateLongTermRetentionBackupParameters parameters);
/**
* Updates an existing long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The requested backup resource state.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
LongTermRetentionBackupOperationResultInner update(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters);
/**
* Updates an existing long term retention backup.
*
* @param locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The requested backup resource state.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
LongTermRetentionBackupOperationResultInner update(String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters,
Context context);
/**
* Lists the long term retention backups for a given 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 location of the database.
* @param onlyLatestPerDatabase Whether or not to only get the latest backup for each database.
* @param databaseState Whether to query against just live databases, just deleted databases, or all databases.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByResourceGroupLocationAsync(String resourceGroupName,
String locationName, Boolean onlyLatestPerDatabase, DatabaseState databaseState);
/**
* Lists the long term retention backups for a given 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 location of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByResourceGroupLocationAsync(String resourceGroupName,
String locationName);
/**
* Lists the long term retention backups for a given 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 location of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroupLocation(String resourceGroupName,
String locationName);
/**
* Lists the long term retention backups for a given 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 location of the database.
* @param onlyLatestPerDatabase Whether or not to only get the latest backup for each database.
* @param databaseState Whether to query against just live databases, just deleted databases, or all databases.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroupLocation(String resourceGroupName,
String locationName, Boolean onlyLatestPerDatabase, DatabaseState databaseState, Context context);
/**
* Lists the long term retention backups for a given server.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param onlyLatestPerDatabase Whether or not to only get the latest backup for each database.
* @param databaseState Whether to query against just live databases, just deleted databases, or all databases.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByResourceGroupServerAsync(String resourceGroupName,
String locationName, String longTermRetentionServerName, Boolean onlyLatestPerDatabase,
DatabaseState databaseState);
/**
* Lists the long term retention backups for a given server.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByResourceGroupServerAsync(String resourceGroupName,
String locationName, String longTermRetentionServerName);
/**
* Lists the long term retention backups for a given server.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroupServer(String resourceGroupName, String locationName,
String longTermRetentionServerName);
/**
* Lists the long term retention backups for a given server.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param onlyLatestPerDatabase Whether or not to only get the latest backup for each database.
* @param databaseState Whether to query against just live databases, just deleted databases, or all databases.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroupServer(String resourceGroupName, String locationName,
String longTermRetentionServerName, Boolean onlyLatestPerDatabase, DatabaseState databaseState,
Context context);
/**
* Lists all long term retention backups for a 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 locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param onlyLatestPerDatabase Whether or not to only get the latest backup for each database.
* @param databaseState Whether to query against just live databases, just deleted databases, or all databases.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByResourceGroupDatabaseAsync(String resourceGroupName,
String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
Boolean onlyLatestPerDatabase, DatabaseState databaseState);
/**
* Lists all long term retention backups for a 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 locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listByResourceGroupDatabaseAsync(String resourceGroupName,
String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName);
/**
* Lists all long term retention backups for a 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 locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroupDatabase(String resourceGroupName,
String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName);
/**
* Lists all long term retention backups for a 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 locationName The location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param onlyLatestPerDatabase Whether or not to only get the latest backup for each database.
* @param databaseState Whether to query against just live databases, just deleted databases, or all databases.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of long term retention backups as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroupDatabase(String resourceGroupName,
String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
Boolean onlyLatestPerDatabase, DatabaseState databaseState, Context context);
/**
* Gets a long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a long term retention backup along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
String backupName);
/**
* Gets a long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a long term retention backup on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono getByResourceGroupAsync(String resourceGroupName, String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName);
/**
* Gets a long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a long term retention backup along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, Context context);
/**
* Gets a long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a long term retention backup.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
LongTermRetentionBackupInner getByResourceGroup(String resourceGroupName, String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName);
/**
* Deletes a long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> deleteByResourceGroupWithResponseAsync(String resourceGroupName,
String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
String backupName);
/**
* Deletes a long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, Void> beginDeleteByResourceGroupAsync(String resourceGroupName, String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName);
/**
* Deletes a long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDeleteByResourceGroup(String resourceGroupName, String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName);
/**
* Deletes a long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDeleteByResourceGroup(String resourceGroupName, String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, Context context);
/**
* Deletes a long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono deleteByResourceGroupAsync(String resourceGroupName, String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName);
/**
* Deletes a long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void deleteByResourceGroup(String resourceGroupName, String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName);
/**
* Deletes a long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void deleteByResourceGroup(String resourceGroupName, String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName, Context context);
/**
* Copy an existing long term retention backup to a different server.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The parameters needed for long term retention copy request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource along with {@link Response} on successful completion
* of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> copyByResourceGroupWithResponseAsync(String resourceGroupName, String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName,
CopyLongTermRetentionBackupParameters parameters);
/**
* Copy an existing long term retention backup to a different server.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The parameters needed for long term retention copy request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, LongTermRetentionBackupOperationResultInner>
beginCopyByResourceGroupAsync(String resourceGroupName, String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters);
/**
* Copy an existing long term retention backup to a different server.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The parameters needed for long term retention copy request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LongTermRetentionBackupOperationResultInner>
beginCopyByResourceGroup(String resourceGroupName, String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters);
/**
* Copy an existing long term retention backup to a different server.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The parameters needed for long term retention copy request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LongTermRetentionBackupOperationResultInner>
beginCopyByResourceGroup(String resourceGroupName, String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters,
Context context);
/**
* Copy an existing long term retention backup to a different server.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The parameters needed for long term retention copy request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono copyByResourceGroupAsync(String resourceGroupName,
String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
String backupName, CopyLongTermRetentionBackupParameters parameters);
/**
* Copy an existing long term retention backup to a different server.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The parameters needed for long term retention copy request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
LongTermRetentionBackupOperationResultInner copyByResourceGroup(String resourceGroupName, String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName,
CopyLongTermRetentionBackupParameters parameters);
/**
* Copy an existing long term retention backup to a different server.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The parameters needed for long term retention copy request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
LongTermRetentionBackupOperationResultInner copyByResourceGroup(String resourceGroupName, String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName,
CopyLongTermRetentionBackupParameters parameters, Context context);
/**
* Updates an existing long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The requested backup resource state.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource along with {@link Response} on successful completion
* of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono>> updateByResourceGroupWithResponseAsync(String resourceGroupName,
String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
String backupName, UpdateLongTermRetentionBackupParameters parameters);
/**
* Updates an existing long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The requested backup resource state.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, LongTermRetentionBackupOperationResultInner>
beginUpdateByResourceGroupAsync(String resourceGroupName, String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName,
UpdateLongTermRetentionBackupParameters parameters);
/**
* Updates an existing long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The requested backup resource state.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LongTermRetentionBackupOperationResultInner>
beginUpdateByResourceGroup(String resourceGroupName, String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName,
UpdateLongTermRetentionBackupParameters parameters);
/**
* Updates an existing long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The requested backup resource state.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LongTermRetentionBackupOperationResultInner>
beginUpdateByResourceGroup(String resourceGroupName, String locationName, String longTermRetentionServerName,
String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters,
Context context);
/**
* Updates an existing long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The requested backup resource state.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono updateByResourceGroupAsync(String resourceGroupName,
String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName,
String backupName, UpdateLongTermRetentionBackupParameters parameters);
/**
* Updates an existing long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The requested backup resource state.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
LongTermRetentionBackupOperationResultInner updateByResourceGroup(String resourceGroupName, String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName,
UpdateLongTermRetentionBackupParameters parameters);
/**
* Updates an existing long term retention backup.
*
* @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 location of the database.
* @param longTermRetentionServerName The name of the server.
* @param longTermRetentionDatabaseName The name of the database.
* @param backupName The backup name.
* @param parameters The requested backup resource state.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a LongTermRetentionBackup operation result resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
LongTermRetentionBackupOperationResultInner updateByResourceGroup(String resourceGroupName, String locationName,
String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName,
UpdateLongTermRetentionBackupParameters parameters, Context context);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy