Skip to content

Commit c4060a2

Browse files
Mgmt update compute version to 2021-12-01 (Azure#27390)
* mgmt_update_compute_version * refactor `update` on `GalleryImageImpl` * session updates * changelog * nit, refactor to use isInUpdateMode * update related sessions * nit, remove invalid character * checkstyle * Update sdk/resourcemanager/azure-resourcemanager-compute/CHANGELOG.md Co-authored-by: Weidong Xu <[email protected]> Co-authored-by: Weidong Xu <[email protected]>
1 parent 6bf76bf commit c4060a2

File tree

174 files changed

+93889
-83899
lines changed

Some content is hidden

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

174 files changed

+93889
-83899
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"dir": "azure-resourcemanager-compute",
9191
"source": "specification/compute/resource-manager/readme.md",
9292
"package": "com.azure.resourcemanager.compute",
93-
"args": "--tag=package-2021-11-01 --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities --preserve-model=AvailabilitySetSkuTypes"
93+
"args": "--tag=package-2021-12-01 --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities --preserve-model=AvailabilitySetSkuTypes"
9494
},
9595
"compute-hybrid": {
9696
"dir": "../resourcemanagerhybrid/azure-resourcemanager-compute",

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44

55
### Features Added
66

7-
### Breaking Changes
8-
9-
### Bugs Fixed
7+
- Changed to use PATCH for `GalleryImage` update.
108

119
### Other Changes
1210

11+
#### Dependency Updates
12+
13+
- Updated `api-version` to `2021-12-01`.
14+
1315
## 2.12.0 (2022-02-14)
1416

1517
### Features Added

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.azure.core.management.Resource;
99
import com.azure.core.util.logging.ClientLogger;
1010
import com.azure.resourcemanager.compute.models.CreationData;
11+
import com.azure.resourcemanager.compute.models.DataAccessAuthMode;
1112
import com.azure.resourcemanager.compute.models.DiskSecurityProfile;
1213
import com.azure.resourcemanager.compute.models.DiskSku;
1314
import com.azure.resourcemanager.compute.models.DiskState;
@@ -760,6 +761,31 @@ public DiskInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess
760761
return this;
761762
}
762763

764+
/**
765+
* Get the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk
766+
* or snapshot.
767+
*
768+
* @return the dataAccessAuthMode value.
769+
*/
770+
public DataAccessAuthMode dataAccessAuthMode() {
771+
return this.innerProperties() == null ? null : this.innerProperties().dataAccessAuthMode();
772+
}
773+
774+
/**
775+
* Set the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk
776+
* or snapshot.
777+
*
778+
* @param dataAccessAuthMode the dataAccessAuthMode value to set.
779+
* @return the DiskInner object itself.
780+
*/
781+
public DiskInner withDataAccessAuthMode(DataAccessAuthMode dataAccessAuthMode) {
782+
if (this.innerProperties() == null) {
783+
this.innerProperties = new DiskProperties();
784+
}
785+
this.innerProperties().withDataAccessAuthMode(dataAccessAuthMode);
786+
return this;
787+
}
788+
763789
/**
764790
* Validates the instance.
765791
*

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.util.logging.ClientLogger;
99
import com.azure.resourcemanager.compute.models.CreationData;
10+
import com.azure.resourcemanager.compute.models.DataAccessAuthMode;
1011
import com.azure.resourcemanager.compute.models.DiskSecurityProfile;
1112
import com.azure.resourcemanager.compute.models.DiskState;
1213
import com.azure.resourcemanager.compute.models.Encryption;
@@ -224,6 +225,13 @@ public final class DiskProperties {
224225
@JsonProperty(value = "publicNetworkAccess")
225226
private PublicNetworkAccess publicNetworkAccess;
226227

228+
/*
229+
* Additional authentication requirements when exporting or uploading to a
230+
* disk or snapshot.
231+
*/
232+
@JsonProperty(value = "dataAccessAuthMode")
233+
private DataAccessAuthMode dataAccessAuthMode;
234+
227235
/**
228236
* Get the timeCreated property: The time when the disk was created.
229237
*
@@ -742,6 +750,28 @@ public DiskProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkA
742750
return this;
743751
}
744752

753+
/**
754+
* Get the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk
755+
* or snapshot.
756+
*
757+
* @return the dataAccessAuthMode value.
758+
*/
759+
public DataAccessAuthMode dataAccessAuthMode() {
760+
return this.dataAccessAuthMode;
761+
}
762+
763+
/**
764+
* Set the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk
765+
* or snapshot.
766+
*
767+
* @param dataAccessAuthMode the dataAccessAuthMode value to set.
768+
* @return the DiskProperties object itself.
769+
*/
770+
public DiskProperties withDataAccessAuthMode(DataAccessAuthMode dataAccessAuthMode) {
771+
this.dataAccessAuthMode = dataAccessAuthMode;
772+
return this;
773+
}
774+
745775
/**
746776
* Validates the instance.
747777
*

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ public DiskRestorePointInner withPurchasePlan(PurchasePlanAutoGenerated purchase
112112
}
113113

114114
/**
115-
* Get the supportedCapabilities property: List of supported capabilities (like accelerated networking) for the
116-
* image from which the OS disk was created.
115+
* Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was
116+
* created.
117117
*
118118
* @return the supportedCapabilities value.
119119
*/
@@ -122,8 +122,8 @@ public SupportedCapabilities supportedCapabilities() {
122122
}
123123

124124
/**
125-
* Set the supportedCapabilities property: List of supported capabilities (like accelerated networking) for the
126-
* image from which the OS disk was created.
125+
* Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was
126+
* created.
127127
*
128128
* @param supportedCapabilities the supportedCapabilities value to set.
129129
* @return the DiskRestorePointInner object itself.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public final class DiskRestorePointProperties {
5555
private PurchasePlanAutoGenerated purchasePlan;
5656

5757
/*
58-
* List of supported capabilities (like accelerated networking) for the
59-
* image from which the OS disk was created.
58+
* List of supported capabilities for the image from which the OS disk was
59+
* created.
6060
*/
6161
@JsonProperty(value = "supportedCapabilities")
6262
private SupportedCapabilities supportedCapabilities;
@@ -193,8 +193,8 @@ public DiskRestorePointProperties withPurchasePlan(PurchasePlanAutoGenerated pur
193193
}
194194

195195
/**
196-
* Get the supportedCapabilities property: List of supported capabilities (like accelerated networking) for the
197-
* image from which the OS disk was created.
196+
* Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was
197+
* created.
198198
*
199199
* @return the supportedCapabilities value.
200200
*/
@@ -203,8 +203,8 @@ public SupportedCapabilities supportedCapabilities() {
203203
}
204204

205205
/**
206-
* Set the supportedCapabilities property: List of supported capabilities (like accelerated networking) for the
207-
* image from which the OS disk was created.
206+
* Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was
207+
* created.
208208
*
209209
* @param supportedCapabilities the supportedCapabilities value to set.
210210
* @return the DiskRestorePointProperties object itself.

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

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.util.logging.ClientLogger;
9+
import com.azure.resourcemanager.compute.models.DataAccessAuthMode;
910
import com.azure.resourcemanager.compute.models.Encryption;
1011
import com.azure.resourcemanager.compute.models.EncryptionSettingsCollection;
1112
import com.azure.resourcemanager.compute.models.NetworkAccessPolicy;
@@ -126,8 +127,7 @@ public final class DiskUpdateProperties {
126127
private PurchasePlanAutoGenerated purchasePlan;
127128

128129
/*
129-
* List of supported capabilities (like accelerated networking) to be added
130-
* on the OS disk.
130+
* List of supported capabilities to be added on the OS disk.
131131
*/
132132
@JsonProperty(value = "supportedCapabilities")
133133
private SupportedCapabilities supportedCapabilities;
@@ -150,6 +150,13 @@ public final class DiskUpdateProperties {
150150
@JsonProperty(value = "publicNetworkAccess")
151151
private PublicNetworkAccess publicNetworkAccess;
152152

153+
/*
154+
* Additional authentication requirements when exporting or uploading to a
155+
* disk or snapshot.
156+
*/
157+
@JsonProperty(value = "dataAccessAuthMode")
158+
private DataAccessAuthMode dataAccessAuthMode;
159+
153160
/**
154161
* Get the osType property: the Operating System type.
155162
*
@@ -458,8 +465,7 @@ public DiskUpdateProperties withPurchasePlan(PurchasePlanAutoGenerated purchaseP
458465
}
459466

460467
/**
461-
* Get the supportedCapabilities property: List of supported capabilities (like accelerated networking) to be added
462-
* on the OS disk.
468+
* Get the supportedCapabilities property: List of supported capabilities to be added on the OS disk.
463469
*
464470
* @return the supportedCapabilities value.
465471
*/
@@ -468,8 +474,7 @@ public SupportedCapabilities supportedCapabilities() {
468474
}
469475

470476
/**
471-
* Set the supportedCapabilities property: List of supported capabilities (like accelerated networking) to be added
472-
* on the OS disk.
477+
* Set the supportedCapabilities property: List of supported capabilities to be added on the OS disk.
473478
*
474479
* @param supportedCapabilities the supportedCapabilities value to set.
475480
* @return the DiskUpdateProperties object itself.
@@ -528,6 +533,28 @@ public DiskUpdateProperties withPublicNetworkAccess(PublicNetworkAccess publicNe
528533
return this;
529534
}
530535

536+
/**
537+
* Get the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk
538+
* or snapshot.
539+
*
540+
* @return the dataAccessAuthMode value.
541+
*/
542+
public DataAccessAuthMode dataAccessAuthMode() {
543+
return this.dataAccessAuthMode;
544+
}
545+
546+
/**
547+
* Set the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk
548+
* or snapshot.
549+
*
550+
* @param dataAccessAuthMode the dataAccessAuthMode value to set.
551+
* @return the DiskUpdateProperties object itself.
552+
*/
553+
public DiskUpdateProperties withDataAccessAuthMode(DataAccessAuthMode dataAccessAuthMode) {
554+
this.dataAccessAuthMode = dataAccessAuthMode;
555+
return this;
556+
}
557+
531558
/**
532559
* Validates the instance.
533560
*

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

Lines changed: 24 additions & 0 deletions
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.Architecture;
1011
import com.azure.resourcemanager.compute.models.Disallowed;
1112
import com.azure.resourcemanager.compute.models.GalleryImageFeature;
1213
import com.azure.resourcemanager.compute.models.GalleryImageIdentifier;
@@ -379,6 +380,29 @@ public GalleryImageInner withFeatures(List<GalleryImageFeature> features) {
379380
return this;
380381
}
381382

383+
/**
384+
* Get the architecture property: The architecture of the image. Applicable to OS disks only.
385+
*
386+
* @return the architecture value.
387+
*/
388+
public Architecture architecture() {
389+
return this.innerProperties() == null ? null : this.innerProperties().architecture();
390+
}
391+
392+
/**
393+
* Set the architecture property: The architecture of the image. Applicable to OS disks only.
394+
*
395+
* @param architecture the architecture value to set.
396+
* @return the GalleryImageInner object itself.
397+
*/
398+
public GalleryImageInner withArchitecture(Architecture architecture) {
399+
if (this.innerProperties() == null) {
400+
this.innerProperties = new GalleryImageProperties();
401+
}
402+
this.innerProperties().withArchitecture(architecture);
403+
return this;
404+
}
405+
382406
/**
383407
* Validates the instance.
384408
*

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.util.logging.ClientLogger;
9+
import com.azure.resourcemanager.compute.models.Architecture;
910
import com.azure.resourcemanager.compute.models.Disallowed;
1011
import com.azure.resourcemanager.compute.models.GalleryImageFeature;
1112
import com.azure.resourcemanager.compute.models.GalleryImageIdentifier;
@@ -118,6 +119,12 @@ public final class GalleryImageProperties {
118119
@JsonProperty(value = "features")
119120
private List<GalleryImageFeature> features;
120121

122+
/*
123+
* The architecture of the image. Applicable to OS disks only.
124+
*/
125+
@JsonProperty(value = "architecture")
126+
private Architecture architecture;
127+
121128
/**
122129
* Get the description property: The description of this gallery image definition resource. This property is
123130
* updatable.
@@ -402,6 +409,26 @@ public GalleryImageProperties withFeatures(List<GalleryImageFeature> features) {
402409
return this;
403410
}
404411

412+
/**
413+
* Get the architecture property: The architecture of the image. Applicable to OS disks only.
414+
*
415+
* @return the architecture value.
416+
*/
417+
public Architecture architecture() {
418+
return this.architecture;
419+
}
420+
421+
/**
422+
* Set the architecture property: The architecture of the image. Applicable to OS disks only.
423+
*
424+
* @param architecture the architecture value to set.
425+
* @return the GalleryImageProperties object itself.
426+
*/
427+
public GalleryImageProperties withArchitecture(Architecture architecture) {
428+
this.architecture = architecture;
429+
return this;
430+
}
431+
405432
/**
406433
* Validates the instance.
407434
*

0 commit comments

Comments
 (0)