diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md b/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md
index c2ce0fdad758..ca9deaa54de2 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2022-04-06)
+
+- Azure Resource Manager DataProtection client library for Java. This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2022-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md b/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md
index ed24adb92a26..5b01395a1bf4 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager DataProtection client library for Java.
-This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2021-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2022-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-dataprotection
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md b/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md
index 76e07d07c747..378a5afb017c 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md
@@ -7,7 +7,13 @@
- [CreateOrUpdate](#backupinstances_createorupdate)
- [Delete](#backupinstances_delete)
- [Get](#backupinstances_get)
+- [GetBackupInstanceOperationResult](#backupinstances_getbackupinstanceoperationresult)
- [List](#backupinstances_list)
+- [ResumeBackups](#backupinstances_resumebackups)
+- [ResumeProtection](#backupinstances_resumeprotection)
+- [StopProtection](#backupinstances_stopprotection)
+- [SuspendBackups](#backupinstances_suspendbackups)
+- [SyncBackupInstance](#backupinstances_syncbackupinstance)
- [TriggerRehydrate](#backupinstances_triggerrehydrate)
- [TriggerRestore](#backupinstances_triggerrestore)
- [ValidateForBackup](#backupinstances_validateforbackup)
@@ -63,6 +69,14 @@
- [Get](#operationstatus_get)
+## OperationStatusBackupVaultContext
+
+- [Get](#operationstatusbackupvaultcontext_get)
+
+## OperationStatusResourceGroupContext
+
+- [GetByResourceGroup](#operationstatusresourcegroupcontext_getbyresourcegroup)
+
## RecoveryPoints
- [Get](#recoverypoints_get)
@@ -103,7 +117,7 @@ import com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest;
/** Samples for BackupInstances AdhocBackup. */
public final class BackupInstancesAdhocBackupSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/BackupInstanceOperations/TriggerBackup.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/TriggerBackup.json
*/
/**
* Sample code: Trigger Adhoc Backup.
@@ -114,8 +128,8 @@ public final class BackupInstancesAdhocBackupSamples {
manager
.backupInstances()
.adhocBackup(
- "PratikPrivatePreviewVault1",
"000pikumar",
+ "PratikPrivatePreviewVault1",
"testInstance1",
new TriggerBackupRequest()
.withBackupRuleOptions(
@@ -140,12 +154,13 @@ import com.azure.resourcemanager.dataprotection.models.PolicyParameters;
import com.azure.resourcemanager.dataprotection.models.SecretStoreBasedAuthCredentials;
import com.azure.resourcemanager.dataprotection.models.SecretStoreResource;
import com.azure.resourcemanager.dataprotection.models.SecretStoreType;
+import com.azure.resourcemanager.dataprotection.models.ValidationType;
import java.util.Arrays;
/** Samples for BackupInstances CreateOrUpdate. */
public final class BackupInstancesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/BackupInstanceOperations/PutBackupInstance.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/PutBackupInstance.json
*/
/**
* Sample code: Create BackupInstance.
@@ -156,13 +171,13 @@ public final class BackupInstancesCreateOrUpdateSamples {
manager
.backupInstances()
.define("testInstance1")
- .withExistingBackupVault("PratikPrivatePreviewVault1", "000pikumar")
+ .withExistingBackupVault("000pikumar", "PratikPrivatePreviewVault1")
.withProperties(
new BackupInstance()
.withFriendlyName("harshitbi2")
.withDataSourceInfo(
new Datasource()
- .withDatasourceType("OssDB")
+ .withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases")
.withObjectType("Datasource")
.withResourceId(
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb")
@@ -172,7 +187,7 @@ public final class BackupInstancesCreateOrUpdateSamples {
.withResourceUri(""))
.withDataSourceSetInfo(
new DatasourceSet()
- .withDatasourceType("OssDB")
+ .withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases")
.withObjectType("DatasourceSet")
.withResourceId(
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest")
@@ -199,6 +214,7 @@ public final class BackupInstancesCreateOrUpdateSamples {
new SecretStoreResource()
.withUri("https://samplevault.vault.azure.net/secrets/credentials")
.withSecretStoreType(SecretStoreType.AZURE_KEY_VAULT)))
+ .withValidationType(ValidationType.SHALLOW_VALIDATION)
.withObjectType("BackupInstance"))
.create();
}
@@ -213,7 +229,7 @@ import com.azure.core.util.Context;
/** Samples for BackupInstances Delete. */
public final class BackupInstancesDeleteSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/BackupInstanceOperations/DeleteBackupInstance.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/DeleteBackupInstance.json
*/
/**
* Sample code: Delete BackupInstance.
@@ -221,7 +237,7 @@ public final class BackupInstancesDeleteSamples {
* @param manager Entry point to DataProtectionManager.
*/
public static void deleteBackupInstance(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
- manager.backupInstances().delete("PratikPrivatePreviewVault1", "000pikumar", "testInstance1", Context.NONE);
+ manager.backupInstances().delete("000pikumar", "PratikPrivatePreviewVault1", "testInstance1", Context.NONE);
}
}
```
@@ -234,7 +250,7 @@ import com.azure.core.util.Context;
/** Samples for BackupInstances Get. */
public final class BackupInstancesGetSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/BackupInstanceOperations/GetBackupInstance.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/GetBackupInstance.json
*/
/**
* Sample code: Get BackupInstance.
@@ -244,7 +260,36 @@ public final class BackupInstancesGetSamples {
public static void getBackupInstance(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
manager
.backupInstances()
- .getWithResponse("PratikPrivatePreviewVault1", "000pikumar", "testInstance1", Context.NONE);
+ .getWithResponse("000pikumar", "PratikPrivatePreviewVault1", "testInstance1", Context.NONE);
+ }
+}
+```
+
+### BackupInstances_GetBackupInstanceOperationResult
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BackupInstances GetBackupInstanceOperationResult. */
+public final class BackupInstancesGetBackupInstanceOperationResultSamples {
+ /*
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/GetBackupInstanceOperationResult.json
+ */
+ /**
+ * Sample code: Get BackupInstanceOperationResult.
+ *
+ * @param manager Entry point to DataProtectionManager.
+ */
+ public static void getBackupInstanceOperationResult(
+ com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
+ manager
+ .backupInstances()
+ .getBackupInstanceOperationResultWithResponse(
+ "SampleResourceGroup",
+ "swaggerExample",
+ "testInstance1",
+ "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==",
+ Context.NONE);
}
}
```
@@ -257,7 +302,7 @@ import com.azure.core.util.Context;
/** Samples for BackupInstances List. */
public final class BackupInstancesListSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/BackupInstanceOperations/ListBackupInstances.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/ListBackupInstances.json
*/
/**
* Sample code: List BackupInstances in a Vault.
@@ -266,7 +311,121 @@ public final class BackupInstancesListSamples {
*/
public static void listBackupInstancesInAVault(
com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
- manager.backupInstances().list("PratikPrivatePreviewVault1", "000pikumar", Context.NONE);
+ manager.backupInstances().list("000pikumar", "PratikPrivatePreviewVault1", Context.NONE);
+ }
+}
+```
+
+### BackupInstances_ResumeBackups
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BackupInstances ResumeBackups. */
+public final class BackupInstancesResumeBackupsSamples {
+ /*
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/ResumeBackups.json
+ */
+ /**
+ * Sample code: ResumeBackups.
+ *
+ * @param manager Entry point to DataProtectionManager.
+ */
+ public static void resumeBackups(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
+ manager.backupInstances().resumeBackups("testrg", "testvault", "testbi", Context.NONE);
+ }
+}
+```
+
+### BackupInstances_ResumeProtection
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BackupInstances ResumeProtection. */
+public final class BackupInstancesResumeProtectionSamples {
+ /*
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/ResumeProtection.json
+ */
+ /**
+ * Sample code: ResumeProtection.
+ *
+ * @param manager Entry point to DataProtectionManager.
+ */
+ public static void resumeProtection(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
+ manager.backupInstances().resumeProtection("testrg", "testvault", "testbi", Context.NONE);
+ }
+}
+```
+
+### BackupInstances_StopProtection
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BackupInstances StopProtection. */
+public final class BackupInstancesStopProtectionSamples {
+ /*
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/StopProtection.json
+ */
+ /**
+ * Sample code: StopProtection.
+ *
+ * @param manager Entry point to DataProtectionManager.
+ */
+ public static void stopProtection(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
+ manager.backupInstances().stopProtection("testrg", "testvault", "testbi", Context.NONE);
+ }
+}
+```
+
+### BackupInstances_SuspendBackups
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BackupInstances SuspendBackups. */
+public final class BackupInstancesSuspendBackupsSamples {
+ /*
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/SuspendBackups.json
+ */
+ /**
+ * Sample code: SuspendBackups.
+ *
+ * @param manager Entry point to DataProtectionManager.
+ */
+ public static void suspendBackups(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
+ manager.backupInstances().suspendBackups("testrg", "testvault", "testbi", Context.NONE);
+ }
+}
+```
+
+### BackupInstances_SyncBackupInstance
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dataprotection.models.SyncBackupInstanceRequest;
+import com.azure.resourcemanager.dataprotection.models.SyncType;
+
+/** Samples for BackupInstances SyncBackupInstance. */
+public final class BackupInstancesSyncBackupInstanceSamples {
+ /*
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/SyncBackupInstance.json
+ */
+ /**
+ * Sample code: Sync BackupInstance.
+ *
+ * @param manager Entry point to DataProtectionManager.
+ */
+ public static void syncBackupInstance(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
+ manager
+ .backupInstances()
+ .syncBackupInstance(
+ "testrg",
+ "testvault",
+ "testbi",
+ new SyncBackupInstanceRequest().withSyncType(SyncType.DEFAULT),
+ Context.NONE);
}
}
```
@@ -281,7 +440,7 @@ import com.azure.resourcemanager.dataprotection.models.RehydrationPriority;
/** Samples for BackupInstances TriggerRehydrate. */
public final class BackupInstancesTriggerRehydrateSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/BackupInstanceOperations/TriggerRehydrate.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/TriggerRehydrate.json
*/
/**
* Sample code: Trigger Rehydrate.
@@ -309,10 +468,11 @@ public final class BackupInstancesTriggerRehydrateSamples {
```java
import com.azure.core.util.Context;
import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointBasedRestoreRequest;
-import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest;
+import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreWithRehydrationRequest;
import com.azure.resourcemanager.dataprotection.models.Datasource;
import com.azure.resourcemanager.dataprotection.models.DatasourceSet;
import com.azure.resourcemanager.dataprotection.models.RecoveryOption;
+import com.azure.resourcemanager.dataprotection.models.RehydrationPriority;
import com.azure.resourcemanager.dataprotection.models.RestoreFilesTargetInfo;
import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfo;
import com.azure.resourcemanager.dataprotection.models.RestoreTargetLocationType;
@@ -325,7 +485,7 @@ import com.azure.resourcemanager.dataprotection.models.TargetDetails;
/** Samples for BackupInstances TriggerRestore. */
public final class BackupInstancesTriggerRestoreSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json
*/
/**
* Sample code: Trigger Restore As Files.
@@ -336,8 +496,8 @@ public final class BackupInstancesTriggerRestoreSamples {
manager
.backupInstances()
.triggerRestore(
- "PrivatePreviewVault1",
"000pikumar",
+ "PrivatePreviewVault1",
"testInstance1",
new AzureBackupRecoveryPointBasedRestoreRequest()
.withRestoreTargetInfo(
@@ -350,12 +510,14 @@ public final class BackupInstancesTriggerRestoreSamples {
.withRestoreTargetLocationType(RestoreTargetLocationType.AZURE_BLOBS)
.withUrl("https://teststorage.blob.core.windows.net/restoretest")))
.withSourceDataStoreType(SourceDataStoreType.VAULT_STORE)
+ .withSourceResourceId(
+ "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb")
.withRecoveryPointId("hardcodedRP"),
Context.NONE);
}
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json
*/
/**
* Sample code: Trigger Restore With Rehydration.
@@ -367,10 +529,10 @@ public final class BackupInstancesTriggerRestoreSamples {
manager
.backupInstances()
.triggerRestore(
- "PratikPrivatePreviewVault1",
"000pikumar",
+ "PratikPrivatePreviewVault1",
"testInstance1",
- new AzureBackupRestoreRequest()
+ new AzureBackupRestoreWithRehydrationRequest()
.withRestoreTargetInfo(
new RestoreTargetInfo()
.withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS)
@@ -395,12 +557,17 @@ public final class BackupInstancesTriggerRestoreSamples {
.withResourceName("viveksipgtest")
.withResourceType("Microsoft.DBforPostgreSQL/servers")
.withResourceUri("")))
- .withSourceDataStoreType(SourceDataStoreType.VAULT_STORE),
+ .withSourceDataStoreType(SourceDataStoreType.VAULT_STORE)
+ .withSourceResourceId(
+ "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb")
+ .withRecoveryPointId("hardcodedRP")
+ .withRehydrationPriority(RehydrationPriority.HIGH)
+ .withRehydrationRetentionDuration("7D"),
Context.NONE);
}
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/BackupInstanceOperations/TriggerRestore.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/TriggerRestore.json
*/
/**
* Sample code: Trigger Restore.
@@ -411,8 +578,8 @@ public final class BackupInstancesTriggerRestoreSamples {
manager
.backupInstances()
.triggerRestore(
- "PratikPrivatePreviewVault1",
"000pikumar",
+ "PratikPrivatePreviewVault1",
"testInstance1",
new AzureBackupRecoveryPointBasedRestoreRequest()
.withRestoreTargetInfo(
@@ -421,17 +588,17 @@ public final class BackupInstancesTriggerRestoreSamples {
.withRestoreLocation("southeastasia")
.withDatasourceInfo(
new Datasource()
- .withDatasourceType("OssDB")
+ .withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases")
.withObjectType("Datasource")
.withResourceId(
- "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb")
+ "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/targetdb")
.withResourceLocation("")
- .withResourceName("testdb")
+ .withResourceName("targetdb")
.withResourceType("Microsoft.DBforPostgreSQL/servers/databases")
.withResourceUri(""))
.withDatasourceSetInfo(
new DatasourceSet()
- .withDatasourceType("OssDB")
+ .withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases")
.withObjectType("DatasourceSet")
.withResourceId(
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest")
@@ -446,6 +613,8 @@ public final class BackupInstancesTriggerRestoreSamples {
.withUri("https://samplevault.vault.azure.net/secrets/credentials")
.withSecretStoreType(SecretStoreType.AZURE_KEY_VAULT))))
.withSourceDataStoreType(SourceDataStoreType.VAULT_STORE)
+ .withSourceResourceId(
+ "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb")
.withRecoveryPointId("hardcodedRP"),
Context.NONE);
}
@@ -468,7 +637,7 @@ import com.azure.resourcemanager.dataprotection.models.ValidateForBackupRequest;
/** Samples for BackupInstances ValidateForBackup. */
public final class BackupInstancesValidateForBackupSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/BackupInstanceOperations/ValidateForBackup.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/ValidateForBackup.json
*/
/**
* Sample code: Validate For Backup.
@@ -479,8 +648,8 @@ public final class BackupInstancesValidateForBackupSamples {
manager
.backupInstances()
.validateForBackup(
- "PratikPrivatePreviewVault1",
"000pikumar",
+ "PratikPrivatePreviewVault1",
new ValidateForBackupRequest()
.withBackupInstance(
new BackupInstance()
@@ -539,7 +708,7 @@ import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObj
/** Samples for BackupInstances ValidateForRestore. */
public final class BackupInstancesValidateForRestoreSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/BackupInstanceOperations/ValidateRestore.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/ValidateRestore.json
*/
/**
* Sample code: Validate Restore.
@@ -550,8 +719,8 @@ public final class BackupInstancesValidateForRestoreSamples {
manager
.backupInstances()
.validateForRestore(
- "PratikPrivatePreviewVault1",
"000pikumar",
+ "PratikPrivatePreviewVault1",
"testInstance1",
new ValidateRestoreRequestObject()
.withRestoreRequestObject(
@@ -562,17 +731,17 @@ public final class BackupInstancesValidateForRestoreSamples {
.withRestoreLocation("southeastasia")
.withDatasourceInfo(
new Datasource()
- .withDatasourceType("OssDB")
+ .withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases")
.withObjectType("Datasource")
.withResourceId(
- "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb")
+ "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/targetdb")
.withResourceLocation("")
- .withResourceName("testdb")
+ .withResourceName("targetdb")
.withResourceType("Microsoft.DBforPostgreSQL/servers/databases")
.withResourceUri(""))
.withDatasourceSetInfo(
new DatasourceSet()
- .withDatasourceType("OssDB")
+ .withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases")
.withObjectType("DatasourceSet")
.withResourceId(
"/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest")
@@ -587,6 +756,8 @@ public final class BackupInstancesValidateForRestoreSamples {
.withUri("https://samplevault.vault.azure.net/secrets/credentials")
.withSecretStoreType(SecretStoreType.AZURE_KEY_VAULT))))
.withSourceDataStoreType(SourceDataStoreType.VAULT_STORE)
+ .withSourceResourceId(
+ "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb")
.withRecoveryPointId("hardcodedRP")),
Context.NONE);
}
@@ -616,7 +787,7 @@ import java.util.Arrays;
/** Samples for BackupPolicies CreateOrUpdate. */
public final class BackupPoliciesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json
*/
/**
* Sample code: CreateOrUpdate BackupPolicy.
@@ -628,7 +799,7 @@ public final class BackupPoliciesCreateOrUpdateSamples {
manager
.backupPolicies()
.define("OSSDBPolicy")
- .withExistingBackupVault("PrivatePreviewVault", "000pikumar")
+ .withExistingBackupVault("000pikumar", "PrivatePreviewVault")
.withProperties(
new BackupPolicy()
.withDatasourceTypes(Arrays.asList("OssDB"))
@@ -708,7 +879,7 @@ import com.azure.core.util.Context;
/** Samples for BackupPolicies Delete. */
public final class BackupPoliciesDeleteSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/PolicyCRUD/DeleteBackupPolicy.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/PolicyCRUD/DeleteBackupPolicy.json
*/
/**
* Sample code: Delete BackupPolicy.
@@ -716,7 +887,7 @@ public final class BackupPoliciesDeleteSamples {
* @param manager Entry point to DataProtectionManager.
*/
public static void deleteBackupPolicy(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
- manager.backupPolicies().deleteWithResponse("PrivatePreviewVault", "000pikumar", "OSSDBPolicy", Context.NONE);
+ manager.backupPolicies().deleteWithResponse("000pikumar", "PrivatePreviewVault", "OSSDBPolicy", Context.NONE);
}
}
```
@@ -729,7 +900,7 @@ import com.azure.core.util.Context;
/** Samples for BackupPolicies Get. */
public final class BackupPoliciesGetSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/PolicyCRUD/GetBackupPolicy.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/PolicyCRUD/GetBackupPolicy.json
*/
/**
* Sample code: Get BackupPolicy.
@@ -737,7 +908,7 @@ public final class BackupPoliciesGetSamples {
* @param manager Entry point to DataProtectionManager.
*/
public static void getBackupPolicy(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
- manager.backupPolicies().getWithResponse("PrivatePreviewVault", "000pikumar", "OSSDBPolicy", Context.NONE);
+ manager.backupPolicies().getWithResponse("000pikumar", "PrivatePreviewVault", "OSSDBPolicy", Context.NONE);
}
}
```
@@ -750,7 +921,7 @@ import com.azure.core.util.Context;
/** Samples for BackupPolicies List. */
public final class BackupPoliciesListSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/PolicyCRUD/ListBackupPolicy.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/PolicyCRUD/ListBackupPolicy.json
*/
/**
* Sample code: List BackupPolicy.
@@ -758,7 +929,7 @@ public final class BackupPoliciesListSamples {
* @param manager Entry point to DataProtectionManager.
*/
public static void listBackupPolicy(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
- manager.backupPolicies().list("PrivatePreviewVault", "000pikumar", Context.NONE);
+ manager.backupPolicies().list("000pikumar", "PrivatePreviewVault", Context.NONE);
}
}
```
@@ -771,7 +942,7 @@ import com.azure.core.util.Context;
/** Samples for BackupVaultOperationResults Get. */
public final class BackupVaultOperationResultsGetSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/VaultCRUD/GetOperationResultPatch.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/VaultCRUD/GetOperationResultPatch.json
*/
/**
* Sample code: GetOperationResult Patch.
@@ -782,8 +953,8 @@ public final class BackupVaultOperationResultsGetSamples {
manager
.backupVaultOperationResults()
.getWithResponse(
- "swaggerExample",
"SampleResourceGroup",
+ "swaggerExample",
"YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==",
Context.NONE);
}
@@ -799,7 +970,7 @@ import com.azure.resourcemanager.dataprotection.models.CheckNameAvailabilityRequ
/** Samples for BackupVaults CheckNameAvailability. */
public final class BackupVaultsCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json
*/
/**
* Sample code: Check BackupVaults name availability.
@@ -824,8 +995,11 @@ public final class BackupVaultsCheckNameAvailabilitySamples {
### BackupVaults_CreateOrUpdate
```java
+import com.azure.resourcemanager.dataprotection.models.AlertsState;
+import com.azure.resourcemanager.dataprotection.models.AzureMonitorAlertSettings;
import com.azure.resourcemanager.dataprotection.models.BackupVault;
import com.azure.resourcemanager.dataprotection.models.DppIdentityDetails;
+import com.azure.resourcemanager.dataprotection.models.MonitoringSettings;
import com.azure.resourcemanager.dataprotection.models.StorageSetting;
import com.azure.resourcemanager.dataprotection.models.StorageSettingStoreTypes;
import com.azure.resourcemanager.dataprotection.models.StorageSettingTypes;
@@ -836,7 +1010,7 @@ import java.util.Map;
/** Samples for BackupVaults CreateOrUpdate. */
public final class BackupVaultsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/VaultCRUD/PutBackupVault.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/VaultCRUD/PutBackupVault.json
*/
/**
* Sample code: Create BackupVault.
@@ -851,6 +1025,10 @@ public final class BackupVaultsCreateOrUpdateSamples {
.withExistingResourceGroup("SampleResourceGroup")
.withProperties(
new BackupVault()
+ .withMonitoringSettings(
+ new MonitoringSettings()
+ .withAzureMonitorAlertSettings(
+ new AzureMonitorAlertSettings().withAlertsForAllJobFailures(AlertsState.ENABLED)))
.withStorageSettings(
Arrays
.asList(
@@ -863,7 +1041,7 @@ public final class BackupVaultsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/VaultCRUD/PutBackupVaultWithMSI.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/VaultCRUD/PutBackupVaultWithMSI.json
*/
/**
* Sample code: Create BackupVault With MSI.
@@ -879,6 +1057,10 @@ public final class BackupVaultsCreateOrUpdateSamples {
.withExistingResourceGroup("SampleResourceGroup")
.withProperties(
new BackupVault()
+ .withMonitoringSettings(
+ new MonitoringSettings()
+ .withAzureMonitorAlertSettings(
+ new AzureMonitorAlertSettings().withAlertsForAllJobFailures(AlertsState.ENABLED)))
.withStorageSettings(
Arrays
.asList(
@@ -911,7 +1093,7 @@ import com.azure.core.util.Context;
/** Samples for BackupVaults Delete. */
public final class BackupVaultsDeleteSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/VaultCRUD/DeleteBackupVault.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/VaultCRUD/DeleteBackupVault.json
*/
/**
* Sample code: Delete BackupVault.
@@ -932,7 +1114,7 @@ import com.azure.core.util.Context;
/** Samples for BackupVaults GetByResourceGroup. */
public final class BackupVaultsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/VaultCRUD/GetBackupVault.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/VaultCRUD/GetBackupVault.json
*/
/**
* Sample code: Get BackupVault.
@@ -944,7 +1126,7 @@ public final class BackupVaultsGetByResourceGroupSamples {
}
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/VaultCRUD/GetBackupVaultWithMSI.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/VaultCRUD/GetBackupVaultWithMSI.json
*/
/**
* Sample code: Get BackupVault With MSI.
@@ -965,7 +1147,7 @@ import com.azure.core.util.Context;
/** Samples for BackupVaults List. */
public final class BackupVaultsListSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json
*/
/**
* Sample code: Get BackupVaults in Subscription.
@@ -987,7 +1169,7 @@ import com.azure.core.util.Context;
/** Samples for BackupVaults ListByResourceGroup. */
public final class BackupVaultsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json
*/
/**
* Sample code: Get BackupVaults in ResourceGroup.
@@ -1005,14 +1187,18 @@ public final class BackupVaultsListByResourceGroupSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.dataprotection.models.AlertsState;
+import com.azure.resourcemanager.dataprotection.models.AzureMonitorAlertSettings;
import com.azure.resourcemanager.dataprotection.models.BackupVaultResource;
+import com.azure.resourcemanager.dataprotection.models.MonitoringSettings;
+import com.azure.resourcemanager.dataprotection.models.PatchBackupVaultInput;
import java.util.HashMap;
import java.util.Map;
/** Samples for BackupVaults Update. */
public final class BackupVaultsUpdateSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/VaultCRUD/PatchBackupVault.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/VaultCRUD/PatchBackupVault.json
*/
/**
* Sample code: Patch BackupVault.
@@ -1025,7 +1211,16 @@ public final class BackupVaultsUpdateSamples {
.backupVaults()
.getByResourceGroupWithResponse("SampleResourceGroup", "swaggerExample", Context.NONE)
.getValue();
- resource.update().withTags(mapOf("newKey", "newVal")).apply();
+ resource
+ .update()
+ .withTags(mapOf("newKey", "newVal"))
+ .withProperties(
+ new PatchBackupVaultInput()
+ .withMonitoringSettings(
+ new MonitoringSettings()
+ .withAzureMonitorAlertSettings(
+ new AzureMonitorAlertSettings().withAlertsForAllJobFailures(AlertsState.ENABLED))))
+ .apply();
}
@SuppressWarnings("unchecked")
@@ -1051,7 +1246,7 @@ import com.azure.resourcemanager.dataprotection.models.FeatureValidationRequest;
/** Samples for DataProtection CheckFeatureSupport. */
public final class DataProtectionCheckFeatureSupportSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/CheckfeatureSupport.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/CheckfeatureSupport.json
*/
/**
* Sample code: Check Azure Vm Backup Feature Support.
@@ -1076,7 +1271,7 @@ import com.azure.core.util.Context;
/** Samples for DataProtectionOperations List. */
public final class DataProtectionOperationsListSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/Operations/List.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/Operations/List.json
*/
/**
* Sample code: Returns the list of supported REST operations.
@@ -1098,7 +1293,7 @@ import com.azure.core.util.Context;
/** Samples for ExportJobs Trigger. */
public final class ExportJobsTriggerSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/JobCRUD/TriggerExportJobs.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/JobCRUD/TriggerExportJobs.json
*/
/**
* Sample code: Trigger Export Jobs.
@@ -1119,7 +1314,7 @@ import com.azure.core.util.Context;
/** Samples for ExportJobsOperationResult Get. */
public final class ExportJobsOperationResultGetSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/JobCRUD/GetExportJobsOperationResult.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/JobCRUD/GetExportJobsOperationResult.json
*/
/**
* Sample code: Get Export Jobs Operation Result.
@@ -1144,7 +1339,7 @@ import com.azure.core.util.Context;
/** Samples for Jobs Get. */
public final class JobsGetSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/JobCRUD/GetJob.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/JobCRUD/GetJob.json
*/
/**
* Sample code: Get Job.
@@ -1167,7 +1362,7 @@ import com.azure.core.util.Context;
/** Samples for Jobs List. */
public final class JobsListSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/JobCRUD/ListJobs.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/JobCRUD/ListJobs.json
*/
/**
* Sample code: Get Jobs.
@@ -1188,7 +1383,7 @@ import com.azure.core.util.Context;
/** Samples for OperationResult Get. */
public final class OperationResultGetSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/GetOperationResult.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/GetOperationResult.json
*/
/**
* Sample code: Get OperationResult.
@@ -1214,7 +1409,7 @@ import com.azure.core.util.Context;
/** Samples for OperationStatus Get. */
public final class OperationStatusGetSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/GetOperationStatus.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/GetOperationStatus.json
*/
/**
* Sample code: Get OperationStatus.
@@ -1232,6 +1427,59 @@ public final class OperationStatusGetSamples {
}
```
+### OperationStatusBackupVaultContext_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for OperationStatusBackupVaultContext Get. */
+public final class OperationStatusBackupVaultContextGetSamples {
+ /*
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/GetOperationStatusVaultContext.json
+ */
+ /**
+ * Sample code: Get OperationStatus.
+ *
+ * @param manager Entry point to DataProtectionManager.
+ */
+ public static void getOperationStatus(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
+ manager
+ .operationStatusBackupVaultContexts()
+ .getWithResponse(
+ "SampleResourceGroup",
+ "swaggerExample",
+ "MjkxOTMyODMtYTE3My00YzJjLTg5NjctN2E4MDIxNDA3NjA2OzdjNGE2ZWRjLWJjMmItNDRkYi1hYzMzLWY1YzEwNzk5Y2EyOA==",
+ Context.NONE);
+ }
+}
+```
+
+### OperationStatusResourceGroupContext_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for OperationStatusResourceGroupContext GetByResourceGroup. */
+public final class OperationStatusResourceGroupContextGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/GetOperationStatusRGContext.json
+ */
+ /**
+ * Sample code: Get OperationStatus.
+ *
+ * @param manager Entry point to DataProtectionManager.
+ */
+ public static void getOperationStatus(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
+ manager
+ .operationStatusResourceGroupContexts()
+ .getByResourceGroupWithResponse(
+ "SampleResourceGroup",
+ "MjkxOTMyODMtYTE3My00YzJjLTg5NjctN2E4MDIxNDA3NjA2OzdjNGE2ZWRjLWJjMmItNDRkYi1hYzMzLWY1YzEwNzk5Y2EyOA==",
+ Context.NONE);
+ }
+}
+```
+
### RecoveryPoints_Get
```java
@@ -1240,7 +1488,7 @@ import com.azure.core.util.Context;
/** Samples for RecoveryPoints Get. */
public final class RecoveryPointsGetSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/BackupInstanceOperations/GetRecoveryPoint.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/GetRecoveryPoint.json
*/
/**
* Sample code: Get Recovery Point.
@@ -1251,8 +1499,8 @@ public final class RecoveryPointsGetSamples {
manager
.recoveryPoints()
.getWithResponse(
- "PratikPrivatePreviewVault1",
"000pikumar",
+ "PratikPrivatePreviewVault1",
"testInstance1",
"7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25",
Context.NONE);
@@ -1268,7 +1516,7 @@ import com.azure.core.util.Context;
/** Samples for RecoveryPoints List. */
public final class RecoveryPointsListSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/BackupInstanceOperations/ListRecoveryPoints.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/ListRecoveryPoints.json
*/
/**
* Sample code: List Recovery Points in a Vault.
@@ -1279,7 +1527,7 @@ public final class RecoveryPointsListSamples {
com.azure.resourcemanager.dataprotection.DataProtectionManager manager) {
manager
.recoveryPoints()
- .list("PratikPrivatePreviewVault1", "000pikumar", "testInstance1", null, null, Context.NONE);
+ .list("000pikumar", "PratikPrivatePreviewVault1", "testInstance1", null, null, Context.NONE);
}
}
```
@@ -1292,7 +1540,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards Delete. */
public final class ResourceGuardsDeleteSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/DeleteResourceGuard.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/DeleteResourceGuard.json
*/
/**
* Sample code: Delete ResourceGuard.
@@ -1313,7 +1561,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards GetBackupSecurityPinRequestsObjects. */
public final class ResourceGuardsGetBackupSecurityPinRequestsObjectsSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/ListBackupSecurityPINRequests.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/ListBackupSecurityPINRequests.json
*/
/**
* Sample code: List OperationsRequestObject.
@@ -1337,7 +1585,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards GetByResourceGroup. */
public final class ResourceGuardsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/GetResourceGuard.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/GetResourceGuard.json
*/
/**
* Sample code: Get ResourceGuard.
@@ -1358,7 +1606,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards GetDefaultBackupSecurityPinRequestsObject. */
public final class ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json
*/
/**
* Sample code: Get DefaultOperationsRequestObject.
@@ -1383,7 +1631,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards GetDefaultDeleteProtectedItemRequestsObject. */
public final class ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json
*/
/**
* Sample code: Get DefaultOperationsRequestObject.
@@ -1408,7 +1656,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards GetDefaultDeleteResourceGuardProxyRequestsObject. */
public final class ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json
*/
/**
* Sample code: Get DefaultOperationsRequestObject.
@@ -1433,7 +1681,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards GetDefaultDisableSoftDeleteRequestsObject. */
public final class ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json
*/
/**
* Sample code: Get DefaultOperationsRequestObject.
@@ -1458,7 +1706,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards GetDefaultUpdateProtectedItemRequestsObject. */
public final class ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json
*/
/**
* Sample code: Get DefaultOperationsRequestObject.
@@ -1483,7 +1731,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards GetDefaultUpdateProtectionPolicyRequestsObject. */
public final class ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json
*/
/**
* Sample code: Get DefaultOperationsRequestObject.
@@ -1508,7 +1756,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards GetDeleteProtectedItemRequestsObjects. */
public final class ResourceGuardsGetDeleteProtectedItemRequestsObjectsSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json
*/
/**
* Sample code: List OperationsRequestObject.
@@ -1532,7 +1780,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards GetDeleteResourceGuardProxyRequestsObjects. */
public final class ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json
*/
/**
* Sample code: List OperationsRequestObject.
@@ -1556,7 +1804,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards GetDisableSoftDeleteRequestsObjects. */
public final class ResourceGuardsGetDisableSoftDeleteRequestsObjectsSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/ListDisableSoftDeleteRequests.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/ListDisableSoftDeleteRequests.json
*/
/**
* Sample code: List OperationsRequestObject.
@@ -1580,7 +1828,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards GetUpdateProtectedItemRequestsObjects. */
public final class ResourceGuardsGetUpdateProtectedItemRequestsObjectsSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/ListUpdateProtectedItemRequests.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/ListUpdateProtectedItemRequests.json
*/
/**
* Sample code: List OperationsRequestObject.
@@ -1604,7 +1852,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards GetUpdateProtectionPolicyRequestsObjects. */
public final class ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json
*/
/**
* Sample code: List OperationsRequestObject.
@@ -1628,7 +1876,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards List. */
public final class ResourceGuardsListSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/GetResourceGuardsInSubscription.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/GetResourceGuardsInSubscription.json
*/
/**
* Sample code: Get ResourceGuards in Subscription.
@@ -1650,7 +1898,7 @@ import com.azure.core.util.Context;
/** Samples for ResourceGuards ListByResourceGroup. */
public final class ResourceGuardsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json
*/
/**
* Sample code: Get ResourceGuards in ResourceGroup.
@@ -1675,7 +1923,7 @@ import java.util.Map;
/** Samples for ResourceGuards Patch. */
public final class ResourceGuardsPatchSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/PatchResourceGuard.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/PatchResourceGuard.json
*/
/**
* Sample code: Patch ResourceGuard.
@@ -1713,7 +1961,7 @@ import java.util.Map;
/** Samples for ResourceGuards Put. */
public final class ResourceGuardsPutSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/ResourceGuardCRUD/PutResourceGuard.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/ResourceGuardCRUD/PutResourceGuard.json
*/
/**
* Sample code: Create ResourceGuard.
@@ -1753,7 +2001,7 @@ import com.azure.resourcemanager.dataprotection.models.RestoreSourceDataStoreTyp
/** Samples for RestorableTimeRanges Find. */
public final class RestorableTimeRangesFindSamples {
/*
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/examples/BackupInstanceOperations/FindRestorableTimeRanges.json
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/examples/BackupInstanceOperations/FindRestorableTimeRanges.json
*/
/**
* Sample code: Find Restorable Time Ranges.
@@ -1765,8 +2013,8 @@ public final class RestorableTimeRangesFindSamples {
manager
.restorableTimeRanges()
.findWithResponse(
- "ZBlobBackupVaultBVTD3",
"Blob-Backup",
+ "ZBlobBackupVaultBVTD3",
"zblobbackuptestsa58",
new AzureBackupFindRestorableTimeRangesRequest()
.withSourceDataStoreType(RestoreSourceDataStoreType.OPERATIONAL_STORE)
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/pom.xml b/sdk/dataprotection/azure-resourcemanager-dataprotection/pom.xml
index 89213e821430..14cf5988d822 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/pom.xml
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for DataProtection Management
- This package contains Microsoft Azure SDK for DataProtection Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2021-07.
+ This package contains Microsoft Azure SDK for DataProtection Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2022-04.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/DataProtectionManager.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/DataProtectionManager.java
index c25cb41e94d2..b973feb2214a 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/DataProtectionManager.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/DataProtectionManager.java
@@ -33,7 +33,9 @@
import com.azure.resourcemanager.dataprotection.implementation.ExportJobsOperationResultsImpl;
import com.azure.resourcemanager.dataprotection.implementation.JobsImpl;
import com.azure.resourcemanager.dataprotection.implementation.OperationResultsImpl;
+import com.azure.resourcemanager.dataprotection.implementation.OperationStatusBackupVaultContextsImpl;
import com.azure.resourcemanager.dataprotection.implementation.OperationStatusImpl;
+import com.azure.resourcemanager.dataprotection.implementation.OperationStatusResourceGroupContextsImpl;
import com.azure.resourcemanager.dataprotection.implementation.RecoveryPointsImpl;
import com.azure.resourcemanager.dataprotection.implementation.ResourceGuardsImpl;
import com.azure.resourcemanager.dataprotection.implementation.RestorableTimeRangesImpl;
@@ -48,6 +50,8 @@
import com.azure.resourcemanager.dataprotection.models.Jobs;
import com.azure.resourcemanager.dataprotection.models.OperationResults;
import com.azure.resourcemanager.dataprotection.models.OperationStatus;
+import com.azure.resourcemanager.dataprotection.models.OperationStatusBackupVaultContexts;
+import com.azure.resourcemanager.dataprotection.models.OperationStatusResourceGroupContexts;
import com.azure.resourcemanager.dataprotection.models.RecoveryPoints;
import com.azure.resourcemanager.dataprotection.models.ResourceGuards;
import com.azure.resourcemanager.dataprotection.models.RestorableTimeRanges;
@@ -66,6 +70,10 @@ public final class DataProtectionManager {
private OperationStatus operationStatus;
+ private OperationStatusBackupVaultContexts operationStatusBackupVaultContexts;
+
+ private OperationStatusResourceGroupContexts operationStatusResourceGroupContexts;
+
private BackupVaultOperationResults backupVaultOperationResults;
private DataProtections dataProtections;
@@ -126,7 +134,7 @@ public static Configurable configure() {
/** The Configurable allowing configurations to be set. */
public static final class Configurable {
- private final ClientLogger logger = new ClientLogger(Configurable.class);
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
@@ -200,9 +208,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;
}
@@ -300,6 +310,25 @@ public OperationStatus operationStatus() {
return operationStatus;
}
+ /** @return Resource collection API of OperationStatusBackupVaultContexts. */
+ public OperationStatusBackupVaultContexts operationStatusBackupVaultContexts() {
+ if (this.operationStatusBackupVaultContexts == null) {
+ this.operationStatusBackupVaultContexts =
+ new OperationStatusBackupVaultContextsImpl(clientObject.getOperationStatusBackupVaultContexts(), this);
+ }
+ return operationStatusBackupVaultContexts;
+ }
+
+ /** @return Resource collection API of OperationStatusResourceGroupContexts. */
+ public OperationStatusResourceGroupContexts operationStatusResourceGroupContexts() {
+ if (this.operationStatusResourceGroupContexts == null) {
+ this.operationStatusResourceGroupContexts =
+ new OperationStatusResourceGroupContextsImpl(
+ clientObject.getOperationStatusResourceGroupContexts(), this);
+ }
+ return operationStatusResourceGroupContexts;
+ }
+
/** @return Resource collection API of BackupVaultOperationResults. */
public BackupVaultOperationResults backupVaultOperationResults() {
if (this.backupVaultOperationResults == null) {
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java
index 91803652e9f6..ec32405a5859 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java
@@ -15,6 +15,7 @@
import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner;
import com.azure.resourcemanager.dataprotection.models.AzureBackupRehydrationRequest;
import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest;
+import com.azure.resourcemanager.dataprotection.models.SyncBackupInstanceRequest;
import com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest;
import com.azure.resourcemanager.dataprotection.models.ValidateForBackupRequest;
import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject;
@@ -24,35 +25,35 @@ public interface BackupInstancesClient {
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String vaultName, String resourceGroupName);
+ PagedIterable list(String resourceGroupName, String vaultName);
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String vaultName, String resourceGroupName, Context context);
+ PagedIterable list(String resourceGroupName, String vaultName, Context context);
/**
* Gets a backup instance with name in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -60,57 +61,57 @@ public interface BackupInstancesClient {
* @return a backup instance with name in a backup vault.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BackupInstanceResourceInner get(String vaultName, String resourceGroupName, String backupInstanceName);
+ BackupInstanceResourceInner get(String resourceGroupName, String vaultName, String backupInstanceName);
/**
* Gets a backup instance with name in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a backup instance with name in a backup vault.
+ * @return a backup instance with name in a backup vault along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context);
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return the {@link SyncPoller} for polling of backupInstanceResource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BackupInstanceResourceInner> beginCreateOrUpdate(
- String vaultName, String resourceGroupName, String backupInstanceName, BackupInstanceResourceInner parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, BackupInstanceResourceInner parameters);
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return the {@link SyncPoller} for polling of backupInstanceResource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BackupInstanceResourceInner> beginCreateOrUpdate(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
BackupInstanceResourceInner parameters,
Context context);
@@ -118,8 +119,8 @@ SyncPoller, BackupInstanceResourceInner>
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -129,13 +130,13 @@ SyncPoller, BackupInstanceResourceInner>
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupInstanceResourceInner createOrUpdate(
- String vaultName, String resourceGroupName, String backupInstanceName, BackupInstanceResourceInner parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, BackupInstanceResourceInner parameters);
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
@@ -146,8 +147,8 @@ BackupInstanceResourceInner createOrUpdate(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupInstanceResourceInner createOrUpdate(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
BackupInstanceResourceInner parameters,
Context context);
@@ -155,52 +156,52 @@ BackupInstanceResourceInner createOrUpdate(
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
- String vaultName, String resourceGroupName, String backupInstanceName);
+ String resourceGroupName, String vaultName, String backupInstanceName);
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context);
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String vaultName, String resourceGroupName, String backupInstanceName);
+ void delete(String resourceGroupName, String vaultName, String backupInstanceName);
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -208,41 +209,41 @@ SyncPoller, Void> beginDelete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String vaultName, String resourceGroupName, String backupInstanceName, Context context);
+ void delete(String resourceGroupName, String vaultName, String backupInstanceName, Context context);
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginAdhocBackup(
- String vaultName, String resourceGroupName, String backupInstanceName, TriggerBackupRequest parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, TriggerBackupRequest parameters);
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginAdhocBackup(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
TriggerBackupRequest parameters,
Context context);
@@ -250,8 +251,8 @@ SyncPoller, OperationJobExtendedInfoIn
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -261,13 +262,13 @@ SyncPoller, OperationJobExtendedInfoIn
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner adhocBackup(
- String vaultName, String resourceGroupName, String backupInstanceName, TriggerBackupRequest parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, TriggerBackupRequest parameters);
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
@@ -278,8 +279,8 @@ OperationJobExtendedInfoInner adhocBackup(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner adhocBackup(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
TriggerBackupRequest parameters,
Context context);
@@ -287,39 +288,39 @@ OperationJobExtendedInfoInner adhocBackup(
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginValidateForBackup(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters);
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters);
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginValidateForBackup(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters, Context context);
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters, Context context);
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -328,13 +329,13 @@ SyncPoller, OperationJobExtendedInfoIn
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner validateForBackup(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters);
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters);
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -344,7 +345,40 @@ OperationJobExtendedInfoInner validateForBackup(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner validateForBackup(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters, Context context);
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters, Context context);
+
+ /**
+ * Get result of backup instance creation operation.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param operationId The operationId parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of backup instance creation operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BackupInstanceResourceInner getBackupInstanceOperationResult(
+ String resourceGroupName, String vaultName, String backupInstanceName, String operationId);
+
+ /**
+ * Get result of backup instance creation operation.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param operationId The operationId parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of backup instance creation operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getBackupInstanceOperationResultWithResponse(
+ String resourceGroupName, String vaultName, String backupInstanceName, String operationId, Context context);
/**
* rehydrate recovery point for restore for a BackupInstance.
@@ -356,7 +390,7 @@ OperationJobExtendedInfoInner validateForBackup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginTriggerRehydrate(
@@ -376,7 +410,7 @@ SyncPoller, Void> beginTriggerRehydrate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginTriggerRehydrate(
@@ -427,36 +461,36 @@ void triggerRehydrate(
/**
* Triggers restore for a BackupInstance.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginTriggerRestore(
- String vaultName, String resourceGroupName, String backupInstanceName, AzureBackupRestoreRequest parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, AzureBackupRestoreRequest parameters);
/**
* Triggers restore for a BackupInstance.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginTriggerRestore(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
AzureBackupRestoreRequest parameters,
Context context);
@@ -464,8 +498,8 @@ SyncPoller, OperationJobExtendedInfoIn
/**
* Triggers restore for a BackupInstance.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -475,13 +509,13 @@ SyncPoller, OperationJobExtendedInfoIn
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner triggerRestore(
- String vaultName, String resourceGroupName, String backupInstanceName, AzureBackupRestoreRequest parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, AzureBackupRestoreRequest parameters);
/**
* Triggers restore for a BackupInstance.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
@@ -492,45 +526,353 @@ OperationJobExtendedInfoInner triggerRestore(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner triggerRestore(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
AzureBackupRestoreRequest parameters,
Context context);
/**
- * Validates if Restore can be triggered for a DataSource.
+ * This operation will resume backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResumeBackups(
+ String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will resume backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResumeBackups(
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will resume backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resumeBackups(String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will resume backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resumeBackups(String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will resume protection for a stopped backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResumeProtection(
+ String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will resume protection for a stopped backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResumeProtection(
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will resume protection for a stopped backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resumeProtection(String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will resume protection for a stopped backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resumeProtection(String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will stop protection of a backup instance and data will be held forever.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginStopProtection(
+ String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will stop protection of a backup instance and data will be held forever.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginStopProtection(
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will stop protection of a backup instance and data will be held forever.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void stopProtection(String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will stop protection of a backup instance and data will be held forever.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void stopProtection(String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will stop backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginSuspendBackups(
+ String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will stop backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginSuspendBackups(
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * This operation will stop backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void suspendBackups(String resourceGroupName, String vaultName, String backupInstanceName);
+
+ /**
+ * This operation will stop backups for backup instance.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void suspendBackups(String resourceGroupName, String vaultName, String backupInstanceName, Context context);
+
+ /**
+ * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup
+ * instance to valid state.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param parameters Request body for operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginSyncBackupInstance(
+ String resourceGroupName, String vaultName, String backupInstanceName, SyncBackupInstanceRequest parameters);
+
+ /**
+ * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup
+ * instance to valid state.
*
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param parameters Request body for operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginSyncBackupInstance(
+ String resourceGroupName,
+ String vaultName,
+ String backupInstanceName,
+ SyncBackupInstanceRequest parameters,
+ Context context);
+
+ /**
+ * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup
+ * instance to valid state.
+ *
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param parameters Request body for operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void syncBackupInstance(
+ String resourceGroupName, String vaultName, String backupInstanceName, SyncBackupInstanceRequest parameters);
+
+ /**
+ * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup
+ * instance to valid state.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param backupInstanceName The backupInstanceName parameter.
+ * @param parameters Request body for operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void syncBackupInstance(
+ String resourceGroupName,
+ String vaultName,
+ String backupInstanceName,
+ SyncBackupInstanceRequest parameters,
+ Context context);
+
+ /**
+ * Validates if Restore can be triggered for a DataSource.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginValidateForRestore(
- String vaultName, String resourceGroupName, String backupInstanceName, ValidateRestoreRequestObject parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, ValidateRestoreRequestObject parameters);
/**
* Validates if Restore can be triggered for a DataSource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OperationJobExtendedInfoInner> beginValidateForRestore(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
ValidateRestoreRequestObject parameters,
Context context);
@@ -538,8 +880,8 @@ SyncPoller, OperationJobExtendedInfoIn
/**
* Validates if Restore can be triggered for a DataSource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -549,13 +891,13 @@ SyncPoller, OperationJobExtendedInfoIn
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner validateForRestore(
- String vaultName, String resourceGroupName, String backupInstanceName, ValidateRestoreRequestObject parameters);
+ String resourceGroupName, String vaultName, String backupInstanceName, ValidateRestoreRequestObject parameters);
/**
* Validates if Restore can be triggered for a DataSource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
@@ -566,8 +908,8 @@ OperationJobExtendedInfoInner validateForRestore(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationJobExtendedInfoInner validateForRestore(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
ValidateRestoreRequestObject parameters,
Context context);
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java
index 7fa97536f748..47f95d517a26 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java
@@ -16,35 +16,35 @@ public interface BackupPoliciesClient {
/**
* Returns list of backup policies belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return baseBackupPolicyResourceList.
+ * @return baseBackupPolicyResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String vaultName, String resourceGroupName);
+ PagedIterable list(String resourceGroupName, String vaultName);
/**
* Returns list of backup policies belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return baseBackupPolicyResourceList.
+ * @return baseBackupPolicyResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String vaultName, String resourceGroupName, Context context);
+ PagedIterable list(String resourceGroupName, String vaultName, Context context);
/**
* Gets a backup policy belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupPolicyName The backupPolicyName parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -52,29 +52,29 @@ public interface BackupPoliciesClient {
* @return a backup policy belonging to a backup vault.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BaseBackupPolicyResourceInner get(String vaultName, String resourceGroupName, String backupPolicyName);
+ BaseBackupPolicyResourceInner get(String resourceGroupName, String vaultName, String backupPolicyName);
/**
* Gets a backup policy belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupPolicyName The backupPolicyName parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a backup policy belonging to a backup vault.
+ * @return a backup policy belonging to a backup vault along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
- String vaultName, String resourceGroupName, String backupPolicyName, Context context);
+ String resourceGroupName, String vaultName, String backupPolicyName, Context context);
/**
* Creates or Updates a backup policy belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupPolicyName Name of the policy.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -84,25 +84,25 @@ Response getWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BaseBackupPolicyResourceInner createOrUpdate(
- String vaultName, String resourceGroupName, String backupPolicyName, BaseBackupPolicyResourceInner parameters);
+ String resourceGroupName, String vaultName, String backupPolicyName, BaseBackupPolicyResourceInner parameters);
/**
* Creates or Updates a backup policy belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupPolicyName Name of the policy.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return baseBackupPolicyResource.
+ * @return baseBackupPolicyResource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupPolicyName,
BaseBackupPolicyResourceInner parameters,
Context context);
@@ -110,29 +110,29 @@ Response createOrUpdateWithResponse(
/**
* Deletes a backup policy belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupPolicyName The backupPolicyName parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String vaultName, String resourceGroupName, String backupPolicyName);
+ void delete(String resourceGroupName, String vaultName, String backupPolicyName);
/**
* Deletes a backup policy belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupPolicyName The backupPolicyName parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
- String vaultName, String resourceGroupName, String backupPolicyName, Context context);
+ String resourceGroupName, String vaultName, String backupPolicyName, Context context);
}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java
index 91336b28091d..7d23daaa186e 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java
@@ -13,8 +13,8 @@
/** An instance of this class provides access to all the operations defined in BackupVaultOperationResultsClient. */
public interface BackupVaultOperationResultsClient {
/**
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param operationId The operationId parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -22,11 +22,11 @@ public interface BackupVaultOperationResultsClient {
* @return backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BackupVaultResourceInner get(String vaultName, String resourceGroupName, String operationId);
+ BackupVaultResourceInner get(String resourceGroupName, String vaultName, String operationId);
/**
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param operationId The operationId parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -36,5 +36,5 @@ public interface BackupVaultOperationResultsClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupVaultOperationResultsGetResponse getWithResponse(
- String vaultName, String resourceGroupName, String operationId, Context context);
+ String resourceGroupName, String vaultName, String operationId, Context context);
}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultsClient.java
index ecee753d3ec5..84cea890b851 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultsClient.java
@@ -23,7 +23,7 @@ public interface BackupVaultsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupVaultResourceList.
+ * @return backupVaultResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -35,7 +35,7 @@ public interface BackupVaultsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupVaultResourceList.
+ * @return backupVaultResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -47,7 +47,7 @@ public interface BackupVaultsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupVaultResourceList.
+ * @return backupVaultResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -60,7 +60,7 @@ public interface BackupVaultsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupVaultResourceList.
+ * @return backupVaultResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -87,7 +87,7 @@ public interface BackupVaultsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupVault Resource.
+ * @return backupVault Resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -96,39 +96,39 @@ Response getByResourceGroupWithResponse(
/**
* Creates or updates a BackupVault resource belonging to a resource group.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupVault Resource.
+ * @return the {@link SyncPoller} for polling of backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BackupVaultResourceInner> beginCreateOrUpdate(
- String vaultName, String resourceGroupName, BackupVaultResourceInner parameters);
+ String resourceGroupName, String vaultName, BackupVaultResourceInner parameters);
/**
* Creates or updates a BackupVault resource belonging to a resource group.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupVault Resource.
+ * @return the {@link SyncPoller} for polling of backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BackupVaultResourceInner> beginCreateOrUpdate(
- String vaultName, String resourceGroupName, BackupVaultResourceInner parameters, Context context);
+ String resourceGroupName, String vaultName, BackupVaultResourceInner parameters, Context context);
/**
* Creates or updates a BackupVault resource belonging to a resource group.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -137,13 +137,13 @@ SyncPoller, BackupVaultResourceInner> begin
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupVaultResourceInner createOrUpdate(
- String vaultName, String resourceGroupName, BackupVaultResourceInner parameters);
+ String resourceGroupName, String vaultName, BackupVaultResourceInner parameters);
/**
* Creates or updates a BackupVault resource belonging to a resource group.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -153,7 +153,7 @@ BackupVaultResourceInner createOrUpdate(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupVaultResourceInner createOrUpdate(
- String vaultName, String resourceGroupName, BackupVaultResourceInner parameters, Context context);
+ String resourceGroupName, String vaultName, BackupVaultResourceInner parameters, Context context);
/**
* Deletes a BackupVault resource from the resource group.
@@ -176,7 +176,7 @@ BackupVaultResourceInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String vaultName, Context context);
@@ -184,39 +184,39 @@ BackupVaultResourceInner createOrUpdate(
/**
* Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupVault Resource.
+ * @return the {@link SyncPoller} for polling of backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BackupVaultResourceInner> beginUpdate(
- String vaultName, String resourceGroupName, PatchResourceRequestInput parameters);
+ String resourceGroupName, String vaultName, PatchResourceRequestInput parameters);
/**
* Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupVault Resource.
+ * @return the {@link SyncPoller} for polling of backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BackupVaultResourceInner> beginUpdate(
- String vaultName, String resourceGroupName, PatchResourceRequestInput parameters, Context context);
+ String resourceGroupName, String vaultName, PatchResourceRequestInput parameters, Context context);
/**
* Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -224,13 +224,13 @@ SyncPoller, BackupVaultResourceInner> begin
* @return backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BackupVaultResourceInner update(String vaultName, String resourceGroupName, PatchResourceRequestInput parameters);
+ BackupVaultResourceInner update(String resourceGroupName, String vaultName, PatchResourceRequestInput parameters);
/**
* Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -240,7 +240,7 @@ SyncPoller, BackupVaultResourceInner> begin
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupVaultResourceInner update(
- String vaultName, String resourceGroupName, PatchResourceRequestInput parameters, Context context);
+ String resourceGroupName, String vaultName, PatchResourceRequestInput parameters, Context context);
/**
* API to check for resource name availability.
@@ -267,7 +267,7 @@ CheckNameAvailabilityResultInner checkNameAvailability(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return checkNameAvailabilityResult.
+ * @return checkNameAvailabilityResult along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkNameAvailabilityWithResponse(
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionClient.java
index c6d7d43aad92..eaff82b5aeda 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionClient.java
@@ -65,6 +65,20 @@ public interface DataProtectionClient {
*/
OperationStatusClient getOperationStatus();
+ /**
+ * Gets the OperationStatusBackupVaultContextsClient object to access its operations.
+ *
+ * @return the OperationStatusBackupVaultContextsClient object.
+ */
+ OperationStatusBackupVaultContextsClient getOperationStatusBackupVaultContexts();
+
+ /**
+ * Gets the OperationStatusResourceGroupContextsClient object to access its operations.
+ *
+ * @return the OperationStatusResourceGroupContextsClient object.
+ */
+ OperationStatusResourceGroupContextsClient getOperationStatusResourceGroupContexts();
+
/**
* Gets the BackupVaultOperationResultsClient object to access its operations.
*
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionOperationsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionOperationsClient.java
index 63f06497a8bd..06f1443bbc4f 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionOperationsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionOperationsClient.java
@@ -17,7 +17,7 @@ public interface DataProtectionOperationsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return clientDiscoveryResponse.
+ * @return clientDiscoveryResponse as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ public interface DataProtectionOperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return clientDiscoveryResponse.
+ * @return clientDiscoveryResponse as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionsClient.java
index e9c2cca27835..c0f2e024774e 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionsClient.java
@@ -35,7 +35,7 @@ public interface DataProtectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base class for Backup Feature support.
+ * @return base class for Backup Feature support along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkFeatureSupportWithResponse(
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsClient.java
index 23717b87a1c0..18bb1be7a102 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsClient.java
@@ -20,7 +20,7 @@ public interface ExportJobsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginTrigger(String resourceGroupName, String vaultName);
@@ -34,7 +34,7 @@ public interface ExportJobsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginTrigger(String resourceGroupName, String vaultName, Context context);
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsOperationResultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsOperationResultsClient.java
index 71636c714b0e..0d3391e7c74b 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsOperationResultsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsOperationResultsClient.java
@@ -40,7 +40,7 @@ public interface ExportJobsOperationResultsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the operation result of operation triggered by Export Jobs API.
+ * @return the operation result of operation triggered by Export Jobs API along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobsClient.java
index d417b058c222..2f8d2b6d6548 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobsClient.java
@@ -21,7 +21,7 @@ public interface JobsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of AzureBackup Job resources.
+ * @return list of AzureBackup Job resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String vaultName);
@@ -35,7 +35,7 @@ public interface JobsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of AzureBackup Job resources.
+ * @return list of AzureBackup Job resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String vaultName, Context context);
@@ -64,7 +64,7 @@ public interface JobsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a job with id in a backup vault.
+ * @return a job with id in a backup vault along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusBackupVaultContextsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusBackupVaultContextsClient.java
new file mode 100644
index 000000000000..ee122d2fb0cb
--- /dev/null
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusBackupVaultContextsClient.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dataprotection.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dataprotection.fluent.models.OperationResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationStatusBackupVaultContextsClient.
+ */
+public interface OperationStatusBackupVaultContextsClient {
+ /**
+ * Gets the operation status for an operation over a BackupVault's context.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param operationId The operationId parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the operation status for an operation over a BackupVault's context.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationResourceInner get(String resourceGroupName, String vaultName, String operationId);
+
+ /**
+ * Gets the operation status for an operation over a BackupVault's context.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
+ * @param operationId The operationId parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the operation status for an operation over a BackupVault's context along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String vaultName, String operationId, Context context);
+}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusClient.java
index d5259472bc83..a8303f78baf4 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusClient.java
@@ -34,7 +34,7 @@ public interface OperationStatusClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the operation status for a resource.
+ * @return the operation status for a resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String location, String operationId, Context context);
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusResourceGroupContextsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusResourceGroupContextsClient.java
new file mode 100644
index 000000000000..10e1d535ab6f
--- /dev/null
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusResourceGroupContextsClient.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.dataprotection.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.dataprotection.fluent.models.OperationResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * OperationStatusResourceGroupContextsClient.
+ */
+public interface OperationStatusResourceGroupContextsClient {
+ /**
+ * Gets the operation status for an operation over a ResourceGroup's context.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param operationId The operationId parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the operation status for an operation over a ResourceGroup's context.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationResourceInner getByResourceGroup(String resourceGroupName, String operationId);
+
+ /**
+ * Gets the operation status for an operation over a ResourceGroup's context.
+ *
+ * @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param operationId The operationId parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the operation status for an operation over a ResourceGroup's context along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String operationId, Context context);
+}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsClient.java
index f710f45135a6..724633e2fd8d 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsClient.java
@@ -16,23 +16,23 @@ public interface RecoveryPointsClient {
/**
* Returns a list of Recovery Points for a DataSource in a vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return azureBackupRecoveryPointResourceList.
+ * @return azureBackupRecoveryPointResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
- String vaultName, String resourceGroupName, String backupInstanceName);
+ String resourceGroupName, String vaultName, String backupInstanceName);
/**
* Returns a list of Recovery Points for a DataSource in a vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param filter OData filter options.
* @param skipToken skipToken Filter.
@@ -40,12 +40,12 @@ PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return azureBackupRecoveryPointResourceList.
+ * @return azureBackupRecoveryPointResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
String filter,
String skipToken,
@@ -54,8 +54,8 @@ PagedIterable list(
/**
* Gets a Recovery Point using recoveryPointId for a Datasource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param recoveryPointId The recoveryPointId parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -65,22 +65,22 @@ PagedIterable list(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AzureBackupRecoveryPointResourceInner get(
- String vaultName, String resourceGroupName, String backupInstanceName, String recoveryPointId);
+ String resourceGroupName, String vaultName, String backupInstanceName, String recoveryPointId);
/**
* Gets a Recovery Point using recoveryPointId for a Datasource.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param recoveryPointId The recoveryPointId parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a Recovery Point using recoveryPointId for a Datasource.
+ * @return a Recovery Point using recoveryPointId for a Datasource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
- String vaultName, String resourceGroupName, String backupInstanceName, String recoveryPointId, Context context);
+ String resourceGroupName, String vaultName, String backupInstanceName, String recoveryPointId, Context context);
}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ResourceGuardsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ResourceGuardsClient.java
index cdb7b453d286..88dd3c466e6f 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ResourceGuardsClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ResourceGuardsClient.java
@@ -20,7 +20,7 @@ public interface ResourceGuardsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of ResourceGuard resources.
+ * @return list of ResourceGuard resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -32,7 +32,7 @@ public interface ResourceGuardsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of ResourceGuard resources.
+ * @return list of ResourceGuard resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -44,7 +44,7 @@ public interface ResourceGuardsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of ResourceGuard resources.
+ * @return list of ResourceGuard resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -57,7 +57,7 @@ public interface ResourceGuardsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of ResourceGuard resources.
+ * @return list of ResourceGuard resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -87,7 +87,7 @@ ResourceGuardResourceInner put(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response putWithResponse(
@@ -115,7 +115,7 @@ Response putWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -142,7 +142,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String resourceGuardsName, Context context);
@@ -172,7 +172,7 @@ ResourceGuardResourceInner patch(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response patchWithResponse(
@@ -187,7 +187,7 @@ Response patchWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getDisableSoftDeleteRequestsObjects(
@@ -203,7 +203,7 @@ PagedIterable getDisableSoftDeleteRequestsObjects(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getDisableSoftDeleteRequestsObjects(
@@ -218,7 +218,7 @@ PagedIterable getDisableSoftDeleteRequestsObjects(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getDeleteResourceGuardProxyRequestsObjects(
@@ -234,7 +234,7 @@ PagedIterable getDeleteResourceGuardProxyRequestsObjects(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getDeleteResourceGuardProxyRequestsObjects(
@@ -249,7 +249,7 @@ PagedIterable getDeleteResourceGuardProxyRequestsObjects(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getBackupSecurityPinRequestsObjects(
@@ -265,7 +265,7 @@ PagedIterable getBackupSecurityPinRequestsObjects(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getBackupSecurityPinRequestsObjects(
@@ -280,7 +280,7 @@ PagedIterable getBackupSecurityPinRequestsObjects(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getDeleteProtectedItemRequestsObjects(
@@ -296,7 +296,7 @@ PagedIterable getDeleteProtectedItemRequestsObjects(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getDeleteProtectedItemRequestsObjects(
@@ -311,7 +311,7 @@ PagedIterable getDeleteProtectedItemRequestsObjects(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getUpdateProtectionPolicyRequestsObjects(
@@ -327,7 +327,7 @@ PagedIterable getUpdateProtectionPolicyRequestsObjects(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getUpdateProtectionPolicyRequestsObjects(
@@ -342,7 +342,7 @@ PagedIterable getUpdateProtectionPolicyRequestsObjects(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getUpdateProtectedItemRequestsObjects(
@@ -358,7 +358,7 @@ PagedIterable getUpdateProtectedItemRequestsObjects(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base for all lists of V2 resources.
+ * @return base for all lists of V2 resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable getUpdateProtectedItemRequestsObjects(
@@ -391,7 +391,7 @@ DppBaseResourceInner getDefaultDisableSoftDeleteRequestsObject(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base resource under Microsoft.DataProtection provider namespace.
+ * @return base resource under Microsoft.DataProtection provider namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getDefaultDisableSoftDeleteRequestsObjectWithResponse(
@@ -424,7 +424,7 @@ DppBaseResourceInner getDefaultDeleteResourceGuardProxyRequestsObject(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base resource under Microsoft.DataProtection provider namespace.
+ * @return base resource under Microsoft.DataProtection provider namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getDefaultDeleteResourceGuardProxyRequestsObjectWithResponse(
@@ -457,7 +457,7 @@ DppBaseResourceInner getDefaultBackupSecurityPinRequestsObject(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base resource under Microsoft.DataProtection provider namespace.
+ * @return base resource under Microsoft.DataProtection provider namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getDefaultBackupSecurityPinRequestsObjectWithResponse(
@@ -490,7 +490,7 @@ DppBaseResourceInner getDefaultDeleteProtectedItemRequestsObject(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base resource under Microsoft.DataProtection provider namespace.
+ * @return base resource under Microsoft.DataProtection provider namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getDefaultDeleteProtectedItemRequestsObjectWithResponse(
@@ -523,7 +523,7 @@ DppBaseResourceInner getDefaultUpdateProtectionPolicyRequestsObject(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base resource under Microsoft.DataProtection provider namespace.
+ * @return base resource under Microsoft.DataProtection provider namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getDefaultUpdateProtectionPolicyRequestsObjectWithResponse(
@@ -556,7 +556,7 @@ DppBaseResourceInner getDefaultUpdateProtectedItemRequestsObject(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return base resource under Microsoft.DataProtection provider namespace.
+ * @return base resource under Microsoft.DataProtection provider namespace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getDefaultUpdateProtectedItemRequestsObjectWithResponse(
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesClient.java
index 740f4e479860..70c61bca6007 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesClient.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesClient.java
@@ -14,8 +14,8 @@
/** An instance of this class provides access to all the operations defined in RestorableTimeRangesClient. */
public interface RestorableTimeRangesClient {
/**
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -25,26 +25,26 @@ public interface RestorableTimeRangesClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AzureBackupFindRestorableTimeRangesResponseResourceInner find(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
AzureBackupFindRestorableTimeRangesRequest parameters);
/**
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list Restore Ranges Response.
+ * @return list Restore Ranges Response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response findWithResponse(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
AzureBackupFindRestorableTimeRangesRequest parameters,
Context context);
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupFindRestorableTimeRangesResponseResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupFindRestorableTimeRangesResponseResourceInner.java
index 4b674770ec44..e25fa87f8177 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupFindRestorableTimeRangesResponseResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupFindRestorableTimeRangesResponseResourceInner.java
@@ -5,19 +5,13 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesResponse;
import com.azure.resourcemanager.dataprotection.models.DppResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** List Restore Ranges Response. */
@Fluent
public final class AzureBackupFindRestorableTimeRangesResponseResourceInner extends DppResource {
- @JsonIgnore
- private final ClientLogger logger =
- new ClientLogger(AzureBackupFindRestorableTimeRangesResponseResourceInner.class);
-
/*
* AzureBackupFindRestorableTimeRangesResponseResource properties
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupJobResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupJobResourceInner.java
index f3fc551c9511..602ea0bfe67f 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupJobResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupJobResourceInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.AzureBackupJob;
import com.azure.resourcemanager.dataprotection.models.DppResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** AzureBackup Job Resource Class. */
@Fluent
public final class AzureBackupJobResourceInner extends DppResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBackupJobResourceInner.class);
-
/*
* AzureBackupJobResource properties
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupRecoveryPointResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupRecoveryPointResourceInner.java
index 199b96c51848..986f0d47cb9c 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupRecoveryPointResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupRecoveryPointResourceInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPoint;
import com.azure.resourcemanager.dataprotection.models.DppResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** AzureBackupRecoveryPointResource Azure backup recoveryPoint resource. */
@Fluent
public final class AzureBackupRecoveryPointResourceInner extends DppResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AzureBackupRecoveryPointResourceInner.class);
-
/*
* AzureBackupRecoveryPoint AzureBackupRecoveryPointResource properties
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupInstanceResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupInstanceResourceInner.java
index 7e01834d05be..299c4ad29e79 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupInstanceResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupInstanceResourceInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.BackupInstance;
import com.azure.resourcemanager.dataprotection.models.DppResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** BackupInstanceResource BackupInstance Resource. */
@Fluent
public final class BackupInstanceResourceInner extends DppResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupInstanceResourceInner.class);
-
/*
* BackupInstanceResource properties
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java
index 05b9ee22e857..1a026d60560f 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java
@@ -9,15 +9,12 @@
import com.azure.resourcemanager.dataprotection.models.BackupVault;
import com.azure.resourcemanager.dataprotection.models.DppIdentityDetails;
import com.azure.resourcemanager.dataprotection.models.DppTrackedResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** BackupVault Resource Backup Vault Resource. */
@Fluent
public final class BackupVaultResourceInner extends DppTrackedResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BackupVaultResourceInner.class);
-
/*
* BackupVault BackupVaultResource properties
*/
@@ -81,7 +78,7 @@ public BackupVaultResourceInner withTags(Map tags) {
public void validate() {
super.validate();
if (properties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property properties in model BackupVaultResourceInner"));
@@ -89,4 +86,6 @@ public void validate() {
properties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(BackupVaultResourceInner.class);
}
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BaseBackupPolicyResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BaseBackupPolicyResourceInner.java
index f714b63e6363..9e521ba52e19 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BaseBackupPolicyResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BaseBackupPolicyResourceInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.BaseBackupPolicy;
import com.azure.resourcemanager.dataprotection.models.DppResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** BaseBackupPolicyResource BaseBackupPolicy resource. */
@Fluent
public final class BaseBackupPolicyResourceInner extends DppResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BaseBackupPolicyResourceInner.class);
-
/*
* BaseBackupPolicy BaseBackupPolicyResource properties
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CheckNameAvailabilityResultInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CheckNameAvailabilityResultInner.java
index 4f702656ff02..30bc69c1af6d 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CheckNameAvailabilityResultInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CheckNameAvailabilityResultInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** CheckNameAvailabilityResult CheckNameAvailability Result. */
@Fluent
public final class CheckNameAvailabilityResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CheckNameAvailabilityResultInner.class);
-
/*
* Gets or sets the message.
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ClientDiscoveryValueForSingleApiInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ClientDiscoveryValueForSingleApiInner.java
index 4a7f24e3601b..256cb17968d2 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ClientDiscoveryValueForSingleApiInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ClientDiscoveryValueForSingleApiInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryDisplay;
import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryForProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** ClientDiscoveryValueForSingleApi Available operation details. */
@Fluent
public final class ClientDiscoveryValueForSingleApiInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ClientDiscoveryValueForSingleApiInner.class);
-
/*
* ClientDiscoveryDisplay Contains the localized display information for
* this particular operation
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DppBaseResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DppBaseResourceInner.java
index 60bfac685e8b..a8379c74bf76 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DppBaseResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DppBaseResourceInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Base resource under Microsoft.DataProtection provider namespace. */
@Immutable
public final class DppBaseResourceInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DppBaseResourceInner.class);
-
/*
* Resource Id represents the complete path to the resource.
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ExportJobsResultInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ExportJobsResultInner.java
index fcd4ef9d68a7..a7ac35baa102 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ExportJobsResultInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ExportJobsResultInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** ExportJobsResult The result for export jobs containing blob details. */
@Immutable
public final class ExportJobsResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ExportJobsResultInner.class);
-
/*
* URL of the blob into which the serialized string of list of jobs is
* exported.
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/FeatureValidationResponseBaseInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/FeatureValidationResponseBaseInner.java
index 0e9a3db10739..bd52aa08e4e2 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/FeatureValidationResponseBaseInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/FeatureValidationResponseBaseInner.java
@@ -5,9 +5,7 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.FeatureValidationResponse;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -22,8 +20,6 @@
@JsonSubTypes({@JsonSubTypes.Type(name = "FeatureValidationResponse", value = FeatureValidationResponse.class)})
@Immutable
public class FeatureValidationResponseBaseInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(FeatureValidationResponseBaseInner.class);
-
/**
* Validates the instance.
*
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationJobExtendedInfoInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationJobExtendedInfoInner.java
index df6a5423476c..bd82098025bf 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationJobExtendedInfoInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationJobExtendedInfoInner.java
@@ -5,9 +5,7 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.OperationExtendedInfo;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -17,8 +15,6 @@
@JsonTypeName("OperationJobExtendedInfo")
@Fluent
public final class OperationJobExtendedInfoInner extends OperationExtendedInfo {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationJobExtendedInfoInner.class);
-
/*
* Arm Id of the job created for this operation.
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationResourceInner.java
index b7b4a59eae79..5bdc968611a3 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationResourceInner.java
@@ -6,17 +6,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.exception.ManagementError;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.OperationExtendedInfo;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** OperationResource Operation Resource. */
@Fluent
public final class OperationResourceInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationResourceInner.class);
-
/*
* End time of the operation
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java
index a5c68fc13b2e..0760bcbc6980 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java
@@ -5,19 +5,15 @@
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.dataprotection.models.DppIdentityDetails;
import com.azure.resourcemanager.dataprotection.models.DppTrackedResource;
import com.azure.resourcemanager.dataprotection.models.ResourceGuard;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** The ResourceGuardResource model. */
@Fluent
public final class ResourceGuardResourceInner extends DppTrackedResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceGuardResourceInner.class);
-
/*
* ResourceGuardResource properties
*/
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceResourceImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceResourceImpl.java
index 949cf0caed1b..9b1f8b60f77f 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceResourceImpl.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceResourceImpl.java
@@ -12,6 +12,7 @@
import com.azure.resourcemanager.dataprotection.models.BackupInstance;
import com.azure.resourcemanager.dataprotection.models.BackupInstanceResource;
import com.azure.resourcemanager.dataprotection.models.OperationJobExtendedInfo;
+import com.azure.resourcemanager.dataprotection.models.SyncBackupInstanceRequest;
import com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest;
import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject;
@@ -49,15 +50,15 @@ private com.azure.resourcemanager.dataprotection.DataProtectionManager manager()
return this.serviceManager;
}
- private String vaultName;
-
private String resourceGroupName;
+ private String vaultName;
+
private String backupInstanceName;
- public BackupInstanceResourceImpl withExistingBackupVault(String vaultName, String resourceGroupName) {
- this.vaultName = vaultName;
+ public BackupInstanceResourceImpl withExistingBackupVault(String resourceGroupName, String vaultName) {
this.resourceGroupName = resourceGroupName;
+ this.vaultName = vaultName;
return this;
}
@@ -66,7 +67,7 @@ public BackupInstanceResource create() {
serviceManager
.serviceClient()
.getBackupInstances()
- .createOrUpdate(vaultName, resourceGroupName, backupInstanceName, this.innerModel(), Context.NONE);
+ .createOrUpdate(resourceGroupName, vaultName, backupInstanceName, this.innerModel(), Context.NONE);
return this;
}
@@ -75,7 +76,7 @@ public BackupInstanceResource create(Context context) {
serviceManager
.serviceClient()
.getBackupInstances()
- .createOrUpdate(vaultName, resourceGroupName, backupInstanceName, this.innerModel(), context);
+ .createOrUpdate(resourceGroupName, vaultName, backupInstanceName, this.innerModel(), context);
return this;
}
@@ -95,7 +96,7 @@ public BackupInstanceResource apply() {
serviceManager
.serviceClient()
.getBackupInstances()
- .createOrUpdate(vaultName, resourceGroupName, backupInstanceName, this.innerModel(), Context.NONE);
+ .createOrUpdate(resourceGroupName, vaultName, backupInstanceName, this.innerModel(), Context.NONE);
return this;
}
@@ -104,7 +105,7 @@ public BackupInstanceResource apply(Context context) {
serviceManager
.serviceClient()
.getBackupInstances()
- .createOrUpdate(vaultName, resourceGroupName, backupInstanceName, this.innerModel(), context);
+ .createOrUpdate(resourceGroupName, vaultName, backupInstanceName, this.innerModel(), context);
return this;
}
@@ -113,8 +114,8 @@ public BackupInstanceResource apply(Context context) {
com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.vaultName = Utils.getValueFromIdByName(innerObject.id(), "backupVaults");
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.vaultName = Utils.getValueFromIdByName(innerObject.id(), "backupVaults");
this.backupInstanceName = Utils.getValueFromIdByName(innerObject.id(), "backupInstances");
}
@@ -123,7 +124,7 @@ public BackupInstanceResource refresh() {
serviceManager
.serviceClient()
.getBackupInstances()
- .getWithResponse(vaultName, resourceGroupName, backupInstanceName, Context.NONE)
+ .getWithResponse(resourceGroupName, vaultName, backupInstanceName, Context.NONE)
.getValue();
return this;
}
@@ -133,7 +134,7 @@ public BackupInstanceResource refresh(Context context) {
serviceManager
.serviceClient()
.getBackupInstances()
- .getWithResponse(vaultName, resourceGroupName, backupInstanceName, context)
+ .getWithResponse(resourceGroupName, vaultName, backupInstanceName, context)
.getValue();
return this;
}
@@ -141,13 +142,13 @@ public BackupInstanceResource refresh(Context context) {
public OperationJobExtendedInfo adhocBackup(TriggerBackupRequest parameters) {
return serviceManager
.backupInstances()
- .adhocBackup(vaultName, resourceGroupName, backupInstanceName, parameters);
+ .adhocBackup(resourceGroupName, vaultName, backupInstanceName, parameters);
}
public OperationJobExtendedInfo adhocBackup(TriggerBackupRequest parameters, Context context) {
return serviceManager
.backupInstances()
- .adhocBackup(vaultName, resourceGroupName, backupInstanceName, parameters, context);
+ .adhocBackup(resourceGroupName, vaultName, backupInstanceName, parameters, context);
}
public void triggerRehydrate(AzureBackupRehydrationRequest parameters) {
@@ -163,25 +164,69 @@ public void triggerRehydrate(AzureBackupRehydrationRequest parameters, Context c
public OperationJobExtendedInfo triggerRestore(AzureBackupRestoreRequest parameters) {
return serviceManager
.backupInstances()
- .triggerRestore(vaultName, resourceGroupName, backupInstanceName, parameters);
+ .triggerRestore(resourceGroupName, vaultName, backupInstanceName, parameters);
}
public OperationJobExtendedInfo triggerRestore(AzureBackupRestoreRequest parameters, Context context) {
return serviceManager
.backupInstances()
- .triggerRestore(vaultName, resourceGroupName, backupInstanceName, parameters, context);
+ .triggerRestore(resourceGroupName, vaultName, backupInstanceName, parameters, context);
+ }
+
+ public void resumeBackups() {
+ serviceManager.backupInstances().resumeBackups(resourceGroupName, vaultName, backupInstanceName);
+ }
+
+ public void resumeBackups(Context context) {
+ serviceManager.backupInstances().resumeBackups(resourceGroupName, vaultName, backupInstanceName, context);
+ }
+
+ public void resumeProtection() {
+ serviceManager.backupInstances().resumeProtection(resourceGroupName, vaultName, backupInstanceName);
+ }
+
+ public void resumeProtection(Context context) {
+ serviceManager.backupInstances().resumeProtection(resourceGroupName, vaultName, backupInstanceName, context);
+ }
+
+ public void stopProtection() {
+ serviceManager.backupInstances().stopProtection(resourceGroupName, vaultName, backupInstanceName);
+ }
+
+ public void stopProtection(Context context) {
+ serviceManager.backupInstances().stopProtection(resourceGroupName, vaultName, backupInstanceName, context);
+ }
+
+ public void suspendBackups() {
+ serviceManager.backupInstances().suspendBackups(resourceGroupName, vaultName, backupInstanceName);
+ }
+
+ public void suspendBackups(Context context) {
+ serviceManager.backupInstances().suspendBackups(resourceGroupName, vaultName, backupInstanceName, context);
+ }
+
+ public void syncBackupInstance(SyncBackupInstanceRequest parameters) {
+ serviceManager
+ .backupInstances()
+ .syncBackupInstance(resourceGroupName, vaultName, backupInstanceName, parameters);
+ }
+
+ public void syncBackupInstance(SyncBackupInstanceRequest parameters, Context context) {
+ serviceManager
+ .backupInstances()
+ .syncBackupInstance(resourceGroupName, vaultName, backupInstanceName, parameters, context);
}
public OperationJobExtendedInfo validateForRestore(ValidateRestoreRequestObject parameters) {
return serviceManager
.backupInstances()
- .validateForRestore(vaultName, resourceGroupName, backupInstanceName, parameters);
+ .validateForRestore(resourceGroupName, vaultName, backupInstanceName, parameters);
}
public OperationJobExtendedInfo validateForRestore(ValidateRestoreRequestObject parameters, Context context) {
return serviceManager
.backupInstances()
- .validateForRestore(vaultName, resourceGroupName, backupInstanceName, parameters, context);
+ .validateForRestore(resourceGroupName, vaultName, backupInstanceName, parameters, context);
}
public BackupInstanceResourceImpl withProperties(BackupInstance properties) {
diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java
index 0c9bfe046d6b..2811f3be02bc 100644
--- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java
+++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java
@@ -30,7 +30,6 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient;
@@ -39,6 +38,7 @@
import com.azure.resourcemanager.dataprotection.models.AzureBackupRehydrationRequest;
import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest;
import com.azure.resourcemanager.dataprotection.models.BackupInstanceResourceList;
+import com.azure.resourcemanager.dataprotection.models.SyncBackupInstanceRequest;
import com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest;
import com.azure.resourcemanager.dataprotection.models.ValidateForBackupRequest;
import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject;
@@ -48,8 +48,6 @@
/** An instance of this class provides access to all the operations defined in BackupInstancesClient. */
public final class BackupInstancesClientImpl implements BackupInstancesClient {
- private final ClientLogger logger = new ClientLogger(BackupInstancesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final BackupInstancesService service;
@@ -83,9 +81,9 @@ private interface BackupInstancesService {
Mono> list(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
- @PathParam("vaultName") String vaultName,
- @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@HeaderParam("Accept") String accept,
Context context);
@@ -98,9 +96,9 @@ Mono> list(
Mono> get(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
- @PathParam("vaultName") String vaultName,
- @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@PathParam("backupInstanceName") String backupInstanceName,
@HeaderParam("Accept") String accept,
Context context);
@@ -109,14 +107,14 @@ Mono> get(
@Put(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
+ "/backupVaults/{vaultName}/backupInstances/{backupInstanceName}")
- @ExpectedResponses({200, 201})
+ @ExpectedResponses({200, 201, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
- @PathParam("vaultName") String vaultName,
- @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@PathParam("backupInstanceName") String backupInstanceName,
@BodyParam("application/json") BackupInstanceResourceInner parameters,
@HeaderParam("Accept") String accept,
@@ -131,9 +129,9 @@ Mono>> createOrUpdate(
Mono>> delete(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
- @PathParam("vaultName") String vaultName,
- @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@PathParam("backupInstanceName") String backupInstanceName,
@HeaderParam("Accept") String accept,
Context context);
@@ -147,9 +145,9 @@ Mono>> delete(
Mono>> adhocBackup(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
- @PathParam("vaultName") String vaultName,
- @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@PathParam("backupInstanceName") String backupInstanceName,
@BodyParam("application/json") TriggerBackupRequest parameters,
@HeaderParam("Accept") String accept,
@@ -164,13 +162,30 @@ Mono>> adhocBackup(
Mono>> validateForBackup(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
- @PathParam("vaultName") String vaultName,
- @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@BodyParam("application/json") ValidateForBackupRequest parameters,
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
+ + "/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/operationResults/{operationId}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getBackupInstanceOperationResult(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
+ @PathParam("backupInstanceName") String backupInstanceName,
+ @PathParam("operationId") String operationId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Post(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
@@ -197,11 +212,92 @@ Mono>> triggerRehydrate(
Mono>> triggerRestore(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
+ @PathParam("backupInstanceName") String backupInstanceName,
+ @BodyParam("application/json") AzureBackupRestoreRequest parameters,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
+ + "/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeBackups")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> resumeBackups(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
+ @PathParam("backupInstanceName") String backupInstanceName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
+ + "/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeProtection")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> resumeProtection(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
+ @PathParam("backupInstanceName") String backupInstanceName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
+ + "/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/stopProtection")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> stopProtection(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("vaultName") String vaultName,
+ @PathParam("backupInstanceName") String backupInstanceName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
+ + "/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/suspendBackups")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> suspendBackups(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
+ @PathParam("backupInstanceName") String backupInstanceName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection"
+ + "/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/sync")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> syncBackupInstance(
+ @HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@PathParam("backupInstanceName") String backupInstanceName,
- @BodyParam("application/json") AzureBackupRestoreRequest parameters,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") SyncBackupInstanceRequest parameters,
@HeaderParam("Accept") String accept,
Context context);
@@ -214,9 +310,9 @@ Mono>> triggerRestore(
Mono>> validateForRestore(
@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion,
- @PathParam("vaultName") String vaultName,
- @PathParam("resourceGroupName") String resourceGroupName,
@PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("vaultName") String vaultName,
@PathParam("backupInstanceName") String backupInstanceName,
@BodyParam("application/json") ValidateRestoreRequestObject parameters,
@HeaderParam("Accept") String accept,
@@ -236,35 +332,36 @@ Mono> listNext(
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String vaultName, String resourceGroupName) {
+ String resourceGroupName, String vaultName) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
final String accept = "application/json";
return FluxUtil
.withContext(
@@ -273,9 +370,9 @@ private Mono> listSinglePageAsync(
.list(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
accept,
context))
.>map(
@@ -293,45 +390,46 @@ private Mono> listSinglePageAsync(
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String vaultName, String resourceGroupName, Context context) {
+ String resourceGroupName, String vaultName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
.list(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
accept,
context)
.map(
@@ -348,103 +446,104 @@ private Mono> listSinglePageAsync(
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String vaultName, String resourceGroupName) {
+ private PagedFlux listAsync(String resourceGroupName, String vaultName) {
return new PagedFlux<>(
- () -> listSinglePageAsync(vaultName, resourceGroupName), nextLink -> listNextSinglePageAsync(nextLink));
+ () -> listSinglePageAsync(resourceGroupName, vaultName), nextLink -> listNextSinglePageAsync(nextLink));
}
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
- String vaultName, String resourceGroupName, Context context) {
+ String resourceGroupName, String vaultName, Context context) {
return new PagedFlux<>(
- () -> listSinglePageAsync(vaultName, resourceGroupName, context),
+ () -> listSinglePageAsync(resourceGroupName, vaultName, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
}
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String vaultName, String resourceGroupName) {
- return new PagedIterable<>(listAsync(vaultName, resourceGroupName));
+ public PagedIterable list(String resourceGroupName, String vaultName) {
+ return new PagedIterable<>(listAsync(resourceGroupName, vaultName));
}
/**
* Gets a backup instances belonging to a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a backup instances belonging to a backup vault.
+ * @return a backup instances belonging to a backup vault as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
- String vaultName, String resourceGroupName, Context context) {
- return new PagedIterable<>(listAsync(vaultName, resourceGroupName, context));
+ String resourceGroupName, String vaultName, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, vaultName, context));
}
/**
* Gets a backup instance with name in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a backup instance with name in a backup vault.
+ * @return a backup instance with name in a backup vault along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
- String vaultName, String resourceGroupName, String backupInstanceName) {
+ String resourceGroupName, String vaultName, String backupInstanceName) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -457,9 +556,9 @@ private Mono> getWithResponseAsync(
.get(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
accept,
context))
@@ -469,37 +568,38 @@ private Mono> getWithResponseAsync(
/**
* Gets a backup instance with name in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a backup instance with name in a backup vault.
+ * @return a backup instance with name in a backup vault along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -510,9 +610,9 @@ private Mono> getWithResponseAsync(
.get(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
accept,
context);
@@ -521,18 +621,18 @@ private Mono> getWithResponseAsync(
/**
* Gets a backup instance with name in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a backup instance with name in a backup vault.
+ * @return a backup instance with name in a backup vault on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(
- String vaultName, String resourceGroupName, String backupInstanceName) {
- return getWithResponseAsync(vaultName, resourceGroupName, backupInstanceName)
+ String resourceGroupName, String vaultName, String backupInstanceName) {
+ return getWithResponseAsync(resourceGroupName, vaultName, backupInstanceName)
.flatMap(
(Response res) -> {
if (res.getValue() != null) {
@@ -546,8 +646,8 @@ private Mono getAsync(
/**
* Gets a backup instance with name in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -555,62 +655,62 @@ private Mono getAsync(
* @return a backup instance with name in a backup vault.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public BackupInstanceResourceInner get(String vaultName, String resourceGroupName, String backupInstanceName) {
- return getAsync(vaultName, resourceGroupName, backupInstanceName).block();
+ public BackupInstanceResourceInner get(String resourceGroupName, String vaultName, String backupInstanceName) {
+ return getAsync(resourceGroupName, vaultName, backupInstanceName).block();
}
/**
* Gets a backup instance with name in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a backup instance with name in a backup vault.
+ * @return a backup instance with name in a backup vault along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
- return getWithResponseAsync(vaultName, resourceGroupName, backupInstanceName, context).block();
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
+ return getWithResponseAsync(resourceGroupName, vaultName, backupInstanceName, context).block();
}
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return backupInstanceResource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, BackupInstanceResourceInner parameters) {
+ String resourceGroupName, String vaultName, String backupInstanceName, BackupInstanceResourceInner parameters) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -628,9 +728,9 @@ private Mono>> createOrUpdateWithResponseAsync(
.createOrUpdate(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
parameters,
accept,
@@ -641,20 +741,20 @@ private Mono>> createOrUpdateWithResponseAsync(
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return backupInstanceResource along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createOrUpdateWithResponseAsync(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
BackupInstanceResourceInner parameters,
Context context) {
@@ -664,19 +764,19 @@ private Mono>> createOrUpdateWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -692,10 +792,10 @@ private Mono>> createOrUpdateWithResponseAsync(
.createOrUpdate(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
- backupInstanceName,
+ resourceGroupName,
+ vaultName,
+ backupInstanceName,
parameters,
accept,
context);
@@ -704,20 +804,20 @@ private Mono>> createOrUpdateWithResponseAsync(
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return the {@link PollerFlux} for polling of backupInstanceResource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, BackupInstanceResourceInner> beginCreateOrUpdateAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, BackupInstanceResourceInner parameters) {
+ String resourceGroupName, String vaultName, String backupInstanceName, BackupInstanceResourceInner parameters) {
Mono>> mono =
- createOrUpdateWithResponseAsync(vaultName, resourceGroupName, backupInstanceName, parameters);
+ createOrUpdateWithResponseAsync(resourceGroupName, vaultName, backupInstanceName, parameters);
return this
.client
.getLroResult(
@@ -725,32 +825,32 @@ private PollerFlux, BackupInstanceResour
this.client.getHttpPipeline(),
BackupInstanceResourceInner.class,
BackupInstanceResourceInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return the {@link PollerFlux} for polling of backupInstanceResource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, BackupInstanceResourceInner> beginCreateOrUpdateAsync(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
BackupInstanceResourceInner parameters,
Context context) {
context = this.client.mergeContext(context);
Mono>> mono =
- createOrUpdateWithResponseAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context);
+ createOrUpdateWithResponseAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context);
return this
.client
.getLroResult(
@@ -764,61 +864,61 @@ private PollerFlux, BackupInstanceResour
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return the {@link SyncPoller} for polling of backupInstanceResource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, BackupInstanceResourceInner> beginCreateOrUpdate(
- String vaultName, String resourceGroupName, String backupInstanceName, BackupInstanceResourceInner parameters) {
- return beginCreateOrUpdateAsync(vaultName, resourceGroupName, backupInstanceName, parameters).getSyncPoller();
+ String resourceGroupName, String vaultName, String backupInstanceName, BackupInstanceResourceInner parameters) {
+ return beginCreateOrUpdateAsync(resourceGroupName, vaultName, backupInstanceName, parameters).getSyncPoller();
}
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return the {@link SyncPoller} for polling of backupInstanceResource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, BackupInstanceResourceInner> beginCreateOrUpdate(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
BackupInstanceResourceInner parameters,
Context context) {
- return beginCreateOrUpdateAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context)
+ return beginCreateOrUpdateAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context)
.getSyncPoller();
}
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return backupInstanceResource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, BackupInstanceResourceInner parameters) {
- return beginCreateOrUpdateAsync(vaultName, resourceGroupName, backupInstanceName, parameters)
+ String resourceGroupName, String vaultName, String backupInstanceName, BackupInstanceResourceInner parameters) {
+ return beginCreateOrUpdateAsync(resourceGroupName, vaultName, backupInstanceName, parameters)
.last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -826,24 +926,24 @@ private Mono createOrUpdateAsync(
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return backupInstanceResource.
+ * @return backupInstanceResource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
BackupInstanceResourceInner parameters,
Context context) {
- return beginCreateOrUpdateAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context)
+ return beginCreateOrUpdateAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context)
.last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -851,8 +951,8 @@ private Mono createOrUpdateAsync(
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -862,15 +962,15 @@ private Mono createOrUpdateAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public BackupInstanceResourceInner createOrUpdate(
- String vaultName, String resourceGroupName, String backupInstanceName, BackupInstanceResourceInner parameters) {
- return createOrUpdateAsync(vaultName, resourceGroupName, backupInstanceName, parameters).block();
+ String resourceGroupName, String vaultName, String backupInstanceName, BackupInstanceResourceInner parameters) {
+ return createOrUpdateAsync(resourceGroupName, vaultName, backupInstanceName, parameters).block();
}
/**
* Create or update a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
@@ -881,47 +981,47 @@ public BackupInstanceResourceInner createOrUpdate(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public BackupInstanceResourceInner createOrUpdate(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
BackupInstanceResourceInner parameters,
Context context) {
- return createOrUpdateAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context).block();
+ return createOrUpdateAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context).block();
}
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
- String vaultName, String resourceGroupName, String backupInstanceName) {
+ String resourceGroupName, String vaultName, String backupInstanceName) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -934,9 +1034,9 @@ private Mono>> deleteWithResponseAsync(
.delete(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
accept,
context))
@@ -946,37 +1046,37 @@ private Mono>> deleteWithResponseAsync(
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -987,9 +1087,9 @@ private Mono>> deleteWithResponseAsync(
.delete(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
accept,
context);
@@ -998,42 +1098,43 @@ private Mono>> deleteWithResponseAsync(
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
- String vaultName, String resourceGroupName, String backupInstanceName) {
+ String resourceGroupName, String vaultName, String backupInstanceName) {
Mono>> mono =
- deleteWithResponseAsync(vaultName, resourceGroupName, backupInstanceName);
+ deleteWithResponseAsync(resourceGroupName, vaultName, backupInstanceName);
return this
.client
- .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
context = this.client.mergeContext(context);
Mono>> mono =
- deleteWithResponseAsync(vaultName, resourceGroupName, backupInstanceName, context);
+ deleteWithResponseAsync(resourceGroupName, vaultName, backupInstanceName, context);
return this
.client
.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
@@ -1042,52 +1143,52 @@ private PollerFlux, Void> beginDeleteAsync(
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
- String vaultName, String resourceGroupName, String backupInstanceName) {
- return beginDeleteAsync(vaultName, resourceGroupName, backupInstanceName).getSyncPoller();
+ String resourceGroupName, String vaultName, String backupInstanceName) {
+ return beginDeleteAsync(resourceGroupName, vaultName, backupInstanceName).getSyncPoller();
}
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
- return beginDeleteAsync(vaultName, resourceGroupName, backupInstanceName, context).getSyncPoller();
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
+ return beginDeleteAsync(resourceGroupName, vaultName, backupInstanceName, context).getSyncPoller();
}
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String vaultName, String resourceGroupName, String backupInstanceName) {
- return beginDeleteAsync(vaultName, resourceGroupName, backupInstanceName)
+ private Mono deleteAsync(String resourceGroupName, String vaultName, String backupInstanceName) {
+ return beginDeleteAsync(resourceGroupName, vaultName, backupInstanceName)
.last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -1095,19 +1196,19 @@ private Mono deleteAsync(String vaultName, String resourceGroupName, Strin
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
- return beginDeleteAsync(vaultName, resourceGroupName, backupInstanceName, context)
+ String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
+ return beginDeleteAsync(resourceGroupName, vaultName, backupInstanceName, context)
.last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -1115,23 +1216,23 @@ private Mono deleteAsync(
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String vaultName, String resourceGroupName, String backupInstanceName) {
- deleteAsync(vaultName, resourceGroupName, backupInstanceName).block();
+ public void delete(String resourceGroupName, String vaultName, String backupInstanceName) {
+ deleteAsync(resourceGroupName, vaultName, backupInstanceName).block();
}
/**
* Delete a backup instance in a backup vault.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1139,44 +1240,44 @@ public void delete(String vaultName, String resourceGroupName, String backupInst
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String vaultName, String resourceGroupName, String backupInstanceName, Context context) {
- deleteAsync(vaultName, resourceGroupName, backupInstanceName, context).block();
+ public void delete(String resourceGroupName, String vaultName, String backupInstanceName, Context context) {
+ deleteAsync(resourceGroupName, vaultName, backupInstanceName, context).block();
}
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return operationJobExtendedInfo along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> adhocBackupWithResponseAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, TriggerBackupRequest parameters) {
+ String resourceGroupName, String vaultName, String backupInstanceName, TriggerBackupRequest parameters) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -1194,9 +1295,9 @@ private Mono>> adhocBackupWithResponseAsync(
.adhocBackup(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
parameters,
accept,
@@ -1207,20 +1308,20 @@ private Mono>> adhocBackupWithResponseAsync(
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return operationJobExtendedInfo along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> adhocBackupWithResponseAsync(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
TriggerBackupRequest parameters,
Context context) {
@@ -1230,19 +1331,19 @@ private Mono>> adhocBackupWithResponseAsync(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (backupInstanceName == null) {
return Mono
.error(new IllegalArgumentException("Parameter backupInstanceName is required and cannot be null."));
@@ -1258,9 +1359,9 @@ private Mono>> adhocBackupWithResponseAsync(
.adhocBackup(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
backupInstanceName,
parameters,
accept,
@@ -1270,20 +1371,20 @@ private Mono>> adhocBackupWithResponseAsync(
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link PollerFlux} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationJobExtendedInfoInner> beginAdhocBackupAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, TriggerBackupRequest parameters) {
+ String resourceGroupName, String vaultName, String backupInstanceName, TriggerBackupRequest parameters) {
Mono>> mono =
- adhocBackupWithResponseAsync(vaultName, resourceGroupName, backupInstanceName, parameters);
+ adhocBackupWithResponseAsync(resourceGroupName, vaultName, backupInstanceName, parameters);
return this
.client
.getLroResult(
@@ -1291,32 +1392,32 @@ private PollerFlux, OperationJobExtend
this.client.getHttpPipeline(),
OperationJobExtendedInfoInner.class,
OperationJobExtendedInfoInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link PollerFlux} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationJobExtendedInfoInner> beginAdhocBackupAsync(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
TriggerBackupRequest parameters,
Context context) {
context = this.client.mergeContext(context);
Mono>> mono =
- adhocBackupWithResponseAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context);
+ adhocBackupWithResponseAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context);
return this
.client
.getLroResult(
@@ -1330,61 +1431,61 @@ private PollerFlux, OperationJobExtend
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationJobExtendedInfoInner> beginAdhocBackup(
- String vaultName, String resourceGroupName, String backupInstanceName, TriggerBackupRequest parameters) {
- return beginAdhocBackupAsync(vaultName, resourceGroupName, backupInstanceName, parameters).getSyncPoller();
+ String resourceGroupName, String vaultName, String backupInstanceName, TriggerBackupRequest parameters) {
+ return beginAdhocBackupAsync(resourceGroupName, vaultName, backupInstanceName, parameters).getSyncPoller();
}
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationJobExtendedInfoInner> beginAdhocBackup(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
TriggerBackupRequest parameters,
Context context) {
- return beginAdhocBackupAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context)
+ return beginAdhocBackupAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context)
.getSyncPoller();
}
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return operationJobExtendedInfo on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono adhocBackupAsync(
- String vaultName, String resourceGroupName, String backupInstanceName, TriggerBackupRequest parameters) {
- return beginAdhocBackupAsync(vaultName, resourceGroupName, backupInstanceName, parameters)
+ String resourceGroupName, String vaultName, String backupInstanceName, TriggerBackupRequest parameters) {
+ return beginAdhocBackupAsync(resourceGroupName, vaultName, backupInstanceName, parameters)
.last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -1392,24 +1493,24 @@ private Mono adhocBackupAsync(
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return operationJobExtendedInfo on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono adhocBackupAsync(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
TriggerBackupRequest parameters,
Context context) {
- return beginAdhocBackupAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context)
+ return beginAdhocBackupAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context)
.last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -1417,8 +1518,8 @@ private Mono adhocBackupAsync(
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1428,15 +1529,15 @@ private Mono adhocBackupAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public OperationJobExtendedInfoInner adhocBackup(
- String vaultName, String resourceGroupName, String backupInstanceName, TriggerBackupRequest parameters) {
- return adhocBackupAsync(vaultName, resourceGroupName, backupInstanceName, parameters).block();
+ String resourceGroupName, String vaultName, String backupInstanceName, TriggerBackupRequest parameters) {
+ return adhocBackupAsync(resourceGroupName, vaultName, backupInstanceName, parameters).block();
}
/**
* Trigger adhoc backup.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param backupInstanceName The name of the backup instance.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
@@ -1447,47 +1548,47 @@ public OperationJobExtendedInfoInner adhocBackup(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public OperationJobExtendedInfoInner adhocBackup(
- String vaultName,
String resourceGroupName,
+ String vaultName,
String backupInstanceName,
TriggerBackupRequest parameters,
Context context) {
- return adhocBackupAsync(vaultName, resourceGroupName, backupInstanceName, parameters, context).block();
+ return adhocBackupAsync(resourceGroupName, vaultName, backupInstanceName, parameters, context).block();
}
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return operationJobExtendedInfo along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> validateForBackupWithResponseAsync(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters) {
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (parameters == null) {
return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
} else {
@@ -1501,9 +1602,9 @@ private Mono>> validateForBackupWithResponseAsync(
.validateForBackup(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
parameters,
accept,
context))
@@ -1513,37 +1614,37 @@ private Mono>> validateForBackupWithResponseAsync(
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return operationJobExtendedInfo along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> validateForBackupWithResponseAsync(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters, Context context) {
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getEndpoint() is required and cannot be null."));
}
- if (vaultName == null) {
- return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
if (this.client.getSubscriptionId() == null) {
return Mono
.error(
new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (vaultName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null."));
+ }
if (parameters == null) {
return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
} else {
@@ -1555,9 +1656,9 @@ private Mono>> validateForBackupWithResponseAsync(
.validateForBackup(
this.client.getEndpoint(),
this.client.getApiVersion(),
- vaultName,
- resourceGroupName,
this.client.getSubscriptionId(),
+ resourceGroupName,
+ vaultName,
parameters,
accept,
context);
@@ -1566,19 +1667,19 @@ private Mono>> validateForBackupWithResponseAsync(
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link PollerFlux} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationJobExtendedInfoInner>
- beginValidateForBackupAsync(String vaultName, String resourceGroupName, ValidateForBackupRequest parameters) {
+ beginValidateForBackupAsync(String resourceGroupName, String vaultName, ValidateForBackupRequest parameters) {
Mono>> mono =
- validateForBackupWithResponseAsync(vaultName, resourceGroupName, parameters);
+ validateForBackupWithResponseAsync(resourceGroupName, vaultName, parameters);
return this
.client
.getLroResult(
@@ -1586,28 +1687,28 @@ private Mono>> validateForBackupWithResponseAsync(
this.client.getHttpPipeline(),
OperationJobExtendedInfoInner.class,
OperationJobExtendedInfoInner.class,
- Context.NONE);
+ this.client.getContext());
}
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link PollerFlux} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, OperationJobExtendedInfoInner>
beginValidateForBackupAsync(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters, Context context) {
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters, Context context) {
context = this.client.mergeContext(context);
Mono>> mono =
- validateForBackupWithResponseAsync(vaultName, resourceGroupName, parameters, context);
+ validateForBackupWithResponseAsync(resourceGroupName, vaultName, parameters, context);
return this
.client
.getLroResult(
@@ -1621,53 +1722,53 @@ private Mono>> validateForBackupWithResponseAsync(
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationJobExtendedInfoInner> beginValidateForBackup(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters) {
- return beginValidateForBackupAsync(vaultName, resourceGroupName, parameters).getSyncPoller();
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters) {
+ return beginValidateForBackupAsync(resourceGroupName, vaultName, parameters).getSyncPoller();
}
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return the {@link SyncPoller} for polling of operationJobExtendedInfo.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, OperationJobExtendedInfoInner> beginValidateForBackup(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters, Context context) {
- return beginValidateForBackupAsync(vaultName, resourceGroupName, parameters, context).getSyncPoller();
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters, Context context) {
+ return beginValidateForBackupAsync(resourceGroupName, vaultName, parameters, context).getSyncPoller();
}
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return operationJobExtendedInfo on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono validateForBackupAsync(
- String vaultName, String resourceGroupName, ValidateForBackupRequest parameters) {
- return beginValidateForBackupAsync(vaultName, resourceGroupName, parameters)
+ String resourceGroupName, String vaultName, ValidateForBackupRequest parameters) {
+ return beginValidateForBackupAsync(resourceGroupName, vaultName, parameters)
.last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -1675,19 +1776,19 @@ private Mono validateForBackupAsync(
/**
* Validate whether adhoc backup will be successful or not.
*
- * @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
+ * @param vaultName The name of the backup vault.
* @param parameters Request body for operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return operationJobExtendedInfo.
+ * @return operationJobExtendedInfo on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono