Skip to content

Commit bee997f

Browse files
authored
Generated from ad369e69d0583a6198e9969b7c318e267d8c6729 (#3394)
Updated comments and introduced AvailabilitySetSkuType to help users use predefined constants
1 parent 2c0bef6 commit bee997f

18 files changed

+52
-48
lines changed

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@
356356
from .snapshot_paged import SnapshotPaged
357357
from .compute_management_client_enums import (
358358
StatusLevelTypes,
359+
AvailabilitySetSkuTypes,
359360
OperatingSystemTypes,
360361
VirtualMachineSizeTypes,
361362
CachingTypes,
@@ -571,6 +572,7 @@
571572
'DiskPaged',
572573
'SnapshotPaged',
573574
'StatusLevelTypes',
575+
'AvailabilitySetSkuTypes',
574576
'OperatingSystemTypes',
575577
'VirtualMachineSizeTypes',
576578
'CachingTypes',

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/additional_capabilities.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ class AdditionalCapabilities(Model):
1616
"""Enables or disables a capability on the virtual machine or virtual machine
1717
scale set.
1818
19-
:param ultra_ssd_enabled: Enables or disables a capability to have 1 or
20-
more managed data disks with UltraSSD_LRS storage account on the VM or
21-
VMSS. Managed disks with storage account type UltraSSD_LRS can be added to
22-
a virtual machine or virtual machine scale set only if this property is
23-
enabled.
19+
:param ultra_ssd_enabled: The flag that enables or disables a capability
20+
to have one or more managed data disks with UltraSSD_LRS storage account
21+
type on the VM or VMSS. Managed disks with storage account type
22+
UltraSSD_LRS can be added to a virtual machine or virtual machine scale
23+
set only if this property is enabled.
2424
:type ultra_ssd_enabled: bool
2525
"""
2626

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/additional_capabilities_py3.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ class AdditionalCapabilities(Model):
1616
"""Enables or disables a capability on the virtual machine or virtual machine
1717
scale set.
1818
19-
:param ultra_ssd_enabled: Enables or disables a capability to have 1 or
20-
more managed data disks with UltraSSD_LRS storage account on the VM or
21-
VMSS. Managed disks with storage account type UltraSSD_LRS can be added to
22-
a virtual machine or virtual machine scale set only if this property is
23-
enabled.
19+
:param ultra_ssd_enabled: The flag that enables or disables a capability
20+
to have one or more managed data disks with UltraSSD_LRS storage account
21+
type on the VM or VMSS. Managed disks with storage account type
22+
UltraSSD_LRS can be added to a virtual machine or virtual machine scale
23+
set only if this property is enabled.
2424
:type ultra_ssd_enabled: bool
2525
"""
2626

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/availability_set.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ class AvailabilitySet(Resource):
5151
:ivar statuses: The resource status information.
5252
:vartype statuses:
5353
list[~azure.mgmt.compute.v2018_06_01.models.InstanceViewStatus]
54-
:param sku: Sku of the availability set
54+
:param sku: Sku of the availability set, only name is required to be set.
55+
See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for
56+
virtual machines with managed disks and 'Classic' for virtual machines
57+
with unmanaged disks. Default value is 'Classic'.
5558
:type sku: ~azure.mgmt.compute.v2018_06_01.models.Sku
5659
"""
5760

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/availability_set_py3.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ class AvailabilitySet(Resource):
5151
:ivar statuses: The resource status information.
5252
:vartype statuses:
5353
list[~azure.mgmt.compute.v2018_06_01.models.InstanceViewStatus]
54-
:param sku: Sku of the availability set
54+
:param sku: Sku of the availability set, only name is required to be set.
55+
See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for
56+
virtual machines with managed disks and 'Classic' for virtual machines
57+
with unmanaged disks. Default value is 'Classic'.
5558
:type sku: ~azure.mgmt.compute.v2018_06_01.models.Sku
5659
"""
5760

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/compute_management_client_enums.py

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ class StatusLevelTypes(str, Enum):
1919
error = "Error"
2020

2121

22+
class AvailabilitySetSkuTypes(str, Enum):
23+
24+
classic = "Classic"
25+
aligned = "Aligned"
26+
27+
2228
class OperatingSystemTypes(str, Enum):
2329

2430
windows = "Windows"

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/image_data_disk.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ class ImageDataDisk(Model):
3737
machine image. <br><br> This value cannot be larger than 1023 GB
3838
:type disk_size_gb: int
3939
:param storage_account_type: Specifies the storage account type for the
40-
managed disk. Possible values are: Standard_LRS, Premium_LRS, and
41-
StandardSSD_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS',
42-
'StandardSSD_LRS', 'UltraSSD_LRS'
40+
managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it
41+
cannot be used with OS Disk. Possible values include: 'Standard_LRS',
42+
'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
4343
:type storage_account_type: str or
4444
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
4545
"""

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/image_data_disk_py3.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ class ImageDataDisk(Model):
3737
machine image. <br><br> This value cannot be larger than 1023 GB
3838
:type disk_size_gb: int
3939
:param storage_account_type: Specifies the storage account type for the
40-
managed disk. Possible values are: Standard_LRS, Premium_LRS, and
41-
StandardSSD_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS',
42-
'StandardSSD_LRS', 'UltraSSD_LRS'
40+
managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it
41+
cannot be used with OS Disk. Possible values include: 'Standard_LRS',
42+
'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
4343
:type storage_account_type: str or
4444
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
4545
"""

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/image_os_disk.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ class ImageOSDisk(Model):
4343
machine image. <br><br> This value cannot be larger than 1023 GB
4444
:type disk_size_gb: int
4545
:param storage_account_type: Specifies the storage account type for the
46-
managed disk. Possible values are: Standard_LRS, Premium_LRS, and
47-
StandardSSD_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS',
48-
'StandardSSD_LRS', 'UltraSSD_LRS'
46+
managed disk. UltraSSD_LRS cannot be used with OS Disk. Possible values
47+
include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
4948
:type storage_account_type: str or
5049
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
5150
"""

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/image_os_disk_py3.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ class ImageOSDisk(Model):
4343
machine image. <br><br> This value cannot be larger than 1023 GB
4444
:type disk_size_gb: int
4545
:param storage_account_type: Specifies the storage account type for the
46-
managed disk. Possible values are: Standard_LRS, Premium_LRS, and
47-
StandardSSD_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS',
48-
'StandardSSD_LRS', 'UltraSSD_LRS'
46+
managed disk. UltraSSD_LRS cannot be used with OS Disk. Possible values
47+
include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
4948
:type storage_account_type: str or
5049
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
5150
"""

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/managed_disk_parameters.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ class ManagedDiskParameters(SubResource):
1818
:param id: Resource Id
1919
:type id: str
2020
:param storage_account_type: Specifies the storage account type for the
21-
managed disk. UltraSSD_LRS can only be used for data disks. Possible
22-
values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS',
23-
'UltraSSD_LRS'
21+
managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it
22+
cannot be used with OS Disk. Possible values include: 'Standard_LRS',
23+
'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
2424
:type storage_account_type: str or
2525
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
2626
"""

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/managed_disk_parameters_py3.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ class ManagedDiskParameters(SubResource):
1818
:param id: Resource Id
1919
:type id: str
2020
:param storage_account_type: Specifies the storage account type for the
21-
managed disk. UltraSSD_LRS can only be used for data disks. Possible
22-
values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS',
23-
'UltraSSD_LRS'
21+
managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it
22+
cannot be used with OS Disk. Possible values include: 'Standard_LRS',
23+
'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
2424
:type storage_account_type: str or
2525
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
2626
"""

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ class VirtualMachine(Resource):
4747
:type storage_profile:
4848
~azure.mgmt.compute.v2018_06_01.models.StorageProfile
4949
:param additional_capabilities: Specifies additional capabilities enabled
50-
or disabled on the virtual machine. For instance: whether the virtual
51-
machine has the capability to support attaching managed data disks with
52-
UltraSSD_LRS storage account type.
50+
or disabled on the virtual machine.
5351
:type additional_capabilities:
5452
~azure.mgmt.compute.v2018_06_01.models.AdditionalCapabilities
5553
:param os_profile: Specifies the operating system settings for the virtual

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_py3.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ class VirtualMachine(Resource):
4747
:type storage_profile:
4848
~azure.mgmt.compute.v2018_06_01.models.StorageProfile
4949
:param additional_capabilities: Specifies additional capabilities enabled
50-
or disabled on the virtual machine. For instance: whether the virtual
51-
machine has the capability to support attaching managed data disks with
52-
UltraSSD_LRS storage account type.
50+
or disabled on the virtual machine.
5351
:type additional_capabilities:
5452
~azure.mgmt.compute.v2018_06_01.models.AdditionalCapabilities
5553
:param os_profile: Specifies the operating system settings for the virtual

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_managed_disk_parameters.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class VirtualMachineScaleSetManagedDiskParameters(Model):
1616
"""Describes the parameters of a ScaleSet managed disk.
1717
1818
:param storage_account_type: Specifies the storage account type for the
19-
managed disk. Possible values are: Standard_LRS, Premium_LRS, and
20-
StandardSSD_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS',
21-
'StandardSSD_LRS', 'UltraSSD_LRS'
19+
managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it
20+
cannot be used with OS Disk. Possible values include: 'Standard_LRS',
21+
'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
2222
:type storage_account_type: str or
2323
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
2424
"""

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_managed_disk_parameters_py3.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class VirtualMachineScaleSetManagedDiskParameters(Model):
1616
"""Describes the parameters of a ScaleSet managed disk.
1717
1818
:param storage_account_type: Specifies the storage account type for the
19-
managed disk. Possible values are: Standard_LRS, Premium_LRS, and
20-
StandardSSD_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS',
21-
'StandardSSD_LRS', 'UltraSSD_LRS'
19+
managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it
20+
cannot be used with OS Disk. Possible values include: 'Standard_LRS',
21+
'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
2222
:type storage_account_type: str or
2323
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
2424
"""

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_update.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ class VirtualMachineUpdate(UpdateResource):
3737
:type storage_profile:
3838
~azure.mgmt.compute.v2018_06_01.models.StorageProfile
3939
:param additional_capabilities: Specifies additional capabilities enabled
40-
or disabled on the virtual machine. For instance: whether the virtual
41-
machine has the capability to support attaching managed data disks with
42-
UltraSSD_LRS storage account type.
40+
or disabled on the virtual machine.
4341
:type additional_capabilities:
4442
~azure.mgmt.compute.v2018_06_01.models.AdditionalCapabilities
4543
:param os_profile: Specifies the operating system settings for the virtual

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_update_py3.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ class VirtualMachineUpdate(UpdateResource):
3737
:type storage_profile:
3838
~azure.mgmt.compute.v2018_06_01.models.StorageProfile
3939
:param additional_capabilities: Specifies additional capabilities enabled
40-
or disabled on the virtual machine. For instance: whether the virtual
41-
machine has the capability to support attaching managed data disks with
42-
UltraSSD_LRS storage account type.
40+
or disabled on the virtual machine.
4341
:type additional_capabilities:
4442
~azure.mgmt.compute.v2018_06_01.models.AdditionalCapabilities
4543
:param os_profile: Specifies the operating system settings for the virtual

0 commit comments

Comments
 (0)