scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -193,6 +217,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -200,9 +237,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -242,10 +281,15 @@ public DataProtectionManager authenticate(TokenCredential credential, AzureProfi
scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
}
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
policies
.addAll(
@@ -276,7 +320,11 @@ public DataProtectionManager authenticate(TokenCredential credential, AzureProfi
}
}
- /** @return Resource collection API of BackupVaults. */
+ /**
+ * Gets the resource collection API of BackupVaults.
+ *
+ * @return Resource collection API of BackupVaults.
+ */
public BackupVaults backupVaults() {
if (this.backupVaults == null) {
this.backupVaults = new BackupVaultsImpl(clientObject.getBackupVaults(), this);
@@ -284,7 +332,11 @@ public BackupVaults backupVaults() {
return backupVaults;
}
- /** @return Resource collection API of OperationResults. */
+ /**
+ * Gets the resource collection API of OperationResults.
+ *
+ * @return Resource collection API of OperationResults.
+ */
public OperationResults operationResults() {
if (this.operationResults == null) {
this.operationResults = new OperationResultsImpl(clientObject.getOperationResults(), this);
@@ -292,7 +344,11 @@ public OperationResults operationResults() {
return operationResults;
}
- /** @return Resource collection API of OperationStatus. */
+ /**
+ * Gets the resource collection API of OperationStatus.
+ *
+ * @return Resource collection API of OperationStatus.
+ */
public OperationStatus operationStatus() {
if (this.operationStatus == null) {
this.operationStatus = new OperationStatusImpl(clientObject.getOperationStatus(), this);
@@ -300,7 +356,38 @@ public OperationStatus operationStatus() {
return operationStatus;
}
- /** @return Resource collection API of BackupVaultOperationResults. */
+ /**
+ * Gets the resource collection API of OperationStatusBackupVaultContexts.
+ *
+ * @return Resource collection API of OperationStatusBackupVaultContexts.
+ */
+ public OperationStatusBackupVaultContexts operationStatusBackupVaultContexts() {
+ if (this.operationStatusBackupVaultContexts == null) {
+ this.operationStatusBackupVaultContexts =
+ new OperationStatusBackupVaultContextsImpl(clientObject.getOperationStatusBackupVaultContexts(), this);
+ }
+ return operationStatusBackupVaultContexts;
+ }
+
+ /**
+ * Gets the resource collection API of OperationStatusResourceGroupContexts.
+ *
+ * @return Resource collection API of OperationStatusResourceGroupContexts.
+ */
+ public OperationStatusResourceGroupContexts operationStatusResourceGroupContexts() {
+ if (this.operationStatusResourceGroupContexts == null) {
+ this.operationStatusResourceGroupContexts =
+ new OperationStatusResourceGroupContextsImpl(
+ clientObject.getOperationStatusResourceGroupContexts(), this);
+ }
+ return operationStatusResourceGroupContexts;
+ }
+
+ /**
+ * Gets the resource collection API of BackupVaultOperationResults.
+ *
+ * @return Resource collection API of BackupVaultOperationResults.
+ */
public BackupVaultOperationResults backupVaultOperationResults() {
if (this.backupVaultOperationResults == null) {
this.backupVaultOperationResults =
@@ -309,7 +396,11 @@ public BackupVaultOperationResults backupVaultOperationResults() {
return backupVaultOperationResults;
}
- /** @return Resource collection API of DataProtections. */
+ /**
+ * Gets the resource collection API of DataProtections.
+ *
+ * @return Resource collection API of DataProtections.
+ */
public DataProtections dataProtections() {
if (this.dataProtections == null) {
this.dataProtections = new DataProtectionsImpl(clientObject.getDataProtections(), this);
@@ -317,7 +408,11 @@ public DataProtections dataProtections() {
return dataProtections;
}
- /** @return Resource collection API of DataProtectionOperations. */
+ /**
+ * Gets the resource collection API of DataProtectionOperations.
+ *
+ * @return Resource collection API of DataProtectionOperations.
+ */
public DataProtectionOperations dataProtectionOperations() {
if (this.dataProtectionOperations == null) {
this.dataProtectionOperations =
@@ -326,7 +421,11 @@ public DataProtectionOperations dataProtectionOperations() {
return dataProtectionOperations;
}
- /** @return Resource collection API of BackupPolicies. */
+ /**
+ * Gets the resource collection API of BackupPolicies.
+ *
+ * @return Resource collection API of BackupPolicies.
+ */
public BackupPolicies backupPolicies() {
if (this.backupPolicies == null) {
this.backupPolicies = new BackupPoliciesImpl(clientObject.getBackupPolicies(), this);
@@ -334,7 +433,11 @@ public BackupPolicies backupPolicies() {
return backupPolicies;
}
- /** @return Resource collection API of BackupInstances. */
+ /**
+ * Gets the resource collection API of BackupInstances.
+ *
+ * @return Resource collection API of BackupInstances.
+ */
public BackupInstances backupInstances() {
if (this.backupInstances == null) {
this.backupInstances = new BackupInstancesImpl(clientObject.getBackupInstances(), this);
@@ -342,7 +445,11 @@ public BackupInstances backupInstances() {
return backupInstances;
}
- /** @return Resource collection API of RecoveryPoints. */
+ /**
+ * Gets the resource collection API of RecoveryPoints.
+ *
+ * @return Resource collection API of RecoveryPoints.
+ */
public RecoveryPoints recoveryPoints() {
if (this.recoveryPoints == null) {
this.recoveryPoints = new RecoveryPointsImpl(clientObject.getRecoveryPoints(), this);
@@ -350,7 +457,11 @@ public RecoveryPoints recoveryPoints() {
return recoveryPoints;
}
- /** @return Resource collection API of Jobs. */
+ /**
+ * Gets the resource collection API of Jobs.
+ *
+ * @return Resource collection API of Jobs.
+ */
public Jobs jobs() {
if (this.jobs == null) {
this.jobs = new JobsImpl(clientObject.getJobs(), this);
@@ -358,7 +469,11 @@ public Jobs jobs() {
return jobs;
}
- /** @return Resource collection API of RestorableTimeRanges. */
+ /**
+ * Gets the resource collection API of RestorableTimeRanges.
+ *
+ * @return Resource collection API of RestorableTimeRanges.
+ */
public RestorableTimeRanges restorableTimeRanges() {
if (this.restorableTimeRanges == null) {
this.restorableTimeRanges = new RestorableTimeRangesImpl(clientObject.getRestorableTimeRanges(), this);
@@ -366,7 +481,11 @@ public RestorableTimeRanges restorableTimeRanges() {
return restorableTimeRanges;
}
- /** @return Resource collection API of ExportJobs. */
+ /**
+ * Gets the resource collection API of ExportJobs.
+ *
+ * @return Resource collection API of ExportJobs.
+ */
public ExportJobs exportJobs() {
if (this.exportJobs == null) {
this.exportJobs = new ExportJobsImpl(clientObject.getExportJobs(), this);
@@ -374,7 +493,11 @@ public ExportJobs exportJobs() {
return exportJobs;
}
- /** @return Resource collection API of ExportJobsOperationResults. */
+ /**
+ * Gets the resource collection API of ExportJobsOperationResults.
+ *
+ * @return Resource collection API of ExportJobsOperationResults.
+ */
public ExportJobsOperationResults exportJobsOperationResults() {
if (this.exportJobsOperationResults == null) {
this.exportJobsOperationResults =
@@ -383,7 +506,11 @@ public ExportJobsOperationResults exportJobsOperationResults() {
return exportJobsOperationResults;
}
- /** @return Resource collection API of ResourceGuards. */
+ /**
+ * Gets the resource collection API of ResourceGuards.
+ *
+ * @return Resource collection API of ResourceGuards.
+ */
public ResourceGuards resourceGuards() {
if (this.resourceGuards == null) {
this.resourceGuards = new ResourceGuardsImpl(clientObject.getResourceGuards(), this);
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java
index 91803652e9f6..ec32405a5859 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java
@@ -15,6 +15,7 @@
import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner;
import com.azure.resourcemanager.dataprotection.models.AzureBackupRehydrationRequest;
import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest;
+import com.azure.resourcemanager.dataprotection.models.SyncBackupInstanceRequest;
import com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest;
import com.azure.resourcemanager.dataprotection.models.ValidateForBackupRequest;
import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject;
@@ -24,35 +25,35 @@ public interface BackupInstancesClient {
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @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 backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String vaultName, String resourceGroupName);
+ PagedIterable list(String resourceGroupName, String vaultName);
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @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 backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String vaultName, String resourceGroupName, Context context);
+ PagedIterable list(String resourceGroupName, String vaultName, Context context);
/**
* Gets a backup instance with name in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -60,57 +61,57 @@ public interface BackupInstancesClient {
* @return a backup instance with name in a backup vault.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BackupInstanceResourceInner get(String vaultName, String resourceGroupName, String backupInstanceName);
+ BackupInstanceResourceInner get(String resourceGroupName, String vaultName, String backupInstanceName);
/**
* Gets a backup instance with name in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @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 backup instance with name in a backup vault.
+ * @return a backup instance with name in a backup vault along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context);
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for 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 backupInstanceResource.
+ * @return the {@link SyncPoller} for polling of backupInstanceResource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BackupInstanceResourceInner> beginCreateOrUpdate(
- String vaultName, String resourceGroupName, String backupInstanceName, BackupInstanceResourceInner parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, BackupInstanceResourceInner parameters);
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @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 backupInstanceResource.
+ * @return the {@link SyncPoller} for polling of backupInstanceResource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BackupInstanceResourceInner> beginCreateOrUpdate(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
BackupInstanceResourceInner parameters,
Context context);
@@ -118,8 +119,8 @@ SyncPoller, BackupInstanceResourceInner>
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -129,13 +130,13 @@ SyncPoller, BackupInstanceResourceInner>
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupInstanceResourceInner createOrUpdate(
- String vaultName, String resourceGroupName, String backupInstanceName, BackupInstanceResourceInner parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, BackupInstanceResourceInner parameters);
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
@@ -146,8 +147,8 @@ BackupInstanceResourceInner createOrUpdate(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupInstanceResourceInner createOrUpdate(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
BackupInstanceResourceInner parameters,
Context context);
@@ -155,52 +156,52 @@ BackupInstanceResourceInner createOrUpdate(
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
- String vaultName, String resourceGroupName, String backupInstanceName);
+ String resourceGroupName, String vaultName, String backupInstanceName);
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context);
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @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 vaultName, String resourceGroupName, String backupInstanceName);
+ void delete(String resourceGroupName, String vaultName, String backupInstanceName);
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -208,41 +209,41 @@ SyncPoller, Void> beginDelete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String vaultName, String resourceGroupName, String backupInstanceName, Context context);
+ void delete(String resourceGroupName, String vaultName, String backupInstanceName, Context context);
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for 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 operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginAdhocBackup(
- String vaultName, String resourceGroupName, String backupInstanceName, TriggerBackupRequest parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, TriggerBackupRequest parameters);
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @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 operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginAdhocBackup(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
TriggerBackupRequest parameters,
Context context);
@@ -250,8 +251,8 @@ SyncPoller, OperationJobExtendedInfoIn
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -261,13 +262,13 @@ SyncPoller, OperationJobExtendedInfoIn
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner adhocBackup(
- String vaultName, String resourceGroupName, String backupInstanceName, TriggerBackupRequest parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, TriggerBackupRequest parameters);
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
@@ -278,8 +279,8 @@ OperationJobExtendedInfoInner adhocBackup(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner adhocBackup(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
TriggerBackupRequest parameters,
Context context);
@@ -287,39 +288,39 @@ OperationJobExtendedInfoInner adhocBackup(
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for 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 operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginValidateForBackup(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters);
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters);
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @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 operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginValidateForBackup(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters, Context context);
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters, Context context);
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -328,13 +329,13 @@ SyncPoller, OperationJobExtendedInfoIn
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner validateForBackup(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters);
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters);
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -344,7 +345,40 @@ OperationJobExtendedInfoInner validateForBackup(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner validateForBackup(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters, Context context);
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters, Context context);
+
+ /**
+ * Get result of backup instance creation operation.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param operationId The operationId parameter.
+ * @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 result of backup instance creation operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BackupInstanceResourceInner getBackupInstanceOperationResult(
+ String resourceGroupName, String vaultName, String backupInstanceName, String operationId);
+
+ /**
+ * Get result of backup instance creation operation.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param operationId The operationId parameter.
+ * @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 result of backup instance creation operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getBackupInstanceOperationResultWithResponse(
+ String resourceGroupName, String vaultName, String backupInstanceName, String operationId, Context context);
/**
* rehydrate recovery point for restore for a BackupInstance.
@@ -356,7 +390,7 @@ OperationJobExtendedInfoInner validateForBackup(
* @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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginTriggerRehydrate(
@@ -376,7 +410,7 @@ SyncPoller, Void> beginTriggerRehydrate(
* @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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginTriggerRehydrate(
@@ -427,36 +461,36 @@ void triggerRehydrate(
/**
* Triggers restore for a BackupInstance.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for 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 operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginTriggerRestore(
- String vaultName, String resourceGroupName, String backupInstanceName, AzureBackupRestoreRequest parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, AzureBackupRestoreRequest parameters);
/**
* Triggers restore for a BackupInstance.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @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 operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginTriggerRestore(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
AzureBackupRestoreRequest parameters,
Context context);
@@ -464,8 +498,8 @@ SyncPoller, OperationJobExtendedInfoIn
/**
* Triggers restore for a BackupInstance.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -475,13 +509,13 @@ SyncPoller, OperationJobExtendedInfoIn
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner triggerRestore(
- String vaultName, String resourceGroupName, String backupInstanceName, AzureBackupRestoreRequest parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, AzureBackupRestoreRequest parameters);
/**
* Triggers restore for a BackupInstance.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
@@ -492,45 +526,353 @@ OperationJobExtendedInfoInner triggerRestore(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner triggerRestore(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
AzureBackupRestoreRequest parameters,
Context context);
/**
- * Validates if Restore can be triggered for a DataSource.
+ * This operation will resume backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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> beginResumeBackups(
+ String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will resume backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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> beginResumeBackups(
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will resume backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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 resumeBackups(String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will resume backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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 resumeBackups(String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will resume protection for a stopped backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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> beginResumeProtection(
+ String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will resume protection for a stopped backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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> beginResumeProtection(
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will resume protection for a stopped backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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 resumeProtection(String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will resume protection for a stopped backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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 resumeProtection(String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will stop protection of a backup instance and data will be held forever.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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> beginStopProtection(
+ String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will stop protection of a backup instance and data will be held forever.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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> beginStopProtection(
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will stop protection of a backup instance and data will be held forever.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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 stopProtection(String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will stop protection of a backup instance and data will be held forever.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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 stopProtection(String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will stop backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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> beginSuspendBackups(
+ String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will stop backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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> beginSuspendBackups(
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will stop backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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 suspendBackups(String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will stop backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @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 suspendBackups(String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup
+ * instance to valid state.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param parameters Request body for 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> beginSyncBackupInstance(
+ String resourceGroupName, String vaultName, String backupInstanceName, SyncBackupInstanceRequest parameters);
+
+ /**
+ * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup
+ * instance to valid state.
*
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param parameters Request body for operation.
+ * @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> beginSyncBackupInstance(
+ String resourceGroupName,
+ String vaultName,
+ String backupInstanceName,
+ SyncBackupInstanceRequest parameters,
+ Context context);
+
+ /**
+ * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup
+ * instance to valid state.
+ *
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param parameters Request body for 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 syncBackupInstance(
+ String resourceGroupName, String vaultName, String backupInstanceName, SyncBackupInstanceRequest parameters);
+
+ /**
+ * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup
+ * instance to valid state.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param parameters Request body for operation.
+ * @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 syncBackupInstance(
+ String resourceGroupName,
+ String vaultName,
+ String backupInstanceName,
+ SyncBackupInstanceRequest parameters,
+ Context context);
+
+ /**
+ * Validates if Restore can be triggered for a DataSource.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for 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 operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginValidateForRestore(
- String vaultName, String resourceGroupName, String backupInstanceName, ValidateRestoreRequestObject parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, ValidateRestoreRequestObject parameters);
/**
* Validates if Restore can be triggered for a DataSource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @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 operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginValidateForRestore(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
ValidateRestoreRequestObject parameters,
Context context);
@@ -538,8 +880,8 @@ SyncPoller, OperationJobExtendedInfoIn
/**
* Validates if Restore can be triggered for a DataSource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -549,13 +891,13 @@ SyncPoller, OperationJobExtendedInfoIn
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner validateForRestore(
- String vaultName, String resourceGroupName, String backupInstanceName, ValidateRestoreRequestObject parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, ValidateRestoreRequestObject parameters);
/**
* Validates if Restore can be triggered for a DataSource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
@@ -566,8 +908,8 @@ OperationJobExtendedInfoInner validateForRestore(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner validateForRestore(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
ValidateRestoreRequestObject parameters,
Context context);
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java
index 7fa97536f748..47f95d517a26 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java
@@ -16,35 +16,35 @@ public interface BackupPoliciesClient {
/**
* Returns list of backup policies belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @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 baseBackupPolicyResourceList.
+ * @return baseBackupPolicyResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String vaultName, String resourceGroupName);
+ PagedIterable list(String resourceGroupName, String vaultName);
/**
* Returns list of backup policies belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @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 baseBackupPolicyResourceList.
+ * @return baseBackupPolicyResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String vaultName, String resourceGroupName, Context context);
+ PagedIterable list(String resourceGroupName, String vaultName, Context context);
/**
* Gets a backup policy belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupPolicyName The backupPolicyName parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -52,29 +52,29 @@ public interface BackupPoliciesClient {
* @return a backup policy belonging to a backup vault.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BaseBackupPolicyResourceInner get(String vaultName, String resourceGroupName, String backupPolicyName);
+ BaseBackupPolicyResourceInner get(String resourceGroupName, String vaultName, String backupPolicyName);
/**
* Gets a backup policy belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupPolicyName The backupPolicyName parameter.
* @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 backup policy belonging to a backup vault.
+ * @return a backup policy belonging to a backup vault along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
- String vaultName, String resourceGroupName, String backupPolicyName, Context context);
+ String resourceGroupName, String vaultName, String backupPolicyName, Context context);
/**
* Creates or Updates a backup policy belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupPolicyName Name of the policy.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -84,25 +84,25 @@ Response getWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BaseBackupPolicyResourceInner createOrUpdate(
- String vaultName, String resourceGroupName, String backupPolicyName, BaseBackupPolicyResourceInner parameters);
+ String resourceGroupName, String vaultName, String backupPolicyName, BaseBackupPolicyResourceInner parameters);
/**
* Creates or Updates a backup policy belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupPolicyName Name of the policy.
* @param parameters Request body for operation.
* @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 baseBackupPolicyResource.
+ * @return baseBackupPolicyResource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupPolicyName,
BaseBackupPolicyResourceInner parameters,
Context context);
@@ -110,29 +110,29 @@ Response createOrUpdateWithResponse(
/**
* Deletes a backup policy belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupPolicyName The backupPolicyName parameter.
* @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 vaultName, String resourceGroupName, String backupPolicyName);
+ void delete(String resourceGroupName, String vaultName, String backupPolicyName);
/**
* Deletes a backup policy belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupPolicyName The backupPolicyName parameter.
* @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 response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
- String vaultName, String resourceGroupName, String backupPolicyName, Context context);
+ String resourceGroupName, String vaultName, String backupPolicyName, Context context);
}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java
index 91336b28091d..7d23daaa186e 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java
@@ -13,8 +13,8 @@
/** An instance of this class provides access to all the operations defined in BackupVaultOperationResultsClient. */
public interface BackupVaultOperationResultsClient {
/**
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param operationId The operationId parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -22,11 +22,11 @@ public interface BackupVaultOperationResultsClient {
* @return backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BackupVaultResourceInner get(String vaultName, String resourceGroupName, String operationId);
+ BackupVaultResourceInner get(String resourceGroupName, String vaultName, String operationId);
/**
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param operationId The operationId parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -36,5 +36,5 @@ public interface BackupVaultOperationResultsClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupVaultOperationResultsGetResponse getWithResponse(
- String vaultName, String resourceGroupName, String operationId, Context context);
+ String resourceGroupName, String vaultName, String operationId, Context context);
}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultsClient.java
index ecee753d3ec5..84cea890b851 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultsClient.java
@@ -23,7 +23,7 @@ public interface BackupVaultsClient {
*
* @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 backupVaultResourceList.
+ * @return backupVaultResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -35,7 +35,7 @@ public interface BackupVaultsClient {
* @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 backupVaultResourceList.
+ * @return backupVaultResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -47,7 +47,7 @@ public interface BackupVaultsClient {
* @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 backupVaultResourceList.
+ * @return backupVaultResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -60,7 +60,7 @@ public interface BackupVaultsClient {
* @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 backupVaultResourceList.
+ * @return backupVaultResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -87,7 +87,7 @@ public interface BackupVaultsClient {
* @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 backupVault Resource.
+ * @return backupVault Resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -96,39 +96,39 @@ Response getByResourceGroupWithResponse(
/**
* Creates or updates a BackupVault resource belonging to a resource group.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for 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 backupVault Resource.
+ * @return the {@link SyncPoller} for polling of backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BackupVaultResourceInner> beginCreateOrUpdate(
- String vaultName, String resourceGroupName, BackupVaultResourceInner parameters);
+ String resourceGroupName, String vaultName, BackupVaultResourceInner parameters);
/**
* Creates or updates a BackupVault resource belonging to a resource group.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @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 backupVault Resource.
+ * @return the {@link SyncPoller} for polling of backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BackupVaultResourceInner> beginCreateOrUpdate(
- String vaultName, String resourceGroupName, BackupVaultResourceInner parameters, Context context);
+ String resourceGroupName, String vaultName, BackupVaultResourceInner parameters, Context context);
/**
* Creates or updates a BackupVault resource belonging to a resource group.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -137,13 +137,13 @@ SyncPoller, BackupVaultResourceInner> begin
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupVaultResourceInner createOrUpdate(
- String vaultName, String resourceGroupName, BackupVaultResourceInner parameters);
+ String resourceGroupName, String vaultName, BackupVaultResourceInner parameters);
/**
* Creates or updates a BackupVault resource belonging to a resource group.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -153,7 +153,7 @@ BackupVaultResourceInner createOrUpdate(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupVaultResourceInner createOrUpdate(
- String vaultName, String resourceGroupName, BackupVaultResourceInner parameters, Context context);
+ String resourceGroupName, String vaultName, BackupVaultResourceInner parameters, Context context);
/**
* Deletes a BackupVault resource from the resource group.
@@ -176,7 +176,7 @@ BackupVaultResourceInner createOrUpdate(
* @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 response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String vaultName, Context context);
@@ -184,39 +184,39 @@ BackupVaultResourceInner createOrUpdate(
/**
* Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for 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 backupVault Resource.
+ * @return the {@link SyncPoller} for polling of backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BackupVaultResourceInner> beginUpdate(
- String vaultName, String resourceGroupName, PatchResourceRequestInput parameters);
+ String resourceGroupName, String vaultName, PatchResourceRequestInput parameters);
/**
* Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @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 backupVault Resource.
+ * @return the {@link SyncPoller} for polling of backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BackupVaultResourceInner> beginUpdate(
- String vaultName, String resourceGroupName, PatchResourceRequestInput parameters, Context context);
+ String resourceGroupName, String vaultName, PatchResourceRequestInput parameters, Context context);
/**
* Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -224,13 +224,13 @@ SyncPoller, BackupVaultResourceInner> begin
* @return backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BackupVaultResourceInner update(String vaultName, String resourceGroupName, PatchResourceRequestInput parameters);
+ BackupVaultResourceInner update(String resourceGroupName, String vaultName, PatchResourceRequestInput parameters);
/**
* Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -240,7 +240,7 @@ SyncPoller, BackupVaultResourceInner> begin
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupVaultResourceInner update(
- String vaultName, String resourceGroupName, PatchResourceRequestInput parameters, Context context);
+ String resourceGroupName, String vaultName, PatchResourceRequestInput parameters, Context context);
/**
* API to check for resource name availability.
@@ -267,7 +267,7 @@ CheckNameAvailabilityResultInner checkNameAvailability(
* @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 checkNameAvailabilityResult.
+ * @return checkNameAvailabilityResult along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkNameAvailabilityWithResponse(
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionClient.java
index c6d7d43aad92..eaff82b5aeda 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionClient.java
@@ -65,6 +65,20 @@ public interface DataProtectionClient {
*/
OperationStatusClient getOperationStatus();
+ /**
+ * Gets the OperationStatusBackupVaultContextsClient object to access its operations.
+ *
+ * @return the OperationStatusBackupVaultContextsClient object.
+ */
+ OperationStatusBackupVaultContextsClient getOperationStatusBackupVaultContexts();
+
+ /**
+ * Gets the OperationStatusResourceGroupContextsClient object to access its operations.
+ *
+ * @return the OperationStatusResourceGroupContextsClient object.
+ */
+ OperationStatusResourceGroupContextsClient getOperationStatusResourceGroupContexts();
+
/**
* Gets the BackupVaultOperationResultsClient object to access its operations.
*
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionOperationsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionOperationsClient.java
index 63f06497a8bd..06f1443bbc4f 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionOperationsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionOperationsClient.java
@@ -17,7 +17,7 @@ public interface DataProtectionOperationsClient {
*
* @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 clientDiscoveryResponse.
+ * @return clientDiscoveryResponse as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ public interface DataProtectionOperationsClient {
* @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 clientDiscoveryResponse.
+ * @return clientDiscoveryResponse as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionsClient.java
index e9c2cca27835..c0f2e024774e 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionsClient.java
@@ -35,7 +35,7 @@ public interface DataProtectionsClient {
* @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 base class for Backup Feature support.
+ * @return base class for Backup Feature support along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkFeatureSupportWithResponse(
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsClient.java
index 23717b87a1c0..18bb1be7a102 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsClient.java
@@ -20,7 +20,7 @@ public interface ExportJobsClient {
* @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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginTrigger(String resourceGroupName, String vaultName);
@@ -34,7 +34,7 @@ public interface ExportJobsClient {
* @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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginTrigger(String resourceGroupName, String vaultName, Context context);
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsOperationResultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsOperationResultsClient.java
index 71636c714b0e..0d3391e7c74b 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsOperationResultsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsOperationResultsClient.java
@@ -40,7 +40,7 @@ public interface ExportJobsOperationResultsClient {
* @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 operation result of operation triggered by Export Jobs API.
+ * @return the operation result of operation triggered by Export Jobs API along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobsClient.java
index d417b058c222..2f8d2b6d6548 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobsClient.java
@@ -21,7 +21,7 @@ public interface JobsClient {
* @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 list of AzureBackup Job resources.
+ * @return list of AzureBackup Job resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String vaultName);
@@ -35,7 +35,7 @@ public interface JobsClient {
* @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 list of AzureBackup Job resources.
+ * @return list of AzureBackup Job resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String vaultName, Context context);
@@ -64,7 +64,7 @@ public interface JobsClient {
* @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 job with id in a backup vault.
+ * @return a job with id in a backup vault along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusBackupVaultContextsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusBackupVaultContextsClient.java
new file mode 100644
index 000000000000..ee122d2fb0cb
--- /dev/null
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusBackupVaultContextsClient.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dataprotection.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dataprotection.fluent.models.OperationResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationStatusBackupVaultContextsClient.
+ */
+public interface OperationStatusBackupVaultContextsClient {
+ /**
+ * Gets the operation status for an operation over a BackupVault's context.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param operationId The operationId parameter.
+ * @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 operation status for an operation over a BackupVault's context.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationResourceInner get(String resourceGroupName, String vaultName, String operationId);
+
+ /**
+ * Gets the operation status for an operation over a BackupVault's context.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param operationId The operationId parameter.
+ * @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 operation status for an operation over a BackupVault's context along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String vaultName, String operationId, Context context);
+}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusClient.java
index d5259472bc83..a8303f78baf4 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusClient.java
@@ -34,7 +34,7 @@ public interface OperationStatusClient {
* @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 operation status for a resource.
+ * @return the operation status for a resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String location, String operationId, Context context);
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusResourceGroupContextsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusResourceGroupContextsClient.java
new file mode 100644
index 000000000000..10e1d535ab6f
--- /dev/null
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusResourceGroupContextsClient.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dataprotection.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dataprotection.fluent.models.OperationResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * OperationStatusResourceGroupContextsClient.
+ */
+public interface OperationStatusResourceGroupContextsClient {
+ /**
+ * Gets the operation status for an operation over a ResourceGroup's context.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param operationId The operationId parameter.
+ * @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 operation status for an operation over a ResourceGroup's context.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationResourceInner getByResourceGroup(String resourceGroupName, String operationId);
+
+ /**
+ * Gets the operation status for an operation over a ResourceGroup's context.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param operationId The operationId parameter.
+ * @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 operation status for an operation over a ResourceGroup's context along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String operationId, Context context);
+}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsClient.java
index f710f45135a6..724633e2fd8d 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsClient.java
@@ -16,23 +16,23 @@ public interface RecoveryPointsClient {
/**
* Returns a list of Recovery Points for a DataSource in a vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @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 azureBackupRecoveryPointResourceList.
+ * @return azureBackupRecoveryPointResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
- String vaultName, String resourceGroupName, String backupInstanceName);
+ String resourceGroupName, String vaultName, String backupInstanceName);
/**
* Returns a list of Recovery Points for a DataSource in a vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param filter OData filter options.
* @param skipToken skipToken Filter.
@@ -40,12 +40,12 @@ PagedIterable list(
* @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 azureBackupRecoveryPointResourceList.
+ * @return azureBackupRecoveryPointResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
String filter,
String skipToken,
@@ -54,8 +54,8 @@ PagedIterable list(
/**
* Gets a Recovery Point using recoveryPointId for a Datasource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param recoveryPointId The recoveryPointId parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -65,22 +65,22 @@ PagedIterable list(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AzureBackupRecoveryPointResourceInner get(
- String vaultName, String resourceGroupName, String backupInstanceName, String recoveryPointId);
+ String resourceGroupName, String vaultName, String backupInstanceName, String recoveryPointId);
/**
* Gets a Recovery Point using recoveryPointId for a Datasource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param recoveryPointId The recoveryPointId parameter.
* @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 Recovery Point using recoveryPointId for a Datasource.
+ * @return a Recovery Point using recoveryPointId for a Datasource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
- String vaultName, String resourceGroupName, String backupInstanceName, String recoveryPointId, Context context);
+ String resourceGroupName, String vaultName, String backupInstanceName, String recoveryPointId, Context context);
}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ResourceGuardsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ResourceGuardsClient.java
index cdb7b453d286..88dd3c466e6f 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ResourceGuardsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ResourceGuardsClient.java
@@ -20,7 +20,7 @@ public interface ResourceGuardsClient {
*
* @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 list of ResourceGuard resources.
+ * @return list of ResourceGuard resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -32,7 +32,7 @@ public interface ResourceGuardsClient {
* @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 list of ResourceGuard resources.
+ * @return list of ResourceGuard resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -44,7 +44,7 @@ public interface ResourceGuardsClient {
* @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 list of ResourceGuard resources.
+ * @return list of ResourceGuard resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -57,7 +57,7 @@ public interface ResourceGuardsClient {
* @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 list of ResourceGuard resources.
+ * @return list of ResourceGuard resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -87,7 +87,7 @@ ResourceGuardResourceInner put(
* @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 response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response putWithResponse(
@@ -115,7 +115,7 @@ Response putWithResponse(
* @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 response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -142,7 +142,7 @@ Response getByResourceGroupWithResponse(
* @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 response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String resourceGuardsName, Context context);
@@ -172,7 +172,7 @@ ResourceGuardResourceInner patch(
* @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 response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response patchWithResponse(
@@ -187,7 +187,7 @@ Response patchWithResponse(
* @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 base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getDisableSoftDeleteRequestsObjects(
@@ -203,7 +203,7 @@ PagedIterable getDisableSoftDeleteRequestsObjects(
* @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 base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getDisableSoftDeleteRequestsObjects(
@@ -218,7 +218,7 @@ PagedIterable getDisableSoftDeleteRequestsObjects(
* @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 base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getDeleteResourceGuardProxyRequestsObjects(
@@ -234,7 +234,7 @@ PagedIterable getDeleteResourceGuardProxyRequestsObjects(
* @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 base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getDeleteResourceGuardProxyRequestsObjects(
@@ -249,7 +249,7 @@ PagedIterable getDeleteResourceGuardProxyRequestsObjects(
* @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 base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getBackupSecurityPinRequestsObjects(
@@ -265,7 +265,7 @@ PagedIterable getBackupSecurityPinRequestsObjects(
* @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 base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getBackupSecurityPinRequestsObjects(
@@ -280,7 +280,7 @@ PagedIterable getBackupSecurityPinRequestsObjects(
* @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 base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getDeleteProtectedItemRequestsObjects(
@@ -296,7 +296,7 @@ PagedIterable getDeleteProtectedItemRequestsObjects(
* @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 base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getDeleteProtectedItemRequestsObjects(
@@ -311,7 +311,7 @@ PagedIterable getDeleteProtectedItemRequestsObjects(
* @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 base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getUpdateProtectionPolicyRequestsObjects(
@@ -327,7 +327,7 @@ PagedIterable getUpdateProtectionPolicyRequestsObjects(
* @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 base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getUpdateProtectionPolicyRequestsObjects(
@@ -342,7 +342,7 @@ PagedIterable getUpdateProtectionPolicyRequestsObjects(
* @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 base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getUpdateProtectedItemRequestsObjects(
@@ -358,7 +358,7 @@ PagedIterable getUpdateProtectedItemRequestsObjects(
* @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 base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getUpdateProtectedItemRequestsObjects(
@@ -391,7 +391,7 @@ DppBaseResourceInner getDefaultDisableSoftDeleteRequestsObject(
* @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 base resource under Microsoft.DataProtection provider namespace.
+ * @return base resource under Microsoft.DataProtection provider namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getDefaultDisableSoftDeleteRequestsObjectWithResponse(
@@ -424,7 +424,7 @@ DppBaseResourceInner getDefaultDeleteResourceGuardProxyRequestsObject(
* @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 base resource under Microsoft.DataProtection provider namespace.
+ * @return base resource under Microsoft.DataProtection provider namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getDefaultDeleteResourceGuardProxyRequestsObjectWithResponse(
@@ -457,7 +457,7 @@ DppBaseResourceInner getDefaultBackupSecurityPinRequestsObject(
* @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 base resource under Microsoft.DataProtection provider namespace.
+ * @return base resource under Microsoft.DataProtection provider namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getDefaultBackupSecurityPinRequestsObjectWithResponse(
@@ -490,7 +490,7 @@ DppBaseResourceInner getDefaultDeleteProtectedItemRequestsObject(
* @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 base resource under Microsoft.DataProtection provider namespace.
+ * @return base resource under Microsoft.DataProtection provider namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getDefaultDeleteProtectedItemRequestsObjectWithResponse(
@@ -523,7 +523,7 @@ DppBaseResourceInner getDefaultUpdateProtectionPolicyRequestsObject(
* @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 base resource under Microsoft.DataProtection provider namespace.
+ * @return base resource under Microsoft.DataProtection provider namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getDefaultUpdateProtectionPolicyRequestsObjectWithResponse(
@@ -556,7 +556,7 @@ DppBaseResourceInner getDefaultUpdateProtectedItemRequestsObject(
* @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 base resource under Microsoft.DataProtection provider namespace.
+ * @return base resource under Microsoft.DataProtection provider namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getDefaultUpdateProtectedItemRequestsObjectWithResponse(
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesClient.java
index 740f4e479860..70c61bca6007 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesClient.java
@@ -14,8 +14,8 @@
/** An instance of this class provides access to all the operations defined in RestorableTimeRangesClient. */
public interface RestorableTimeRangesClient {
/**
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -25,26 +25,26 @@ public interface RestorableTimeRangesClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AzureBackupFindRestorableTimeRangesResponseResourceInner find(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
AzureBackupFindRestorableTimeRangesRequest parameters);
/**
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @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 list Restore Ranges Response.
+ * @return list Restore Ranges Response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response findWithResponse(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
AzureBackupFindRestorableTimeRangesRequest parameters,
Context context);
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupFindRestorableTimeRangesResponseResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupFindRestorableTimeRangesResponseResourceInner.java
index 4b674770ec44..e25fa87f8177 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupFindRestorableTimeRangesResponseResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupFindRestorableTimeRangesResponseResourceInner.java
@@ -5,19 +5,13 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesResponse;
import com.azure.resourcemanager.dataprotection.models.DppResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** List Restore Ranges Response. */
@Fluent
public final class AzureBackupFindRestorableTimeRangesResponseResourceInner extends DppResource {
- @JsonIgnore
- private final ClientLogger logger =
- new ClientLogger(AzureBackupFindRestorableTimeRangesResponseResourceInner.class);
-
/*
* AzureBackupFindRestorableTimeRangesResponseResource properties
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupJobResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupJobResourceInner.java
index f3fc551c9511..602ea0bfe67f 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupJobResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupJobResourceInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.AzureBackupJob;
import com.azure.resourcemanager.dataprotection.models.DppResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** AzureBackup Job Resource Class. */
@Fluent
public final class AzureBackupJobResourceInner extends DppResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBackupJobResourceInner.class);
-
/*
* AzureBackupJobResource properties
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupRecoveryPointResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupRecoveryPointResourceInner.java
index 199b96c51848..986f0d47cb9c 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupRecoveryPointResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupRecoveryPointResourceInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPoint;
import com.azure.resourcemanager.dataprotection.models.DppResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** AzureBackupRecoveryPointResource Azure backup recoveryPoint resource. */
@Fluent
public final class AzureBackupRecoveryPointResourceInner extends DppResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBackupRecoveryPointResourceInner.class);
-
/*
* AzureBackupRecoveryPoint AzureBackupRecoveryPointResource properties
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupInstanceResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupInstanceResourceInner.java
index 7e01834d05be..299c4ad29e79 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupInstanceResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupInstanceResourceInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.BackupInstance;
import com.azure.resourcemanager.dataprotection.models.DppResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** BackupInstanceResource BackupInstance Resource. */
@Fluent
public final class BackupInstanceResourceInner extends DppResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupInstanceResourceInner.class);
-
/*
* BackupInstanceResource properties
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java
index 05b9ee22e857..1a026d60560f 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java
@@ -9,15 +9,12 @@
import com.azure.resourcemanager.dataprotection.models.BackupVault;
import com.azure.resourcemanager.dataprotection.models.DppIdentityDetails;
import com.azure.resourcemanager.dataprotection.models.DppTrackedResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** BackupVault Resource Backup Vault Resource. */
@Fluent
public final class BackupVaultResourceInner extends DppTrackedResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupVaultResourceInner.class);
-
/*
* BackupVault BackupVaultResource properties
*/
@@ -81,7 +78,7 @@ public BackupVaultResourceInner withTags(Map tags) {
public void validate() {
super.validate();
if (properties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property properties in model BackupVaultResourceInner"));
@@ -89,4 +86,6 @@ public void validate() {
properties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(BackupVaultResourceInner.class);
}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BaseBackupPolicyResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BaseBackupPolicyResourceInner.java
index f714b63e6363..9e521ba52e19 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BaseBackupPolicyResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BaseBackupPolicyResourceInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.BaseBackupPolicy;
import com.azure.resourcemanager.dataprotection.models.DppResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** BaseBackupPolicyResource BaseBackupPolicy resource. */
@Fluent
public final class BaseBackupPolicyResourceInner extends DppResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BaseBackupPolicyResourceInner.class);
-
/*
* BaseBackupPolicy BaseBackupPolicyResource properties
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CheckNameAvailabilityResultInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CheckNameAvailabilityResultInner.java
index 4f702656ff02..30bc69c1af6d 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CheckNameAvailabilityResultInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CheckNameAvailabilityResultInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** CheckNameAvailabilityResult CheckNameAvailability Result. */
@Fluent
public final class CheckNameAvailabilityResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckNameAvailabilityResultInner.class);
-
/*
* Gets or sets the message.
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ClientDiscoveryValueForSingleApiInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ClientDiscoveryValueForSingleApiInner.java
index 4a7f24e3601b..256cb17968d2 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ClientDiscoveryValueForSingleApiInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ClientDiscoveryValueForSingleApiInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryDisplay;
import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryForProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** ClientDiscoveryValueForSingleApi Available operation details. */
@Fluent
public final class ClientDiscoveryValueForSingleApiInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ClientDiscoveryValueForSingleApiInner.class);
-
/*
* ClientDiscoveryDisplay Contains the localized display information for
* this particular operation
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DppBaseResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DppBaseResourceInner.java
index 60bfac685e8b..a8379c74bf76 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DppBaseResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DppBaseResourceInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Base resource under Microsoft.DataProtection provider namespace. */
@Immutable
public final class DppBaseResourceInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DppBaseResourceInner.class);
-
/*
* Resource Id represents the complete path to the resource.
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ExportJobsResultInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ExportJobsResultInner.java
index fcd4ef9d68a7..a7ac35baa102 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ExportJobsResultInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ExportJobsResultInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** ExportJobsResult The result for export jobs containing blob details. */
@Immutable
public final class ExportJobsResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ExportJobsResultInner.class);
-
/*
* URL of the blob into which the serialized string of list of jobs is
* exported.
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/FeatureValidationResponseBaseInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/FeatureValidationResponseBaseInner.java
index 0e9a3db10739..bd52aa08e4e2 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/FeatureValidationResponseBaseInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/FeatureValidationResponseBaseInner.java
@@ -5,9 +5,7 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.FeatureValidationResponse;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -22,8 +20,6 @@
@JsonSubTypes({@JsonSubTypes.Type(name = "FeatureValidationResponse", value = FeatureValidationResponse.class)})
@Immutable
public class FeatureValidationResponseBaseInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(FeatureValidationResponseBaseInner.class);
-
/**
* Validates the instance.
*
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationJobExtendedInfoInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationJobExtendedInfoInner.java
index df6a5423476c..bd82098025bf 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationJobExtendedInfoInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationJobExtendedInfoInner.java
@@ -5,9 +5,7 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.OperationExtendedInfo;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -17,8 +15,6 @@
@JsonTypeName("OperationJobExtendedInfo")
@Fluent
public final class OperationJobExtendedInfoInner extends OperationExtendedInfo {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationJobExtendedInfoInner.class);
-
/*
* Arm Id of the job created for this operation.
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationResourceInner.java
index b7b4a59eae79..5bdc968611a3 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationResourceInner.java
@@ -6,17 +6,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.exception.ManagementError;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.OperationExtendedInfo;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** OperationResource Operation Resource. */
@Fluent
public final class OperationResourceInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationResourceInner.class);
-
/*
* End time of the operation
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java
index a5c68fc13b2e..0760bcbc6980 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java
@@ -5,19 +5,15 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.DppIdentityDetails;
import com.azure.resourcemanager.dataprotection.models.DppTrackedResource;
import com.azure.resourcemanager.dataprotection.models.ResourceGuard;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** The ResourceGuardResource model. */
@Fluent
public final class ResourceGuardResourceInner extends DppTrackedResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceGuardResourceInner.class);
-
/*
* ResourceGuardResource properties
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceResourceImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceResourceImpl.java
index 949cf0caed1b..9b1f8b60f77f 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceResourceImpl.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceResourceImpl.java
@@ -12,6 +12,7 @@
import com.azure.resourcemanager.dataprotection.models.BackupInstance;
import com.azure.resourcemanager.dataprotection.models.BackupInstanceResource;
import com.azure.resourcemanager.dataprotection.models.OperationJobExtendedInfo;
+import com.azure.resourcemanager.dataprotection.models.SyncBackupInstanceRequest;
import com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest;
import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject;
@@ -49,15 +50,15 @@ private com.azure.resourcemanager.dataprotection.DataProtectionManager manager()
return this.serviceManager;
}
- private String vaultName;
-
private String resourceGroupName;
+ private String vaultName;
+
private String backupInstanceName;
- public BackupInstanceResourceImpl withExistingBackupVault(String vaultName, String resourceGroupName) {
- this.vaultName = vaultName;
+ public BackupInstanceResourceImpl withExistingBackupVault(String resourceGroupName, String vaultName) {
this.resourceGroupName = resourceGroupName;
+ this.vaultName = vaultName;
return this;
}
@@ -66,7 +67,7 @@ public BackupInstanceResource create() {
serviceManager
.serviceClient()
.getBackupInstances()
- .createOrUpdate(vaultName, resourceGroupName, backupInstanceName, this.innerModel(), Context.NONE);
+ .createOrUpdate(resourceGroupName, vaultName, backupInstanceName, this.innerModel(), Context.NONE);
return this;
}
@@ -75,7 +76,7 @@ public BackupInstanceResource create(Context context) {
serviceManager
.serviceClient()
.getBackupInstances()
- .createOrUpdate(vaultName, resourceGroupName, backupInstanceName, this.innerModel(), context);
+ .createOrUpdate(resourceGroupName, vaultName, backupInstanceName, this.innerModel(), context);
return this;
}
@@ -95,7 +96,7 @@ public BackupInstanceResource apply() {
serviceManager
.serviceClient()
.getBackupInstances()
- .createOrUpdate(vaultName, resourceGroupName, backupInstanceName, this.innerModel(), Context.NONE);
+ .createOrUpdate(resourceGroupName, vaultName, backupInstanceName, this.innerModel(), Context.NONE);
return this;
}
@@ -104,7 +105,7 @@ public BackupInstanceResource apply(Context context) {
serviceManager
.serviceClient()
.getBackupInstances()
- .createOrUpdate(vaultName, resourceGroupName, backupInstanceName, this.innerModel(), context);
+ .createOrUpdate(resourceGroupName, vaultName, backupInstanceName, this.innerModel(), context);
return this;
}
@@ -113,8 +114,8 @@ public BackupInstanceResource apply(Context context) {
com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.vaultName = Utils.getValueFromIdByName(innerObject.id(), "backupVaults");
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.vaultName = Utils.getValueFromIdByName(innerObject.id(), "backupVaults");
this.backupInstanceName = Utils.getValueFromIdByName(innerObject.id(), "backupInstances");
}
@@ -123,7 +124,7 @@ public BackupInstanceResource refresh() {
serviceManager
.serviceClient()
.getBackupInstances()
- .getWithResponse(vaultName, resourceGroupName, backupInstanceName, Context.NONE)
+ .getWithResponse(resourceGroupName, vaultName, backupInstanceName, Context.NONE)
.getValue();
return this;
}
@@ -133,7 +134,7 @@ public BackupInstanceResource refresh(Context context) {
serviceManager
.serviceClient()
.getBackupInstances()
- .getWithResponse(vaultName, resourceGroupName, backupInstanceName, context)
+ .getWithResponse(resourceGroupName, vaultName, backupInstanceName, context)
.getValue();
return this;
}
@@ -141,13 +142,13 @@ public BackupInstanceResource refresh(Context context) {
public OperationJobExtendedInfo adhocBackup(TriggerBackupRequest parameters) {
return serviceManager
.backupInstances()
- .adhocBackup(vaultName, resourceGroupName, backupInstanceName, parameters);
+ .adhocBackup(resourceGroupName, vaultName, backupInstanceName, parameters);
}
public OperationJobExtendedInfo adhocBackup(TriggerBackupRequest parameters, Context context) {
return serviceManager
.backupInstances()
- .adhocBackup(vaultName, resourceGroupName, backupInstanceName, parameters, context);
+ .adhocBackup(resourceGroupName, vaultName, backupInstanceName, parameters, context);
}
public void triggerRehydrate(AzureBackupRehydrationRequest parameters) {
@@ -163,25 +164,69 @@ public void triggerRehydrate(AzureBackupRehydrationRequest parameters, Context c
public OperationJobExtendedInfo triggerRestore(AzureBackupRestoreRequest parameters) {
return serviceManager
.backupInstances()
- .triggerRestore(vaultName, resourceGroupName, backupInstanceName, parameters);
+ .triggerRestore(resourceGroupName, vaultName, backupInstanceName, parameters);
}
public OperationJobExtendedInfo triggerRestore(AzureBackupRestoreRequest parameters, Context context) {
return serviceManager
.backupInstances()
- .triggerRestore(vaultName, resourceGroupName, backupInstanceName, parameters, context);
+ .triggerRestore(resourceGroupName, vaultName, backupInstanceName, parameters, context);
+ }
+
+ public void resumeBackups() {
+ serviceManager.backupInstances().resumeBackups(resourceGroupName, vaultName, backupInstanceName);
+ }
+
+ public void resumeBackups(Context context) {
+ serviceManager.backupInstances().resumeBackups(resourceGroupName, vaultName, backupInstanceName, context);
+ }
+
+ public void resumeProtection() {
+ serviceManager.backupInstances().resumeProtection(resourceGroupName, vaultName, backupInstanceName);
+ }
+
+ public void resumeProtection(Context context) {
+ serviceManager.backupInstances().resumeProtection(resourceGroupName, vaultName, backupInstanceName, context);
+ }
+
+ public void stopProtection() {
+ serviceManager.backupInstances().stopProtection(resourceGroupName, vaultName, backupInstanceName);
+ }
+
+ public void stopProtection(Context context) {
+ serviceManager.backupInstances().stopProtection(resourceGroupName, vaultName, backupInstanceName, context);
+ }
+
+ public void suspendBackups() {
+ serviceManager.backupInstances().suspendBackups(resourceGroupName, vaultName, backupInstanceName);
+ }
+
+ public void suspendBackups(Context context) {
+ serviceManager.backupInstances().suspendBackups(resourceGroupName, vaultName, backupInstanceName, context);
+ }
+
+ public void syncBackupInstance(SyncBackupInstanceRequest parameters) {
+ serviceManager
+ .backupInstances()
+ .syncBackupInstance(resourceGroupName, vaultName, backupInstanceName, parameters);
+ }
+
+ public void syncBackupInstance(SyncBackupInstanceRequest parameters, Context context) {
+ serviceManager
+ .backupInstances()
+ .syncBackupInstance(resourceGroupName, vaultName, backupInstanceName, parameters, context);
}
public OperationJobExtendedInfo validateForRestore(ValidateRestoreRequestObject parameters) {
return serviceManager
.backupInstances()
- .validateForRestore(vaultName, resourceGroupName, backupInstanceName, parameters);
+ .validateForRestore(resourceGroupName, vaultName, backupInstanceName, parameters);
}
public OperationJobExtendedInfo validateForRestore(ValidateRestoreRequestObject parameters, Context context) {
return serviceManager
.backupInstances()
- .validateForRestore(vaultName, resourceGroupName, backupInstanceName, parameters, context);
+ .validateForRestore(resourceGroupName, vaultName, backupInstanceName, parameters, context);
}
public BackupInstanceResourceImpl withProperties(BackupInstance properties) {
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java
index 0c9bfe046d6b..2811f3be02bc 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java
@@ -30,7 +30,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient;
@@ -39,6 +38,7 @@
import com.azure.resourcemanager.dataprotection.models.AzureBackupRehydrationRequest;
import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest;
import com.azure.resourcemanager.dataprotection.models.BackupInstanceResourceList;
+import com.azure.resourcemanager.dataprotection.models.SyncBackupInstanceRequest;
import com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest;
import com.azure.resourcemanager.dataprotection.models.ValidateForBackupRequest;
import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject;
@@ -48,8 +48,6 @@
/** An instance of this class provides access to all the operations defined in BackupInstancesClient. */
public final class BackupInstancesClientImpl implements BackupInstancesClient {
- private final ClientLogger logger = new ClientLogger(BackupInstancesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final BackupInstancesService service;
@@ -83,9 +81,9 @@ private interface BackupInstancesService {
Mono> list(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
- @PathParam("vaultName") String vaultName,
- @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@HeaderParam("Accept") String accept,
Context context);
@@ -98,9 +96,9 @@ Mono> list(
Mono> get(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
- @PathParam("vaultName") String vaultName,
- @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@PathParam("backupInstanceName") String backupInstanceName,
@HeaderParam("Accept") String accept,
Context context);
@@ -109,14 +107,14 @@ Mono> get(
@Put(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
+ "/backupVaults/{vaultName}/backupInstances/{backupInstanceName}")
- @ExpectedResponses({200, 201})
+ @ExpectedResponses({200, 201, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
- @PathParam("vaultName") String vaultName,
- @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@PathParam("backupInstanceName") String backupInstanceName,
@BodyParam("application/json") BackupInstanceResourceInner parameters,
@HeaderParam("Accept") String accept,
@@ -131,9 +129,9 @@ Mono>> createOrUpdate(
Mono>> delete(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
- @PathParam("vaultName") String vaultName,
- @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@PathParam("backupInstanceName") String backupInstanceName,
@HeaderParam("Accept") String accept,
Context context);
@@ -147,9 +145,9 @@ Mono>> delete(
Mono>> adhocBackup(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
- @PathParam("vaultName") String vaultName,
- @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@PathParam("backupInstanceName") String backupInstanceName,
@BodyParam("application/json") TriggerBackupRequest parameters,
@HeaderParam("Accept") String accept,
@@ -164,13 +162,30 @@ Mono>> adhocBackup(
Mono>> validateForBackup(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
- @PathParam("vaultName") String vaultName,
- @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@BodyParam("application/json") ValidateForBackupRequest parameters,
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
+ + "/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/operationResults/{operationId}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getBackupInstanceOperationResult(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
+ @PathParam("backupInstanceName") String backupInstanceName,
+ @PathParam("operationId") String operationId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Post(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
@@ -197,11 +212,92 @@ Mono>> triggerRehydrate(
Mono>> triggerRestore(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
+ @PathParam("backupInstanceName") String backupInstanceName,
+ @BodyParam("application/json") AzureBackupRestoreRequest parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
+ + "/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeBackups")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> resumeBackups(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
+ @PathParam("backupInstanceName") String backupInstanceName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
+ + "/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeProtection")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> resumeProtection(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
+ @PathParam("backupInstanceName") String backupInstanceName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
+ + "/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/stopProtection")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> stopProtection(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("vaultName") String vaultName,
+ @PathParam("backupInstanceName") String backupInstanceName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
+ + "/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/suspendBackups")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> suspendBackups(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
+ @PathParam("backupInstanceName") String backupInstanceName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
+ + "/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/sync")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> syncBackupInstance(
+ @HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@PathParam("backupInstanceName") String backupInstanceName,
- @BodyParam("application/json") AzureBackupRestoreRequest parameters,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") SyncBackupInstanceRequest parameters,
@HeaderParam("Accept") String accept,
Context context);
@@ -214,9 +310,9 @@ Mono>> triggerRestore(
Mono>> validateForRestore(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
- @PathParam("vaultName") String vaultName,
- @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@PathParam("backupInstanceName") String backupInstanceName,
@BodyParam("application/json") ValidateRestoreRequestObject parameters,
@HeaderParam("Accept") String accept,
@@ -236,35 +332,36 @@ Mono> listNext(
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String vaultName, String resourceGroupName) {
+ String resourceGroupName, String vaultName) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -273,9 +370,9 @@ private Mono> listSinglePageAsync(
.list(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
accept,
context))
.>map(
@@ -293,45 +390,46 @@ private Mono> listSinglePageAsync(
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String vaultName, String resourceGroupName, Context context) {
+ String resourceGroupName, String vaultName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.list(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
accept,
context)
.map(
@@ -348,103 +446,104 @@ private Mono> listSinglePageAsync(
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String vaultName, String resourceGroupName) {
+ private PagedFlux listAsync(String resourceGroupName, String vaultName) {
return new PagedFlux<>(
- () -> listSinglePageAsync(vaultName, resourceGroupName), nextLink -> listNextSinglePageAsync(nextLink));
+ () -> listSinglePageAsync(resourceGroupName, vaultName), nextLink -> listNextSinglePageAsync(nextLink));
}
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
- String vaultName, String resourceGroupName, Context context) {
+ String resourceGroupName, String vaultName, Context context) {
return new PagedFlux<>(
- () -> listSinglePageAsync(vaultName, resourceGroupName, context),
+ () -> listSinglePageAsync(resourceGroupName, vaultName, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
}
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String vaultName, String resourceGroupName) {
- return new PagedIterable<>(listAsync(vaultName, resourceGroupName));
+ public PagedIterable list(String resourceGroupName, String vaultName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, vaultName));
}
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
- String vaultName, String resourceGroupName, Context context) {
- return new PagedIterable<>(listAsync(vaultName, resourceGroupName, context));
+ String resourceGroupName, String vaultName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, vaultName, context));
}
/**
* Gets a backup instance with name in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 backup instance with name in a backup vault.
+ * @return a backup instance with name in a backup vault along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
- String vaultName, String resourceGroupName, String backupInstanceName) {
+ String resourceGroupName, String vaultName, String backupInstanceName) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -457,9 +556,9 @@ private Mono> getWithResponseAsync(
.get(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
accept,
context))
@@ -469,37 +568,38 @@ private Mono> getWithResponseAsync(
/**
* Gets a backup instance with name in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 backup instance with name in a backup vault.
+ * @return a backup instance with name in a backup vault along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -510,9 +610,9 @@ private Mono> getWithResponseAsync(
.get(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
accept,
context);
@@ -521,18 +621,18 @@ private Mono> getWithResponseAsync(
/**
* Gets a backup instance with name in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 backup instance with name in a backup vault.
+ * @return a backup instance with name in a backup vault on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(
- String vaultName, String resourceGroupName, String backupInstanceName) {
- return getWithResponseAsync(vaultName, resourceGroupName, backupInstanceName)
+ String resourceGroupName, String vaultName, String backupInstanceName) {
+ return getWithResponseAsync(resourceGroupName, vaultName, backupInstanceName)
.flatMap(
(Response res) -> {
if (res.getValue() != null) {
@@ -546,8 +646,8 @@ private Mono getAsync(
/**
* Gets a backup instance with name in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -555,62 +655,62 @@ private Mono getAsync(
* @return a backup instance with name in a backup vault.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public BackupInstanceResourceInner get(String vaultName, String resourceGroupName, String backupInstanceName) {
- return getAsync(vaultName, resourceGroupName, backupInstanceName).block();
+ public BackupInstanceResourceInner get(String resourceGroupName, String vaultName, String backupInstanceName) {
+ return getAsync(resourceGroupName, vaultName, backupInstanceName).block();
}
/**
* Gets a backup instance with name in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 backup instance with name in a backup vault.
+ * @return a backup instance with name in a backup vault along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
- return getWithResponseAsync(vaultName, resourceGroupName, backupInstanceName, context).block();
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
+ return getWithResponseAsync(resourceGroupName, vaultName, backupInstanceName, context).block();
}
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return backupInstanceResource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, BackupInstanceResourceInner parameters) {
+ String resourceGroupName, String vaultName, String backupInstanceName, BackupInstanceResourceInner parameters) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -628,9 +728,9 @@ private Mono>> createOrUpdateWithResponseAsync(
.createOrUpdate(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
parameters,
accept,
@@ -641,20 +741,20 @@ private Mono>> createOrUpdateWithResponseAsync(
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return backupInstanceResource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
BackupInstanceResourceInner parameters,
Context context) {
@@ -664,19 +764,19 @@ private Mono>> createOrUpdateWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -692,10 +792,10 @@ private Mono>> createOrUpdateWithResponseAsync(
.createOrUpdate(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
- backupInstanceName,
+ resourceGroupName,
+ vaultName,
+ backupInstanceName,
parameters,
accept,
context);
@@ -704,20 +804,20 @@ private Mono>> createOrUpdateWithResponseAsync(
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return the {@link PollerFlux} for polling of backupInstanceResource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, BackupInstanceResourceInner> beginCreateOrUpdateAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, BackupInstanceResourceInner parameters) {
+ String resourceGroupName, String vaultName, String backupInstanceName, BackupInstanceResourceInner parameters) {
Mono>> mono =
- createOrUpdateWithResponseAsync(vaultName, resourceGroupName, backupInstanceName, parameters);
+ createOrUpdateWithResponseAsync(resourceGroupName, vaultName, backupInstanceName, parameters);
return this
.client
.getLroResult(
@@ -725,32 +825,32 @@ private PollerFlux, BackupInstanceResour
this.client.getHttpPipeline(),
BackupInstanceResourceInner.class,
BackupInstanceResourceInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return the {@link PollerFlux} for polling of backupInstanceResource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, BackupInstanceResourceInner> beginCreateOrUpdateAsync(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
BackupInstanceResourceInner parameters,
Context context) {
context = this.client.mergeContext(context);
Mono>> mono =
- createOrUpdateWithResponseAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context);
+ createOrUpdateWithResponseAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context);
return this
.client
.getLroResult(
@@ -764,61 +864,61 @@ private PollerFlux, BackupInstanceResour
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return the {@link SyncPoller} for polling of backupInstanceResource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, BackupInstanceResourceInner> beginCreateOrUpdate(
- String vaultName, String resourceGroupName, String backupInstanceName, BackupInstanceResourceInner parameters) {
- return beginCreateOrUpdateAsync(vaultName, resourceGroupName, backupInstanceName, parameters).getSyncPoller();
+ String resourceGroupName, String vaultName, String backupInstanceName, BackupInstanceResourceInner parameters) {
+ return beginCreateOrUpdateAsync(resourceGroupName, vaultName, backupInstanceName, parameters).getSyncPoller();
}
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return the {@link SyncPoller} for polling of backupInstanceResource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, BackupInstanceResourceInner> beginCreateOrUpdate(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
BackupInstanceResourceInner parameters,
Context context) {
- return beginCreateOrUpdateAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context)
+ return beginCreateOrUpdateAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context)
.getSyncPoller();
}
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return backupInstanceResource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, BackupInstanceResourceInner parameters) {
- return beginCreateOrUpdateAsync(vaultName, resourceGroupName, backupInstanceName, parameters)
+ String resourceGroupName, String vaultName, String backupInstanceName, BackupInstanceResourceInner parameters) {
+ return beginCreateOrUpdateAsync(resourceGroupName, vaultName, backupInstanceName, parameters)
.last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -826,24 +926,24 @@ private Mono createOrUpdateAsync(
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return backupInstanceResource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
BackupInstanceResourceInner parameters,
Context context) {
- return beginCreateOrUpdateAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context)
+ return beginCreateOrUpdateAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context)
.last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -851,8 +951,8 @@ private Mono createOrUpdateAsync(
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -862,15 +962,15 @@ private Mono createOrUpdateAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public BackupInstanceResourceInner createOrUpdate(
- String vaultName, String resourceGroupName, String backupInstanceName, BackupInstanceResourceInner parameters) {
- return createOrUpdateAsync(vaultName, resourceGroupName, backupInstanceName, parameters).block();
+ String resourceGroupName, String vaultName, String backupInstanceName, BackupInstanceResourceInner parameters) {
+ return createOrUpdateAsync(resourceGroupName, vaultName, backupInstanceName, parameters).block();
}
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
@@ -881,47 +981,47 @@ public BackupInstanceResourceInner createOrUpdate(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public BackupInstanceResourceInner createOrUpdate(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
BackupInstanceResourceInner parameters,
Context context) {
- return createOrUpdateAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context).block();
+ return createOrUpdateAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context).block();
}
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
- String vaultName, String resourceGroupName, String backupInstanceName) {
+ String resourceGroupName, String vaultName, String backupInstanceName) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -934,9 +1034,9 @@ private Mono>> deleteWithResponseAsync(
.delete(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
accept,
context))
@@ -946,37 +1046,37 @@ private Mono>> deleteWithResponseAsync(
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -987,9 +1087,9 @@ private Mono>> deleteWithResponseAsync(
.delete(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
accept,
context);
@@ -998,42 +1098,43 @@ private Mono>> deleteWithResponseAsync(
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 completion.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
- String vaultName, String resourceGroupName, String backupInstanceName) {
+ String resourceGroupName, String vaultName, String backupInstanceName) {
Mono>> mono =
- deleteWithResponseAsync(vaultName, resourceGroupName, backupInstanceName);
+ deleteWithResponseAsync(resourceGroupName, vaultName, backupInstanceName);
return this
.client
- .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 completion.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
context = this.client.mergeContext(context);
Mono>> mono =
- deleteWithResponseAsync(vaultName, resourceGroupName, backupInstanceName, context);
+ deleteWithResponseAsync(resourceGroupName, vaultName, backupInstanceName, context);
return this
.client
.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
@@ -1042,52 +1143,52 @@ private PollerFlux, Void> beginDeleteAsync(
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
- String vaultName, String resourceGroupName, String backupInstanceName) {
- return beginDeleteAsync(vaultName, resourceGroupName, backupInstanceName).getSyncPoller();
+ String resourceGroupName, String vaultName, String backupInstanceName) {
+ return beginDeleteAsync(resourceGroupName, vaultName, backupInstanceName).getSyncPoller();
}
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
- return beginDeleteAsync(vaultName, resourceGroupName, backupInstanceName, context).getSyncPoller();
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
+ return beginDeleteAsync(resourceGroupName, vaultName, backupInstanceName, context).getSyncPoller();
}
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String vaultName, String resourceGroupName, String backupInstanceName) {
- return beginDeleteAsync(vaultName, resourceGroupName, backupInstanceName)
+ private Mono deleteAsync(String resourceGroupName, String vaultName, String backupInstanceName) {
+ return beginDeleteAsync(resourceGroupName, vaultName, backupInstanceName)
.last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -1095,19 +1196,19 @@ private Mono deleteAsync(String vaultName, String resourceGroupName, Strin
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
- return beginDeleteAsync(vaultName, resourceGroupName, backupInstanceName, context)
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
+ return beginDeleteAsync(resourceGroupName, vaultName, backupInstanceName, context)
.last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -1115,23 +1216,23 @@ private Mono deleteAsync(
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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)
- public void delete(String vaultName, String resourceGroupName, String backupInstanceName) {
- deleteAsync(vaultName, resourceGroupName, backupInstanceName).block();
+ public void delete(String resourceGroupName, String vaultName, String backupInstanceName) {
+ deleteAsync(resourceGroupName, vaultName, backupInstanceName).block();
}
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1139,44 +1240,44 @@ public void delete(String vaultName, String resourceGroupName, String backupInst
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
- deleteAsync(vaultName, resourceGroupName, backupInstanceName, context).block();
+ public void delete(String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
+ deleteAsync(resourceGroupName, vaultName, backupInstanceName, context).block();
}
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return operationJobExtendedInfo along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> adhocBackupWithResponseAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, TriggerBackupRequest parameters) {
+ String resourceGroupName, String vaultName, String backupInstanceName, TriggerBackupRequest parameters) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -1194,9 +1295,9 @@ private Mono>> adhocBackupWithResponseAsync(
.adhocBackup(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
parameters,
accept,
@@ -1207,20 +1308,20 @@ private Mono>> adhocBackupWithResponseAsync(
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return operationJobExtendedInfo along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> adhocBackupWithResponseAsync(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
TriggerBackupRequest parameters,
Context context) {
@@ -1230,19 +1331,19 @@ private Mono>> adhocBackupWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -1258,9 +1359,9 @@ private Mono>> adhocBackupWithResponseAsync(
.adhocBackup(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
parameters,
accept,
@@ -1270,20 +1371,20 @@ private Mono>> adhocBackupWithResponseAsync(
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link PollerFlux} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationJobExtendedInfoInner> beginAdhocBackupAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, TriggerBackupRequest parameters) {
+ String resourceGroupName, String vaultName, String backupInstanceName, TriggerBackupRequest parameters) {
Mono>> mono =
- adhocBackupWithResponseAsync(vaultName, resourceGroupName, backupInstanceName, parameters);
+ adhocBackupWithResponseAsync(resourceGroupName, vaultName, backupInstanceName, parameters);
return this
.client
.getLroResult(
@@ -1291,32 +1392,32 @@ private PollerFlux, OperationJobExtend
this.client.getHttpPipeline(),
OperationJobExtendedInfoInner.class,
OperationJobExtendedInfoInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link PollerFlux} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationJobExtendedInfoInner> beginAdhocBackupAsync(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
TriggerBackupRequest parameters,
Context context) {
context = this.client.mergeContext(context);
Mono>> mono =
- adhocBackupWithResponseAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context);
+ adhocBackupWithResponseAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context);
return this
.client
.getLroResult(
@@ -1330,61 +1431,61 @@ private PollerFlux, OperationJobExtend
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationJobExtendedInfoInner> beginAdhocBackup(
- String vaultName, String resourceGroupName, String backupInstanceName, TriggerBackupRequest parameters) {
- return beginAdhocBackupAsync(vaultName, resourceGroupName, backupInstanceName, parameters).getSyncPoller();
+ String resourceGroupName, String vaultName, String backupInstanceName, TriggerBackupRequest parameters) {
+ return beginAdhocBackupAsync(resourceGroupName, vaultName, backupInstanceName, parameters).getSyncPoller();
}
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationJobExtendedInfoInner> beginAdhocBackup(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
TriggerBackupRequest parameters,
Context context) {
- return beginAdhocBackupAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context)
+ return beginAdhocBackupAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context)
.getSyncPoller();
}
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return operationJobExtendedInfo on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono adhocBackupAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, TriggerBackupRequest parameters) {
- return beginAdhocBackupAsync(vaultName, resourceGroupName, backupInstanceName, parameters)
+ String resourceGroupName, String vaultName, String backupInstanceName, TriggerBackupRequest parameters) {
+ return beginAdhocBackupAsync(resourceGroupName, vaultName, backupInstanceName, parameters)
.last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -1392,24 +1493,24 @@ private Mono adhocBackupAsync(
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return operationJobExtendedInfo on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono adhocBackupAsync(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
TriggerBackupRequest parameters,
Context context) {
- return beginAdhocBackupAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context)
+ return beginAdhocBackupAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context)
.last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -1417,8 +1518,8 @@ private Mono adhocBackupAsync(
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1428,15 +1529,15 @@ private Mono adhocBackupAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public OperationJobExtendedInfoInner adhocBackup(
- String vaultName, String resourceGroupName, String backupInstanceName, TriggerBackupRequest parameters) {
- return adhocBackupAsync(vaultName, resourceGroupName, backupInstanceName, parameters).block();
+ String resourceGroupName, String vaultName, String backupInstanceName, TriggerBackupRequest parameters) {
+ return adhocBackupAsync(resourceGroupName, vaultName, backupInstanceName, parameters).block();
}
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
@@ -1447,47 +1548,47 @@ public OperationJobExtendedInfoInner adhocBackup(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public OperationJobExtendedInfoInner adhocBackup(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
TriggerBackupRequest parameters,
Context context) {
- return adhocBackupAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context).block();
+ return adhocBackupAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context).block();
}
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return operationJobExtendedInfo along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> validateForBackupWithResponseAsync(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters) {
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (parameters == null) {
return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
} else {
@@ -1501,9 +1602,9 @@ private Mono>> validateForBackupWithResponseAsync(
.validateForBackup(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
parameters,
accept,
context))
@@ -1513,37 +1614,37 @@ private Mono>> validateForBackupWithResponseAsync(
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return operationJobExtendedInfo along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> validateForBackupWithResponseAsync(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters, Context context) {
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (parameters == null) {
return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
} else {
@@ -1555,9 +1656,9 @@ private Mono>> validateForBackupWithResponseAsync(
.validateForBackup(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
parameters,
accept,
context);
@@ -1566,19 +1667,19 @@ private Mono>> validateForBackupWithResponseAsync(
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link PollerFlux} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationJobExtendedInfoInner>
- beginValidateForBackupAsync(String vaultName, String resourceGroupName, ValidateForBackupRequest parameters) {
+ beginValidateForBackupAsync(String resourceGroupName, String vaultName, ValidateForBackupRequest parameters) {
Mono>> mono =
- validateForBackupWithResponseAsync(vaultName, resourceGroupName, parameters);
+ validateForBackupWithResponseAsync(resourceGroupName, vaultName, parameters);
return this
.client
.getLroResult(
@@ -1586,28 +1687,28 @@ private Mono>> validateForBackupWithResponseAsync(
this.client.getHttpPipeline(),
OperationJobExtendedInfoInner.class,
OperationJobExtendedInfoInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link PollerFlux} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationJobExtendedInfoInner>
beginValidateForBackupAsync(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters, Context context) {
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters, Context context) {
context = this.client.mergeContext(context);
Mono>> mono =
- validateForBackupWithResponseAsync(vaultName, resourceGroupName, parameters, context);
+ validateForBackupWithResponseAsync(resourceGroupName, vaultName, parameters, context);
return this
.client
.getLroResult(
@@ -1621,53 +1722,53 @@ private Mono>> validateForBackupWithResponseAsync(
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller