Skip to content

Commit

Permalink
mgmt, regen compute, for spec folder change (#30290)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Aug 5, 2022
1 parent 479f553 commit 0560e82
Show file tree
Hide file tree
Showing 708 changed files with 2,643 additions and 3,684 deletions.
2 changes: 2 additions & 0 deletions sdk/resourcemanager/azure-resourcemanager-compute/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
--add-opens com.azure.resourcemanager.resources/com.azure.resourcemanager.resources=ALL-UNNAMED
--add-opens com.azure.resourcemanager.resources/com.azure.resourcemanager.resources.fluentcore.arm=ALL-UNNAMED
--add-opens com.azure.resourcemanager.storage/com.azure.resourcemanager.storage=ALL-UNNAMED

--add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
</javaModulesSurefireArgLine>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ public final class AvailabilitySetInner extends Resource {
private AvailabilitySetProperties innerProperties;

/*
* Sku of the availability set, only name is required to be set. See
* AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for
* virtual machines with managed disks and 'Classic' for virtual machines
* with unmanaged disks. Default value is 'Classic'.
* Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of
* values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged
* disks. Default value is 'Classic'.
*/
@JsonProperty(value = "sku")
private Sku sku;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public final class AvailabilitySetProperties {
private List<SubResource> virtualMachines;

/*
* Specifies information about the proximity placement group that the
* availability set should be assigned to. <br><br>Minimum api-version:
* 2018-04-01.
* Specifies information about the proximity placement group that the availability set should be assigned to.
* <br><br>Minimum api-version: 2018-04-01.
*/
@JsonProperty(value = "proximityPlacementGroup")
private SubResource proximityPlacementGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ public final class CapacityReservationGroupInner extends Resource {
private CapacityReservationGroupProperties innerProperties;

/*
* Availability Zones to use for this capacity reservation group. The zones
* can be assigned only during creation. If not provided, the group
* supports only regional resources in the region. If provided, enforces
* each capacity reservation in the group to be in one of the zones.
* Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation.
* If not provided, the group supports only regional resources in the region. If provided, enforces each capacity
* reservation in the group to be in one of the zones.
*/
@JsonProperty(value = "zones")
private List<String> zones;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,20 @@
@Immutable
public final class CapacityReservationGroupProperties {
/*
* A list of all capacity reservation resource ids that belong to capacity
* reservation group.
* A list of all capacity reservation resource ids that belong to capacity reservation group.
*/
@JsonProperty(value = "capacityReservations", access = JsonProperty.Access.WRITE_ONLY)
private List<SubResourceReadOnly> capacityReservations;

/*
* A list of references to all virtual machines associated to the capacity
* reservation group.
* A list of references to all virtual machines associated to the capacity reservation group.
*/
@JsonProperty(value = "virtualMachinesAssociated", access = JsonProperty.Access.WRITE_ONLY)
private List<SubResourceReadOnly> virtualMachinesAssociated;

/*
* The capacity reservation group instance view which has the list of
* instance views for all the capacity reservations that belong to the
* capacity reservation group.
* The capacity reservation group instance view which has the list of instance views for all the capacity
* reservations that belong to the capacity reservation group.
*/
@JsonProperty(value = "instanceView", access = JsonProperty.Access.WRITE_ONLY)
private CapacityReservationGroupInstanceView instanceView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,19 @@ public final class CapacityReservationInner extends Resource {
private CapacityReservationProperties innerProperties;

/*
* SKU of the resource for which capacity needs be reserved. The SKU name
* and capacity is required to be set. Currently VM Skus with the
* capability called 'CapacityReservationSupported' set to true are
* supported. Refer to List Microsoft.Compute SKUs in a region
* (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for
* SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set.
* Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. Refer to
* List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for
* supported values.
*/
@JsonProperty(value = "sku", required = true)
private Sku sku;

/*
* Availability Zone to use for this capacity reservation. The zone has to
* be single value and also should be part for the list of zones specified
* during the capacity reservation group creation. The zone can be assigned
* only during creation. If not provided, the reservation supports only
* non-zonal deployments. If provided, enforces VM/VMSS using this capacity
* reservation to be in same zone.
* Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part
* for the list of zones specified during the capacity reservation group creation. The zone can be assigned only
* during creation. If not provided, the reservation supports only non-zonal deployments. If provided, enforces
* VM/VMSS using this capacity reservation to be in same zone.
*/
@JsonProperty(value = "zones")
private List<String> zones;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
@Immutable
public final class CapacityReservationProperties {
/*
* A unique id generated and assigned to the capacity reservation by the
* platform which does not change throughout the lifetime of the resource.
* A unique id generated and assigned to the capacity reservation by the platform which does not change throughout
* the lifetime of the resource.
*/
@JsonProperty(value = "reservationId", access = JsonProperty.Access.WRITE_ONLY)
private String reservationId;

/*
* A list of all virtual machine resource ids that are associated with the
* capacity reservation.
* A list of all virtual machine resource ids that are associated with the capacity reservation.
*/
@JsonProperty(value = "virtualMachinesAssociated", access = JsonProperty.Access.WRITE_ONLY)
private List<SubResourceReadOnly> virtualMachinesAssociated;
Expand All @@ -47,8 +46,8 @@ public final class CapacityReservationProperties {
private CapacityReservationInstanceView instanceView;

/*
* Specifies the time at which the Capacity Reservation resource was
* created.<br><br>Minimum api-version: 2022-03-01.
* Specifies the time at which the Capacity Reservation resource was created.<br><br>Minimum api-version:
* 2022-03-01.
*/
@JsonProperty(value = "timeCreated", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime timeCreated;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,14 @@ public final class CloudServiceInstanceViewInner {
private InstanceViewStatusesSummary roleInstance;

/*
* The version of the SDK that was used to generate the package for the
* cloud service.
* The version of the SDK that was used to generate the package for the cloud service.
*/
@JsonProperty(value = "sdkVersion", access = JsonProperty.Access.WRITE_ONLY)
private String sdkVersion;

/*
* Specifies a list of unique identifiers generated internally for the
* cloud service. <br /><br /> NOTE: If you are using Azure Diagnostics
* extension, this property can be used as 'DeploymentId' for querying
* details.
* Specifies a list of unique identifiers generated internally for the cloud service. <br /><br /> NOTE: If you are
* using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details.
*/
@JsonProperty(value = "privateIds", access = JsonProperty.Access.WRITE_ONLY)
private List<String> privateIds;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,22 @@
@Fluent
public final class CommunityGalleryImageProperties {
/*
* This property allows you to specify the type of the OS that is included
* in the disk when creating a VM from a managed image. <br><br> Possible
* values are: <br><br> **Windows** <br><br> **Linux**
* This property allows you to specify the type of the OS that is included in the disk when creating a VM from a
* managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**
*/
@JsonProperty(value = "osType", required = true)
private OperatingSystemTypes osType;

/*
* This property allows the user to specify whether the virtual machines
* created under this image are 'Generalized' or 'Specialized'.
* This property allows the user to specify whether the virtual machines created under this image are 'Generalized'
* or 'Specialized'.
*/
@JsonProperty(value = "osState", required = true)
private OperatingSystemStateTypes osState;

/*
* The end of life date of the gallery image definition. This property can
* be used for decommissioning purposes. This property is updatable.
* The end of life date of the gallery image definition. This property can be used for decommissioning purposes.
* This property is updatable.
*/
@JsonProperty(value = "endOfLifeDate")
private OffsetDateTime endOfLifeDate;
Expand All @@ -51,8 +50,8 @@ public final class CommunityGalleryImageProperties {
private GalleryImageIdentifier identifier;

/*
* The properties describe the recommended machine configuration for this
* Image Definition. These properties are updatable.
* The properties describe the recommended machine configuration for this Image Definition. These properties are
* updatable.
*/
@JsonProperty(value = "recommended")
private RecommendedMachineConfiguration recommended;
Expand All @@ -64,8 +63,7 @@ public final class CommunityGalleryImageProperties {
private Disallowed disallowed;

/*
* The hypervisor generation of the Virtual Machine. Applicable to OS disks
* only.
* The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
*/
@JsonProperty(value = "hyperVGeneration")
private HyperVGeneration hyperVGeneration;
Expand All @@ -77,8 +75,7 @@ public final class CommunityGalleryImageProperties {
private List<GalleryImageFeature> features;

/*
* Describes the gallery image definition purchase plan. This is used by
* marketplace images.
* Describes the gallery image definition purchase plan. This is used by marketplace images.
*/
@JsonProperty(value = "purchasePlan")
private ImagePurchasePlan purchasePlan;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,22 @@
@Fluent
public final class CommunityGalleryImageVersionProperties {
/*
* The published date of the gallery image version Definition. This
* property can be used for decommissioning purposes. This property is
* updatable.
* The published date of the gallery image version Definition. This property can be used for decommissioning
* purposes. This property is updatable.
*/
@JsonProperty(value = "publishedDate")
private OffsetDateTime publishedDate;

/*
* The end of life date of the gallery image version Definition. This
* property can be used for decommissioning purposes. This property is
* updatable.
* The end of life date of the gallery image version Definition. This property can be used for decommissioning
* purposes. This property is updatable.
*/
@JsonProperty(value = "endOfLifeDate")
private OffsetDateTime endOfLifeDate;

/*
* If set to true, Virtual Machines deployed from the latest version of the
* Image Definition won't use this Image Version.
* If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image
* Version.
*/
@JsonProperty(value = "excludeFromLatest")
private Boolean excludeFromLatest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ public final class DedicatedHostGroupInner extends Resource {
private DedicatedHostGroupProperties innerProperties;

/*
* Availability Zone to use for this host group. Only single zone is
* supported. The zone can be assigned only during creation. If not
* provided, the group supports all zones in the region. If provided,
* enforces each host in the group to be in the same zone.
* Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only
* during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in
* the group to be in the same zone.
*/
@JsonProperty(value = "zones")
private List<String> zones;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,23 @@ public final class DedicatedHostGroupProperties {
private List<SubResourceReadOnly> hosts;

/*
* The dedicated host group instance view, which has the list of instance
* view of the dedicated hosts under the dedicated host group.
* The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the
* dedicated host group.
*/
@JsonProperty(value = "instanceView", access = JsonProperty.Access.WRITE_ONLY)
private DedicatedHostGroupInstanceView instanceView;

/*
* Specifies whether virtual machines or virtual machine scale sets can be
* placed automatically on the dedicated host group. Automatic placement
* means resources are allocated on dedicated hosts, that are chosen by
* Azure, under the dedicated host group. The value is defaulted to 'false'
* when not provided. <br><br>Minimum api-version: 2020-06-01.
* Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated
* host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure,
* under the dedicated host group. The value is defaulted to 'false' when not provided. <br><br>Minimum
* api-version: 2020-06-01.
*/
@JsonProperty(value = "supportAutomaticPlacement")
private Boolean supportAutomaticPlacement;

/*
* Enables or disables a capability on the dedicated host
* group.<br><br>Minimum api-version: 2022-03-01.
* Enables or disables a capability on the dedicated host group.<br><br>Minimum api-version: 2022-03-01.
*/
@JsonProperty(value = "additionalCapabilities")
private DedicatedHostGroupPropertiesAdditionalCapabilities additionalCapabilities;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ public final class DedicatedHostInner extends Resource {
private DedicatedHostProperties innerProperties;

/*
* SKU of the dedicated host for Hardware Generation and VM family. Only
* name is required to be set. List Microsoft.Compute SKUs for a list of
* possible values.
* SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List
* Microsoft.Compute SKUs for a list of possible values.
*/
@JsonProperty(value = "sku", required = true)
private Sku sku;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ public final class DedicatedHostProperties {
private Integer platformFaultDomain;

/*
* Specifies whether the dedicated host should be replaced automatically in
* case of a failure. The value is defaulted to 'true' when not provided.
* Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is
* defaulted to 'true' when not provided.
*/
@JsonProperty(value = "autoReplaceOnFailure")
private Boolean autoReplaceOnFailure;

/*
* A unique id generated and assigned to the dedicated host by the
* platform. <br><br> Does not change throughout the lifetime of the host.
* A unique id generated and assigned to the dedicated host by the platform. <br><br> Does not change throughout
* the lifetime of the host.
*/
@JsonProperty(value = "hostId", access = JsonProperty.Access.WRITE_ONLY)
private String hostId;
Expand All @@ -42,10 +42,9 @@ public final class DedicatedHostProperties {
private List<SubResourceReadOnly> virtualMachines;

/*
* Specifies the software license type that will be applied to the VMs
* deployed on the dedicated host. <br><br> Possible values are: <br><br>
* **None** <br><br> **Windows_Server_Hybrid** <br><br>
* **Windows_Server_Perpetual** <br><br> Default: **None**
* Specifies the software license type that will be applied to the VMs deployed on the dedicated host. <br><br>
* Possible values are: <br><br> **None** <br><br> **Windows_Server_Hybrid** <br><br> **Windows_Server_Perpetual**
* <br><br> Default: **None**
*/
@JsonProperty(value = "licenseType")
private DedicatedHostLicenseTypes licenseType;
Expand All @@ -69,8 +68,7 @@ public final class DedicatedHostProperties {
private DedicatedHostInstanceView instanceView;

/*
* Specifies the time at which the Dedicated Host resource was
* created.<br><br>Minimum api-version: 2022-03-01.
* Specifies the time at which the Dedicated Host resource was created.<br><br>Minimum api-version: 2022-03-01.
*/
@JsonProperty(value = "timeCreated", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime timeCreated;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public final class DiskAccessInner extends Resource {
private DiskAccessProperties innerProperties;

/*
* The extended location where the disk access will be created. Extended
* location cannot be changed.
* The extended location where the disk access will be created. Extended location cannot be changed.
*/
@JsonProperty(value = "extendedLocation")
private ExtendedLocation extendedLocation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
@Immutable
public final class DiskAccessProperties {
/*
* A readonly collection of private endpoint connections created on the
* disk. Currently only one endpoint connection is supported.
* A readonly collection of private endpoint connections created on the disk. Currently only one endpoint
* connection is supported.
*/
@JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
private List<PrivateEndpointConnectionInner> privateEndpointConnections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
@Fluent
public final class DiskEncryptionSetInner extends Resource {
/*
* The managed identity for the disk encryption set. It should be given
* permission on the key vault before it can be used to encrypt disks.
* The managed identity for the disk encryption set. It should be given permission on the key vault before it can
* be used to encrypt disks.
*/
@JsonProperty(value = "identity")
private EncryptionSetIdentity identity;
Expand Down
Loading

0 comments on commit 0560e82

Please sign in to comment.