Skip to content

Commit 8e51e92

Browse files
mgmt, specs changed on compute (#24027)
* regen compute * update sessions
1 parent 064b7dd commit 8e51e92

File tree

53 files changed

+1925
-971
lines changed

Some content is hidden

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

53 files changed

+1925
-971
lines changed

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/DiskAccessesClient.java

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

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/DiskEncryptionSetsClient.java

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

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/DiskRestorePointsClient.java

+39-99
Large diffs are not rendered by default.

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/DisksClient.java

+78-39
Large diffs are not rendered by default.

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/SnapshotsClient.java

+78-39
Large diffs are not rendered by default.

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskAccessInner.java

+33
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.management.Resource;
99
import com.azure.core.util.logging.ClientLogger;
10+
import com.azure.resourcemanager.compute.models.ExtendedLocation;
1011
import com.fasterxml.jackson.annotation.JsonIgnore;
1112
import com.fasterxml.jackson.annotation.JsonProperty;
1213
import java.time.OffsetDateTime;
@@ -24,6 +25,13 @@ public final class DiskAccessInner extends Resource {
2425
@JsonProperty(value = "properties")
2526
private DiskAccessProperties innerProperties;
2627

28+
/*
29+
* The extended location where the disk access will be created. Extended
30+
* location cannot be changed.
31+
*/
32+
@JsonProperty(value = "extendedLocation")
33+
private ExtendedLocation extendedLocation;
34+
2735
/**
2836
* Get the innerProperties property: The properties property.
2937
*
@@ -33,6 +41,28 @@ private DiskAccessProperties innerProperties() {
3341
return this.innerProperties;
3442
}
3543

44+
/**
45+
* Get the extendedLocation property: The extended location where the disk access will be created. Extended location
46+
* cannot be changed.
47+
*
48+
* @return the extendedLocation value.
49+
*/
50+
public ExtendedLocation extendedLocation() {
51+
return this.extendedLocation;
52+
}
53+
54+
/**
55+
* Set the extendedLocation property: The extended location where the disk access will be created. Extended location
56+
* cannot be changed.
57+
*
58+
* @param extendedLocation the extendedLocation value to set.
59+
* @return the DiskAccessInner object itself.
60+
*/
61+
public DiskAccessInner withExtendedLocation(ExtendedLocation extendedLocation) {
62+
this.extendedLocation = extendedLocation;
63+
return this;
64+
}
65+
3666
/** {@inheritDoc} */
3767
@Override
3868
public DiskAccessInner withLocation(String location) {
@@ -84,5 +114,8 @@ public void validate() {
84114
if (innerProperties() != null) {
85115
innerProperties().validate();
86116
}
117+
if (extendedLocation() != null) {
118+
extendedLocation().validate();
119+
}
87120
}
88121
}

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskEncryptionSetInner.java

+11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.management.Resource;
99
import com.azure.core.util.logging.ClientLogger;
10+
import com.azure.resourcemanager.compute.models.ApiError;
1011
import com.azure.resourcemanager.compute.models.DiskEncryptionSetType;
1112
import com.azure.resourcemanager.compute.models.EncryptionSetIdentity;
1213
import com.azure.resourcemanager.compute.models.KeyForDiskEncryptionSet;
@@ -178,6 +179,16 @@ public OffsetDateTime lastKeyRotationTimestamp() {
178179
return this.innerProperties() == null ? null : this.innerProperties().lastKeyRotationTimestamp();
179180
}
180181

182+
/**
183+
* Get the autoKeyRotationError property: The error that was encountered during auto-key rotation. If an error is
184+
* present, then auto-key rotation will not be attempted until the error on this disk encryption set is fixed.
185+
*
186+
* @return the autoKeyRotationError value.
187+
*/
188+
public ApiError autoKeyRotationError() {
189+
return this.innerProperties() == null ? null : this.innerProperties().autoKeyRotationError();
190+
}
191+
181192
/**
182193
* Validates the instance.
183194
*

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskInner.java

+75
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
import com.azure.resourcemanager.compute.models.NetworkAccessPolicy;
1919
import com.azure.resourcemanager.compute.models.OperatingSystemTypes;
2020
import com.azure.resourcemanager.compute.models.PropertyUpdatesInProgress;
21+
import com.azure.resourcemanager.compute.models.PublicNetworkAccess;
2122
import com.azure.resourcemanager.compute.models.PurchasePlanAutoGenerated;
2223
import com.azure.resourcemanager.compute.models.ShareInfoElement;
24+
import com.azure.resourcemanager.compute.models.SupportedCapabilities;
2325
import com.fasterxml.jackson.annotation.JsonIgnore;
2426
import com.fasterxml.jackson.annotation.JsonProperty;
2527
import java.time.OffsetDateTime;
@@ -257,6 +259,31 @@ public DiskInner withPurchasePlan(PurchasePlanAutoGenerated purchasePlan) {
257259
return this;
258260
}
259261

262+
/**
263+
* Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was
264+
* created.
265+
*
266+
* @return the supportedCapabilities value.
267+
*/
268+
public SupportedCapabilities supportedCapabilities() {
269+
return this.innerProperties() == null ? null : this.innerProperties().supportedCapabilities();
270+
}
271+
272+
/**
273+
* Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was
274+
* created.
275+
*
276+
* @param supportedCapabilities the supportedCapabilities value to set.
277+
* @return the DiskInner object itself.
278+
*/
279+
public DiskInner withSupportedCapabilities(SupportedCapabilities supportedCapabilities) {
280+
if (this.innerProperties() == null) {
281+
this.innerProperties = new DiskProperties();
282+
}
283+
this.innerProperties().withSupportedCapabilities(supportedCapabilities);
284+
return this;
285+
}
286+
260287
/**
261288
* Get the creationData property: Disk source information. CreationData information cannot be changed after the disk
262289
* has been created.
@@ -685,6 +712,54 @@ public DiskInner withSecurityProfile(DiskSecurityProfile securityProfile) {
685712
return this;
686713
}
687714

715+
/**
716+
* Get the completionPercent property: Percentage complete for the background copy when a resource is created via
717+
* the CopyStart operation.
718+
*
719+
* @return the completionPercent value.
720+
*/
721+
public Float completionPercent() {
722+
return this.innerProperties() == null ? null : this.innerProperties().completionPercent();
723+
}
724+
725+
/**
726+
* Set the completionPercent property: Percentage complete for the background copy when a resource is created via
727+
* the CopyStart operation.
728+
*
729+
* @param completionPercent the completionPercent value to set.
730+
* @return the DiskInner object itself.
731+
*/
732+
public DiskInner withCompletionPercent(Float completionPercent) {
733+
if (this.innerProperties() == null) {
734+
this.innerProperties = new DiskProperties();
735+
}
736+
this.innerProperties().withCompletionPercent(completionPercent);
737+
return this;
738+
}
739+
740+
/**
741+
* Get the publicNetworkAccess property: Policy for controlling export on the disk.
742+
*
743+
* @return the publicNetworkAccess value.
744+
*/
745+
public PublicNetworkAccess publicNetworkAccess() {
746+
return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
747+
}
748+
749+
/**
750+
* Set the publicNetworkAccess property: Policy for controlling export on the disk.
751+
*
752+
* @param publicNetworkAccess the publicNetworkAccess value to set.
753+
* @return the DiskInner object itself.
754+
*/
755+
public DiskInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
756+
if (this.innerProperties() == null) {
757+
this.innerProperties = new DiskProperties();
758+
}
759+
this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
760+
return this;
761+
}
762+
688763
/**
689764
* Validates the instance.
690765
*

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskProperties.java

+89
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
import com.azure.resourcemanager.compute.models.NetworkAccessPolicy;
1616
import com.azure.resourcemanager.compute.models.OperatingSystemTypes;
1717
import com.azure.resourcemanager.compute.models.PropertyUpdatesInProgress;
18+
import com.azure.resourcemanager.compute.models.PublicNetworkAccess;
1819
import com.azure.resourcemanager.compute.models.PurchasePlanAutoGenerated;
1920
import com.azure.resourcemanager.compute.models.ShareInfoElement;
21+
import com.azure.resourcemanager.compute.models.SupportedCapabilities;
2022
import com.fasterxml.jackson.annotation.JsonIgnore;
2123
import com.fasterxml.jackson.annotation.JsonProperty;
2224
import java.time.OffsetDateTime;
@@ -54,6 +56,13 @@ public final class DiskProperties {
5456
@JsonProperty(value = "purchasePlan")
5557
private PurchasePlanAutoGenerated purchasePlan;
5658

59+
/*
60+
* List of supported capabilities for the image from which the OS disk was
61+
* created.
62+
*/
63+
@JsonProperty(value = "supportedCapabilities")
64+
private SupportedCapabilities supportedCapabilities;
65+
5766
/*
5867
* Disk source information. CreationData information cannot be changed
5968
* after the disk has been created.
@@ -202,6 +211,19 @@ public final class DiskProperties {
202211
@JsonProperty(value = "securityProfile")
203212
private DiskSecurityProfile securityProfile;
204213

214+
/*
215+
* Percentage complete for the background copy when a resource is created
216+
* via the CopyStart operation.
217+
*/
218+
@JsonProperty(value = "completionPercent")
219+
private Float completionPercent;
220+
221+
/*
222+
* Policy for controlling export on the disk.
223+
*/
224+
@JsonProperty(value = "publicNetworkAccess")
225+
private PublicNetworkAccess publicNetworkAccess;
226+
205227
/**
206228
* Get the timeCreated property: The time when the disk was created.
207229
*
@@ -273,6 +295,28 @@ public DiskProperties withPurchasePlan(PurchasePlanAutoGenerated purchasePlan) {
273295
return this;
274296
}
275297

298+
/**
299+
* Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was
300+
* created.
301+
*
302+
* @return the supportedCapabilities value.
303+
*/
304+
public SupportedCapabilities supportedCapabilities() {
305+
return this.supportedCapabilities;
306+
}
307+
308+
/**
309+
* Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was
310+
* created.
311+
*
312+
* @param supportedCapabilities the supportedCapabilities value to set.
313+
* @return the DiskProperties object itself.
314+
*/
315+
public DiskProperties withSupportedCapabilities(SupportedCapabilities supportedCapabilities) {
316+
this.supportedCapabilities = supportedCapabilities;
317+
return this;
318+
}
319+
276320
/**
277321
* Get the creationData property: Disk source information. CreationData information cannot be changed after the disk
278322
* has been created.
@@ -656,6 +700,48 @@ public DiskProperties withSecurityProfile(DiskSecurityProfile securityProfile) {
656700
return this;
657701
}
658702

703+
/**
704+
* Get the completionPercent property: Percentage complete for the background copy when a resource is created via
705+
* the CopyStart operation.
706+
*
707+
* @return the completionPercent value.
708+
*/
709+
public Float completionPercent() {
710+
return this.completionPercent;
711+
}
712+
713+
/**
714+
* Set the completionPercent property: Percentage complete for the background copy when a resource is created via
715+
* the CopyStart operation.
716+
*
717+
* @param completionPercent the completionPercent value to set.
718+
* @return the DiskProperties object itself.
719+
*/
720+
public DiskProperties withCompletionPercent(Float completionPercent) {
721+
this.completionPercent = completionPercent;
722+
return this;
723+
}
724+
725+
/**
726+
* Get the publicNetworkAccess property: Policy for controlling export on the disk.
727+
*
728+
* @return the publicNetworkAccess value.
729+
*/
730+
public PublicNetworkAccess publicNetworkAccess() {
731+
return this.publicNetworkAccess;
732+
}
733+
734+
/**
735+
* Set the publicNetworkAccess property: Policy for controlling export on the disk.
736+
*
737+
* @param publicNetworkAccess the publicNetworkAccess value to set.
738+
* @return the DiskProperties object itself.
739+
*/
740+
public DiskProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
741+
this.publicNetworkAccess = publicNetworkAccess;
742+
return this;
743+
}
744+
659745
/**
660746
* Validates the instance.
661747
*
@@ -665,6 +751,9 @@ public void validate() {
665751
if (purchasePlan() != null) {
666752
purchasePlan().validate();
667753
}
754+
if (supportedCapabilities() != null) {
755+
supportedCapabilities().validate();
756+
}
668757
if (creationData() == null) {
669758
throw logger
670759
.logExceptionAsError(

0 commit comments

Comments
 (0)