Skip to content

Commit 663e409

Browse files
authored
Generated from cb39de62c1bac51455eaf7ad3fbe8ac9ec84df58 (#2918)
Add missing ScaleSet properties The change adds the following missing properties 1) "zones" property to VirtualMachineScaleSetVM 2) DiskSizeInGB to VirtualMachineScaleSetOSDisk 3) DiskSizeInGB to VirtualMachineScaleSetUpdateOSDisk
1 parent 1d5ff49 commit 663e409

8 files changed

+38
-4
lines changed

azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_data_disk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class VirtualMachineScaleSetDataDisk(Model):
3636
:type create_option: str or
3737
~azure.mgmt.compute.v2018_04_01.models.DiskCreateOptionTypes
3838
:param disk_size_gb: Specifies the size of an empty data disk in
39-
gigabytes. This element can be used to overwrite the name of the disk in a
39+
gigabytes. This element can be used to overwrite the size of the disk in a
4040
virtual machine image. <br><br> This value cannot be larger than 1023 GB
4141
:type disk_size_gb: int
4242
:param managed_disk: The managed disk parameters.

azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_data_disk_py3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class VirtualMachineScaleSetDataDisk(Model):
3636
:type create_option: str or
3737
~azure.mgmt.compute.v2018_04_01.models.DiskCreateOptionTypes
3838
:param disk_size_gb: Specifies the size of an empty data disk in
39-
gigabytes. This element can be used to overwrite the name of the disk in a
39+
gigabytes. This element can be used to overwrite the size of the disk in a
4040
virtual machine image. <br><br> This value cannot be larger than 1023 GB
4141
:type disk_size_gb: int
4242
:param managed_disk: The managed disk parameters.

azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_os_disk.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ class VirtualMachineScaleSetOSDisk(Model):
3636
Possible values include: 'FromImage', 'Empty', 'Attach'
3737
:type create_option: str or
3838
~azure.mgmt.compute.v2018_04_01.models.DiskCreateOptionTypes
39+
:param disk_size_gb: Specifies the size of the operating system disk in
40+
gigabytes. This element can be used to overwrite the size of the disk in a
41+
virtual machine image. <br><br> This value cannot be larger than 1023 GB
42+
:type disk_size_gb: int
3943
:param os_type: This property allows you to specify the type of the OS
4044
that is included in the disk if creating a VM from user-image or a
4145
specialized VHD. <br><br> Possible values are: <br><br> **Windows**
@@ -62,6 +66,7 @@ class VirtualMachineScaleSetOSDisk(Model):
6266
'caching': {'key': 'caching', 'type': 'CachingTypes'},
6367
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
6468
'create_option': {'key': 'createOption', 'type': 'str'},
69+
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
6570
'os_type': {'key': 'osType', 'type': 'OperatingSystemTypes'},
6671
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
6772
'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'},
@@ -74,6 +79,7 @@ def __init__(self, **kwargs):
7479
self.caching = kwargs.get('caching', None)
7580
self.write_accelerator_enabled = kwargs.get('write_accelerator_enabled', None)
7681
self.create_option = kwargs.get('create_option', None)
82+
self.disk_size_gb = kwargs.get('disk_size_gb', None)
7783
self.os_type = kwargs.get('os_type', None)
7884
self.image = kwargs.get('image', None)
7985
self.vhd_containers = kwargs.get('vhd_containers', None)

azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_os_disk_py3.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ class VirtualMachineScaleSetOSDisk(Model):
3636
Possible values include: 'FromImage', 'Empty', 'Attach'
3737
:type create_option: str or
3838
~azure.mgmt.compute.v2018_04_01.models.DiskCreateOptionTypes
39+
:param disk_size_gb: Specifies the size of the operating system disk in
40+
gigabytes. This element can be used to overwrite the size of the disk in a
41+
virtual machine image. <br><br> This value cannot be larger than 1023 GB
42+
:type disk_size_gb: int
3943
:param os_type: This property allows you to specify the type of the OS
4044
that is included in the disk if creating a VM from user-image or a
4145
specialized VHD. <br><br> Possible values are: <br><br> **Windows**
@@ -62,18 +66,20 @@ class VirtualMachineScaleSetOSDisk(Model):
6266
'caching': {'key': 'caching', 'type': 'CachingTypes'},
6367
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
6468
'create_option': {'key': 'createOption', 'type': 'str'},
69+
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
6570
'os_type': {'key': 'osType', 'type': 'OperatingSystemTypes'},
6671
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
6772
'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'},
6873
'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'},
6974
}
7075

71-
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:
76+
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:
7277
super(VirtualMachineScaleSetOSDisk, self).__init__(**kwargs)
7378
self.name = name
7479
self.caching = caching
7580
self.write_accelerator_enabled = write_accelerator_enabled
7681
self.create_option = create_option
82+
self.disk_size_gb = disk_size_gb
7783
self.os_type = os_type
7884
self.image = image
7985
self.vhd_containers = vhd_containers

azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_update_os_disk.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ class VirtualMachineScaleSetUpdateOSDisk(Model):
2222
:param write_accelerator_enabled: Specifies whether writeAccelerator
2323
should be enabled or disabled on the disk.
2424
:type write_accelerator_enabled: bool
25+
:param disk_size_gb: Specifies the size of the operating system disk in
26+
gigabytes. This element can be used to overwrite the size of the disk in a
27+
virtual machine image. <br><br> This value cannot be larger than 1023 GB
28+
:type disk_size_gb: int
2529
:param image: The Source User Image VirtualHardDisk. This VirtualHardDisk
2630
will be copied before using it to attach to the Virtual Machine. If
2731
SourceImage is provided, the destination VirtualHardDisk should not exist.
@@ -36,6 +40,7 @@ class VirtualMachineScaleSetUpdateOSDisk(Model):
3640
_attribute_map = {
3741
'caching': {'key': 'caching', 'type': 'CachingTypes'},
3842
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
43+
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
3944
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
4045
'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'},
4146
'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'},
@@ -45,6 +50,7 @@ def __init__(self, **kwargs):
4550
super(VirtualMachineScaleSetUpdateOSDisk, self).__init__(**kwargs)
4651
self.caching = kwargs.get('caching', None)
4752
self.write_accelerator_enabled = kwargs.get('write_accelerator_enabled', None)
53+
self.disk_size_gb = kwargs.get('disk_size_gb', None)
4854
self.image = kwargs.get('image', None)
4955
self.vhd_containers = kwargs.get('vhd_containers', None)
5056
self.managed_disk = kwargs.get('managed_disk', None)

azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_update_os_disk_py3.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ class VirtualMachineScaleSetUpdateOSDisk(Model):
2222
:param write_accelerator_enabled: Specifies whether writeAccelerator
2323
should be enabled or disabled on the disk.
2424
:type write_accelerator_enabled: bool
25+
:param disk_size_gb: Specifies the size of the operating system disk in
26+
gigabytes. This element can be used to overwrite the size of the disk in a
27+
virtual machine image. <br><br> This value cannot be larger than 1023 GB
28+
:type disk_size_gb: int
2529
:param image: The Source User Image VirtualHardDisk. This VirtualHardDisk
2630
will be copied before using it to attach to the Virtual Machine. If
2731
SourceImage is provided, the destination VirtualHardDisk should not exist.
@@ -36,15 +40,17 @@ class VirtualMachineScaleSetUpdateOSDisk(Model):
3640
_attribute_map = {
3741
'caching': {'key': 'caching', 'type': 'CachingTypes'},
3842
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
43+
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
3944
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
4045
'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'},
4146
'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'},
4247
}
4348

44-
def __init__(self, *, caching=None, write_accelerator_enabled: bool=None, image=None, vhd_containers=None, managed_disk=None, **kwargs) -> None:
49+
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:
4550
super(VirtualMachineScaleSetUpdateOSDisk, self).__init__(**kwargs)
4651
self.caching = caching
4752
self.write_accelerator_enabled = write_accelerator_enabled
53+
self.disk_size_gb = disk_size_gb
4854
self.image = image
4955
self.vhd_containers = vhd_containers
5056
self.managed_disk = managed_disk

azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_vm.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ class VirtualMachineScaleSetVM(Resource):
9797
:ivar resources: The virtual machine child extension resources.
9898
:vartype resources:
9999
list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineExtension]
100+
:ivar zones: The virtual machine zones.
101+
:vartype zones: list[str]
100102
"""
101103

102104
_validation = {
@@ -111,6 +113,7 @@ class VirtualMachineScaleSetVM(Resource):
111113
'instance_view': {'readonly': True},
112114
'provisioning_state': {'readonly': True},
113115
'resources': {'readonly': True},
116+
'zones': {'readonly': True},
114117
}
115118

116119
_attribute_map = {
@@ -134,6 +137,7 @@ class VirtualMachineScaleSetVM(Resource):
134137
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
135138
'plan': {'key': 'plan', 'type': 'Plan'},
136139
'resources': {'key': 'resources', 'type': '[VirtualMachineExtension]'},
140+
'zones': {'key': 'zones', 'type': '[str]'},
137141
}
138142

139143
def __init__(self, **kwargs):
@@ -153,3 +157,4 @@ def __init__(self, **kwargs):
153157
self.license_type = kwargs.get('license_type', None)
154158
self.plan = kwargs.get('plan', None)
155159
self.resources = None
160+
self.zones = None

azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_vm_py3.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ class VirtualMachineScaleSetVM(Resource):
9797
:ivar resources: The virtual machine child extension resources.
9898
:vartype resources:
9999
list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineExtension]
100+
:ivar zones: The virtual machine zones.
101+
:vartype zones: list[str]
100102
"""
101103

102104
_validation = {
@@ -111,6 +113,7 @@ class VirtualMachineScaleSetVM(Resource):
111113
'instance_view': {'readonly': True},
112114
'provisioning_state': {'readonly': True},
113115
'resources': {'readonly': True},
116+
'zones': {'readonly': True},
114117
}
115118

116119
_attribute_map = {
@@ -134,6 +137,7 @@ class VirtualMachineScaleSetVM(Resource):
134137
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
135138
'plan': {'key': 'plan', 'type': 'Plan'},
136139
'resources': {'key': 'resources', 'type': '[VirtualMachineExtension]'},
140+
'zones': {'key': 'zones', 'type': '[str]'},
137141
}
138142

139143
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:
@@ -153,3 +157,4 @@ def __init__(self, *, location: str, tags=None, hardware_profile=None, storage_p
153157
self.license_type = license_type
154158
self.plan = plan
155159
self.resources = None
160+
self.zones = None

0 commit comments

Comments
 (0)