Skip to content

Commit

Permalink
Generated from ad369e69d0583a6198e9969b7c318e267d8c6729 (#3394)
Browse files Browse the repository at this point in the history
Updated comments and introduced AvailabilitySetSkuType to help users use predefined constants
  • Loading branch information
AutorestCI authored Sep 21, 2018
1 parent 2c0bef6 commit bee997f
Show file tree
Hide file tree
Showing 18 changed files with 52 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@
from .snapshot_paged import SnapshotPaged
from .compute_management_client_enums import (
StatusLevelTypes,
AvailabilitySetSkuTypes,
OperatingSystemTypes,
VirtualMachineSizeTypes,
CachingTypes,
Expand Down Expand Up @@ -571,6 +572,7 @@
'DiskPaged',
'SnapshotPaged',
'StatusLevelTypes',
'AvailabilitySetSkuTypes',
'OperatingSystemTypes',
'VirtualMachineSizeTypes',
'CachingTypes',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class AdditionalCapabilities(Model):
"""Enables or disables a capability on the virtual machine or virtual machine
scale set.
:param ultra_ssd_enabled: Enables or disables a capability to have 1 or
more managed data disks with UltraSSD_LRS storage account on the VM or
VMSS. Managed disks with storage account type UltraSSD_LRS can be added to
a virtual machine or virtual machine scale set only if this property is
enabled.
:param ultra_ssd_enabled: The flag that enables or disables a capability
to have one or more managed data disks with UltraSSD_LRS storage account
type on the VM or VMSS. Managed disks with storage account type
UltraSSD_LRS can be added to a virtual machine or virtual machine scale
set only if this property is enabled.
:type ultra_ssd_enabled: bool
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class AdditionalCapabilities(Model):
"""Enables or disables a capability on the virtual machine or virtual machine
scale set.
:param ultra_ssd_enabled: Enables or disables a capability to have 1 or
more managed data disks with UltraSSD_LRS storage account on the VM or
VMSS. Managed disks with storage account type UltraSSD_LRS can be added to
a virtual machine or virtual machine scale set only if this property is
enabled.
:param ultra_ssd_enabled: The flag that enables or disables a capability
to have one or more managed data disks with UltraSSD_LRS storage account
type on the VM or VMSS. Managed disks with storage account type
UltraSSD_LRS can be added to a virtual machine or virtual machine scale
set only if this property is enabled.
:type ultra_ssd_enabled: bool
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ class AvailabilitySet(Resource):
:ivar statuses: The resource status information.
:vartype statuses:
list[~azure.mgmt.compute.v2018_06_01.models.InstanceViewStatus]
:param sku: Sku of the availability set
:param sku: 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'.
:type sku: ~azure.mgmt.compute.v2018_06_01.models.Sku
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ class AvailabilitySet(Resource):
:ivar statuses: The resource status information.
:vartype statuses:
list[~azure.mgmt.compute.v2018_06_01.models.InstanceViewStatus]
:param sku: Sku of the availability set
:param sku: 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'.
:type sku: ~azure.mgmt.compute.v2018_06_01.models.Sku
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ class StatusLevelTypes(str, Enum):
error = "Error"


class AvailabilitySetSkuTypes(str, Enum):

classic = "Classic"
aligned = "Aligned"


class OperatingSystemTypes(str, Enum):

windows = "Windows"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class ImageDataDisk(Model):
machine image. <br><br> This value cannot be larger than 1023 GB
:type disk_size_gb: int
:param storage_account_type: Specifies the storage account type for the
managed disk. Possible values are: Standard_LRS, Premium_LRS, and
StandardSSD_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS',
'StandardSSD_LRS', 'UltraSSD_LRS'
managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it
cannot be used with OS Disk. Possible values include: 'Standard_LRS',
'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
:type storage_account_type: str or
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class ImageDataDisk(Model):
machine image. <br><br> This value cannot be larger than 1023 GB
:type disk_size_gb: int
:param storage_account_type: Specifies the storage account type for the
managed disk. Possible values are: Standard_LRS, Premium_LRS, and
StandardSSD_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS',
'StandardSSD_LRS', 'UltraSSD_LRS'
managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it
cannot be used with OS Disk. Possible values include: 'Standard_LRS',
'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
:type storage_account_type: str or
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ class ImageOSDisk(Model):
machine image. <br><br> This value cannot be larger than 1023 GB
:type disk_size_gb: int
:param storage_account_type: Specifies the storage account type for the
managed disk. Possible values are: Standard_LRS, Premium_LRS, and
StandardSSD_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS',
'StandardSSD_LRS', 'UltraSSD_LRS'
managed disk. UltraSSD_LRS cannot be used with OS Disk. Possible values
include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
:type storage_account_type: str or
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ class ImageOSDisk(Model):
machine image. <br><br> This value cannot be larger than 1023 GB
:type disk_size_gb: int
:param storage_account_type: Specifies the storage account type for the
managed disk. Possible values are: Standard_LRS, Premium_LRS, and
StandardSSD_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS',
'StandardSSD_LRS', 'UltraSSD_LRS'
managed disk. UltraSSD_LRS cannot be used with OS Disk. Possible values
include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
:type storage_account_type: str or
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class ManagedDiskParameters(SubResource):
:param id: Resource Id
:type id: str
:param storage_account_type: Specifies the storage account type for the
managed disk. UltraSSD_LRS can only be used for data disks. Possible
values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS',
'UltraSSD_LRS'
managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it
cannot be used with OS Disk. Possible values include: 'Standard_LRS',
'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
:type storage_account_type: str or
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class ManagedDiskParameters(SubResource):
:param id: Resource Id
:type id: str
:param storage_account_type: Specifies the storage account type for the
managed disk. UltraSSD_LRS can only be used for data disks. Possible
values include: 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS',
'UltraSSD_LRS'
managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it
cannot be used with OS Disk. Possible values include: 'Standard_LRS',
'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
:type storage_account_type: str or
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ class VirtualMachine(Resource):
:type storage_profile:
~azure.mgmt.compute.v2018_06_01.models.StorageProfile
:param additional_capabilities: Specifies additional capabilities enabled
or disabled on the virtual machine. For instance: whether the virtual
machine has the capability to support attaching managed data disks with
UltraSSD_LRS storage account type.
or disabled on the virtual machine.
:type additional_capabilities:
~azure.mgmt.compute.v2018_06_01.models.AdditionalCapabilities
:param os_profile: Specifies the operating system settings for the virtual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ class VirtualMachine(Resource):
:type storage_profile:
~azure.mgmt.compute.v2018_06_01.models.StorageProfile
:param additional_capabilities: Specifies additional capabilities enabled
or disabled on the virtual machine. For instance: whether the virtual
machine has the capability to support attaching managed data disks with
UltraSSD_LRS storage account type.
or disabled on the virtual machine.
:type additional_capabilities:
~azure.mgmt.compute.v2018_06_01.models.AdditionalCapabilities
:param os_profile: Specifies the operating system settings for the virtual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class VirtualMachineScaleSetManagedDiskParameters(Model):
"""Describes the parameters of a ScaleSet managed disk.
:param storage_account_type: Specifies the storage account type for the
managed disk. Possible values are: Standard_LRS, Premium_LRS, and
StandardSSD_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS',
'StandardSSD_LRS', 'UltraSSD_LRS'
managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it
cannot be used with OS Disk. Possible values include: 'Standard_LRS',
'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
:type storage_account_type: str or
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class VirtualMachineScaleSetManagedDiskParameters(Model):
"""Describes the parameters of a ScaleSet managed disk.
:param storage_account_type: Specifies the storage account type for the
managed disk. Possible values are: Standard_LRS, Premium_LRS, and
StandardSSD_LRS. Possible values include: 'Standard_LRS', 'Premium_LRS',
'StandardSSD_LRS', 'UltraSSD_LRS'
managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it
cannot be used with OS Disk. Possible values include: 'Standard_LRS',
'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
:type storage_account_type: str or
~azure.mgmt.compute.v2018_06_01.models.StorageAccountTypes
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ class VirtualMachineUpdate(UpdateResource):
:type storage_profile:
~azure.mgmt.compute.v2018_06_01.models.StorageProfile
:param additional_capabilities: Specifies additional capabilities enabled
or disabled on the virtual machine. For instance: whether the virtual
machine has the capability to support attaching managed data disks with
UltraSSD_LRS storage account type.
or disabled on the virtual machine.
:type additional_capabilities:
~azure.mgmt.compute.v2018_06_01.models.AdditionalCapabilities
:param os_profile: Specifies the operating system settings for the virtual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ class VirtualMachineUpdate(UpdateResource):
:type storage_profile:
~azure.mgmt.compute.v2018_06_01.models.StorageProfile
:param additional_capabilities: Specifies additional capabilities enabled
or disabled on the virtual machine. For instance: whether the virtual
machine has the capability to support attaching managed data disks with
UltraSSD_LRS storage account type.
or disabled on the virtual machine.
:type additional_capabilities:
~azure.mgmt.compute.v2018_06_01.models.AdditionalCapabilities
:param os_profile: Specifies the operating system settings for the virtual
Expand Down

0 comments on commit bee997f

Please sign in to comment.