Skip to content

[AutoPR azure-resourcemanager-recoveryservicesbackup] Adding changes for Distributed Node info list along with new API version 2023 04 01 for RecoveryServicesBackup #5623

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

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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.2.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2023-05-31)

- Azure Resource Manager RecoveryServicesBackup client library for Java. This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2023-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager RecoveryServicesBackup client library for Java.

This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2023-02. 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 RecoveryServicesBackup Management SDK. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2023-04. 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-recoveryservicesbackup</artifactId>
<version>1.1.0</version>
<version>1.2.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down

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 RecoveryServicesBackup Management</name>
<description>This package contains Microsoft Azure SDK for RecoveryServicesBackup 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 RecoveryServices Backup service. Package tag package-2023-02.</description>
<description>This package contains Microsoft Azure SDK for RecoveryServicesBackup 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 RecoveryServices Backup service. Package tag package-2023-04.</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 @@ -401,7 +401,7 @@ public RecoveryServicesBackupManager authenticate(TokenCredential credential, Az
.append("-")
.append("com.azure.resourcemanager.recoveryservicesbackup")
.append("/")
.append("1.1.0");
.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 @@ -779,7 +779,7 @@ public ResourceGuardProxyOperationsClient getResourceGuardProxyOperations() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2023-02-01";
this.apiVersion = "2023-04-01";
this.backupResourceStorageConfigsNonCrrs = new BackupResourceStorageConfigsNonCrrsClientImpl(this);
this.protectionIntents = new ProtectionIntentsClientImpl(this);
this.backupStatus = new BackupStatusClientImpl(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@JsonSubTypes.Type(name = "SAPHanaDatabase", value = AzureVmWorkloadSapHanaDatabaseProtectableItem.class),
@JsonSubTypes.Type(name = "SAPHanaSystem", value = AzureVmWorkloadSapHanaSystemProtectableItem.class),
@JsonSubTypes.Type(name = "SAPHanaDBInstance", value = AzureVmWorkloadSapHanaDBInstance.class),
@JsonSubTypes.Type(name = "SAPHanaHSR", value = AzureVmWorkloadSapHanaHsr.class),
@JsonSubTypes.Type(name = "HanaHSRContainer", value = AzureVmWorkloadSapHanaHsrProtectableItem.class),
@JsonSubTypes.Type(
name = "SQLAvailabilityGroupContainer",
value = AzureVmWorkloadSqlAvailabilityGroupProtectableItem.class),
Expand Down Expand Up @@ -80,6 +80,12 @@ public class AzureVmWorkloadProtectableItem extends WorkloadProtectableItem {
@JsonProperty(value = "prebackupvalidation")
private PreBackupValidation prebackupvalidation;

/*
* Indicates if item is protectable
*/
@JsonProperty(value = "isProtectable")
private Boolean isProtectable;

/** Creates an instance of AzureVmWorkloadProtectableItem class. */
public AzureVmWorkloadProtectableItem() {
}
Expand Down Expand Up @@ -246,6 +252,26 @@ public AzureVmWorkloadProtectableItem withPrebackupvalidation(PreBackupValidatio
return this;
}

/**
* Get the isProtectable property: Indicates if item is protectable.
*
* @return the isProtectable value.
*/
public Boolean isProtectable() {
return this.isProtectable;
}

/**
* Set the isProtectable property: Indicates if item is protectable.
*
* @param isProtectable the isProtectable value to set.
* @return the AzureVmWorkloadProtectableItem object itself.
*/
public AzureVmWorkloadProtectableItem withIsProtectable(Boolean isProtectable) {
this.isProtectable = isProtectable;
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadProtectableItem withBackupManagementType(String backupManagementType) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ public class AzureVmWorkloadProtectedItem extends ProtectedItem {
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map<String, KpiResourceHealthDetails> kpisHealths;

/*
* List of the nodes in case of distributed container.
*/
@JsonProperty(value = "nodesList")
private List<DistributedNodesInfo> nodesList;

/** Creates an instance of AzureVmWorkloadProtectedItem class. */
public AzureVmWorkloadProtectedItem() {
}
Expand Down Expand Up @@ -359,6 +365,26 @@ public AzureVmWorkloadProtectedItem withKpisHealths(Map<String, KpiResourceHealt
return this;
}

/**
* Get the nodesList property: List of the nodes in case of distributed container.
*
* @return the nodesList value.
*/
public List<DistributedNodesInfo> nodesList() {
return this.nodesList;
}

/**
* Set the nodesList property: List of the nodes in case of distributed container.
*
* @param nodesList the nodesList value to set.
* @return the AzureVmWorkloadProtectedItem object itself.
*/
public AzureVmWorkloadProtectedItem withNodesList(List<DistributedNodesInfo> nodesList) {
this.nodesList = nodesList;
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadProtectedItem withContainerName(String containerName) {
Expand Down Expand Up @@ -489,5 +515,8 @@ public void validate() {
}
});
}
if (nodesList() != null) {
nodesList().forEach(e -> e.validate());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ public AzureVmWorkloadSapAseDatabaseProtectedItem withKpisHealths(
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapAseDatabaseProtectedItem withNodesList(List<DistributedNodesInfo> nodesList) {
super.withNodesList(nodesList);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapAseDatabaseProtectedItem withContainerName(String containerName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public AzureVmWorkloadSapAseSystemProtectableItem withPrebackupvalidation(PreBac
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapAseSystemProtectableItem withIsProtectable(Boolean isProtectable) {
super.withIsProtectable(isProtectable);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapAseSystemProtectableItem withBackupManagementType(String backupManagementType) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public AzureVmWorkloadSapHanaDBInstance withPrebackupvalidation(PreBackupValidat
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaDBInstance withIsProtectable(Boolean isProtectable) {
super.withIsProtectable(isProtectable);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaDBInstance withBackupManagementType(String backupManagementType) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ public AzureVmWorkloadSapHanaDBInstanceProtectedItem withKpisHealths(
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaDBInstanceProtectedItem withNodesList(List<DistributedNodesInfo> nodesList) {
super.withNodesList(nodesList);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaDBInstanceProtectedItem withContainerName(String containerName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ public AzureVmWorkloadSapHanaDatabaseProtectableItem withPrebackupvalidation(
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaDatabaseProtectableItem withIsProtectable(Boolean isProtectable) {
super.withIsProtectable(isProtectable);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaDatabaseProtectableItem withBackupManagementType(String backupManagementType) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ public AzureVmWorkloadSapHanaDatabaseProtectedItem withKpisHealths(
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaDatabaseProtectedItem withNodesList(List<DistributedNodesInfo> nodesList) {
super.withNodesList(nodesList);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaDatabaseProtectedItem withContainerName(String containerName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,95 +8,102 @@
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Azure VM workload-specific protectable item representing SAP HANA Dbinstance. */
/** Azure VM workload-specific protectable item representing HANA HSR. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "protectableItemType")
@JsonTypeName("SAPHanaHSR")
@JsonTypeName("HanaHSRContainer")
@Fluent
public final class AzureVmWorkloadSapHanaHsr extends AzureVmWorkloadProtectableItem {
/** Creates an instance of AzureVmWorkloadSapHanaHsr class. */
public AzureVmWorkloadSapHanaHsr() {
public final class AzureVmWorkloadSapHanaHsrProtectableItem extends AzureVmWorkloadProtectableItem {
/** Creates an instance of AzureVmWorkloadSapHanaHsrProtectableItem class. */
public AzureVmWorkloadSapHanaHsrProtectableItem() {
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withParentName(String parentName) {
public AzureVmWorkloadSapHanaHsrProtectableItem withParentName(String parentName) {
super.withParentName(parentName);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withParentUniqueName(String parentUniqueName) {
public AzureVmWorkloadSapHanaHsrProtectableItem withParentUniqueName(String parentUniqueName) {
super.withParentUniqueName(parentUniqueName);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withServerName(String serverName) {
public AzureVmWorkloadSapHanaHsrProtectableItem withServerName(String serverName) {
super.withServerName(serverName);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withIsAutoProtectable(Boolean isAutoProtectable) {
public AzureVmWorkloadSapHanaHsrProtectableItem withIsAutoProtectable(Boolean isAutoProtectable) {
super.withIsAutoProtectable(isAutoProtectable);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withIsAutoProtected(Boolean isAutoProtected) {
public AzureVmWorkloadSapHanaHsrProtectableItem withIsAutoProtected(Boolean isAutoProtected) {
super.withIsAutoProtected(isAutoProtected);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withSubinquireditemcount(Integer subinquireditemcount) {
public AzureVmWorkloadSapHanaHsrProtectableItem withSubinquireditemcount(Integer subinquireditemcount) {
super.withSubinquireditemcount(subinquireditemcount);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withSubprotectableitemcount(Integer subprotectableitemcount) {
public AzureVmWorkloadSapHanaHsrProtectableItem withSubprotectableitemcount(Integer subprotectableitemcount) {
super.withSubprotectableitemcount(subprotectableitemcount);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withPrebackupvalidation(PreBackupValidation prebackupvalidation) {
public AzureVmWorkloadSapHanaHsrProtectableItem withPrebackupvalidation(PreBackupValidation prebackupvalidation) {
super.withPrebackupvalidation(prebackupvalidation);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withBackupManagementType(String backupManagementType) {
public AzureVmWorkloadSapHanaHsrProtectableItem withIsProtectable(Boolean isProtectable) {
super.withIsProtectable(isProtectable);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsrProtectableItem withBackupManagementType(String backupManagementType) {
super.withBackupManagementType(backupManagementType);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withWorkloadType(String workloadType) {
public AzureVmWorkloadSapHanaHsrProtectableItem withWorkloadType(String workloadType) {
super.withWorkloadType(workloadType);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withFriendlyName(String friendlyName) {
public AzureVmWorkloadSapHanaHsrProtectableItem withFriendlyName(String friendlyName) {
super.withFriendlyName(friendlyName);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaHsr withProtectionState(ProtectionStatus protectionState) {
public AzureVmWorkloadSapHanaHsrProtectableItem withProtectionState(ProtectionStatus protectionState) {
super.withProtectionState(protectionState);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ public AzureVmWorkloadSapHanaSystemProtectableItem withPrebackupvalidation(
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaSystemProtectableItem withIsProtectable(Boolean isProtectable) {
super.withIsProtectable(isProtectable);
return this;
}

/** {@inheritDoc} */
@Override
public AzureVmWorkloadSapHanaSystemProtectableItem withBackupManagementType(String backupManagementType) {
Expand Down
Loading