Skip to content

Commit

Permalink
Mgmt update compute version to 2021-12-01 (Azure#27390)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
XiaofeiCao and weidongxu-microsoft authored Mar 4, 2022
1 parent 6bf76bf commit c4060a2
Show file tree
Hide file tree
Showing 174 changed files with 93,889 additions and 83,899 deletions.
2 changes: 1 addition & 1 deletion sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"dir": "azure-resourcemanager-compute",
"source": "specification/compute/resource-manager/readme.md",
"package": "com.azure.resourcemanager.compute",
"args": "--tag=package-2021-11-01 --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities --preserve-model=AvailabilitySetSkuTypes"
"args": "--tag=package-2021-12-01 --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities --preserve-model=AvailabilitySetSkuTypes"
},
"compute-hybrid": {
"dir": "../resourcemanagerhybrid/azure-resourcemanager-compute",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

### Features Added

### Breaking Changes

### Bugs Fixed
- Changed to use PATCH for `GalleryImage` update.

### Other Changes

#### Dependency Updates

- Updated `api-version` to `2021-12-01`.

## 2.12.0 (2022-02-14)

### Features Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.azure.core.management.Resource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.compute.models.CreationData;
import com.azure.resourcemanager.compute.models.DataAccessAuthMode;
import com.azure.resourcemanager.compute.models.DiskSecurityProfile;
import com.azure.resourcemanager.compute.models.DiskSku;
import com.azure.resourcemanager.compute.models.DiskState;
Expand Down Expand Up @@ -760,6 +761,31 @@ public DiskInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess
return this;
}

/**
* Get the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk
* or snapshot.
*
* @return the dataAccessAuthMode value.
*/
public DataAccessAuthMode dataAccessAuthMode() {
return this.innerProperties() == null ? null : this.innerProperties().dataAccessAuthMode();
}

/**
* Set the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk
* or snapshot.
*
* @param dataAccessAuthMode the dataAccessAuthMode value to set.
* @return the DiskInner object itself.
*/
public DiskInner withDataAccessAuthMode(DataAccessAuthMode dataAccessAuthMode) {
if (this.innerProperties() == null) {
this.innerProperties = new DiskProperties();
}
this.innerProperties().withDataAccessAuthMode(dataAccessAuthMode);
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.compute.models.CreationData;
import com.azure.resourcemanager.compute.models.DataAccessAuthMode;
import com.azure.resourcemanager.compute.models.DiskSecurityProfile;
import com.azure.resourcemanager.compute.models.DiskState;
import com.azure.resourcemanager.compute.models.Encryption;
Expand Down Expand Up @@ -224,6 +225,13 @@ public final class DiskProperties {
@JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;

/*
* Additional authentication requirements when exporting or uploading to a
* disk or snapshot.
*/
@JsonProperty(value = "dataAccessAuthMode")
private DataAccessAuthMode dataAccessAuthMode;

/**
* Get the timeCreated property: The time when the disk was created.
*
Expand Down Expand Up @@ -742,6 +750,28 @@ public DiskProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkA
return this;
}

/**
* Get the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk
* or snapshot.
*
* @return the dataAccessAuthMode value.
*/
public DataAccessAuthMode dataAccessAuthMode() {
return this.dataAccessAuthMode;
}

/**
* Set the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk
* or snapshot.
*
* @param dataAccessAuthMode the dataAccessAuthMode value to set.
* @return the DiskProperties object itself.
*/
public DiskProperties withDataAccessAuthMode(DataAccessAuthMode dataAccessAuthMode) {
this.dataAccessAuthMode = dataAccessAuthMode;
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public DiskRestorePointInner withPurchasePlan(PurchasePlanAutoGenerated purchase
}

/**
* Get the supportedCapabilities property: List of supported capabilities (like accelerated networking) for the
* image from which the OS disk was created.
* Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was
* created.
*
* @return the supportedCapabilities value.
*/
Expand All @@ -122,8 +122,8 @@ public SupportedCapabilities supportedCapabilities() {
}

/**
* Set the supportedCapabilities property: List of supported capabilities (like accelerated networking) for the
* image from which the OS disk was created.
* Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was
* created.
*
* @param supportedCapabilities the supportedCapabilities value to set.
* @return the DiskRestorePointInner object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public final class DiskRestorePointProperties {
private PurchasePlanAutoGenerated purchasePlan;

/*
* List of supported capabilities (like accelerated networking) for the
* image from which the OS disk was created.
* List of supported capabilities for the image from which the OS disk was
* created.
*/
@JsonProperty(value = "supportedCapabilities")
private SupportedCapabilities supportedCapabilities;
Expand Down Expand Up @@ -193,8 +193,8 @@ public DiskRestorePointProperties withPurchasePlan(PurchasePlanAutoGenerated pur
}

/**
* Get the supportedCapabilities property: List of supported capabilities (like accelerated networking) for the
* image from which the OS disk was created.
* Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was
* created.
*
* @return the supportedCapabilities value.
*/
Expand All @@ -203,8 +203,8 @@ public SupportedCapabilities supportedCapabilities() {
}

/**
* Set the supportedCapabilities property: List of supported capabilities (like accelerated networking) for the
* image from which the OS disk was created.
* Set the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was
* created.
*
* @param supportedCapabilities the supportedCapabilities value to set.
* @return the DiskRestorePointProperties object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.compute.models.DataAccessAuthMode;
import com.azure.resourcemanager.compute.models.Encryption;
import com.azure.resourcemanager.compute.models.EncryptionSettingsCollection;
import com.azure.resourcemanager.compute.models.NetworkAccessPolicy;
Expand Down Expand Up @@ -126,8 +127,7 @@ public final class DiskUpdateProperties {
private PurchasePlanAutoGenerated purchasePlan;

/*
* List of supported capabilities (like accelerated networking) to be added
* on the OS disk.
* List of supported capabilities to be added on the OS disk.
*/
@JsonProperty(value = "supportedCapabilities")
private SupportedCapabilities supportedCapabilities;
Expand All @@ -150,6 +150,13 @@ public final class DiskUpdateProperties {
@JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;

/*
* Additional authentication requirements when exporting or uploading to a
* disk or snapshot.
*/
@JsonProperty(value = "dataAccessAuthMode")
private DataAccessAuthMode dataAccessAuthMode;

/**
* Get the osType property: the Operating System type.
*
Expand Down Expand Up @@ -458,8 +465,7 @@ public DiskUpdateProperties withPurchasePlan(PurchasePlanAutoGenerated purchaseP
}

/**
* Get the supportedCapabilities property: List of supported capabilities (like accelerated networking) to be added
* on the OS disk.
* Get the supportedCapabilities property: List of supported capabilities to be added on the OS disk.
*
* @return the supportedCapabilities value.
*/
Expand All @@ -468,8 +474,7 @@ public SupportedCapabilities supportedCapabilities() {
}

/**
* Set the supportedCapabilities property: List of supported capabilities (like accelerated networking) to be added
* on the OS disk.
* Set the supportedCapabilities property: List of supported capabilities to be added on the OS disk.
*
* @param supportedCapabilities the supportedCapabilities value to set.
* @return the DiskUpdateProperties object itself.
Expand Down Expand Up @@ -528,6 +533,28 @@ public DiskUpdateProperties withPublicNetworkAccess(PublicNetworkAccess publicNe
return this;
}

/**
* Get the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk
* or snapshot.
*
* @return the dataAccessAuthMode value.
*/
public DataAccessAuthMode dataAccessAuthMode() {
return this.dataAccessAuthMode;
}

/**
* Set the dataAccessAuthMode property: Additional authentication requirements when exporting or uploading to a disk
* or snapshot.
*
* @param dataAccessAuthMode the dataAccessAuthMode value to set.
* @return the DiskUpdateProperties object itself.
*/
public DiskUpdateProperties withDataAccessAuthMode(DataAccessAuthMode dataAccessAuthMode) {
this.dataAccessAuthMode = dataAccessAuthMode;
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.compute.models.Architecture;
import com.azure.resourcemanager.compute.models.Disallowed;
import com.azure.resourcemanager.compute.models.GalleryImageFeature;
import com.azure.resourcemanager.compute.models.GalleryImageIdentifier;
Expand Down Expand Up @@ -379,6 +380,29 @@ public GalleryImageInner withFeatures(List<GalleryImageFeature> features) {
return this;
}

/**
* Get the architecture property: The architecture of the image. Applicable to OS disks only.
*
* @return the architecture value.
*/
public Architecture architecture() {
return this.innerProperties() == null ? null : this.innerProperties().architecture();
}

/**
* Set the architecture property: The architecture of the image. Applicable to OS disks only.
*
* @param architecture the architecture value to set.
* @return the GalleryImageInner object itself.
*/
public GalleryImageInner withArchitecture(Architecture architecture) {
if (this.innerProperties() == null) {
this.innerProperties = new GalleryImageProperties();
}
this.innerProperties().withArchitecture(architecture);
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.compute.models.Architecture;
import com.azure.resourcemanager.compute.models.Disallowed;
import com.azure.resourcemanager.compute.models.GalleryImageFeature;
import com.azure.resourcemanager.compute.models.GalleryImageIdentifier;
Expand Down Expand Up @@ -118,6 +119,12 @@ public final class GalleryImageProperties {
@JsonProperty(value = "features")
private List<GalleryImageFeature> features;

/*
* The architecture of the image. Applicable to OS disks only.
*/
@JsonProperty(value = "architecture")
private Architecture architecture;

/**
* Get the description property: The description of this gallery image definition resource. This property is
* updatable.
Expand Down Expand Up @@ -402,6 +409,26 @@ public GalleryImageProperties withFeatures(List<GalleryImageFeature> features) {
return this;
}

/**
* Get the architecture property: The architecture of the image. Applicable to OS disks only.
*
* @return the architecture value.
*/
public Architecture architecture() {
return this.architecture;
}

/**
* Set the architecture property: The architecture of the image. Applicable to OS disks only.
*
* @param architecture the architecture value to set.
* @return the GalleryImageProperties object itself.
*/
public GalleryImageProperties withArchitecture(Architecture architecture) {
this.architecture = architecture;
return this;
}

/**
* Validates the instance.
*
Expand Down
Loading

0 comments on commit c4060a2

Please sign in to comment.