diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/disks_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/disks_operations.py index 3ee227fe67e8..2293337205e8 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/disks_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/disks_operations.py @@ -97,8 +97,10 @@ def create_or_update( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param disk_name: The name of the disk within the given subscription - and resource group. + :param disk_name: The name of the managed disk that is being created. + The name can't be changed after the disk is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The maximum name + length is 80 characters. :type disk_name: str :param disk: Disk object supplied in the body of the Put disk operation. @@ -218,8 +220,10 @@ def update( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param disk_name: The name of the disk within the given subscription - and resource group. + :param disk_name: The name of the managed disk that is being created. + The name can't be changed after the disk is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The maximum name + length is 80 characters. :type disk_name: str :param disk: Disk object supplied in the body of the Patch disk operation. @@ -287,8 +291,10 @@ def get( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param disk_name: The name of the disk within the given subscription - and resource group. + :param disk_name: The name of the managed disk that is being created. + The name can't be changed after the disk is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The maximum name + length is 80 characters. :type disk_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -395,8 +401,10 @@ def delete( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param disk_name: The name of the disk within the given subscription - and resource group. + :param disk_name: The name of the managed disk that is being created. + The name can't be changed after the disk is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The maximum name + length is 80 characters. :type disk_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -643,8 +651,10 @@ def grant_access( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param disk_name: The name of the disk within the given subscription - and resource group. + :param disk_name: The name of the managed disk that is being created. + The name can't be changed after the disk is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The maximum name + length is 80 characters. :type disk_name: str :param access: Possible values include: 'None', 'Read' :type access: str or @@ -762,8 +772,10 @@ def revoke_access( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param disk_name: The name of the disk within the given subscription - and resource group. + :param disk_name: The name of the managed disk that is being created. + The name can't be changed after the disk is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The maximum name + length is 80 characters. :type disk_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/disks_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/disks_operations.py index bb16a26d1707..65a50ecf6902 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/disks_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/disks_operations.py @@ -97,8 +97,10 @@ def create_or_update( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param disk_name: The name of the disk within the given subscription - and resource group. + :param disk_name: The name of the managed disk that is being created. + The name can't be changed after the disk is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The maximum name + length is 80 characters. :type disk_name: str :param disk: Disk object supplied in the body of the Put disk operation. @@ -218,8 +220,10 @@ def update( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param disk_name: The name of the disk within the given subscription - and resource group. + :param disk_name: The name of the managed disk that is being created. + The name can't be changed after the disk is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The maximum name + length is 80 characters. :type disk_name: str :param disk: Disk object supplied in the body of the Patch disk operation. @@ -287,8 +291,10 @@ def get( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param disk_name: The name of the disk within the given subscription - and resource group. + :param disk_name: The name of the managed disk that is being created. + The name can't be changed after the disk is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The maximum name + length is 80 characters. :type disk_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -395,8 +401,10 @@ def delete( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param disk_name: The name of the disk within the given subscription - and resource group. + :param disk_name: The name of the managed disk that is being created. + The name can't be changed after the disk is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The maximum name + length is 80 characters. :type disk_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -643,8 +651,10 @@ def grant_access( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param disk_name: The name of the disk within the given subscription - and resource group. + :param disk_name: The name of the managed disk that is being created. + The name can't be changed after the disk is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The maximum name + length is 80 characters. :type disk_name: str :param access: Possible values include: 'None', 'Read' :type access: str or @@ -762,8 +772,10 @@ def revoke_access( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param disk_name: The name of the disk within the given subscription - and resource group. + :param disk_name: The name of the managed disk that is being created. + The name can't be changed after the disk is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The maximum name + length is 80 characters. :type disk_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/snapshots_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/snapshots_operations.py index ad0291d164ff..3a1e8eeb85d3 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/snapshots_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/snapshots_operations.py @@ -97,8 +97,10 @@ def create_or_update( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param snapshot_name: The name of the snapshot within the given - subscription and resource group. + :param snapshot_name: The name of the snapshot that is being created. + The name can't be changed after the snapshot is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The max name length + is 80 characters. :type snapshot_name: str :param snapshot: Snapshot object supplied in the body of the Put disk operation. @@ -218,8 +220,10 @@ def update( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param snapshot_name: The name of the snapshot within the given - subscription and resource group. + :param snapshot_name: The name of the snapshot that is being created. + The name can't be changed after the snapshot is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The max name length + is 80 characters. :type snapshot_name: str :param snapshot: Snapshot object supplied in the body of the Patch snapshot operation. @@ -287,8 +291,10 @@ def get( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param snapshot_name: The name of the snapshot within the given - subscription and resource group. + :param snapshot_name: The name of the snapshot that is being created. + The name can't be changed after the snapshot is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The max name length + is 80 characters. :type snapshot_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -395,8 +401,10 @@ def delete( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param snapshot_name: The name of the snapshot within the given - subscription and resource group. + :param snapshot_name: The name of the snapshot that is being created. + The name can't be changed after the snapshot is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The max name length + is 80 characters. :type snapshot_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -643,8 +651,10 @@ def grant_access( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param snapshot_name: The name of the snapshot within the given - subscription and resource group. + :param snapshot_name: The name of the snapshot that is being created. + The name can't be changed after the snapshot is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The max name length + is 80 characters. :type snapshot_name: str :param access: Possible values include: 'None', 'Read' :type access: str or @@ -762,8 +772,10 @@ def revoke_access( :param resource_group_name: The name of the resource group. :type resource_group_name: str - :param snapshot_name: The name of the snapshot within the given - subscription and resource group. + :param snapshot_name: The name of the snapshot that is being created. + The name can't be changed after the snapshot is created. Supported + characters for the name are a-z, A-Z, 0-9 and _. The max name length + is 80 characters. :type snapshot_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/__init__.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/__init__.py index 3d6e82bd216d..49f15a5ebf98 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/__init__.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/__init__.py @@ -112,6 +112,7 @@ from .resource import Resource from .update_resource import UpdateResource from .sub_resource_read_only import SubResourceReadOnly +from .recovery_walk_response import RecoveryWalkResponse from .operation_status_response import OperationStatusResponse from .run_command_input_parameter import RunCommandInputParameter from .run_command_input import RunCommandInput @@ -256,6 +257,7 @@ 'Resource', 'UpdateResource', 'SubResourceReadOnly', + 'RecoveryWalkResponse', 'OperationStatusResponse', 'RunCommandInputParameter', 'RunCommandInput', diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/data_disk.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/data_disk.py index d74f48cca017..9e1041fbdb73 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/data_disk.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/data_disk.py @@ -33,6 +33,9 @@ class DataDisk(Model):

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.

Possible values are:

**Attach** \\u2013 This value is used when you are using a specialized disk to create the virtual @@ -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 diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/os_disk.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/os_disk.py index dbd6011b4310..2e527291882b 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/os_disk.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/os_disk.py @@ -42,6 +42,9 @@ class OSDisk(Model):

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.

Possible values are:

**Attach** \\u2013 This value is used when you are using a specialized disk to create the virtual @@ -72,12 +75,13 @@ 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 @@ -85,6 +89,7 @@ def __init__(self, create_option, os_type=None, encryption_settings=None, name=N 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 diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/recovery_walk_response.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/recovery_walk_response.py new file mode 100644 index 000000000000..28e8b6af21fc --- /dev/null +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/recovery_walk_response.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RecoveryWalkResponse(Model): + """Response after calling a manual recovery walk. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar walk_performed: Whether the recovery walk was performed + :vartype walk_performed: bool + :ivar next_platform_update_domain: The next update domain that needs to be + walked. Null means walk spanning all update domains has been completed + :vartype next_platform_update_domain: int + """ + + _validation = { + 'walk_performed': {'readonly': True}, + 'next_platform_update_domain': {'readonly': True}, + } + + _attribute_map = { + 'walk_performed': {'key': 'walkPerformed', 'type': 'bool'}, + 'next_platform_update_domain': {'key': 'nextPlatformUpdateDomain', 'type': 'int'}, + } + + def __init__(self): + super(RecoveryWalkResponse, self).__init__() + self.walk_performed = None + self.next_platform_update_domain = None diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_instance_view.py index de4790894f34..ef75449227cd 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_instance_view.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_instance_view.py @@ -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. @@ -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'}, @@ -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 diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_data_disk.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_data_disk.py index f0d8872c4f9a..44aa4ac44cc3 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_data_disk.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_data_disk.py @@ -26,6 +26,9 @@ class VirtualMachineScaleSetDataDisk(Model):

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 @@ -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 diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_os_disk.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_os_disk.py index 9e3448b6f8c9..e7be6a670c83 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_os_disk.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_os_disk.py @@ -22,6 +22,9 @@ class VirtualMachineScaleSetOSDisk(Model):

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.

The only allowed value is: **FromImage** \\u2013 This value is used when you are using an image to create the @@ -55,6 +58,7 @@ 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'}, @@ -62,10 +66,11 @@ class VirtualMachineScaleSetOSDisk(Model): '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 diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_update_os_disk.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_update_os_disk.py index 406be35982ff..b9c2cfe8c1dd 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_update_os_disk.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_update_os_disk.py @@ -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. @@ -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 diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_sets_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_sets_operations.py index 87c7283ce3f0..21c3229068c0 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_sets_operations.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machine_scale_sets_operations.py @@ -1726,3 +1726,69 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + + def force_recovery_service_fabric_platform_update_domain_walk( + self, resource_group_name, vm_scale_set_name, platform_update_domain, custom_headers=None, raw=False, **operation_config): + """Manual platform update domain walk to update virtual machines in a + service fabric virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param platform_update_domain: The platform update domain for which a + manual recovery walk is requested + :type platform_update_domain: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: RecoveryWalkResponse or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.compute.v2017_12_01.models.RecoveryWalkResponse or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['platformUpdateDomain'] = self._serialize.query("platform_update_domain", platform_update_domain, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send(request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RecoveryWalkResponse', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized