Skip to content

Commit

Permalink
[Compute]Updated compute spec to include properties in VMInstanceView…
Browse files Browse the repository at this point in the history
… and a new WriteAaccelerator property on disks (#1803)

* Generated from 9f531093070b99b48e5f7de8113ec6244610add9

Updated spec to include properties in VMInstanceView and a new WriteAccelerator property on disks

* Generated from 83cfb6cd50b9ebc03687c8505da6c050dcbb674a

Resolved PR comment

* Generated from d18451865a038ceb07f09b309de92bd004bd27e8

VirtualMachineInstanceView  is ReadOnly, so ReadOnly is not required on individual properties
  • Loading branch information
AutorestCI committed Feb 21, 2018
1 parent 13ad6a9 commit 8871017
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class DataDisk(Model):
<br><br> Default: **None for Standard storage. ReadOnly for Premium
storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
:type caching: str or ~azure.mgmt.compute.v2017_12_01.models.CachingTypes
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
:param create_option: Specifies how the virtual machine should be
created.<br><br> Possible values are:<br><br> **Attach** \\u2013 This
value is used when you are using a specialized disk to create the virtual
Expand Down Expand Up @@ -63,18 +66,20 @@ class DataDisk(Model):
'vhd': {'key': 'vhd', 'type': 'VirtualHardDisk'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'create_option': {'key': 'createOption', 'type': 'DiskCreateOptionTypes'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'},
}

def __init__(self, lun, create_option, name=None, vhd=None, image=None, caching=None, disk_size_gb=None, managed_disk=None):
def __init__(self, lun, create_option, name=None, vhd=None, image=None, caching=None, write_accelerator_enabled=None, disk_size_gb=None, managed_disk=None):
super(DataDisk, self).__init__()
self.lun = lun
self.name = name
self.vhd = vhd
self.image = image
self.caching = caching
self.write_accelerator_enabled = write_accelerator_enabled
self.create_option = create_option
self.disk_size_gb = disk_size_gb
self.managed_disk = managed_disk
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class OSDisk(Model):
<br><br> Default: **None for Standard storage. ReadOnly for Premium
storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
:type caching: str or ~azure.mgmt.compute.v2017_12_01.models.CachingTypes
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
:param create_option: Specifies how the virtual machine should be
created.<br><br> Possible values are:<br><br> **Attach** \\u2013 This
value is used when you are using a specialized disk to create the virtual
Expand Down Expand Up @@ -72,19 +75,21 @@ class OSDisk(Model):
'vhd': {'key': 'vhd', 'type': 'VirtualHardDisk'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'create_option': {'key': 'createOption', 'type': 'DiskCreateOptionTypes'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'},
}

def __init__(self, create_option, os_type=None, encryption_settings=None, name=None, vhd=None, image=None, caching=None, disk_size_gb=None, managed_disk=None):
def __init__(self, create_option, os_type=None, encryption_settings=None, name=None, vhd=None, image=None, caching=None, write_accelerator_enabled=None, disk_size_gb=None, managed_disk=None):
super(OSDisk, self).__init__()
self.os_type = os_type
self.encryption_settings = encryption_settings
self.name = name
self.vhd = vhd
self.image = image
self.caching = caching
self.write_accelerator_enabled = write_accelerator_enabled
self.create_option = create_option
self.disk_size_gb = disk_size_gb
self.managed_disk = managed_disk
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ class VirtualMachineInstanceView(Model):
:param platform_fault_domain: Specifies the fault domain of the virtual
machine.
:type platform_fault_domain: int
:param computer_name: The computer name assigned to the virtual machine.
:type computer_name: str
:param os_name: The Operating System running on the virtual machine.
:type os_name: str
:param os_version: The version of Operating System running on the virtual
machine.
:type os_version: str
:param rdp_thumb_print: The Remote desktop certificate thumbprint.
:type rdp_thumb_print: str
:param vm_agent: The VM Agent running on the virtual machine.
Expand Down Expand Up @@ -50,6 +57,9 @@ class VirtualMachineInstanceView(Model):
_attribute_map = {
'platform_update_domain': {'key': 'platformUpdateDomain', 'type': 'int'},
'platform_fault_domain': {'key': 'platformFaultDomain', 'type': 'int'},
'computer_name': {'key': 'computerName', 'type': 'str'},
'os_name': {'key': 'osName', 'type': 'str'},
'os_version': {'key': 'osVersion', 'type': 'str'},
'rdp_thumb_print': {'key': 'rdpThumbPrint', 'type': 'str'},
'vm_agent': {'key': 'vmAgent', 'type': 'VirtualMachineAgentInstanceView'},
'maintenance_redeploy_status': {'key': 'maintenanceRedeployStatus', 'type': 'MaintenanceRedeployStatus'},
Expand All @@ -59,10 +69,13 @@ class VirtualMachineInstanceView(Model):
'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'},
}

def __init__(self, platform_update_domain=None, platform_fault_domain=None, rdp_thumb_print=None, vm_agent=None, maintenance_redeploy_status=None, disks=None, extensions=None, boot_diagnostics=None, statuses=None):
def __init__(self, platform_update_domain=None, platform_fault_domain=None, computer_name=None, os_name=None, os_version=None, rdp_thumb_print=None, vm_agent=None, maintenance_redeploy_status=None, disks=None, extensions=None, boot_diagnostics=None, statuses=None):
super(VirtualMachineInstanceView, self).__init__()
self.platform_update_domain = platform_update_domain
self.platform_fault_domain = platform_fault_domain
self.computer_name = computer_name
self.os_name = os_name
self.os_version = os_version
self.rdp_thumb_print = rdp_thumb_print
self.vm_agent = vm_agent
self.maintenance_redeploy_status = maintenance_redeploy_status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class VirtualMachineScaleSetDataDisk(Model):
<br><br> Default: **None for Standard storage. ReadOnly for Premium
storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
:type caching: str or ~azure.mgmt.compute.v2017_12_01.models.CachingTypes
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
:param create_option: The create option. Possible values include:
'FromImage', 'Empty', 'Attach'
:type create_option: str or
Expand All @@ -48,16 +51,18 @@ class VirtualMachineScaleSetDataDisk(Model):
'name': {'key': 'name', 'type': 'str'},
'lun': {'key': 'lun', 'type': 'int'},
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'create_option': {'key': 'createOption', 'type': 'DiskCreateOptionTypes'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'},
}

def __init__(self, lun, create_option, name=None, caching=None, disk_size_gb=None, managed_disk=None):
def __init__(self, lun, create_option, name=None, caching=None, write_accelerator_enabled=None, disk_size_gb=None, managed_disk=None):
super(VirtualMachineScaleSetDataDisk, self).__init__()
self.name = name
self.lun = lun
self.caching = caching
self.write_accelerator_enabled = write_accelerator_enabled
self.create_option = create_option
self.disk_size_gb = disk_size_gb
self.managed_disk = managed_disk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ class VirtualMachineScaleSetOSDisk(Model):
<br><br> Default: **None for Standard storage. ReadOnly for Premium
storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
:type caching: str or ~azure.mgmt.compute.v2017_12_01.models.CachingTypes
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
:param create_option: Specifies how the virtual machines in the scale set
should be created.<br><br> The only allowed value is: **FromImage**
\\u2013 This value is used when you are using an image to create the
Expand Down Expand Up @@ -55,17 +58,19 @@ class VirtualMachineScaleSetOSDisk(Model):
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'create_option': {'key': 'createOption', 'type': 'DiskCreateOptionTypes'},
'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=None, caching=None, os_type=None, image=None, vhd_containers=None, managed_disk=None):
def __init__(self, create_option, name=None, caching=None, write_accelerator_enabled=None, os_type=None, image=None, vhd_containers=None, managed_disk=None):
super(VirtualMachineScaleSetOSDisk, self).__init__()
self.name = name
self.caching = caching
self.write_accelerator_enabled = write_accelerator_enabled
self.create_option = create_option
self.os_type = os_type
self.image = image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ class VirtualMachineScaleSetUpdateOSDisk(Model):
:param caching: The caching type. Possible values include: 'None',
'ReadOnly', 'ReadWrite'
:type caching: str or ~azure.mgmt.compute.v2017_12_01.models.CachingTypes
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
: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 @@ -32,14 +35,16 @@ class VirtualMachineScaleSetUpdateOSDisk(Model):

_attribute_map = {
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'},
'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'},
}

def __init__(self, caching=None, image=None, vhd_containers=None, managed_disk=None):
def __init__(self, caching=None, write_accelerator_enabled=None, image=None, vhd_containers=None, managed_disk=None):
super(VirtualMachineScaleSetUpdateOSDisk, self).__init__()
self.caching = caching
self.write_accelerator_enabled = write_accelerator_enabled
self.image = image
self.vhd_containers = vhd_containers
self.managed_disk = managed_disk

0 comments on commit 8871017

Please sign in to comment.