Skip to content

Commit 655fb88

Browse files
author
SDKAuto
committed
CodeGen from PR 34371 in Azure/azure-rest-api-specs
Merge 5a991e1ddde01c1ad3021a5d06676272f2ac00f5 into 37e1a52a30c527b6ad2d7ef09a9c82ad4491e8a2
1 parent 24808f3 commit 655fb88

File tree

332 files changed

+2878
-8474
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

332 files changed

+2878
-8474
lines changed

sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
11
# Release History
22

3-
## 1.4.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2025-04-30)
4+
5+
- 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-2025-02-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

7-
### Breaking Changes
9+
* `models.AksVolumeTypes` was added
10+
11+
* `models.AdlsBlobBackupDatasourceParameters` was added
12+
13+
* `models.ValidateForModifyBackupRequest` was added
14+
15+
#### `models.BackupInstanceResource` was modified
816

9-
### Bugs Fixed
17+
* `validateForModifyBackup(models.ValidateForModifyBackupRequest,com.azure.core.util.Context)` was added
18+
* `validateForModifyBackup(models.ValidateForModifyBackupRequest)` was added
19+
20+
#### `models.KubernetesClusterBackupDatasourceParameters` was modified
21+
22+
* `withIncludedVolumeTypes(java.util.List)` was added
23+
* `includedVolumeTypes()` was added
24+
25+
#### `models.BackupInstances` was modified
1026

11-
### Other Changes
27+
* `validateForModifyBackup(java.lang.String,java.lang.String,java.lang.String,models.ValidateForModifyBackupRequest,com.azure.core.util.Context)` was added
28+
* `validateForModifyBackup(java.lang.String,java.lang.String,java.lang.String,models.ValidateForModifyBackupRequest)` was added
1229

1330
## 1.3.0 (2024-07-22)
1431

sdk/dataprotection/azure-resourcemanager-dataprotection/README.md

Lines changed: 21 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager DataProtection client library for Java.
44

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-02-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
5252
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5353

5454
```java
55-
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
55+
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
5656
TokenCredential credential = new DefaultAzureCredentialBuilder()
5757
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
5858
.build();
5959
DataProtectionManager manager = DataProtectionManager
6060
.authenticate(credential, profile);
6161
```
6262

63-
The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
63+
The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
6464

6565
See [Authentication][authenticate] for more options.
6666

@@ -71,39 +71,24 @@ See [API design][design] for general introduction on design and key concepts on
7171
## Examples
7272

7373
```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();
10792
```
10893
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md)
10994

@@ -135,5 +120,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
135120
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
136121
[coc]: https://opensource.microsoft.com/codeofconduct/
137122
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
138-
139-

0 commit comments

Comments
 (0)