Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-dataprotection] Adding 2025-01-01 stable DataProtection Swagger #13404

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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-04)

- 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
Loading