Skip to content

Commit 6d9bb16

Browse files
author
SDKAuto
committed
CodeGen from PR 22260 in Azure/azure-rest-api-specs
Merge f8dd7ffccd100e7e3df20ce06b8d81d5d6b0be4a into f6d16956a7d5b75e125a88d81d7bc9b6fecfd41a
1 parent 7361c2a commit 6d9bb16

File tree

370 files changed

+675
-18006
lines changed

Some content is hidden

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

370 files changed

+675
-18006
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.1.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2023-03-07)
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-02. 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-01. 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-02. 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</version>
35+
<version>1.1.0-beta.1</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 106 additions & 98 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-01.</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-02.</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.0.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-01-01";
782+
this.apiVersion = "2023-02-01";
783783
this.backupResourceStorageConfigsNonCrrs = new BackupResourceStorageConfigsNonCrrsClientImpl(this);
784784
this.protectionIntents = new ProtectionIntentsClientImpl(this);
785785
this.backupStatus = new BackupStatusClientImpl(this);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.recoveryservicesbackup.models;
6+
7+
import com.azure.core.annotation.Fluent;
8+
import com.fasterxml.jackson.annotation.JsonProperty;
9+
10+
/** The extended location of Recovery point where VM was present. */
11+
@Fluent
12+
public final class ExtendedLocation {
13+
/*
14+
* Name of the extended location.
15+
*/
16+
@JsonProperty(value = "name")
17+
private String name;
18+
19+
/*
20+
* Type of the extended location. Possible values include: 'EdgeZone'
21+
*/
22+
@JsonProperty(value = "type")
23+
private String type;
24+
25+
/** Creates an instance of ExtendedLocation class. */
26+
public ExtendedLocation() {
27+
}
28+
29+
/**
30+
* Get the name property: Name of the extended location.
31+
*
32+
* @return the name value.
33+
*/
34+
public String name() {
35+
return this.name;
36+
}
37+
38+
/**
39+
* Set the name property: Name of the extended location.
40+
*
41+
* @param name the name value to set.
42+
* @return the ExtendedLocation object itself.
43+
*/
44+
public ExtendedLocation withName(String name) {
45+
this.name = name;
46+
return this;
47+
}
48+
49+
/**
50+
* Get the type property: Type of the extended location. Possible values include: 'EdgeZone'.
51+
*
52+
* @return the type value.
53+
*/
54+
public String type() {
55+
return this.type;
56+
}
57+
58+
/**
59+
* Set the type property: Type of the extended location. Possible values include: 'EdgeZone'.
60+
*
61+
* @param type the type value to set.
62+
* @return the ExtendedLocation object itself.
63+
*/
64+
public ExtendedLocation withType(String type) {
65+
this.type = type;
66+
return this;
67+
}
68+
69+
/**
70+
* Validates the instance.
71+
*
72+
* @throws IllegalArgumentException thrown if the instance is not valid.
73+
*/
74+
public void validate() {
75+
}
76+
}

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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,24 @@ public final class IaasVMRecoveryPoint extends RecoveryPoint {
109109
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
110110
private Map<String, RecoveryPointMoveReadinessInfo> recoveryPointMoveReadinessInfo;
111111

112+
/*
113+
* Security Type of the Disk
114+
*/
115+
@JsonProperty(value = "securityType")
116+
private String securityType;
117+
112118
/*
113119
* Properties of Recovery Point
114120
*/
115121
@JsonProperty(value = "recoveryPointProperties")
116122
private RecoveryPointProperties recoveryPointProperties;
117123

124+
/*
125+
* This flag denotes if any of the disks in the VM are using Private access network setting
126+
*/
127+
@JsonProperty(value = "isPrivateAccessEnabledOnAnyDisk")
128+
private Boolean isPrivateAccessEnabledOnAnyDisk;
129+
118130
/** Creates an instance of IaasVMRecoveryPoint class. */
119131
public IaasVMRecoveryPoint() {
120132
}
@@ -424,6 +436,26 @@ public IaasVMRecoveryPoint withRecoveryPointMoveReadinessInfo(
424436
return this;
425437
}
426438

439+
/**
440+
* Get the securityType property: Security Type of the Disk.
441+
*
442+
* @return the securityType value.
443+
*/
444+
public String securityType() {
445+
return this.securityType;
446+
}
447+
448+
/**
449+
* Set the securityType property: Security Type of the Disk.
450+
*
451+
* @param securityType the securityType value to set.
452+
* @return the IaasVMRecoveryPoint object itself.
453+
*/
454+
public IaasVMRecoveryPoint withSecurityType(String securityType) {
455+
this.securityType = securityType;
456+
return this;
457+
}
458+
427459
/**
428460
* Get the recoveryPointProperties property: Properties of Recovery Point.
429461
*
@@ -444,6 +476,28 @@ public IaasVMRecoveryPoint withRecoveryPointProperties(RecoveryPointProperties r
444476
return this;
445477
}
446478

479+
/**
480+
* Get the isPrivateAccessEnabledOnAnyDisk property: This flag denotes if any of the disks in the VM are using
481+
* Private access network setting.
482+
*
483+
* @return the isPrivateAccessEnabledOnAnyDisk value.
484+
*/
485+
public Boolean isPrivateAccessEnabledOnAnyDisk() {
486+
return this.isPrivateAccessEnabledOnAnyDisk;
487+
}
488+
489+
/**
490+
* Set the isPrivateAccessEnabledOnAnyDisk property: This flag denotes if any of the disks in the VM are using
491+
* Private access network setting.
492+
*
493+
* @param isPrivateAccessEnabledOnAnyDisk the isPrivateAccessEnabledOnAnyDisk value to set.
494+
* @return the IaasVMRecoveryPoint object itself.
495+
*/
496+
public IaasVMRecoveryPoint withIsPrivateAccessEnabledOnAnyDisk(Boolean isPrivateAccessEnabledOnAnyDisk) {
497+
this.isPrivateAccessEnabledOnAnyDisk = isPrivateAccessEnabledOnAnyDisk;
498+
return this;
499+
}
500+
447501
/**
448502
* Validates the instance.
449503
*

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

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,25 @@ public class IaasVMRestoreRequest extends RestoreRequest {
153153
@JsonProperty(value = "identityBasedRestoreDetails")
154154
private IdentityBasedRestoreDetails identityBasedRestoreDetails;
155155

156+
/*
157+
* Target extended location where the VM should be restored,
158+
* should be null if restore is to be done in public cloud
159+
*/
160+
@JsonProperty(value = "extendedLocation")
161+
private ExtendedLocation extendedLocation;
162+
163+
/*
164+
* Stores Secured VM Details
165+
*/
166+
@JsonProperty(value = "securedVMDetails")
167+
private SecuredVMDetails securedVMDetails;
168+
169+
/*
170+
* Specifies target network access settings for disks of VM to be restored,
171+
*/
172+
@JsonProperty(value = "targetDiskNetworkAccessSettings")
173+
private TargetDiskNetworkAccessSettings targetDiskNetworkAccessSettings;
174+
156175
/** Creates an instance of IaasVMRestoreRequest class. */
157176
public IaasVMRestoreRequest() {
158177
}
@@ -582,6 +601,71 @@ public IaasVMRestoreRequest withIdentityBasedRestoreDetails(
582601
return this;
583602
}
584603

604+
/**
605+
* Get the extendedLocation property: Target extended location where the VM should be restored, should be null if
606+
* restore is to be done in public cloud.
607+
*
608+
* @return the extendedLocation value.
609+
*/
610+
public ExtendedLocation extendedLocation() {
611+
return this.extendedLocation;
612+
}
613+
614+
/**
615+
* Set the extendedLocation property: Target extended location where the VM should be restored, should be null if
616+
* restore is to be done in public cloud.
617+
*
618+
* @param extendedLocation the extendedLocation value to set.
619+
* @return the IaasVMRestoreRequest object itself.
620+
*/
621+
public IaasVMRestoreRequest withExtendedLocation(ExtendedLocation extendedLocation) {
622+
this.extendedLocation = extendedLocation;
623+
return this;
624+
}
625+
626+
/**
627+
* Get the securedVMDetails property: Stores Secured VM Details.
628+
*
629+
* @return the securedVMDetails value.
630+
*/
631+
public SecuredVMDetails securedVMDetails() {
632+
return this.securedVMDetails;
633+
}
634+
635+
/**
636+
* Set the securedVMDetails property: Stores Secured VM Details.
637+
*
638+
* @param securedVMDetails the securedVMDetails value to set.
639+
* @return the IaasVMRestoreRequest object itself.
640+
*/
641+
public IaasVMRestoreRequest withSecuredVMDetails(SecuredVMDetails securedVMDetails) {
642+
this.securedVMDetails = securedVMDetails;
643+
return this;
644+
}
645+
646+
/**
647+
* Get the targetDiskNetworkAccessSettings property: Specifies target network access settings for disks of VM to be
648+
* restored,.
649+
*
650+
* @return the targetDiskNetworkAccessSettings value.
651+
*/
652+
public TargetDiskNetworkAccessSettings targetDiskNetworkAccessSettings() {
653+
return this.targetDiskNetworkAccessSettings;
654+
}
655+
656+
/**
657+
* Set the targetDiskNetworkAccessSettings property: Specifies target network access settings for disks of VM to be
658+
* restored,.
659+
*
660+
* @param targetDiskNetworkAccessSettings the targetDiskNetworkAccessSettings value to set.
661+
* @return the IaasVMRestoreRequest object itself.
662+
*/
663+
public IaasVMRestoreRequest withTargetDiskNetworkAccessSettings(
664+
TargetDiskNetworkAccessSettings targetDiskNetworkAccessSettings) {
665+
this.targetDiskNetworkAccessSettings = targetDiskNetworkAccessSettings;
666+
return this;
667+
}
668+
585669
/**
586670
* Validates the instance.
587671
*
@@ -599,5 +683,14 @@ public void validate() {
599683
if (identityBasedRestoreDetails() != null) {
600684
identityBasedRestoreDetails().validate();
601685
}
686+
if (extendedLocation() != null) {
687+
extendedLocation().validate();
688+
}
689+
if (securedVMDetails() != null) {
690+
securedVMDetails().validate();
691+
}
692+
if (targetDiskNetworkAccessSettings() != null) {
693+
targetDiskNetworkAccessSettings().validate();
694+
}
602695
}
603696
}

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,28 @@ public IaasVMRestoreWithRehydrationRequest withIdentityBasedRestoreDetails(
187187
return this;
188188
}
189189

190+
/** {@inheritDoc} */
191+
@Override
192+
public IaasVMRestoreWithRehydrationRequest withExtendedLocation(ExtendedLocation extendedLocation) {
193+
super.withExtendedLocation(extendedLocation);
194+
return this;
195+
}
196+
197+
/** {@inheritDoc} */
198+
@Override
199+
public IaasVMRestoreWithRehydrationRequest withSecuredVMDetails(SecuredVMDetails securedVMDetails) {
200+
super.withSecuredVMDetails(securedVMDetails);
201+
return this;
202+
}
203+
204+
/** {@inheritDoc} */
205+
@Override
206+
public IaasVMRestoreWithRehydrationRequest withTargetDiskNetworkAccessSettings(
207+
TargetDiskNetworkAccessSettings targetDiskNetworkAccessSettings) {
208+
super.withTargetDiskNetworkAccessSettings(targetDiskNetworkAccessSettings);
209+
return this;
210+
}
211+
190212
/**
191213
* Validates the instance.
192214
*

0 commit comments

Comments
 (0)