Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR compute/resource-manager] [Do Not Merge] Update compute.json to include hyperVGeneration property for Virtua… #5901

Merged
merged 2 commits into from
Jun 20, 2019
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 @@ -4854,10 +4854,12 @@ def __init__(self, **kwargs):


class VirtualMachineReimageParameters(Model):
"""Parameters for Reimaging Virtual Machine. Default value for OSDisk : true.
"""Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk
will always be reimaged.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
"""

Expand Down Expand Up @@ -5724,7 +5726,8 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters)
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
"""

Expand All @@ -5740,7 +5743,8 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
:param instance_ids: The virtual machine scale set instance ids. Omitting
the virtual machine scale set instance ids will result in the operation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4854,10 +4854,12 @@ def __init__(self, *, platform_update_domain: int=None, platform_fault_domain: i


class VirtualMachineReimageParameters(Model):
"""Parameters for Reimaging Virtual Machine. Default value for OSDisk : true.
"""Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk
will always be reimaged.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
"""

Expand Down Expand Up @@ -5724,7 +5726,8 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters)
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
"""

Expand All @@ -5740,7 +5743,8 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
:param instance_ids: The virtual machine scale set instance ids. Omitting
the virtual machine scale set instance ids will result in the operation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ def reimage(
:param instance_id: The instance ID of the virtual machine.
:type instance_id: str
:param temp_disk: Specifies whether to reimage temp disk. Default
value: false.
value: false. Note: This temp disk reimage parameter is only supported
for VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,8 @@ def reimage(
:param vm_scale_set_name: The name of the VM scale set.
:type vm_scale_set_name: str
:param temp_disk: Specifies whether to reimage temp disk. Default
value: false.
value: false. Note: This temp disk reimage parameter is only supported
for VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
:param instance_ids: The virtual machine scale set instance ids.
Omitting the virtual machine scale set instance ids will result in the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,8 @@ def reimage(
:param vm_name: The name of the virtual machine.
:type vm_name: str
:param temp_disk: Specifies whether to reimage temp disk. Default
value: false.
value: false. Note: This temp disk reimage parameter is only supported
for VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3574,7 +3574,8 @@ class VirtualMachineReimageParameters(Model):
will always be reimaged.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
"""

Expand Down Expand Up @@ -4448,7 +4449,8 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters)
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
"""

Expand All @@ -4464,7 +4466,8 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
:param instance_ids: The virtual machine scale set instance ids. Omitting
the virtual machine scale set instance ids will result in the operation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3574,7 +3574,8 @@ class VirtualMachineReimageParameters(Model):
will always be reimaged.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
"""

Expand Down Expand Up @@ -4448,7 +4449,8 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters)
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
"""

Expand All @@ -4464,7 +4466,8 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
:param instance_ids: The virtual machine scale set instance ids. Omitting
the virtual machine scale set instance ids will result in the operation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ def reimage(
:param instance_id: The instance ID of the virtual machine.
:type instance_id: str
:param temp_disk: Specifies whether to reimage temp disk. Default
value: false.
value: false. Note: This temp disk reimage parameter is only supported
for VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,8 @@ def reimage(
:param vm_scale_set_name: The name of the VM scale set.
:type vm_scale_set_name: str
:param temp_disk: Specifies whether to reimage temp disk. Default
value: false.
value: false. Note: This temp disk reimage parameter is only supported
for VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
:param instance_ids: The virtual machine scale set instance ids.
Omitting the virtual machine scale set instance ids will result in the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,8 @@ def reimage(
:param vm_name: The name of the virtual machine.
:type vm_name: str
:param temp_disk: Specifies whether to reimage temp disk. Default
value: false.
value: false. Note: This temp disk reimage parameter is only supported
for VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@
ProtocolTypes,
ResourceIdentityType,
MaintenanceOperationResultCodeTypes,
HyperVGenerationType,
UpgradeMode,
OperatingSystemStateTypes,
IPVersion,
Expand Down Expand Up @@ -573,6 +574,7 @@
'ProtocolTypes',
'ResourceIdentityType',
'MaintenanceOperationResultCodeTypes',
'HyperVGenerationType',
'UpgradeMode',
'OperatingSystemStateTypes',
'IPVersion',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ class MaintenanceOperationResultCodeTypes(str, Enum):
maintenance_completed = "MaintenanceCompleted"


class HyperVGenerationType(str, Enum):

v1 = "V1"
v2 = "V2"


class UpgradeMode(str, Enum):

automatic = "Automatic"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,9 @@ class AutomaticOSUpgradePolicy(Model):
:param enable_automatic_os_upgrade: Indicates whether OS upgrades should
automatically be applied to scale set instances in a rolling fashion when
a newer version of the OS image becomes available. Default value is false.
If this is set to true for Windows based scale sets, recommendation is to
set
<br><br> If this is set to true for Windows based scale sets,
[enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet)
to false.
is automatically set to false and cannot be set to true.
:type enable_automatic_os_upgrade: bool
:param disable_automatic_rollback: Whether OS image rollback feature
should be disabled. Default value is false.
Expand Down Expand Up @@ -4292,6 +4291,10 @@ class VirtualMachineInstanceView(Model):
:param os_version: The version of Operating System running on the virtual
machine.
:type os_version: str
:param hyper_vgeneration: Specifies the HyperVGeneration Type associated
with a resource. Possible values include: 'V1', 'V2'
:type hyper_vgeneration: str or
~azure.mgmt.compute.v2019_03_01.models.HyperVGenerationType
: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 @@ -4323,6 +4326,7 @@ class VirtualMachineInstanceView(Model):
'computer_name': {'key': 'computerName', 'type': 'str'},
'os_name': {'key': 'osName', 'type': 'str'},
'os_version': {'key': 'osVersion', 'type': 'str'},
'hyper_vgeneration': {'key': 'hyperVGeneration', 'type': 'str'},
'rdp_thumb_print': {'key': 'rdpThumbPrint', 'type': 'str'},
'vm_agent': {'key': 'vmAgent', 'type': 'VirtualMachineAgentInstanceView'},
'maintenance_redeploy_status': {'key': 'maintenanceRedeployStatus', 'type': 'MaintenanceRedeployStatus'},
Expand All @@ -4339,6 +4343,7 @@ def __init__(self, **kwargs):
self.computer_name = kwargs.get('computer_name', None)
self.os_name = kwargs.get('os_name', None)
self.os_version = kwargs.get('os_version', None)
self.hyper_vgeneration = kwargs.get('hyper_vgeneration', None)
self.rdp_thumb_print = kwargs.get('rdp_thumb_print', None)
self.vm_agent = kwargs.get('vm_agent', None)
self.maintenance_redeploy_status = kwargs.get('maintenance_redeploy_status', None)
Expand All @@ -4353,7 +4358,8 @@ class VirtualMachineReimageParameters(Model):
will always be reimaged.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
"""

Expand Down Expand Up @@ -5235,7 +5241,8 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters)
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
"""

Expand All @@ -5251,7 +5258,8 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
:param instance_ids: The virtual machine scale set instance ids. Omitting
the virtual machine scale set instance ids will result in the operation
Expand Down Expand Up @@ -6394,10 +6402,10 @@ class WindowsConfiguration(Model):
This will ensure that VM Agent is installed on the VM so that extensions
can be added to the VM later.
:type provision_vm_agent: bool
:param enable_automatic_updates: Indicates whether virtual machine is
enabled for automatic Windows updates. Default value is true. <br><br> For
virtual machine scale sets, this property can be updated and updates will
take effect on OS reprovisioning.
:param enable_automatic_updates: Indicates whether Automatic Updates is
enabled for the Windows virtual machine. Default value is true. <br><br>
For virtual machine scale sets, this property can be updated and updates
will take effect on OS reprovisioning.
:type enable_automatic_updates: bool
:param time_zone: Specifies the time zone of the virtual machine. e.g.
"Pacific Standard Time"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,9 @@ class AutomaticOSUpgradePolicy(Model):
:param enable_automatic_os_upgrade: Indicates whether OS upgrades should
automatically be applied to scale set instances in a rolling fashion when
a newer version of the OS image becomes available. Default value is false.
If this is set to true for Windows based scale sets, recommendation is to
set
<br><br> If this is set to true for Windows based scale sets,
[enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet)
to false.
is automatically set to false and cannot be set to true.
:type enable_automatic_os_upgrade: bool
:param disable_automatic_rollback: Whether OS image rollback feature
should be disabled. Default value is false.
Expand Down Expand Up @@ -4292,6 +4291,10 @@ class VirtualMachineInstanceView(Model):
:param os_version: The version of Operating System running on the virtual
machine.
:type os_version: str
:param hyper_vgeneration: Specifies the HyperVGeneration Type associated
with a resource. Possible values include: 'V1', 'V2'
:type hyper_vgeneration: str or
~azure.mgmt.compute.v2019_03_01.models.HyperVGenerationType
: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 @@ -4323,6 +4326,7 @@ class VirtualMachineInstanceView(Model):
'computer_name': {'key': 'computerName', 'type': 'str'},
'os_name': {'key': 'osName', 'type': 'str'},
'os_version': {'key': 'osVersion', 'type': 'str'},
'hyper_vgeneration': {'key': 'hyperVGeneration', 'type': 'str'},
'rdp_thumb_print': {'key': 'rdpThumbPrint', 'type': 'str'},
'vm_agent': {'key': 'vmAgent', 'type': 'VirtualMachineAgentInstanceView'},
'maintenance_redeploy_status': {'key': 'maintenanceRedeployStatus', 'type': 'MaintenanceRedeployStatus'},
Expand All @@ -4332,13 +4336,14 @@ class VirtualMachineInstanceView(Model):
'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'},
}

def __init__(self, *, platform_update_domain: int=None, platform_fault_domain: int=None, computer_name: str=None, os_name: str=None, os_version: str=None, rdp_thumb_print: str=None, vm_agent=None, maintenance_redeploy_status=None, disks=None, extensions=None, boot_diagnostics=None, statuses=None, **kwargs) -> None:
def __init__(self, *, platform_update_domain: int=None, platform_fault_domain: int=None, computer_name: str=None, os_name: str=None, os_version: str=None, hyper_vgeneration=None, rdp_thumb_print: str=None, vm_agent=None, maintenance_redeploy_status=None, disks=None, extensions=None, boot_diagnostics=None, statuses=None, **kwargs) -> None:
super(VirtualMachineInstanceView, self).__init__(**kwargs)
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.hyper_vgeneration = hyper_vgeneration
self.rdp_thumb_print = rdp_thumb_print
self.vm_agent = vm_agent
self.maintenance_redeploy_status = maintenance_redeploy_status
Expand All @@ -4353,7 +4358,8 @@ class VirtualMachineReimageParameters(Model):
will always be reimaged.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
"""

Expand Down Expand Up @@ -5235,7 +5241,8 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters)
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
"""

Expand All @@ -5251,7 +5258,8 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
false. Note: This temp disk reimage parameter is only supported for
VM/VMSS with Ephemeral OS disk.
:type temp_disk: bool
:param instance_ids: The virtual machine scale set instance ids. Omitting
the virtual machine scale set instance ids will result in the operation
Expand Down Expand Up @@ -6394,10 +6402,10 @@ class WindowsConfiguration(Model):
This will ensure that VM Agent is installed on the VM so that extensions
can be added to the VM later.
:type provision_vm_agent: bool
:param enable_automatic_updates: Indicates whether virtual machine is
enabled for automatic Windows updates. Default value is true. <br><br> For
virtual machine scale sets, this property can be updated and updates will
take effect on OS reprovisioning.
:param enable_automatic_updates: Indicates whether Automatic Updates is
enabled for the Windows virtual machine. Default value is true. <br><br>
For virtual machine scale sets, this property can be updated and updates
will take effect on OS reprovisioning.
:type enable_automatic_updates: bool
:param time_zone: Specifies the time zone of the virtual machine. e.g.
"Pacific Standard Time"
Expand Down
Loading