Skip to content
Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 1.0.0-beta.1 (2023-06-20)

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

## 1.0.0-beta.4 (2023-06-20)

- 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-2023-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
Expand Down
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-2023-01. 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-2023-05. 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
170 changes: 98 additions & 72 deletions sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for DataProtection Management</name>
<description>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-2023-01.</description>
<description>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-2023-05.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public DataProtectionManager authenticate(TokenCredential credential, AzureProfi
.append("-")
.append("com.azure.resourcemanager.dataprotection")
.append("/")
.append("1.0.0-beta.4");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public DppResourceGuardProxiesClient getDppResourceGuardProxies() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2023-01-01";
this.apiVersion = "2023-05-01";
this.backupVaults = new BackupVaultsClientImpl(this);
this.operationResults = new OperationResultsClientImpl(this);
this.operationStatus = new OperationStatusClientImpl(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ public final class AzureBackupJob {
@JsonProperty(value = "progressUrl", access = JsonProperty.Access.WRITE_ONLY)
private String progressUrl;

/*
* Priority to be used for rehydration
*/
@JsonProperty(value = "rehydrationPriority", access = JsonProperty.Access.WRITE_ONLY)
private String rehydrationPriority;

/*
* It indicates the sub type of operation i.e. in case of Restore it can be ALR/OLR
*/
Expand Down Expand Up @@ -503,6 +509,15 @@ public String progressUrl() {
return this.progressUrl;
}

/**
* Get the rehydrationPriority property: Priority to be used for rehydration.
*
* @return the rehydrationPriority value.
*/
public String rehydrationPriority() {
return this.rehydrationPriority;
}

/**
* Get the restoreType property: It indicates the sub type of operation i.e. in case of Restore it can be ALR/OLR.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ public AzureBackupRecoveryPointBasedRestoreRequest withSourceResourceId(String s
return this;
}

/** {@inheritDoc} */
@Override
public AzureBackupRecoveryPointBasedRestoreRequest withIdentityDetails(IdentityDetails identityDetails) {
super.withIdentityDetails(identityDetails);
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ public AzureBackupRecoveryTimeBasedRestoreRequest withSourceResourceId(String so
return this;
}

/** {@inheritDoc} */
@Override
public AzureBackupRecoveryTimeBasedRestoreRequest withIdentityDetails(IdentityDetails identityDetails) {
super.withIdentityDetails(identityDetails);
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ public class AzureBackupRestoreRequest {
@JsonProperty(value = "sourceResourceId")
private String sourceResourceId;

/*
* Contains information of the Identity Details for the BI.
* If it is null, default will be considered as System Assigned.
*/
@JsonProperty(value = "identityDetails")
private IdentityDetails identityDetails;

/** Creates an instance of AzureBackupRestoreRequest class. */
public AzureBackupRestoreRequest() {
}
Expand Down Expand Up @@ -116,6 +123,28 @@ public AzureBackupRestoreRequest withSourceResourceId(String sourceResourceId) {
return this;
}

/**
* Get the identityDetails property: Contains information of the Identity Details for the BI. If it is null, default
* will be considered as System Assigned.
*
* @return the identityDetails value.
*/
public IdentityDetails identityDetails() {
return this.identityDetails;
}

/**
* Set the identityDetails property: Contains information of the Identity Details for the BI. If it is null, default
* will be considered as System Assigned.
*
* @param identityDetails the identityDetails value to set.
* @return the AzureBackupRestoreRequest object itself.
*/
public AzureBackupRestoreRequest withIdentityDetails(IdentityDetails identityDetails) {
this.identityDetails = identityDetails;
return this;
}

/**
* Validates the instance.
*
Expand All @@ -136,6 +165,9 @@ public void validate() {
new IllegalArgumentException(
"Missing required property sourceDataStoreType in model AzureBackupRestoreRequest"));
}
if (identityDetails() != null) {
identityDetails().validate();
}
}

private static final ClientLogger LOGGER = new ClientLogger(AzureBackupRestoreRequest.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ public AzureBackupRestoreWithRehydrationRequest withSourceResourceId(String sour
return this;
}

/** {@inheritDoc} */
@Override
public AzureBackupRestoreWithRehydrationRequest withIdentityDetails(IdentityDetails identityDetails) {
super.withIdentityDetails(identityDetails);
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ public class BackupInstance {
@JsonProperty(value = "validationType")
private ValidationType validationType;

/*
* Contains information of the Identity Details for the BI.
* If it is null, default will be considered as System Assigned.
*/
@JsonProperty(value = "identityDetails")
private IdentityDetails identityDetails;

/*
* The objectType property.
*/
Expand Down Expand Up @@ -263,6 +270,28 @@ public BackupInstance withValidationType(ValidationType validationType) {
return this;
}

/**
* Get the identityDetails property: Contains information of the Identity Details for the BI. If it is null, default
* will be considered as System Assigned.
*
* @return the identityDetails value.
*/
public IdentityDetails identityDetails() {
return this.identityDetails;
}

/**
* Set the identityDetails property: Contains information of the Identity Details for the BI. If it is null, default
* will be considered as System Assigned.
*
* @param identityDetails the identityDetails value to set.
* @return the BackupInstance object itself.
*/
public BackupInstance withIdentityDetails(IdentityDetails identityDetails) {
this.identityDetails = identityDetails;
return this;
}

/**
* Get the objectType property: The objectType property.
*
Expand Down Expand Up @@ -315,6 +344,9 @@ public void validate() {
if (datasourceAuthCredentials() != null) {
datasourceAuthCredentials().validate();
}
if (identityDetails() != null) {
identityDetails().validate();
}
if (objectType() == null) {
throw LOGGER
.logExceptionAsError(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ public final class BackupVault {
@JsonProperty(value = "featureSettings")
private FeatureSettings featureSettings;

/*
* Secure Score of Backup Vault
*/
@JsonProperty(value = "secureScore", access = JsonProperty.Access.WRITE_ONLY)
private SecureScoreLevel secureScore;

/** Creates an instance of BackupVault class. */
public BackupVault() {
}
Expand Down Expand Up @@ -184,6 +190,15 @@ public BackupVault withFeatureSettings(FeatureSettings featureSettings) {
return this;
}

/**
* Get the secureScore property: Secure Score of Backup Vault.
*
* @return the secureScore value.
*/
public SecureScoreLevel secureScore() {
return this.secureScore;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Properties which are specific to datasource/datasourceSets. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "objectType")
@JsonTypeName("BaseResourceProperties")
@Immutable
public final class BaseResourceProperties {
/** Creates an instance of BaseResourceProperties class. */
public BaseResourceProperties() {
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// 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.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The CrossRegionRestoreSettings model. */
@Fluent
public final class CrossRegionRestoreSettings {
/*
* CrossRegionRestore state
*/
@JsonProperty(value = "state")
private CrossRegionRestoreState state;

/** Creates an instance of CrossRegionRestoreSettings class. */
public CrossRegionRestoreSettings() {
}

/**
* Get the state property: CrossRegionRestore state.
*
* @return the state value.
*/
public CrossRegionRestoreState state() {
return this.state;
}

/**
* Set the state property: CrossRegionRestore state.
*
* @param state the state value to set.
* @return the CrossRegionRestoreSettings object itself.
*/
public CrossRegionRestoreSettings withState(CrossRegionRestoreState state) {
this.state = state;
return this;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// 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.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** CrossRegionRestore state. */
public final class CrossRegionRestoreState extends ExpandableStringEnum<CrossRegionRestoreState> {
/** Static value Disabled for CrossRegionRestoreState. */
public static final CrossRegionRestoreState DISABLED = fromString("Disabled");

/** Static value Enabled for CrossRegionRestoreState. */
public static final CrossRegionRestoreState ENABLED = fromString("Enabled");

/**
* Creates a new instance of CrossRegionRestoreState value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public CrossRegionRestoreState() {
}

/**
* Creates or finds a CrossRegionRestoreState from its string representation.
*
* @param name a name to look for.
* @return the corresponding CrossRegionRestoreState.
*/
@JsonCreator
public static CrossRegionRestoreState fromString(String name) {
return fromString(name, CrossRegionRestoreState.class);
}

/**
* Gets known CrossRegionRestoreState values.
*
* @return known CrossRegionRestoreState values.
*/
public static Collection<CrossRegionRestoreState> values() {
return values(CrossRegionRestoreState.class);
}
}
Loading