|
2 | 2 |
|
3 | 3 | Azure Resource Manager DataProtection client library for Java. |
4 | 4 |
|
5 | | -This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2024-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). |
| 5 | +This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2025-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). |
6 | 6 |
|
7 | 7 | ## We'd love to hear your feedback |
8 | 8 |
|
@@ -32,7 +32,7 @@ Various documentation is available to help you get started |
32 | 32 | <dependency> |
33 | 33 | <groupId>com.azure.resourcemanager</groupId> |
34 | 34 | <artifactId>azure-resourcemanager-dataprotection</artifactId> |
35 | | - <version>1.3.0</version> |
| 35 | + <version>1.4.0-beta.1</version> |
36 | 36 | </dependency> |
37 | 37 | ``` |
38 | 38 | [//]: # ({x-version-update-end}) |
@@ -71,39 +71,24 @@ See [API design][design] for general introduction on design and key concepts on |
71 | 71 | ## Examples |
72 | 72 |
|
73 | 73 | ```java |
74 | | -resource = dataProtectionManager |
75 | | - .backupVaults() |
76 | | - .define(vaultName) |
77 | | - .withRegion(REGION) |
78 | | - .withExistingResourceGroup(resourceGroupName) |
79 | | - .withProperties( |
80 | | - new BackupVault() |
81 | | - .withMonitoringSettings( |
82 | | - new MonitoringSettings() |
83 | | - .withAzureMonitorAlertSettings( |
84 | | - new AzureMonitorAlertSettings() |
85 | | - .withAlertsForAllJobFailures(AlertsState.ENABLED))) |
86 | | - .withSecuritySettings( |
87 | | - new SecuritySettings() |
88 | | - .withSoftDeleteSettings( |
89 | | - new SoftDeleteSettings() |
90 | | - .withState(SoftDeleteState.ALWAYS_ON) |
91 | | - .withRetentionDurationInDays(14.0D)) |
92 | | - .withImmutabilitySettings( |
93 | | - new ImmutabilitySettings() |
94 | | - .withState(ImmutabilityState.LOCKED))) |
95 | | - .withStorageSettings( |
96 | | - Collections.singletonList( |
97 | | - new StorageSetting() |
98 | | - .withDatastoreType(StorageSettingStoreTypes.VAULT_STORE) |
99 | | - .withType(StorageSettingTypes.LOCALLY_REDUNDANT))) |
100 | | - .withFeatureSettings( |
101 | | - new FeatureSettings() |
102 | | - .withCrossSubscriptionRestoreSettings( |
103 | | - new CrossSubscriptionRestoreSettings() |
104 | | - .withState(CrossSubscriptionRestoreState.ENABLED)))) |
105 | | - .withIdentity(new DppIdentityDetails().withType("systemAssigned")) |
106 | | - .create(); |
| 74 | +resource = dataProtectionManager.backupVaults() |
| 75 | + .define(vaultName) |
| 76 | + .withRegion(REGION) |
| 77 | + .withExistingResourceGroup(resourceGroupName) |
| 78 | + .withProperties(new BackupVault() |
| 79 | + .withMonitoringSettings(new MonitoringSettings().withAzureMonitorAlertSettings( |
| 80 | + new AzureMonitorAlertSettings().withAlertsForAllJobFailures(AlertsState.ENABLED))) |
| 81 | + .withSecuritySettings(new SecuritySettings() |
| 82 | + .withSoftDeleteSettings(new SoftDeleteSettings().withState(SoftDeleteState.ALWAYS_ON) |
| 83 | + .withRetentionDurationInDays(14.0D)) |
| 84 | + .withImmutabilitySettings(new ImmutabilitySettings().withState(ImmutabilityState.LOCKED))) |
| 85 | + .withStorageSettings(Collections |
| 86 | + .singletonList(new StorageSetting().withDatastoreType(StorageSettingStoreTypes.VAULT_STORE) |
| 87 | + .withType(StorageSettingTypes.LOCALLY_REDUNDANT))) |
| 88 | + .withFeatureSettings(new FeatureSettings().withCrossSubscriptionRestoreSettings( |
| 89 | + new CrossSubscriptionRestoreSettings().withState(CrossSubscriptionRestoreState.ENABLED)))) |
| 90 | + .withIdentity(new DppIdentityDetails().withType("systemAssigned")) |
| 91 | + .create(); |
107 | 92 | ``` |
108 | 93 | [Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md) |
109 | 94 |
|
|
0 commit comments