Skip to content

Commit

Permalink
mgmt, specs changed on compute (#24027)
Browse files Browse the repository at this point in the history
* regen compute

* update sessions
  • Loading branch information
weidongxu-microsoft committed Sep 10, 2021
1 parent 064b7dd commit 8e51e92
Show file tree
Hide file tree
Showing 53 changed files with 1,925 additions and 971 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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.ExtendedLocation;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
Expand All @@ -24,6 +25,13 @@ public final class DiskAccessInner extends Resource {
@JsonProperty(value = "properties")
private DiskAccessProperties innerProperties;

/*
* The extended location where the disk access will be created. Extended
* location cannot be changed.
*/
@JsonProperty(value = "extendedLocation")
private ExtendedLocation extendedLocation;

/**
* Get the innerProperties property: The properties property.
*
Expand All @@ -33,6 +41,28 @@ private DiskAccessProperties innerProperties() {
return this.innerProperties;
}

/**
* Get the extendedLocation property: The extended location where the disk access will be created. Extended location
* cannot be changed.
*
* @return the extendedLocation value.
*/
public ExtendedLocation extendedLocation() {
return this.extendedLocation;
}

/**
* Set the extendedLocation property: The extended location where the disk access will be created. Extended location
* cannot be changed.
*
* @param extendedLocation the extendedLocation value to set.
* @return the DiskAccessInner object itself.
*/
public DiskAccessInner withExtendedLocation(ExtendedLocation extendedLocation) {
this.extendedLocation = extendedLocation;
return this;
}

/** {@inheritDoc} */
@Override
public DiskAccessInner withLocation(String location) {
Expand Down Expand Up @@ -84,5 +114,8 @@ public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
if (extendedLocation() != null) {
extendedLocation().validate();
}
}
}
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.ApiError;
import com.azure.resourcemanager.compute.models.DiskEncryptionSetType;
import com.azure.resourcemanager.compute.models.EncryptionSetIdentity;
import com.azure.resourcemanager.compute.models.KeyForDiskEncryptionSet;
Expand Down Expand Up @@ -178,6 +179,16 @@ public OffsetDateTime lastKeyRotationTimestamp() {
return this.innerProperties() == null ? null : this.innerProperties().lastKeyRotationTimestamp();
}

/**
* Get the autoKeyRotationError property: The error that was encountered during auto-key rotation. If an error is
* present, then auto-key rotation will not be attempted until the error on this disk encryption set is fixed.
*
* @return the autoKeyRotationError value.
*/
public ApiError autoKeyRotationError() {
return this.innerProperties() == null ? null : this.innerProperties().autoKeyRotationError();
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
import com.azure.resourcemanager.compute.models.NetworkAccessPolicy;
import com.azure.resourcemanager.compute.models.OperatingSystemTypes;
import com.azure.resourcemanager.compute.models.PropertyUpdatesInProgress;
import com.azure.resourcemanager.compute.models.PublicNetworkAccess;
import com.azure.resourcemanager.compute.models.PurchasePlanAutoGenerated;
import com.azure.resourcemanager.compute.models.ShareInfoElement;
import com.azure.resourcemanager.compute.models.SupportedCapabilities;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
Expand Down Expand Up @@ -257,6 +259,31 @@ public DiskInner withPurchasePlan(PurchasePlanAutoGenerated purchasePlan) {
return this;
}

/**
* Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was
* created.
*
* @return the supportedCapabilities value.
*/
public SupportedCapabilities supportedCapabilities() {
return this.innerProperties() == null ? null : this.innerProperties().supportedCapabilities();
}

/**
* 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 DiskInner object itself.
*/
public DiskInner withSupportedCapabilities(SupportedCapabilities supportedCapabilities) {
if (this.innerProperties() == null) {
this.innerProperties = new DiskProperties();
}
this.innerProperties().withSupportedCapabilities(supportedCapabilities);
return this;
}

/**
* Get the creationData property: Disk source information. CreationData information cannot be changed after the disk
* has been created.
Expand Down Expand Up @@ -685,6 +712,54 @@ public DiskInner withSecurityProfile(DiskSecurityProfile securityProfile) {
return this;
}

/**
* Get the completionPercent property: Percentage complete for the background copy when a resource is created via
* the CopyStart operation.
*
* @return the completionPercent value.
*/
public Float completionPercent() {
return this.innerProperties() == null ? null : this.innerProperties().completionPercent();
}

/**
* Set the completionPercent property: Percentage complete for the background copy when a resource is created via
* the CopyStart operation.
*
* @param completionPercent the completionPercent value to set.
* @return the DiskInner object itself.
*/
public DiskInner withCompletionPercent(Float completionPercent) {
if (this.innerProperties() == null) {
this.innerProperties = new DiskProperties();
}
this.innerProperties().withCompletionPercent(completionPercent);
return this;
}

/**
* Get the publicNetworkAccess property: Policy for controlling export on the disk.
*
* @return the publicNetworkAccess value.
*/
public PublicNetworkAccess publicNetworkAccess() {
return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
}

/**
* Set the publicNetworkAccess property: Policy for controlling export on the disk.
*
* @param publicNetworkAccess the publicNetworkAccess value to set.
* @return the DiskInner object itself.
*/
public DiskInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
if (this.innerProperties() == null) {
this.innerProperties = new DiskProperties();
}
this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
import com.azure.resourcemanager.compute.models.NetworkAccessPolicy;
import com.azure.resourcemanager.compute.models.OperatingSystemTypes;
import com.azure.resourcemanager.compute.models.PropertyUpdatesInProgress;
import com.azure.resourcemanager.compute.models.PublicNetworkAccess;
import com.azure.resourcemanager.compute.models.PurchasePlanAutoGenerated;
import com.azure.resourcemanager.compute.models.ShareInfoElement;
import com.azure.resourcemanager.compute.models.SupportedCapabilities;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
Expand Down Expand Up @@ -54,6 +56,13 @@ public final class DiskProperties {
@JsonProperty(value = "purchasePlan")
private PurchasePlanAutoGenerated purchasePlan;

/*
* List of supported capabilities for the image from which the OS disk was
* created.
*/
@JsonProperty(value = "supportedCapabilities")
private SupportedCapabilities supportedCapabilities;

/*
* Disk source information. CreationData information cannot be changed
* after the disk has been created.
Expand Down Expand Up @@ -202,6 +211,19 @@ public final class DiskProperties {
@JsonProperty(value = "securityProfile")
private DiskSecurityProfile securityProfile;

/*
* Percentage complete for the background copy when a resource is created
* via the CopyStart operation.
*/
@JsonProperty(value = "completionPercent")
private Float completionPercent;

/*
* Policy for controlling export on the disk.
*/
@JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;

/**
* Get the timeCreated property: The time when the disk was created.
*
Expand Down Expand Up @@ -273,6 +295,28 @@ public DiskProperties withPurchasePlan(PurchasePlanAutoGenerated purchasePlan) {
return this;
}

/**
* Get the supportedCapabilities property: List of supported capabilities for the image from which the OS disk was
* created.
*
* @return the supportedCapabilities value.
*/
public SupportedCapabilities supportedCapabilities() {
return this.supportedCapabilities;
}

/**
* 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 DiskProperties object itself.
*/
public DiskProperties withSupportedCapabilities(SupportedCapabilities supportedCapabilities) {
this.supportedCapabilities = supportedCapabilities;
return this;
}

/**
* Get the creationData property: Disk source information. CreationData information cannot be changed after the disk
* has been created.
Expand Down Expand Up @@ -656,6 +700,48 @@ public DiskProperties withSecurityProfile(DiskSecurityProfile securityProfile) {
return this;
}

/**
* Get the completionPercent property: Percentage complete for the background copy when a resource is created via
* the CopyStart operation.
*
* @return the completionPercent value.
*/
public Float completionPercent() {
return this.completionPercent;
}

/**
* Set the completionPercent property: Percentage complete for the background copy when a resource is created via
* the CopyStart operation.
*
* @param completionPercent the completionPercent value to set.
* @return the DiskProperties object itself.
*/
public DiskProperties withCompletionPercent(Float completionPercent) {
this.completionPercent = completionPercent;
return this;
}

/**
* Get the publicNetworkAccess property: Policy for controlling export on the disk.
*
* @return the publicNetworkAccess value.
*/
public PublicNetworkAccess publicNetworkAccess() {
return this.publicNetworkAccess;
}

/**
* Set the publicNetworkAccess property: Policy for controlling export on the disk.
*
* @param publicNetworkAccess the publicNetworkAccess value to set.
* @return the DiskProperties object itself.
*/
public DiskProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
this.publicNetworkAccess = publicNetworkAccess;
return this;
}

/**
* Validates the instance.
*
Expand All @@ -665,6 +751,9 @@ public void validate() {
if (purchasePlan() != null) {
purchasePlan().validate();
}
if (supportedCapabilities() != null) {
supportedCapabilities().validate();
}
if (creationData() == null) {
throw logger
.logExceptionAsError(
Expand Down

0 comments on commit 8e51e92

Please sign in to comment.