Skip to content

Commit

Permalink
CodeGen from PR 31689 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge c1993aba6a7bf20801299162f2476bcfbacaa2b9 into 4aad50a36767f7c36673f2c7982bb4055dbf5ed4
  • Loading branch information
SDKAuto committed Dec 2, 2024
1 parent 8b0eef6 commit 0ff7374
Show file tree
Hide file tree
Showing 320 changed files with 729 additions and 7,420 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# Release History

## 1.4.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2024-12-02)

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

### Features Added

### Breaking Changes
* `models.AksVolumeTypes` was added

### Bugs Fixed
#### `models.KubernetesClusterBackupDatasourceParameters` was modified

### Other Changes
* `withIncludedVolumeTypes(java.util.List)` was added
* `includedVolumeTypes()` was added

## 1.3.0 (2024-07-22)

Expand Down
55 changes: 20 additions & 35 deletions sdk/dataprotection/azure-resourcemanager-dataprotection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-2024-04. 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-2025-01. 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

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-dataprotection</artifactId>
<version>1.3.0</version>
<version>1.4.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -71,39 +71,24 @@ See [API design][design] for general introduction on design and key concepts on
## Examples

```java
resource = dataProtectionManager
.backupVaults()
.define(vaultName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroupName)
.withProperties(
new BackupVault()
.withMonitoringSettings(
new MonitoringSettings()
.withAzureMonitorAlertSettings(
new AzureMonitorAlertSettings()
.withAlertsForAllJobFailures(AlertsState.ENABLED)))
.withSecuritySettings(
new SecuritySettings()
.withSoftDeleteSettings(
new SoftDeleteSettings()
.withState(SoftDeleteState.ALWAYS_ON)
.withRetentionDurationInDays(14.0D))
.withImmutabilitySettings(
new ImmutabilitySettings()
.withState(ImmutabilityState.LOCKED)))
.withStorageSettings(
Collections.singletonList(
new StorageSetting()
.withDatastoreType(StorageSettingStoreTypes.VAULT_STORE)
.withType(StorageSettingTypes.LOCALLY_REDUNDANT)))
.withFeatureSettings(
new FeatureSettings()
.withCrossSubscriptionRestoreSettings(
new CrossSubscriptionRestoreSettings()
.withState(CrossSubscriptionRestoreState.ENABLED))))
.withIdentity(new DppIdentityDetails().withType("systemAssigned"))
.create();
resource = dataProtectionManager.backupVaults()
.define(vaultName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroupName)
.withProperties(new BackupVault()
.withMonitoringSettings(new MonitoringSettings().withAzureMonitorAlertSettings(
new AzureMonitorAlertSettings().withAlertsForAllJobFailures(AlertsState.ENABLED)))
.withSecuritySettings(new SecuritySettings()
.withSoftDeleteSettings(new SoftDeleteSettings().withState(SoftDeleteState.ALWAYS_ON)
.withRetentionDurationInDays(14.0D))
.withImmutabilitySettings(new ImmutabilitySettings().withState(ImmutabilityState.LOCKED)))
.withStorageSettings(Collections
.singletonList(new StorageSetting().withDatastoreType(StorageSettingStoreTypes.VAULT_STORE)
.withType(StorageSettingTypes.LOCALLY_REDUNDANT)))
.withFeatureSettings(new FeatureSettings().withCrossSubscriptionRestoreSettings(
new CrossSubscriptionRestoreSettings().withState(CrossSubscriptionRestoreState.ENABLED))))
.withIdentity(new DppIdentityDetails().withType("systemAssigned"))
.create();
```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md)

Expand Down
Loading

0 comments on commit 0ff7374

Please sign in to comment.