Skip to content

Commit 7ff79e8

Browse files
author
SDKAuto
committed
CodeGen from PR 19425 in Azure/azure-rest-api-specs
Merge 58e507f2051c96202dce7a3313a81d23e9fd51d6 into faf8c2cbb9581ec49f2d2c0b73afa655e3c3e8a5
1 parent 8960073 commit 7ff79e8

File tree

114 files changed

+1194
-682
lines changed

Some content is hidden

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

114 files changed

+1194
-682
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.6 (Unreleased)
3+
## 1.0.0-beta.1 (2022-06-21)
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-2022-06-01-preview. 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

+2-2
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-2022-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-2022-06-01-preview. 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.0.0-beta.5</version>
35+
<version>1.0.0-beta.6</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

+96-96
Large diffs are not rendered by default.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for RecoveryServicesBackup Management</name>
16-
<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-2022-02.</description>
16+
<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-2022-06-01-preview.</description>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ public RecoveryServicesBackupManager authenticate(TokenCredential credential, Az
397397
.append("-")
398398
.append("com.azure.resourcemanager.recoveryservicesbackup")
399399
.append("/")
400-
.append("1.0.0-beta.5");
400+
.append("1.0.0-beta.1");
401401
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
402402
userAgentBuilder
403403
.append(" (")

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ public ResourceGuardProxyOperationsClient getResourceGuardProxyOperations() {
766766
this.defaultPollInterval = defaultPollInterval;
767767
this.subscriptionId = subscriptionId;
768768
this.endpoint = endpoint;
769-
this.apiVersion = "2022-02-01";
769+
this.apiVersion = "2022-06-01-preview";
770770
this.backupResourceStorageConfigsNonCrrs = new BackupResourceStorageConfigsNonCrrsClientImpl(this);
771771
this.protectionIntents = new ProtectionIntentsClientImpl(this);
772772
this.backupStatus = new BackupStatusClientImpl(this);

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

-14
Original file line numberDiff line numberDiff line change
@@ -201,20 +201,6 @@ public AzureFileshareProtectedItem withExtendedInfo(AzureFileshareProtectedItemE
201201
return this;
202202
}
203203

204-
/** {@inheritDoc} */
205-
@Override
206-
public AzureFileshareProtectedItem withBackupManagementType(BackupManagementType backupManagementType) {
207-
super.withBackupManagementType(backupManagementType);
208-
return this;
209-
}
210-
211-
/** {@inheritDoc} */
212-
@Override
213-
public AzureFileshareProtectedItem withWorkloadType(DataSourceType workloadType) {
214-
super.withWorkloadType(workloadType);
215-
return this;
216-
}
217-
218204
/** {@inheritDoc} */
219205
@Override
220206
public AzureFileshareProtectedItem withContainerName(String containerName) {

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

-49
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,6 @@
1616
@JsonTypeName("Microsoft.ClassicCompute/virtualMachines")
1717
@Fluent
1818
public final class AzureIaaSClassicComputeVMProtectedItem extends AzureIaaSvmProtectedItem {
19-
/** {@inheritDoc} */
20-
@Override
21-
public AzureIaaSClassicComputeVMProtectedItem withFriendlyName(String friendlyName) {
22-
super.withFriendlyName(friendlyName);
23-
return this;
24-
}
25-
26-
/** {@inheritDoc} */
27-
@Override
28-
public AzureIaaSClassicComputeVMProtectedItem withVirtualMachineId(String virtualMachineId) {
29-
super.withVirtualMachineId(virtualMachineId);
30-
return this;
31-
}
32-
3319
/** {@inheritDoc} */
3420
@Override
3521
public AzureIaaSClassicComputeVMProtectedItem withProtectionStatus(String protectionStatus) {
@@ -44,13 +30,6 @@ public AzureIaaSClassicComputeVMProtectedItem withProtectionState(ProtectionStat
4430
return this;
4531
}
4632

47-
/** {@inheritDoc} */
48-
@Override
49-
public AzureIaaSClassicComputeVMProtectedItem withHealthStatus(HealthStatus healthStatus) {
50-
super.withHealthStatus(healthStatus);
51-
return this;
52-
}
53-
5433
/** {@inheritDoc} */
5534
@Override
5635
public AzureIaaSClassicComputeVMProtectedItem withHealthDetails(List<AzureIaaSvmHealthDetails> healthDetails) {
@@ -72,20 +51,6 @@ public AzureIaaSClassicComputeVMProtectedItem withLastBackupStatus(String lastBa
7251
return this;
7352
}
7453

75-
/** {@inheritDoc} */
76-
@Override
77-
public AzureIaaSClassicComputeVMProtectedItem withLastBackupTime(OffsetDateTime lastBackupTime) {
78-
super.withLastBackupTime(lastBackupTime);
79-
return this;
80-
}
81-
82-
/** {@inheritDoc} */
83-
@Override
84-
public AzureIaaSClassicComputeVMProtectedItem withProtectedItemDataId(String protectedItemDataId) {
85-
super.withProtectedItemDataId(protectedItemDataId);
86-
return this;
87-
}
88-
8954
/** {@inheritDoc} */
9055
@Override
9156
public AzureIaaSClassicComputeVMProtectedItem withExtendedInfo(AzureIaaSvmProtectedItemExtendedInfo extendedInfo) {
@@ -100,20 +65,6 @@ public AzureIaaSClassicComputeVMProtectedItem withExtendedProperties(ExtendedPro
10065
return this;
10166
}
10267

103-
/** {@inheritDoc} */
104-
@Override
105-
public AzureIaaSClassicComputeVMProtectedItem withBackupManagementType(BackupManagementType backupManagementType) {
106-
super.withBackupManagementType(backupManagementType);
107-
return this;
108-
}
109-
110-
/** {@inheritDoc} */
111-
@Override
112-
public AzureIaaSClassicComputeVMProtectedItem withWorkloadType(DataSourceType workloadType) {
113-
super.withWorkloadType(workloadType);
114-
return this;
115-
}
116-
11768
/** {@inheritDoc} */
11869
@Override
11970
public AzureIaaSClassicComputeVMProtectedItem withContainerName(String containerName) {

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

-49
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,6 @@
1616
@JsonTypeName("Microsoft.Compute/virtualMachines")
1717
@Fluent
1818
public final class AzureIaaSComputeVMProtectedItem extends AzureIaaSvmProtectedItem {
19-
/** {@inheritDoc} */
20-
@Override
21-
public AzureIaaSComputeVMProtectedItem withFriendlyName(String friendlyName) {
22-
super.withFriendlyName(friendlyName);
23-
return this;
24-
}
25-
26-
/** {@inheritDoc} */
27-
@Override
28-
public AzureIaaSComputeVMProtectedItem withVirtualMachineId(String virtualMachineId) {
29-
super.withVirtualMachineId(virtualMachineId);
30-
return this;
31-
}
32-
3319
/** {@inheritDoc} */
3420
@Override
3521
public AzureIaaSComputeVMProtectedItem withProtectionStatus(String protectionStatus) {
@@ -44,13 +30,6 @@ public AzureIaaSComputeVMProtectedItem withProtectionState(ProtectionState prote
4430
return this;
4531
}
4632

47-
/** {@inheritDoc} */
48-
@Override
49-
public AzureIaaSComputeVMProtectedItem withHealthStatus(HealthStatus healthStatus) {
50-
super.withHealthStatus(healthStatus);
51-
return this;
52-
}
53-
5433
/** {@inheritDoc} */
5534
@Override
5635
public AzureIaaSComputeVMProtectedItem withHealthDetails(List<AzureIaaSvmHealthDetails> healthDetails) {
@@ -72,20 +51,6 @@ public AzureIaaSComputeVMProtectedItem withLastBackupStatus(String lastBackupSta
7251
return this;
7352
}
7453

75-
/** {@inheritDoc} */
76-
@Override
77-
public AzureIaaSComputeVMProtectedItem withLastBackupTime(OffsetDateTime lastBackupTime) {
78-
super.withLastBackupTime(lastBackupTime);
79-
return this;
80-
}
81-
82-
/** {@inheritDoc} */
83-
@Override
84-
public AzureIaaSComputeVMProtectedItem withProtectedItemDataId(String protectedItemDataId) {
85-
super.withProtectedItemDataId(protectedItemDataId);
86-
return this;
87-
}
88-
8954
/** {@inheritDoc} */
9055
@Override
9156
public AzureIaaSComputeVMProtectedItem withExtendedInfo(AzureIaaSvmProtectedItemExtendedInfo extendedInfo) {
@@ -100,20 +65,6 @@ public AzureIaaSComputeVMProtectedItem withExtendedProperties(ExtendedProperties
10065
return this;
10166
}
10267

103-
/** {@inheritDoc} */
104-
@Override
105-
public AzureIaaSComputeVMProtectedItem withBackupManagementType(BackupManagementType backupManagementType) {
106-
super.withBackupManagementType(backupManagementType);
107-
return this;
108-
}
109-
110-
/** {@inheritDoc} */
111-
@Override
112-
public AzureIaaSComputeVMProtectedItem withWorkloadType(DataSourceType workloadType) {
113-
super.withWorkloadType(workloadType);
114-
return this;
115-
}
116-
11768
/** {@inheritDoc} */
11869
@Override
11970
public AzureIaaSComputeVMProtectedItem withContainerName(String containerName) {

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

+5-74
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ public class AzureIaaSvmProtectedItem extends ProtectedItem {
3232
/*
3333
* Friendly name of the VM represented by this backup item.
3434
*/
35-
@JsonProperty(value = "friendlyName")
35+
@JsonProperty(value = "friendlyName", access = JsonProperty.Access.WRITE_ONLY)
3636
private String friendlyName;
3737

3838
/*
3939
* Fully qualified ARM ID of the virtual machine represented by this item.
4040
*/
41-
@JsonProperty(value = "virtualMachineId")
41+
@JsonProperty(value = "virtualMachineId", access = JsonProperty.Access.WRITE_ONLY)
4242
private String virtualMachineId;
4343

4444
/*
@@ -56,7 +56,7 @@ public class AzureIaaSvmProtectedItem extends ProtectedItem {
5656
/*
5757
* Health status of protected item.
5858
*/
59-
@JsonProperty(value = "healthStatus")
59+
@JsonProperty(value = "healthStatus", access = JsonProperty.Access.WRITE_ONLY)
6060
private HealthStatus healthStatus;
6161

6262
/*
@@ -81,13 +81,13 @@ public class AzureIaaSvmProtectedItem extends ProtectedItem {
8181
/*
8282
* Timestamp of the last backup operation on this backup item.
8383
*/
84-
@JsonProperty(value = "lastBackupTime")
84+
@JsonProperty(value = "lastBackupTime", access = JsonProperty.Access.WRITE_ONLY)
8585
private OffsetDateTime lastBackupTime;
8686

8787
/*
8888
* Data ID of the protected item.
8989
*/
90-
@JsonProperty(value = "protectedItemDataId")
90+
@JsonProperty(value = "protectedItemDataId", access = JsonProperty.Access.WRITE_ONLY)
9191
private String protectedItemDataId;
9292

9393
/*
@@ -111,17 +111,6 @@ public String friendlyName() {
111111
return this.friendlyName;
112112
}
113113

114-
/**
115-
* Set the friendlyName property: Friendly name of the VM represented by this backup item.
116-
*
117-
* @param friendlyName the friendlyName value to set.
118-
* @return the AzureIaaSvmProtectedItem object itself.
119-
*/
120-
public AzureIaaSvmProtectedItem withFriendlyName(String friendlyName) {
121-
this.friendlyName = friendlyName;
122-
return this;
123-
}
124-
125114
/**
126115
* Get the virtualMachineId property: Fully qualified ARM ID of the virtual machine represented by this item.
127116
*
@@ -131,17 +120,6 @@ public String virtualMachineId() {
131120
return this.virtualMachineId;
132121
}
133122

134-
/**
135-
* Set the virtualMachineId property: Fully qualified ARM ID of the virtual machine represented by this item.
136-
*
137-
* @param virtualMachineId the virtualMachineId value to set.
138-
* @return the AzureIaaSvmProtectedItem object itself.
139-
*/
140-
public AzureIaaSvmProtectedItem withVirtualMachineId(String virtualMachineId) {
141-
this.virtualMachineId = virtualMachineId;
142-
return this;
143-
}
144-
145123
/**
146124
* Get the protectionStatus property: Backup status of this backup item.
147125
*
@@ -191,17 +169,6 @@ public HealthStatus healthStatus() {
191169
return this.healthStatus;
192170
}
193171

194-
/**
195-
* Set the healthStatus property: Health status of protected item.
196-
*
197-
* @param healthStatus the healthStatus value to set.
198-
* @return the AzureIaaSvmProtectedItem object itself.
199-
*/
200-
public AzureIaaSvmProtectedItem withHealthStatus(HealthStatus healthStatus) {
201-
this.healthStatus = healthStatus;
202-
return this;
203-
}
204-
205172
/**
206173
* Get the healthDetails property: Health details on this backup item.
207174
*
@@ -271,17 +238,6 @@ public OffsetDateTime lastBackupTime() {
271238
return this.lastBackupTime;
272239
}
273240

274-
/**
275-
* Set the lastBackupTime property: Timestamp of the last backup operation on this backup item.
276-
*
277-
* @param lastBackupTime the lastBackupTime value to set.
278-
* @return the AzureIaaSvmProtectedItem object itself.
279-
*/
280-
public AzureIaaSvmProtectedItem withLastBackupTime(OffsetDateTime lastBackupTime) {
281-
this.lastBackupTime = lastBackupTime;
282-
return this;
283-
}
284-
285241
/**
286242
* Get the protectedItemDataId property: Data ID of the protected item.
287243
*
@@ -291,17 +247,6 @@ public String protectedItemDataId() {
291247
return this.protectedItemDataId;
292248
}
293249

294-
/**
295-
* Set the protectedItemDataId property: Data ID of the protected item.
296-
*
297-
* @param protectedItemDataId the protectedItemDataId value to set.
298-
* @return the AzureIaaSvmProtectedItem object itself.
299-
*/
300-
public AzureIaaSvmProtectedItem withProtectedItemDataId(String protectedItemDataId) {
301-
this.protectedItemDataId = protectedItemDataId;
302-
return this;
303-
}
304-
305250
/**
306251
* Get the extendedInfo property: Additional information for this backup item.
307252
*
@@ -342,20 +287,6 @@ public AzureIaaSvmProtectedItem withExtendedProperties(ExtendedProperties extend
342287
return this;
343288
}
344289

345-
/** {@inheritDoc} */
346-
@Override
347-
public AzureIaaSvmProtectedItem withBackupManagementType(BackupManagementType backupManagementType) {
348-
super.withBackupManagementType(backupManagementType);
349-
return this;
350-
}
351-
352-
/** {@inheritDoc} */
353-
@Override
354-
public AzureIaaSvmProtectedItem withWorkloadType(DataSourceType workloadType) {
355-
super.withWorkloadType(workloadType);
356-
return this;
357-
}
358-
359290
/** {@inheritDoc} */
360291
@Override
361292
public AzureIaaSvmProtectedItem withContainerName(String containerName) {

0 commit comments

Comments
 (0)