scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -193,6 +229,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 +249,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 +293,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 +332,11 @@ public DataProtectionManager authenticate(TokenCredential credential, AzureProfi
}
}
- /** @return Resource collection API of BackupVaults. */
+ /**
+ * Gets the resource collection API of BackupVaults. It manages BackupVaultResource.
+ *
+ * @return Resource collection API of BackupVaults.
+ */
public BackupVaults backupVaults() {
if (this.backupVaults == null) {
this.backupVaults = new BackupVaultsImpl(clientObject.getBackupVaults(), this);
@@ -284,7 +344,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 +356,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 +368,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 +408,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 +420,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 +433,11 @@ public DataProtectionOperations dataProtectionOperations() {
return dataProtectionOperations;
}
- /** @return Resource collection API of BackupPolicies. */
+ /**
+ * Gets the resource collection API of BackupPolicies. It manages BaseBackupPolicyResource.
+ *
+ * @return Resource collection API of BackupPolicies.
+ */
public BackupPolicies backupPolicies() {
if (this.backupPolicies == null) {
this.backupPolicies = new BackupPoliciesImpl(clientObject.getBackupPolicies(), this);
@@ -334,7 +445,11 @@ public BackupPolicies backupPolicies() {
return backupPolicies;
}
- /** @return Resource collection API of BackupInstances. */
+ /**
+ * Gets the resource collection API of BackupInstances. It manages BackupInstanceResource.
+ *
+ * @return Resource collection API of BackupInstances.
+ */
public BackupInstances backupInstances() {
if (this.backupInstances == null) {
this.backupInstances = new BackupInstancesImpl(clientObject.getBackupInstances(), this);
@@ -342,7 +457,24 @@ public BackupInstances backupInstances() {
return backupInstances;
}
- /** @return Resource collection API of RecoveryPoints. */
+ /**
+ * Gets the resource collection API of BackupInstancesExtensionRoutings.
+ *
+ * @return Resource collection API of BackupInstancesExtensionRoutings.
+ */
+ public BackupInstancesExtensionRoutings backupInstancesExtensionRoutings() {
+ if (this.backupInstancesExtensionRoutings == null) {
+ this.backupInstancesExtensionRoutings =
+ new BackupInstancesExtensionRoutingsImpl(clientObject.getBackupInstancesExtensionRoutings(), this);
+ }
+ return backupInstancesExtensionRoutings;
+ }
+
+ /**
+ * 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 +482,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 +494,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 +506,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 +518,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 +531,24 @@ public ExportJobsOperationResults exportJobsOperationResults() {
return exportJobsOperationResults;
}
- /** @return Resource collection API of ResourceGuards. */
+ /**
+ * Gets the resource collection API of DeletedBackupInstances.
+ *
+ * @return Resource collection API of DeletedBackupInstances.
+ */
+ public DeletedBackupInstances deletedBackupInstances() {
+ if (this.deletedBackupInstances == null) {
+ this.deletedBackupInstances =
+ new DeletedBackupInstancesImpl(clientObject.getDeletedBackupInstances(), this);
+ }
+ return deletedBackupInstances;
+ }
+
+ /**
+ * Gets the resource collection API of ResourceGuards. It manages ResourceGuardResource.
+ *
+ * @return Resource collection API of ResourceGuards.
+ */
public ResourceGuards resourceGuards() {
if (this.resourceGuards == null) {
this.resourceGuards = new ResourceGuardsImpl(clientObject.getResourceGuards(), this);
@@ -391,6 +556,19 @@ public ResourceGuards resourceGuards() {
return resourceGuards;
}
+ /**
+ * Gets the resource collection API of DppResourceGuardProxies. It manages ResourceGuardProxyBaseResource.
+ *
+ * @return Resource collection API of DppResourceGuardProxies.
+ */
+ public DppResourceGuardProxies dppResourceGuardProxies() {
+ if (this.dppResourceGuardProxies == null) {
+ this.dppResourceGuardProxies =
+ new DppResourceGuardProxiesImpl(clientObject.getDppResourceGuardProxies(), this);
+ }
+ return dppResourceGuardProxies;
+ }
+
/**
* @return Wrapped service client DataProtectionClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
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..4321f88365c5 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,93 +25,93 @@ 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.
+ * @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)
- BackupInstanceResourceInner get(String vaultName, String resourceGroupName, String backupInstanceName);
+ Response getWithResponse(
+ String resourceGroupName, String vaultName, String backupInstanceName, 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.
- * @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context);
+ BackupInstanceResourceInner get(String resourceGroupName, String vaultName, String backupInstanceName);
/**
* 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.
+ * @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);
+
+ /**
+ * 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);
/**
* 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,357 @@ 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 backup for a backup instance and retains the backup data as per the policy (except
+ * latest Recovery point, which will be retained 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> beginSuspendBackups(
+ String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will stop backup for a backup instance and retains the backup data as per the policy (except
+ * latest Recovery point, which will be retained 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> beginSuspendBackups(
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will stop backup for a backup instance and retains the backup data as per the policy (except
+ * latest Recovery point, which will be retained 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 suspendBackups(String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will stop backup for a backup instance and retains the backup data as per the policy (except
+ * latest Recovery point, which will be retained 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 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 +884,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 +895,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 +912,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/BackupInstancesExtensionRoutingsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesExtensionRoutingsClient.java
new file mode 100644
index 000000000000..af8701a3964a
--- /dev/null
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesExtensionRoutingsClient.java
@@ -0,0 +1,43 @@
+// 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.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dataprotection.fluent.models.BackupInstanceResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in BackupInstancesExtensionRoutingsClient.
+ */
+public interface BackupInstancesExtensionRoutingsClient {
+ /**
+ * Gets a list backup instances associated with a tracked resource.
+ *
+ * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list backup instances associated with a tracked resource as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceId);
+
+ /**
+ * Gets a list backup instances associated with a tracked resource.
+ *
+ * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list backup instances associated with a tracked resource as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceId, 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..b9da62a3fd43 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,123 +16,123 @@ 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.
+ * @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)
- BaseBackupPolicyResourceInner get(String vaultName, String resourceGroupName, String backupPolicyName);
+ Response getWithResponse(
+ String resourceGroupName, String vaultName, String backupPolicyName, 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.
- * @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String vaultName, String resourceGroupName, String backupPolicyName, Context context);
+ BaseBackupPolicyResourceInner get(String resourceGroupName, String vaultName, String backupPolicyName);
/**
* 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)
- BaseBackupPolicyResourceInner createOrUpdate(
- String vaultName, String resourceGroupName, String backupPolicyName, BaseBackupPolicyResourceInner parameters);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String vaultName,
+ String backupPolicyName,
+ BaseBackupPolicyResourceInner parameters,
+ 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.
- * @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String vaultName,
- String resourceGroupName,
- String backupPolicyName,
- BaseBackupPolicyResourceInner parameters,
- Context context);
+ BaseBackupPolicyResourceInner createOrUpdate(
+ String resourceGroupName, String vaultName, String backupPolicyName, BaseBackupPolicyResourceInner parameters);
/**
* 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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String vaultName, String resourceGroupName, String backupPolicyName);
+ Response deleteWithResponse(
+ String resourceGroupName, String vaultName, String backupPolicyName, Context context);
/**
* 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String vaultName, String resourceGroupName, String backupPolicyName, Context context);
+ void delete(String resourceGroupName, String vaultName, String backupPolicyName);
}
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..5cfb7bead114 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,28 +13,32 @@
/** 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.
+ * The get operation.
+ *
* @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 backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BackupVaultResourceInner get(String vaultName, String resourceGroupName, String operationId);
+ BackupVaultOperationResultsGetResponse getWithResponse(
+ String resourceGroupName, String vaultName, String operationId, Context context);
/**
- * @param vaultName The name of the backup vault.
+ * The get operation.
+ *
* @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 backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BackupVaultOperationResultsGetResponse getWithResponse(
- String vaultName, String resourceGroupName, String operationId, Context context);
+ BackupVaultResourceInner get(String resourceGroupName, String vaultName, String operationId);
}
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..114a44b6de8b 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);
@@ -70,65 +70,65 @@ public interface BackupVaultsClient {
*
* @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 backupVault Resource.
+ * @return backupVault Resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BackupVaultResourceInner getByResourceGroup(String resourceGroupName, String vaultName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String vaultName, Context context);
/**
* Returns a resource belonging to a resource group.
*
* @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 backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String vaultName, Context context);
+ BackupVaultResourceInner getByResourceGroup(String resourceGroupName, String vaultName);
/**
* 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,70 +153,70 @@ 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.
*
* @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 the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String vaultName);
+ Response deleteWithResponse(String resourceGroupName, String vaultName, Context context);
/**
* Deletes a BackupVault resource from the resource group.
*
* @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 the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String vaultName, Context context);
+ void delete(String resourceGroupName, String vaultName);
/**
* 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.
@@ -248,14 +248,15 @@ BackupVaultResourceInner update(
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param location The location in which uniqueness will be verified.
* @param parameters Check name availability request.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return checkNameAvailabilityResult.
+ * @return checkNameAvailabilityResult along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CheckNameAvailabilityResultInner checkNameAvailability(
- String resourceGroupName, String location, CheckNameAvailabilityRequest parameters);
+ Response checkNameAvailabilityWithResponse(
+ String resourceGroupName, String location, CheckNameAvailabilityRequest parameters, Context context);
/**
* API to check for resource name availability.
@@ -263,13 +264,12 @@ CheckNameAvailabilityResultInner checkNameAvailability(
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param location The location in which uniqueness will be verified.
* @param parameters Check name availability request.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return checkNameAvailabilityResult.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response checkNameAvailabilityWithResponse(
- String resourceGroupName, String location, CheckNameAvailabilityRequest parameters, Context context);
+ CheckNameAvailabilityResultInner checkNameAvailability(
+ String resourceGroupName, String location, CheckNameAvailabilityRequest parameters);
}
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..5b76dacfed81 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.
*
@@ -100,6 +114,13 @@ public interface DataProtectionClient {
*/
BackupInstancesClient getBackupInstances();
+ /**
+ * Gets the BackupInstancesExtensionRoutingsClient object to access its operations.
+ *
+ * @return the BackupInstancesExtensionRoutingsClient object.
+ */
+ BackupInstancesExtensionRoutingsClient getBackupInstancesExtensionRoutings();
+
/**
* Gets the RecoveryPointsClient object to access its operations.
*
@@ -135,10 +156,24 @@ public interface DataProtectionClient {
*/
ExportJobsOperationResultsClient getExportJobsOperationResults();
+ /**
+ * Gets the DeletedBackupInstancesClient object to access its operations.
+ *
+ * @return the DeletedBackupInstancesClient object.
+ */
+ DeletedBackupInstancesClient getDeletedBackupInstances();
+
/**
* Gets the ResourceGuardsClient object to access its operations.
*
* @return the ResourceGuardsClient object.
*/
ResourceGuardsClient getResourceGuards();
+
+ /**
+ * Gets the DppResourceGuardProxiesClient object to access its operations.
+ *
+ * @return the DppResourceGuardProxiesClient object.
+ */
+ DppResourceGuardProxiesClient getDppResourceGuardProxies();
}
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..63984448d84a 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
@@ -18,26 +18,26 @@ public interface DataProtectionsClient {
*
* @param location The location parameter.
* @param parameters Feature support request object.
+ * @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 base class for Backup Feature support.
+ * @return base class for Backup Feature support along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FeatureValidationResponseBaseInner checkFeatureSupport(String location, FeatureValidationRequestBase parameters);
+ Response checkFeatureSupportWithResponse(
+ String location, FeatureValidationRequestBase parameters, Context context);
/**
* Validates if a feature is supported.
*
* @param location The location parameter.
* @param parameters Feature support request object.
- * @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 base class for Backup Feature support.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response checkFeatureSupportWithResponse(
- String location, FeatureValidationRequestBase parameters, Context context);
+ FeatureValidationResponseBaseInner checkFeatureSupport(String location, FeatureValidationRequestBase parameters);
}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DeletedBackupInstancesClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DeletedBackupInstancesClient.java
new file mode 100644
index 000000000000..bc0509285672
--- /dev/null
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DeletedBackupInstancesClient.java
@@ -0,0 +1,132 @@
+// 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.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.dataprotection.fluent.models.DeletedBackupInstanceResourceInner;
+
+/** An instance of this class provides access to all the operations defined in DeletedBackupInstancesClient. */
+public interface DeletedBackupInstancesClient {
+ /**
+ * Gets deleted backup instances belonging to a 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 deleted backup instances belonging to a backup vault as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String vaultName);
+
+ /**
+ * Gets deleted backup instances belonging to a 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 deleted backup instances belonging to a backup vault as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String vaultName, Context context);
+
+ /**
+ * Gets a deleted backup instance with name in a 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 deleted 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 deleted backup instance with name in a backup vault along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * Gets a deleted backup instance with name in a 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 deleted 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 a deleted backup instance with name in a backup vault.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeletedBackupInstanceResourceInner get(String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * The undelete 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 name of the deleted 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUndelete(
+ String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * The undelete 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 name of the deleted 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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUndelete(
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * The undelete 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 name of the deleted 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 undelete(String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * The undelete 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 name of the deleted 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void undelete(String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppResourceGuardProxiesClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppResourceGuardProxiesClient.java
new file mode 100644
index 000000000000..93e3fd0a63df
--- /dev/null
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppResourceGuardProxiesClient.java
@@ -0,0 +1,181 @@
+// 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.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardProxyBaseResourceInner;
+import com.azure.resourcemanager.dataprotection.fluent.models.UnlockDeleteResponseInner;
+import com.azure.resourcemanager.dataprotection.models.UnlockDeleteRequest;
+
+/** An instance of this class provides access to all the operations defined in DppResourceGuardProxiesClient. */
+public interface DppResourceGuardProxiesClient {
+ /**
+ * The list operation.
+ *
+ * @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 list of ResourceGuardProxyBase resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String vaultName);
+
+ /**
+ * The list operation.
+ *
+ * @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 list of ResourceGuardProxyBase resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String vaultName, Context context);
+
+ /**
+ * The get operation.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param resourceGuardProxyName The resourceGuardProxyName 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 body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String vaultName, String resourceGuardProxyName, Context context);
+
+ /**
+ * The get operation.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param resourceGuardProxyName The resourceGuardProxyName 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceGuardProxyBaseResourceInner get(String resourceGroupName, String vaultName, String resourceGuardProxyName);
+
+ /**
+ * The put operation.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param resourceGuardProxyName The resourceGuardProxyName 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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response putWithResponse(
+ String resourceGroupName,
+ String vaultName,
+ String resourceGuardProxyName,
+ ResourceGuardProxyBaseResourceInner parameters,
+ Context context);
+
+ /**
+ * The put operation.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param resourceGuardProxyName The resourceGuardProxyName 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceGuardProxyBaseResourceInner put(
+ String resourceGroupName,
+ String vaultName,
+ String resourceGuardProxyName,
+ ResourceGuardProxyBaseResourceInner parameters);
+
+ /**
+ * The delete operation.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param resourceGuardProxyName The resourceGuardProxyName 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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(
+ String resourceGroupName, String vaultName, String resourceGuardProxyName, Context context);
+
+ /**
+ * The delete operation.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param resourceGuardProxyName The resourceGuardProxyName 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 resourceGroupName, String vaultName, String resourceGuardProxyName);
+
+ /**
+ * The unlockDelete operation.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param resourceGuardProxyName The resourceGuardProxyName 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 response of Unlock Delete API along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response unlockDeleteWithResponse(
+ String resourceGroupName,
+ String vaultName,
+ String resourceGuardProxyName,
+ UnlockDeleteRequest parameters,
+ Context context);
+
+ /**
+ * The unlockDelete operation.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param resourceGuardProxyName The resourceGuardProxyName 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 response of Unlock Delete API.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ UnlockDeleteResponseInner unlockDelete(
+ String resourceGroupName, String vaultName, String resourceGuardProxyName, UnlockDeleteRequest parameters);
+}
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..fc3c165c2cca 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
@@ -20,13 +20,15 @@ public interface ExportJobsOperationResultsClient {
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
* @param operationId OperationID which represents the export job.
+ * @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 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)
- ExportJobsResultInner get(String resourceGroupName, String vaultName, String operationId);
+ Response getWithResponse(
+ String resourceGroupName, String vaultName, String operationId, Context context);
/**
* Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also
@@ -36,13 +38,11 @@ public interface ExportJobsOperationResultsClient {
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
* @param operationId OperationID which represents the export job.
- * @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 result of operation triggered by Export Jobs API.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String vaultName, String operationId, Context context);
+ ExportJobsResultInner get(String resourceGroupName, String vaultName, String operationId);
}
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..463fb218b2ba 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);
@@ -46,13 +46,15 @@ public interface JobsClient {
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
* @param jobId The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
+ * @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 job with id in a backup vault.
+ * @return a job with id in a backup vault along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AzureBackupJobResourceInner get(String resourceGroupName, String vaultName, String jobId);
+ Response getWithResponse(
+ String resourceGroupName, String vaultName, String jobId, Context context);
/**
* Gets a job with id in a backup vault.
@@ -60,13 +62,11 @@ public interface JobsClient {
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
* @param jobId The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
- * @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 job with id in a backup vault.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String vaultName, String jobId, Context context);
+ AzureBackupJobResourceInner get(String resourceGroupName, String vaultName, String jobId);
}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationResultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationResultsClient.java
index 2660819b302d..b9abb974daf8 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationResultsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationResultsClient.java
@@ -13,29 +13,33 @@
/** An instance of this class provides access to all the operations defined in OperationResultsClient. */
public interface OperationResultsClient {
/**
- * Gets the operation result for a resource.
+ * Gets the operation status for a resource.
+ *
+ * Gets the operation result for a resource.
*
* @param operationId The operationId parameter.
* @param location The location 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 result for a resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationJobExtendedInfoInner get(String operationId, String location);
+ OperationResultsGetResponse getWithResponse(String operationId, String location, Context context);
/**
- * Gets the operation result for a resource.
+ * Gets the operation status for a resource.
+ *
+ *
Gets the operation result for a resource.
*
* @param operationId The operationId parameter.
* @param location The location 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 result for a resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationResultsGetResponse getWithResponse(String operationId, String location, Context context);
+ OperationJobExtendedInfoInner get(String operationId, String location);
}
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..4c04f6d9dce8
--- /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.
+ * @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);
+
+ /**
+ * 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);
+}
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..9a726e19a266 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
@@ -17,25 +17,25 @@ public interface OperationStatusClient {
*
* @param location The location 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 the operation status for a resource.
+ * @return the operation status for a resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationResourceInner get(String location, String operationId);
+ Response getWithResponse(String location, String operationId, Context context);
/**
* Gets the operation status for a resource.
*
* @param location The location 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 the operation status for a resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String location, String operationId, Context context);
+ OperationResourceInner get(String location, String operationId);
}
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..472d40349e45
--- /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.
+ * @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);
+
+ /**
+ * 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);
+}
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..ccc9f82d795b 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,33 +54,33 @@ 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.
+ * @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)
- AzureBackupRecoveryPointResourceInner get(
- String vaultName, String resourceGroupName, String backupInstanceName, String recoveryPointId);
+ Response getWithResponse(
+ String resourceGroupName, String vaultName, String backupInstanceName, String recoveryPointId, Context context);
/**
* 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String vaultName, String resourceGroupName, String backupInstanceName, String recoveryPointId, Context context);
+ AzureBackupRecoveryPointResourceInner get(
+ String resourceGroupName, String vaultName, String backupInstanceName, String recoveryPointId);
}
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..f61273aef70d 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);
@@ -68,14 +68,15 @@ public interface ResourceGuardsClient {
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param resourceGuardsName The name of ResourceGuard.
* @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 response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ResourceGuardResourceInner put(
- String resourceGroupName, String resourceGuardsName, ResourceGuardResourceInner parameters);
+ Response putWithResponse(
+ String resourceGroupName, String resourceGuardsName, ResourceGuardResourceInner parameters, Context context);
/**
* Creates or updates a ResourceGuard resource belonging to a resource group.
@@ -83,69 +84,68 @@ ResourceGuardResourceInner put(
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param resourceGuardsName The name of ResourceGuard.
* @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 response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response putWithResponse(
- String resourceGroupName, String resourceGuardsName, ResourceGuardResourceInner parameters, Context context);
+ ResourceGuardResourceInner put(
+ String resourceGroupName, String resourceGuardsName, ResourceGuardResourceInner parameters);
/**
* Returns a ResourceGuard belonging to a resource group.
*
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param resourceGuardsName The name of ResourceGuard.
+ * @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 response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ResourceGuardResourceInner getByResourceGroup(String resourceGroupName, String resourceGuardsName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String resourceGuardsName, Context context);
/**
* Returns a ResourceGuard belonging to a resource group.
*
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param resourceGuardsName The name of ResourceGuard.
- * @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String resourceGuardsName, Context context);
+ ResourceGuardResourceInner getByResourceGroup(String resourceGroupName, String resourceGuardsName);
/**
* Deletes a ResourceGuard resource from the resource group.
*
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param resourceGuardsName The name of ResourceGuard.
+ * @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 Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String resourceGuardsName);
+ Response deleteWithResponse(String resourceGroupName, String resourceGuardsName, Context context);
/**
* Deletes a ResourceGuard resource from the resource group.
*
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param resourceGuardsName The name of ResourceGuard.
- * @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String resourceGuardsName, Context context);
+ void delete(String resourceGroupName, String resourceGuardsName);
/**
* Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a resource.
@@ -153,14 +153,15 @@ Response getByResourceGroupWithResponse(
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param resourceGuardsName The name of ResourceGuard.
* @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 response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ResourceGuardResourceInner patch(
- String resourceGroupName, String resourceGuardsName, PatchResourceRequestInput parameters);
+ Response patchWithResponse(
+ String resourceGroupName, String resourceGuardsName, PatchResourceRequestInput parameters, Context context);
/**
* Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a resource.
@@ -168,15 +169,14 @@ ResourceGuardResourceInner patch(
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param resourceGuardsName The name of ResourceGuard.
* @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 response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response patchWithResponse(
- String resourceGroupName, String resourceGuardsName, PatchResourceRequestInput parameters, Context context);
+ ResourceGuardResourceInner patch(
+ String resourceGroupName, String resourceGuardsName, PatchResourceRequestInput parameters);
/**
* Returns collection of operation request objects for a critical operation protected by the given ResourceGuard
@@ -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,28 +358,12 @@ 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(
String resourceGroupName, String resourceGuardsName, Context context);
- /**
- * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard
- * resource.
- *
- * @param resourceGroupName The name of the resource group where the backup vault is present.
- * @param resourceGuardsName The resourceGuardsName parameter.
- * @param requestName The requestName 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 base resource under Microsoft.DataProtection provider namespace.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DppBaseResourceInner getDefaultDisableSoftDeleteRequestsObject(
- String resourceGroupName, String resourceGuardsName, String requestName);
-
/**
* Returns collection of operation request objects for a critical operation protected by the given ResourceGuard
* resource.
@@ -391,7 +375,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(
@@ -410,7 +394,7 @@ Response getDefaultDisableSoftDeleteRequestsObjectWithResp
* @return base resource under Microsoft.DataProtection provider namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DppBaseResourceInner getDefaultDeleteResourceGuardProxyRequestsObject(
+ DppBaseResourceInner getDefaultDisableSoftDeleteRequestsObject(
String resourceGroupName, String resourceGuardsName, String requestName);
/**
@@ -424,7 +408,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(
@@ -443,7 +427,7 @@ Response getDefaultDeleteResourceGuardProxyRequestsObjectW
* @return base resource under Microsoft.DataProtection provider namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DppBaseResourceInner getDefaultBackupSecurityPinRequestsObject(
+ DppBaseResourceInner getDefaultDeleteResourceGuardProxyRequestsObject(
String resourceGroupName, String resourceGuardsName, String requestName);
/**
@@ -457,7 +441,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(
@@ -476,7 +460,7 @@ Response getDefaultBackupSecurityPinRequestsObjectWithResp
* @return base resource under Microsoft.DataProtection provider namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DppBaseResourceInner getDefaultDeleteProtectedItemRequestsObject(
+ DppBaseResourceInner getDefaultBackupSecurityPinRequestsObject(
String resourceGroupName, String resourceGuardsName, String requestName);
/**
@@ -490,7 +474,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(
@@ -509,7 +493,7 @@ Response getDefaultDeleteProtectedItemRequestsObjectWithRe
* @return base resource under Microsoft.DataProtection provider namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DppBaseResourceInner getDefaultUpdateProtectionPolicyRequestsObject(
+ DppBaseResourceInner getDefaultDeleteProtectedItemRequestsObject(
String resourceGroupName, String resourceGuardsName, String requestName);
/**
@@ -523,7 +507,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(
@@ -542,7 +526,7 @@ Response getDefaultUpdateProtectionPolicyRequestsObjectWit
* @return base resource under Microsoft.DataProtection provider namespace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DppBaseResourceInner getDefaultUpdateProtectedItemRequestsObject(
+ DppBaseResourceInner getDefaultUpdateProtectionPolicyRequestsObject(
String resourceGroupName, String resourceGuardsName, String requestName);
/**
@@ -556,9 +540,25 @@ 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(
String resourceGroupName, String resourceGuardsName, String requestName, Context context);
+
+ /**
+ * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard
+ * resource.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param resourceGuardsName The resourceGuardsName parameter.
+ * @param requestName The requestName 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 base resource under Microsoft.DataProtection provider namespace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DppBaseResourceInner getDefaultUpdateProtectedItemRequestsObject(
+ String resourceGroupName, String resourceGuardsName, String requestName);
}
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..435034a8dec5 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,38 +14,42 @@
/** 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.
+ * The find 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 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)
- AzureBackupFindRestorableTimeRangesResponseResourceInner find(
- String vaultName,
+ Response findWithResponse(
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
- AzureBackupFindRestorableTimeRangesRequest parameters);
+ AzureBackupFindRestorableTimeRangesRequest parameters,
+ Context context);
/**
- * @param vaultName The name of the backup vault.
+ * The find 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 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response findWithResponse(
- String vaultName,
+ AzureBackupFindRestorableTimeRangesResponseResourceInner find(
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
- AzureBackupFindRestorableTimeRangesRequest parameters,
- Context context);
+ AzureBackupFindRestorableTimeRangesRequest parameters);
}
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..5d5189d4ce27 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,25 +5,23 @@
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
*/
@JsonProperty(value = "properties")
private AzureBackupFindRestorableTimeRangesResponse properties;
+ /** Creates an instance of AzureBackupFindRestorableTimeRangesResponseResourceInner class. */
+ public AzureBackupFindRestorableTimeRangesResponseResourceInner() {
+ }
+
/**
* Get the properties property: 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..17d703c255ba 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,23 +5,23 @@
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
*/
@JsonProperty(value = "properties")
private AzureBackupJob properties;
+ /** Creates an instance of AzureBackupJobResourceInner class. */
+ public AzureBackupJobResourceInner() {
+ }
+
/**
* Get the properties property: 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..8cb518ce0001 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,25 +5,33 @@
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. */
+/**
+ * AzureBackupRecoveryPointResource
+ *
+ * Azure backup recoveryPoint resource.
+ */
@Fluent
public final class AzureBackupRecoveryPointResourceInner extends DppResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBackupRecoveryPointResourceInner.class);
-
/*
- * AzureBackupRecoveryPoint AzureBackupRecoveryPointResource properties
+ * AzureBackupRecoveryPoint
+ *
+ * AzureBackupRecoveryPointResource properties
*/
@JsonProperty(value = "properties")
private AzureBackupRecoveryPoint properties;
+ /** Creates an instance of AzureBackupRecoveryPointResourceInner class. */
+ public AzureBackupRecoveryPointResourceInner() {
+ }
+
/**
- * Get the properties property: AzureBackupRecoveryPoint AzureBackupRecoveryPointResource properties.
+ * Get the properties property: AzureBackupRecoveryPoint
+ *
+ *
AzureBackupRecoveryPointResource properties.
*
* @return the properties value.
*/
@@ -32,7 +40,9 @@ public AzureBackupRecoveryPoint properties() {
}
/**
- * Set the properties property: AzureBackupRecoveryPoint AzureBackupRecoveryPointResource properties.
+ * Set the properties property: AzureBackupRecoveryPoint
+ *
+ *
AzureBackupRecoveryPointResource properties.
*
* @param properties the properties value to set.
* @return the AzureBackupRecoveryPointResourceInner object itself.
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..e02f5028b7d1 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,23 +5,28 @@
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.azure.resourcemanager.dataprotection.models.DppProxyResource;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
-/** BackupInstanceResource BackupInstance Resource. */
+/**
+ * BackupInstanceResource
+ *
+ *
BackupInstance Resource.
+ */
@Fluent
-public final class BackupInstanceResourceInner extends DppResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupInstanceResourceInner.class);
-
+public final class BackupInstanceResourceInner extends DppProxyResource {
/*
* BackupInstanceResource properties
*/
@JsonProperty(value = "properties")
private BackupInstance properties;
+ /** Creates an instance of BackupInstanceResourceInner class. */
+ public BackupInstanceResourceInner() {
+ }
+
/**
* Get the properties property: BackupInstanceResource properties.
*
@@ -42,6 +47,13 @@ public BackupInstanceResourceInner withProperties(BackupInstance properties) {
return this;
}
+ /** {@inheritDoc} */
+ @Override
+ public BackupInstanceResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
/**
* Validates the instance.
*
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..5dd507b2ed23 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,23 +9,32 @@
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. */
+/**
+ * BackupVault Resource
+ *
+ * Backup Vault Resource.
+ */
@Fluent
public final class BackupVaultResourceInner extends DppTrackedResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupVaultResourceInner.class);
-
/*
- * BackupVault BackupVaultResource properties
+ * BackupVault
+ *
+ * BackupVaultResource properties
*/
@JsonProperty(value = "properties", required = true)
private BackupVault properties;
+ /** Creates an instance of BackupVaultResourceInner class. */
+ public BackupVaultResourceInner() {
+ }
+
/**
- * Get the properties property: BackupVault BackupVaultResource properties.
+ * Get the properties property: BackupVault
+ *
+ *
BackupVaultResource properties.
*
* @return the properties value.
*/
@@ -34,7 +43,9 @@ public BackupVault properties() {
}
/**
- * Set the properties property: BackupVault BackupVaultResource properties.
+ * Set the properties property: BackupVault
+ *
+ *
BackupVaultResource properties.
*
* @param properties the properties value to set.
* @return the BackupVaultResourceInner object itself.
@@ -81,7 +92,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 +100,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..2212727fe07e 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,25 +5,33 @@
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. */
+/**
+ * BaseBackupPolicyResource
+ *
+ * BaseBackupPolicy resource.
+ */
@Fluent
public final class BaseBackupPolicyResourceInner extends DppResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BaseBackupPolicyResourceInner.class);
-
/*
- * BaseBackupPolicy BaseBackupPolicyResource properties
+ * BaseBackupPolicy
+ *
+ * BaseBackupPolicyResource properties
*/
@JsonProperty(value = "properties")
private BaseBackupPolicy properties;
+ /** Creates an instance of BaseBackupPolicyResourceInner class. */
+ public BaseBackupPolicyResourceInner() {
+ }
+
/**
- * Get the properties property: BaseBackupPolicy BaseBackupPolicyResource properties.
+ * Get the properties property: BaseBackupPolicy
+ *
+ *
BaseBackupPolicyResource properties.
*
* @return the properties value.
*/
@@ -32,7 +40,9 @@ public BaseBackupPolicy properties() {
}
/**
- * Set the properties property: BaseBackupPolicy BaseBackupPolicyResource properties.
+ * Set the properties property: BaseBackupPolicy
+ *
+ *
BaseBackupPolicyResource properties.
*
* @param properties the properties value to set.
* @return the BaseBackupPolicyResourceInner object itself.
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..7adeff1ad143 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,15 @@
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. */
+/**
+ * CheckNameAvailabilityResult
+ *
+ *
CheckNameAvailability Result.
+ */
@Fluent
public final class CheckNameAvailabilityResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckNameAvailabilityResultInner.class);
-
/*
* Gets or sets the message.
*/
@@ -32,6 +32,10 @@ public final class CheckNameAvailabilityResultInner {
@JsonProperty(value = "reason")
private String reason;
+ /** Creates an instance of CheckNameAvailabilityResultInner class. */
+ public CheckNameAvailabilityResultInner() {
+ }
+
/**
* Get the message property: 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..b7177303fb6d 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,20 +5,21 @@
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. */
+/**
+ * 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
+ * ClientDiscoveryDisplay
+ *
+ * Contains the localized display information for this particular operation
*/
@JsonProperty(value = "display")
private ClientDiscoveryDisplay display;
@@ -36,21 +37,27 @@ public final class ClientDiscoveryValueForSingleApiInner {
private Boolean isDataAction;
/*
- * The intended executor of the operation;governs the display of the
- * operation in the RBAC UX and the audit logs UX
+ * The intended executor of the operation;governs the display of the operation in the RBAC UX and the audit logs UX
*/
@JsonProperty(value = "origin")
private String origin;
/*
- * ClientDiscoveryForProperties Properties for the given operation.
+ * ClientDiscoveryForProperties
+ *
+ * Properties for the given operation.
*/
@JsonProperty(value = "properties")
private ClientDiscoveryForProperties properties;
+ /** Creates an instance of ClientDiscoveryValueForSingleApiInner class. */
+ public ClientDiscoveryValueForSingleApiInner() {
+ }
+
/**
- * Get the display property: ClientDiscoveryDisplay Contains the localized display information for this particular
- * operation.
+ * Get the display property: ClientDiscoveryDisplay
+ *
+ *
Contains the localized display information for this particular operation.
*
* @return the display value.
*/
@@ -59,8 +66,9 @@ public ClientDiscoveryDisplay display() {
}
/**
- * Set the display property: ClientDiscoveryDisplay Contains the localized display information for this particular
- * operation.
+ * Set the display property: ClientDiscoveryDisplay
+ *
+ *
Contains the localized display information for this particular operation.
*
* @param display the display value to set.
* @return the ClientDiscoveryValueForSingleApiInner object itself.
@@ -133,7 +141,9 @@ public ClientDiscoveryValueForSingleApiInner withOrigin(String origin) {
}
/**
- * Get the properties property: ClientDiscoveryForProperties Properties for the given operation.
+ * Get the properties property: ClientDiscoveryForProperties
+ *
+ *
Properties for the given operation.
*
* @return the properties value.
*/
@@ -142,7 +152,9 @@ public ClientDiscoveryForProperties properties() {
}
/**
- * Set the properties property: ClientDiscoveryForProperties Properties for the given operation.
+ * Set the properties property: ClientDiscoveryForProperties
+ *
+ *
Properties for the given operation.
*
* @param properties the properties value to set.
* @return the ClientDiscoveryValueForSingleApiInner object itself.
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DeletedBackupInstanceResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DeletedBackupInstanceResourceInner.java
new file mode 100644
index 000000000000..d43cf4218284
--- /dev/null
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DeletedBackupInstanceResourceInner.java
@@ -0,0 +1,57 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.dataprotection.models.DeletedBackupInstance;
+import com.azure.resourcemanager.dataprotection.models.DppResource;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Deleted Backup Instance. */
+@Fluent
+public final class DeletedBackupInstanceResourceInner extends DppResource {
+ /*
+ * DeletedBackupInstanceResource properties
+ */
+ @JsonProperty(value = "properties")
+ private DeletedBackupInstance properties;
+
+ /** Creates an instance of DeletedBackupInstanceResourceInner class. */
+ public DeletedBackupInstanceResourceInner() {
+ }
+
+ /**
+ * Get the properties property: DeletedBackupInstanceResource properties.
+ *
+ * @return the properties value.
+ */
+ public DeletedBackupInstance properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: DeletedBackupInstanceResource properties.
+ *
+ * @param properties the properties value to set.
+ * @return the DeletedBackupInstanceResourceInner object itself.
+ */
+ public DeletedBackupInstanceResourceInner withProperties(DeletedBackupInstance properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
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..50dd4144fbc8 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.
*/
@@ -27,12 +23,15 @@ public final class DppBaseResourceInner {
private String name;
/*
- * Resource type represents the complete path of the form
- * Namespace/ResourceType/ResourceType/...
+ * Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
+ /** Creates an instance of DppBaseResourceInner class. */
+ public DppBaseResourceInner() {
+ }
+
/**
* Get the id property: 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..2f302711c684 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,18 +5,17 @@
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. */
+/**
+ * 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.
+ * URL of the blob into which the serialized string of list of jobs is exported.
*/
@JsonProperty(value = "blobUrl", access = JsonProperty.Access.WRITE_ONLY)
private String blobUrl;
@@ -39,6 +38,10 @@ public final class ExportJobsResultInner {
@JsonProperty(value = "excelFileBlobSasKey", access = JsonProperty.Access.WRITE_ONLY)
private String excelFileBlobSasKey;
+ /** Creates an instance of ExportJobsResultInner class. */
+ public ExportJobsResultInner() {
+ }
+
/**
* Get the blobUrl property: 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..adea05edb0ae 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,7 +20,9 @@
@JsonSubTypes({@JsonSubTypes.Type(name = "FeatureValidationResponse", value = FeatureValidationResponse.class)})
@Immutable
public class FeatureValidationResponseBaseInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(FeatureValidationResponseBaseInner.class);
+ /** Creates an instance of FeatureValidationResponseBaseInner class. */
+ public FeatureValidationResponseBaseInner() {
+ }
/**
* 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..8fcec9539b9e 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,26 +5,30 @@
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;
-/** OperationJobExtendedInfo Operation Job Extended Info. */
+/**
+ * OperationJobExtendedInfo
+ *
+ *
Operation Job Extended Info.
+ */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "objectType")
@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.
*/
@JsonProperty(value = "jobId")
private String jobId;
+ /** Creates an instance of OperationJobExtendedInfoInner class. */
+ public OperationJobExtendedInfoInner() {
+ }
+
/**
* Get the jobId property: 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..b4a756ef7ea3 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,17 @@
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. */
+/**
+ * OperationResource
+ *
+ *
Operation Resource.
+ */
@Fluent
public final class OperationResourceInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationResourceInner.class);
-
/*
* End time of the operation
*/
@@ -24,11 +24,9 @@ public final class OperationResourceInner {
private OffsetDateTime endTime;
/*
- * Required if status == failed or status == canceled. This is the OData v4
- * error format, used by the RPC and will go into the v2.2 Azure REST API
- * guidelines.
- * The full set of optional properties (e.g. inner errors / details) can be
- * found in the "Error Response" section.
+ * Required if status == failed or status == canceled. This is the OData v4 error format, used by the RPC and will
+ * go into the v2.2 Azure REST API guidelines.
+ * The full set of optional properties (e.g. inner errors / details) can be found in the "Error Response" section.
*/
@JsonProperty(value = "error")
private ManagementError error;
@@ -40,14 +38,15 @@ public final class OperationResourceInner {
private String id;
/*
- * It must match the last segment of the "id" field, and will typically be
- * a GUID / system generated value
+ * It must match the last segment of the "id" field, and will typically be a GUID / system generated value
*/
@JsonProperty(value = "name")
private String name;
/*
- * OperationExtendedInfo End time of the operation
+ * OperationExtendedInfo
+ *
+ * End time of the operation
*/
@JsonProperty(value = "properties")
private OperationExtendedInfo properties;
@@ -64,6 +63,10 @@ public final class OperationResourceInner {
@JsonProperty(value = "status")
private String status;
+ /** Creates an instance of OperationResourceInner class. */
+ public OperationResourceInner() {
+ }
+
/**
* Get the endTime property: End time of the operation.
*
@@ -151,7 +154,9 @@ public OperationResourceInner withName(String name) {
}
/**
- * Get the properties property: OperationExtendedInfo End time of the operation.
+ * Get the properties property: OperationExtendedInfo
+ *
+ *
End time of the operation.
*
* @return the properties value.
*/
@@ -160,7 +165,9 @@ public OperationExtendedInfo properties() {
}
/**
- * Set the properties property: OperationExtendedInfo End time of the operation.
+ * Set the properties property: OperationExtendedInfo
+ *
+ *
End time of the operation.
*
* @param properties the properties value to set.
* @return the OperationResourceInner object itself.
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardProxyBaseResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardProxyBaseResourceInner.java
new file mode 100644
index 000000000000..23d0e34c42ef
--- /dev/null
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardProxyBaseResourceInner.java
@@ -0,0 +1,57 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.dataprotection.models.DppResource;
+import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBase;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The ResourceGuardProxyBaseResource model. */
+@Fluent
+public final class ResourceGuardProxyBaseResourceInner extends DppResource {
+ /*
+ * ResourceGuardProxyBaseResource properties
+ */
+ @JsonProperty(value = "properties")
+ private ResourceGuardProxyBase properties;
+
+ /** Creates an instance of ResourceGuardProxyBaseResourceInner class. */
+ public ResourceGuardProxyBaseResourceInner() {
+ }
+
+ /**
+ * Get the properties property: ResourceGuardProxyBaseResource properties.
+ *
+ * @return the properties value.
+ */
+ public ResourceGuardProxyBase properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: ResourceGuardProxyBaseResource properties.
+ *
+ * @param properties the properties value to set.
+ * @return the ResourceGuardProxyBaseResourceInner object itself.
+ */
+ public ResourceGuardProxyBaseResourceInner withProperties(ResourceGuardProxyBase properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
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..3c4c354bd647 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,25 +5,25 @@
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
*/
@JsonProperty(value = "properties")
private ResourceGuard properties;
+ /** Creates an instance of ResourceGuardResourceInner class. */
+ public ResourceGuardResourceInner() {
+ }
+
/**
* Get the properties property: ResourceGuardResource properties.
*
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/UnlockDeleteResponseInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/UnlockDeleteResponseInner.java
new file mode 100644
index 000000000000..3a18c252bb9a
--- /dev/null
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/UnlockDeleteResponseInner.java
@@ -0,0 +1,50 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Response of Unlock Delete API. */
+@Fluent
+public final class UnlockDeleteResponseInner {
+ /*
+ * This is the time when unlock delete privileges will get expired.
+ */
+ @JsonProperty(value = "unlockDeleteExpiryTime")
+ private String unlockDeleteExpiryTime;
+
+ /** Creates an instance of UnlockDeleteResponseInner class. */
+ public UnlockDeleteResponseInner() {
+ }
+
+ /**
+ * Get the unlockDeleteExpiryTime property: This is the time when unlock delete privileges will get expired.
+ *
+ * @return the unlockDeleteExpiryTime value.
+ */
+ public String unlockDeleteExpiryTime() {
+ return this.unlockDeleteExpiryTime;
+ }
+
+ /**
+ * Set the unlockDeleteExpiryTime property: This is the time when unlock delete privileges will get expired.
+ *
+ * @param unlockDeleteExpiryTime the unlockDeleteExpiryTime value to set.
+ * @return the UnlockDeleteResponseInner object itself.
+ */
+ public UnlockDeleteResponseInner withUnlockDeleteExpiryTime(String unlockDeleteExpiryTime) {
+ this.unlockDeleteExpiryTime = unlockDeleteExpiryTime;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
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..e88d4d1159de 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,8 +12,11 @@
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;
+import java.util.Collections;
+import java.util.Map;
public final class BackupInstanceResourceImpl
implements BackupInstanceResource, BackupInstanceResource.Definition, BackupInstanceResource.Update {
@@ -33,6 +36,15 @@ public String type() {
return this.innerModel().type();
}
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
public SystemData systemData() {
return this.innerModel().systemData();
}
@@ -41,6 +53,10 @@ public BackupInstance properties() {
return this.innerModel().properties();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public BackupInstanceResourceInner innerModel() {
return this.innerObject;
}
@@ -49,15 +65,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 +82,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 +91,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 +111,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 +120,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 +129,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 +139,7 @@ public BackupInstanceResource refresh() {
serviceManager
.serviceClient()
.getBackupInstances()
- .getWithResponse(vaultName, resourceGroupName, backupInstanceName, Context.NONE)
+ .getWithResponse(resourceGroupName, vaultName, backupInstanceName, Context.NONE)
.getValue();
return this;
}
@@ -133,7 +149,7 @@ public BackupInstanceResource refresh(Context context) {
serviceManager
.serviceClient()
.getBackupInstances()
- .getWithResponse(vaultName, resourceGroupName, backupInstanceName, context)
+ .getWithResponse(resourceGroupName, vaultName, backupInstanceName, context)
.getValue();
return this;
}
@@ -141,13 +157,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 +179,74 @@ 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 withTags(Map tags) {
+ this.innerModel().withTags(tags);
+ return this;
}
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..c4172547dbab 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,96 +621,89 @@ 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)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ String resourceGroupName, String vaultName, String backupInstanceName) {
+ return getWithResponseAsync(resourceGroupName, vaultName, backupInstanceName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* 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 BackupInstanceResourceInner get(String vaultName, String resourceGroupName, String backupInstanceName) {
- return getAsync(vaultName, resourceGroupName, backupInstanceName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
+ return getWithResponseAsync(resourceGroupName, vaultName, backupInstanceName, context).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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
- return getWithResponseAsync(vaultName, resourceGroupName, backupInstanceName, context).block();
+ public BackupInstanceResourceInner get(String resourceGroupName, String vaultName, String backupInstanceName) {
+ return getWithResponse(resourceGroupName, vaultName, backupInstanceName, Context.NONE).getValue();
}
/**
* 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 +721,9 @@ private Mono>> createOrUpdateWithResponseAsync(
.createOrUpdate(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
parameters,
accept,
@@ -641,20 +734,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,25 +757,25 @@ 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 (backupInstanceName == null) {
+ if (resourceGroupName == null) {
return Mono
- .error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters 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."));
+ }
+ if (parameters == null) {
+ return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
} else {
parameters.validate();
}
@@ -692,9 +785,9 @@ private Mono>> createOrUpdateWithResponseAsync(
.createOrUpdate(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
parameters,
accept,
@@ -704,20 +797,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 +818,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 +857,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 +919,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 +944,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 +955,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 +974,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 +1027,9 @@ private Mono>> deleteWithResponseAsync(
.delete(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
accept,
context))
@@ -946,37 +1039,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 +1080,9 @@ private Mono>> deleteWithResponseAsync(
.delete(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
accept,
context);
@@ -998,42 +1091,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 +1136,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