Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class VirtualMachineScaleSetDataDisk(Model):
:type create_option: str or
~azure.mgmt.compute.v2018_04_01.models.DiskCreateOptionTypes
:param disk_size_gb: Specifies the size of an empty data disk in
gigabytes. This element can be used to overwrite the name of the disk in a
gigabytes. This element can be used to overwrite the size of the disk in a
virtual machine image. <br><br> This value cannot be larger than 1023 GB
:type disk_size_gb: int
:param managed_disk: The managed disk parameters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class VirtualMachineScaleSetDataDisk(Model):
:type create_option: str or
~azure.mgmt.compute.v2018_04_01.models.DiskCreateOptionTypes
:param disk_size_gb: Specifies the size of an empty data disk in
gigabytes. This element can be used to overwrite the name of the disk in a
gigabytes. This element can be used to overwrite the size of the disk in a
virtual machine image. <br><br> This value cannot be larger than 1023 GB
:type disk_size_gb: int
:param managed_disk: The managed disk parameters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ class VirtualMachineScaleSetOSDisk(Model):
Possible values include: 'FromImage', 'Empty', 'Attach'
:type create_option: str or
~azure.mgmt.compute.v2018_04_01.models.DiskCreateOptionTypes
:param disk_size_gb: Specifies the size of the operating system disk in
gigabytes. This element can be used to overwrite the size of the disk in a
virtual machine image. <br><br> This value cannot be larger than 1023 GB
:type disk_size_gb: int
:param os_type: This property allows you to specify the type of the OS
that is included in the disk if creating a VM from user-image or a
specialized VHD. <br><br> Possible values are: <br><br> **Windows**
Expand All @@ -62,6 +66,7 @@ class VirtualMachineScaleSetOSDisk(Model):
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'create_option': {'key': 'createOption', 'type': 'str'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'os_type': {'key': 'osType', 'type': 'OperatingSystemTypes'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'},
Expand All @@ -74,6 +79,7 @@ def __init__(self, **kwargs):
self.caching = kwargs.get('caching', None)
self.write_accelerator_enabled = kwargs.get('write_accelerator_enabled', None)
self.create_option = kwargs.get('create_option', None)
self.disk_size_gb = kwargs.get('disk_size_gb', None)
self.os_type = kwargs.get('os_type', None)
self.image = kwargs.get('image', None)
self.vhd_containers = kwargs.get('vhd_containers', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ class VirtualMachineScaleSetOSDisk(Model):
Possible values include: 'FromImage', 'Empty', 'Attach'
:type create_option: str or
~azure.mgmt.compute.v2018_04_01.models.DiskCreateOptionTypes
:param disk_size_gb: Specifies the size of the operating system disk in
gigabytes. This element can be used to overwrite the size of the disk in a
virtual machine image. <br><br> This value cannot be larger than 1023 GB
:type disk_size_gb: int
:param os_type: This property allows you to specify the type of the OS
that is included in the disk if creating a VM from user-image or a
specialized VHD. <br><br> Possible values are: <br><br> **Windows**
Expand All @@ -62,18 +66,20 @@ class VirtualMachineScaleSetOSDisk(Model):
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'create_option': {'key': 'createOption', 'type': 'str'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'os_type': {'key': 'osType', 'type': 'OperatingSystemTypes'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'},
'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'},
}

def __init__(self, *, create_option, name: str=None, caching=None, write_accelerator_enabled: bool=None, os_type=None, image=None, vhd_containers=None, managed_disk=None, **kwargs) -> None:
def __init__(self, *, create_option, name: str=None, caching=None, write_accelerator_enabled: bool=None, disk_size_gb: int=None, os_type=None, image=None, vhd_containers=None, managed_disk=None, **kwargs) -> None:
super(VirtualMachineScaleSetOSDisk, self).__init__(**kwargs)
self.name = name
self.caching = caching
self.write_accelerator_enabled = write_accelerator_enabled
self.create_option = create_option
self.disk_size_gb = disk_size_gb
self.os_type = os_type
self.image = image
self.vhd_containers = vhd_containers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class VirtualMachineScaleSetUpdateOSDisk(Model):
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
:param disk_size_gb: Specifies the size of the operating system disk in
gigabytes. This element can be used to overwrite the size of the disk in a
virtual machine image. <br><br> This value cannot be larger than 1023 GB
:type disk_size_gb: int
:param image: The Source User Image VirtualHardDisk. This VirtualHardDisk
will be copied before using it to attach to the Virtual Machine. If
SourceImage is provided, the destination VirtualHardDisk should not exist.
Expand All @@ -36,6 +40,7 @@ class VirtualMachineScaleSetUpdateOSDisk(Model):
_attribute_map = {
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'},
'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'},
Expand All @@ -45,6 +50,7 @@ def __init__(self, **kwargs):
super(VirtualMachineScaleSetUpdateOSDisk, self).__init__(**kwargs)
self.caching = kwargs.get('caching', None)
self.write_accelerator_enabled = kwargs.get('write_accelerator_enabled', None)
self.disk_size_gb = kwargs.get('disk_size_gb', None)
self.image = kwargs.get('image', None)
self.vhd_containers = kwargs.get('vhd_containers', None)
self.managed_disk = kwargs.get('managed_disk', None)
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class VirtualMachineScaleSetUpdateOSDisk(Model):
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
:param disk_size_gb: Specifies the size of the operating system disk in
gigabytes. This element can be used to overwrite the size of the disk in a
virtual machine image. <br><br> This value cannot be larger than 1023 GB
:type disk_size_gb: int
:param image: The Source User Image VirtualHardDisk. This VirtualHardDisk
will be copied before using it to attach to the Virtual Machine. If
SourceImage is provided, the destination VirtualHardDisk should not exist.
Expand All @@ -36,15 +40,17 @@ class VirtualMachineScaleSetUpdateOSDisk(Model):
_attribute_map = {
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'},
'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'},
}

def __init__(self, *, caching=None, write_accelerator_enabled: bool=None, image=None, vhd_containers=None, managed_disk=None, **kwargs) -> None:
def __init__(self, *, caching=None, write_accelerator_enabled: bool=None, disk_size_gb: int=None, image=None, vhd_containers=None, managed_disk=None, **kwargs) -> None:
super(VirtualMachineScaleSetUpdateOSDisk, self).__init__(**kwargs)
self.caching = caching
self.write_accelerator_enabled = write_accelerator_enabled
self.disk_size_gb = disk_size_gb
self.image = image
self.vhd_containers = vhd_containers
self.managed_disk = managed_disk
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ class VirtualMachineScaleSetVM(Resource):
:ivar resources: The virtual machine child extension resources.
:vartype resources:
list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineExtension]
:ivar zones: The virtual machine zones.
:vartype zones: list[str]
"""

_validation = {
Expand All @@ -111,6 +113,7 @@ class VirtualMachineScaleSetVM(Resource):
'instance_view': {'readonly': True},
'provisioning_state': {'readonly': True},
'resources': {'readonly': True},
'zones': {'readonly': True},
}

_attribute_map = {
Expand All @@ -134,6 +137,7 @@ class VirtualMachineScaleSetVM(Resource):
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
'plan': {'key': 'plan', 'type': 'Plan'},
'resources': {'key': 'resources', 'type': '[VirtualMachineExtension]'},
'zones': {'key': 'zones', 'type': '[str]'},
}

def __init__(self, **kwargs):
Expand All @@ -153,3 +157,4 @@ def __init__(self, **kwargs):
self.license_type = kwargs.get('license_type', None)
self.plan = kwargs.get('plan', None)
self.resources = None
self.zones = None
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ class VirtualMachineScaleSetVM(Resource):
:ivar resources: The virtual machine child extension resources.
:vartype resources:
list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineExtension]
:ivar zones: The virtual machine zones.
:vartype zones: list[str]
"""

_validation = {
Expand All @@ -111,6 +113,7 @@ class VirtualMachineScaleSetVM(Resource):
'instance_view': {'readonly': True},
'provisioning_state': {'readonly': True},
'resources': {'readonly': True},
'zones': {'readonly': True},
}

_attribute_map = {
Expand All @@ -134,6 +137,7 @@ class VirtualMachineScaleSetVM(Resource):
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
'plan': {'key': 'plan', 'type': 'Plan'},
'resources': {'key': 'resources', 'type': '[VirtualMachineExtension]'},
'zones': {'key': 'zones', 'type': '[str]'},
}

def __init__(self, *, location: str, tags=None, hardware_profile=None, storage_profile=None, os_profile=None, network_profile=None, diagnostics_profile=None, availability_set=None, license_type: str=None, plan=None, **kwargs) -> None:
Expand All @@ -153,3 +157,4 @@ def __init__(self, *, location: str, tags=None, hardware_profile=None, storage_p
self.license_type = license_type
self.plan = plan
self.resources = None
self.zones = None