Skip to content

Commit b763812

Browse files
author
SDKAuto
committed
CodeGen from PR 24210 in Azure/azure-rest-api-specs
Merge 35fde2bfec81598a849f6a9194dc08994c8872d4 into d4138083c1b04e801f5ec64d7e27076cdef39dee
1 parent fd60f58 commit b763812

File tree

383 files changed

+509
-18146
lines changed

Some content is hidden

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

383 files changed

+509
-18146
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.2.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2023-05-31)
4+
5+
- 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).
46

57
### Features Added
68

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

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

33
Azure Resource Manager RecoveryServicesBackup client library for Java.
44

5-
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).
5+
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).
66

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

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-recoveryservicesbackup</artifactId>
35-
<version>1.1.0</version>
35+
<version>1.2.0-beta.1</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/SAMPLE.md

Lines changed: 100 additions & 97 deletions
Large diffs are not rendered by default.

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for RecoveryServicesBackup Management</name>
21-
<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>
21+
<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>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/RecoveryServicesBackupManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public RecoveryServicesBackupManager authenticate(TokenCredential credential, Az
401401
.append("-")
402402
.append("com.azure.resourcemanager.recoveryservicesbackup")
403403
.append("/")
404-
.append("1.1.0");
404+
.append("1.0.0-beta.1");
405405
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
406406
userAgentBuilder
407407
.append(" (")

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryServicesBackupClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ public ResourceGuardProxyOperationsClient getResourceGuardProxyOperations() {
779779
this.defaultPollInterval = defaultPollInterval;
780780
this.subscriptionId = subscriptionId;
781781
this.endpoint = endpoint;
782-
this.apiVersion = "2023-02-01";
782+
this.apiVersion = "2023-04-01";
783783
this.backupResourceStorageConfigsNonCrrs = new BackupResourceStorageConfigsNonCrrsClientImpl(this);
784784
this.protectionIntents = new ProtectionIntentsClientImpl(this);
785785
this.backupStatus = new BackupStatusClientImpl(this);

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectableItem.java

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@JsonSubTypes.Type(name = "SAPHanaDatabase", value = AzureVmWorkloadSapHanaDatabaseProtectableItem.class),
2323
@JsonSubTypes.Type(name = "SAPHanaSystem", value = AzureVmWorkloadSapHanaSystemProtectableItem.class),
2424
@JsonSubTypes.Type(name = "SAPHanaDBInstance", value = AzureVmWorkloadSapHanaDBInstance.class),
25-
@JsonSubTypes.Type(name = "SAPHanaHSR", value = AzureVmWorkloadSapHanaHsr.class),
25+
@JsonSubTypes.Type(name = "HanaHSRContainer", value = AzureVmWorkloadSapHanaHsrProtectableItem.class),
2626
@JsonSubTypes.Type(
2727
name = "SQLAvailabilityGroupContainer",
2828
value = AzureVmWorkloadSqlAvailabilityGroupProtectableItem.class),
@@ -80,6 +80,12 @@ public class AzureVmWorkloadProtectableItem extends WorkloadProtectableItem {
8080
@JsonProperty(value = "prebackupvalidation")
8181
private PreBackupValidation prebackupvalidation;
8282

83+
/*
84+
* Indicates if item is protectable
85+
*/
86+
@JsonProperty(value = "isProtectable")
87+
private Boolean isProtectable;
88+
8389
/** Creates an instance of AzureVmWorkloadProtectableItem class. */
8490
public AzureVmWorkloadProtectableItem() {
8591
}
@@ -246,6 +252,26 @@ public AzureVmWorkloadProtectableItem withPrebackupvalidation(PreBackupValidatio
246252
return this;
247253
}
248254

255+
/**
256+
* Get the isProtectable property: Indicates if item is protectable.
257+
*
258+
* @return the isProtectable value.
259+
*/
260+
public Boolean isProtectable() {
261+
return this.isProtectable;
262+
}
263+
264+
/**
265+
* Set the isProtectable property: Indicates if item is protectable.
266+
*
267+
* @param isProtectable the isProtectable value to set.
268+
* @return the AzureVmWorkloadProtectableItem object itself.
269+
*/
270+
public AzureVmWorkloadProtectableItem withIsProtectable(Boolean isProtectable) {
271+
this.isProtectable = isProtectable;
272+
return this;
273+
}
274+
249275
/** {@inheritDoc} */
250276
@Override
251277
public AzureVmWorkloadProtectableItem withBackupManagementType(String backupManagementType) {

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectedItem.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ public class AzureVmWorkloadProtectedItem extends ProtectedItem {
114114
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
115115
private Map<String, KpiResourceHealthDetails> kpisHealths;
116116

117+
/*
118+
* List of the nodes in case of distributed container.
119+
*/
120+
@JsonProperty(value = "nodesList")
121+
private List<DistributedNodesInfo> nodesList;
122+
117123
/** Creates an instance of AzureVmWorkloadProtectedItem class. */
118124
public AzureVmWorkloadProtectedItem() {
119125
}
@@ -359,6 +365,26 @@ public AzureVmWorkloadProtectedItem withKpisHealths(Map<String, KpiResourceHealt
359365
return this;
360366
}
361367

368+
/**
369+
* Get the nodesList property: List of the nodes in case of distributed container.
370+
*
371+
* @return the nodesList value.
372+
*/
373+
public List<DistributedNodesInfo> nodesList() {
374+
return this.nodesList;
375+
}
376+
377+
/**
378+
* Set the nodesList property: List of the nodes in case of distributed container.
379+
*
380+
* @param nodesList the nodesList value to set.
381+
* @return the AzureVmWorkloadProtectedItem object itself.
382+
*/
383+
public AzureVmWorkloadProtectedItem withNodesList(List<DistributedNodesInfo> nodesList) {
384+
this.nodesList = nodesList;
385+
return this;
386+
}
387+
362388
/** {@inheritDoc} */
363389
@Override
364390
public AzureVmWorkloadProtectedItem withContainerName(String containerName) {
@@ -489,5 +515,8 @@ public void validate() {
489515
}
490516
});
491517
}
518+
if (nodesList() != null) {
519+
nodesList().forEach(e -> e.validate());
520+
}
492521
}
493522
}

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapAseDatabaseProtectedItem.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ public AzureVmWorkloadSapAseDatabaseProtectedItem withKpisHealths(
100100
return this;
101101
}
102102

103+
/** {@inheritDoc} */
104+
@Override
105+
public AzureVmWorkloadSapAseDatabaseProtectedItem withNodesList(List<DistributedNodesInfo> nodesList) {
106+
super.withNodesList(nodesList);
107+
return this;
108+
}
109+
103110
/** {@inheritDoc} */
104111
@Override
105112
public AzureVmWorkloadSapAseDatabaseProtectedItem withContainerName(String containerName) {

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapAseSystemProtectableItem.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ public AzureVmWorkloadSapAseSystemProtectableItem withPrebackupvalidation(PreBac
7373
return this;
7474
}
7575

76+
/** {@inheritDoc} */
77+
@Override
78+
public AzureVmWorkloadSapAseSystemProtectableItem withIsProtectable(Boolean isProtectable) {
79+
super.withIsProtectable(isProtectable);
80+
return this;
81+
}
82+
7683
/** {@inheritDoc} */
7784
@Override
7885
public AzureVmWorkloadSapAseSystemProtectableItem withBackupManagementType(String backupManagementType) {

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaDBInstance.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ public AzureVmWorkloadSapHanaDBInstance withPrebackupvalidation(PreBackupValidat
7373
return this;
7474
}
7575

76+
/** {@inheritDoc} */
77+
@Override
78+
public AzureVmWorkloadSapHanaDBInstance withIsProtectable(Boolean isProtectable) {
79+
super.withIsProtectable(isProtectable);
80+
return this;
81+
}
82+
7683
/** {@inheritDoc} */
7784
@Override
7885
public AzureVmWorkloadSapHanaDBInstance withBackupManagementType(String backupManagementType) {

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaDBInstanceProtectedItem.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ public AzureVmWorkloadSapHanaDBInstanceProtectedItem withKpisHealths(
101101
return this;
102102
}
103103

104+
/** {@inheritDoc} */
105+
@Override
106+
public AzureVmWorkloadSapHanaDBInstanceProtectedItem withNodesList(List<DistributedNodesInfo> nodesList) {
107+
super.withNodesList(nodesList);
108+
return this;
109+
}
110+
104111
/** {@inheritDoc} */
105112
@Override
106113
public AzureVmWorkloadSapHanaDBInstanceProtectedItem withContainerName(String containerName) {

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaDatabaseProtectableItem.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ public AzureVmWorkloadSapHanaDatabaseProtectableItem withPrebackupvalidation(
7474
return this;
7575
}
7676

77+
/** {@inheritDoc} */
78+
@Override
79+
public AzureVmWorkloadSapHanaDatabaseProtectableItem withIsProtectable(Boolean isProtectable) {
80+
super.withIsProtectable(isProtectable);
81+
return this;
82+
}
83+
7784
/** {@inheritDoc} */
7885
@Override
7986
public AzureVmWorkloadSapHanaDatabaseProtectableItem withBackupManagementType(String backupManagementType) {

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaDatabaseProtectedItem.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ public AzureVmWorkloadSapHanaDatabaseProtectedItem withKpisHealths(
100100
return this;
101101
}
102102

103+
/** {@inheritDoc} */
104+
@Override
105+
public AzureVmWorkloadSapHanaDatabaseProtectedItem withNodesList(List<DistributedNodesInfo> nodesList) {
106+
super.withNodesList(nodesList);
107+
return this;
108+
}
109+
103110
/** {@inheritDoc} */
104111
@Override
105112
public AzureVmWorkloadSapHanaDatabaseProtectedItem withContainerName(String containerName) {
Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,95 +8,102 @@
88
import com.fasterxml.jackson.annotation.JsonTypeInfo;
99
import com.fasterxml.jackson.annotation.JsonTypeName;
1010

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

2020
/** {@inheritDoc} */
2121
@Override
22-
public AzureVmWorkloadSapHanaHsr withParentName(String parentName) {
22+
public AzureVmWorkloadSapHanaHsrProtectableItem withParentName(String parentName) {
2323
super.withParentName(parentName);
2424
return this;
2525
}
2626

2727
/** {@inheritDoc} */
2828
@Override
29-
public AzureVmWorkloadSapHanaHsr withParentUniqueName(String parentUniqueName) {
29+
public AzureVmWorkloadSapHanaHsrProtectableItem withParentUniqueName(String parentUniqueName) {
3030
super.withParentUniqueName(parentUniqueName);
3131
return this;
3232
}
3333

3434
/** {@inheritDoc} */
3535
@Override
36-
public AzureVmWorkloadSapHanaHsr withServerName(String serverName) {
36+
public AzureVmWorkloadSapHanaHsrProtectableItem withServerName(String serverName) {
3737
super.withServerName(serverName);
3838
return this;
3939
}
4040

4141
/** {@inheritDoc} */
4242
@Override
43-
public AzureVmWorkloadSapHanaHsr withIsAutoProtectable(Boolean isAutoProtectable) {
43+
public AzureVmWorkloadSapHanaHsrProtectableItem withIsAutoProtectable(Boolean isAutoProtectable) {
4444
super.withIsAutoProtectable(isAutoProtectable);
4545
return this;
4646
}
4747

4848
/** {@inheritDoc} */
4949
@Override
50-
public AzureVmWorkloadSapHanaHsr withIsAutoProtected(Boolean isAutoProtected) {
50+
public AzureVmWorkloadSapHanaHsrProtectableItem withIsAutoProtected(Boolean isAutoProtected) {
5151
super.withIsAutoProtected(isAutoProtected);
5252
return this;
5353
}
5454

5555
/** {@inheritDoc} */
5656
@Override
57-
public AzureVmWorkloadSapHanaHsr withSubinquireditemcount(Integer subinquireditemcount) {
57+
public AzureVmWorkloadSapHanaHsrProtectableItem withSubinquireditemcount(Integer subinquireditemcount) {
5858
super.withSubinquireditemcount(subinquireditemcount);
5959
return this;
6060
}
6161

6262
/** {@inheritDoc} */
6363
@Override
64-
public AzureVmWorkloadSapHanaHsr withSubprotectableitemcount(Integer subprotectableitemcount) {
64+
public AzureVmWorkloadSapHanaHsrProtectableItem withSubprotectableitemcount(Integer subprotectableitemcount) {
6565
super.withSubprotectableitemcount(subprotectableitemcount);
6666
return this;
6767
}
6868

6969
/** {@inheritDoc} */
7070
@Override
71-
public AzureVmWorkloadSapHanaHsr withPrebackupvalidation(PreBackupValidation prebackupvalidation) {
71+
public AzureVmWorkloadSapHanaHsrProtectableItem withPrebackupvalidation(PreBackupValidation prebackupvalidation) {
7272
super.withPrebackupvalidation(prebackupvalidation);
7373
return this;
7474
}
7575

7676
/** {@inheritDoc} */
7777
@Override
78-
public AzureVmWorkloadSapHanaHsr withBackupManagementType(String backupManagementType) {
78+
public AzureVmWorkloadSapHanaHsrProtectableItem withIsProtectable(Boolean isProtectable) {
79+
super.withIsProtectable(isProtectable);
80+
return this;
81+
}
82+
83+
/** {@inheritDoc} */
84+
@Override
85+
public AzureVmWorkloadSapHanaHsrProtectableItem withBackupManagementType(String backupManagementType) {
7986
super.withBackupManagementType(backupManagementType);
8087
return this;
8188
}
8289

8390
/** {@inheritDoc} */
8491
@Override
85-
public AzureVmWorkloadSapHanaHsr withWorkloadType(String workloadType) {
92+
public AzureVmWorkloadSapHanaHsrProtectableItem withWorkloadType(String workloadType) {
8693
super.withWorkloadType(workloadType);
8794
return this;
8895
}
8996

9097
/** {@inheritDoc} */
9198
@Override
92-
public AzureVmWorkloadSapHanaHsr withFriendlyName(String friendlyName) {
99+
public AzureVmWorkloadSapHanaHsrProtectableItem withFriendlyName(String friendlyName) {
93100
super.withFriendlyName(friendlyName);
94101
return this;
95102
}
96103

97104
/** {@inheritDoc} */
98105
@Override
99-
public AzureVmWorkloadSapHanaHsr withProtectionState(ProtectionStatus protectionState) {
106+
public AzureVmWorkloadSapHanaHsrProtectableItem withProtectionState(ProtectionStatus protectionState) {
100107
super.withProtectionState(protectionState);
101108
return this;
102109
}

sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaSystemProtectableItem.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ public AzureVmWorkloadSapHanaSystemProtectableItem withPrebackupvalidation(
7474
return this;
7575
}
7676

77+
/** {@inheritDoc} */
78+
@Override
79+
public AzureVmWorkloadSapHanaSystemProtectableItem withIsProtectable(Boolean isProtectable) {
80+
super.withIsProtectable(isProtectable);
81+
return this;
82+
}
83+
7784
/** {@inheritDoc} */
7885
@Override
7986
public AzureVmWorkloadSapHanaSystemProtectableItem withBackupManagementType(String backupManagementType) {

0 commit comments

Comments
 (0)