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 @@ -13,12 +13,12 @@


class DiffDiskSettings(Model):
"""Describes the parameters of differencing disk settings that can be be
specified for operating system disk. <br><br> NOTE: The differencing disk
"""Describes the parameters of ephemeral disk settings that can be be
specified for operating system disk. <br><br> NOTE: The ephemeral disk
settings can only be specified for managed disk.

:param option: Specifies the differencing disk settings for operating
system disk. Possible values include: 'Local'
:param option: Specifies the ephemeral disk settings for operating system
disk. Possible values include: 'Local'
:type option: str or
~azure.mgmt.compute.v2018_06_01.models.DiffDiskOptions
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@


class DiffDiskSettings(Model):
"""Describes the parameters of differencing disk settings that can be be
specified for operating system disk. <br><br> NOTE: The differencing disk
"""Describes the parameters of ephemeral disk settings that can be be
specified for operating system disk. <br><br> NOTE: The ephemeral disk
settings can only be specified for managed disk.

:param option: Specifies the differencing disk settings for operating
system disk. Possible values include: 'Local'
:param option: Specifies the ephemeral disk settings for operating system
disk. Possible values include: 'Local'
:type option: str or
~azure.mgmt.compute.v2018_06_01.models.DiffDiskOptions
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class OSDisk(Model):
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
:param diff_disk_settings: Specifies the differencing Disk Settings for
the operating system disk used by the virtual machine.
:param diff_disk_settings: Specifies the ephemeral Disk Settings for the
operating system disk used by the virtual machine.
:type diff_disk_settings:
~azure.mgmt.compute.v2018_06_01.models.DiffDiskSettings
:param create_option: Required. Specifies how the virtual machine should
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class OSDisk(Model):
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
:param diff_disk_settings: Specifies the differencing Disk Settings for
the operating system disk used by the virtual machine.
:param diff_disk_settings: Specifies the ephemeral Disk Settings for the
operating system disk used by the virtual machine.
:type diff_disk_settings:
~azure.mgmt.compute.v2018_06_01.models.DiffDiskSettings
:param create_option: Required. Specifies how the virtual machine should
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ class VirtualMachineExtension(Resource):
:param instance_view: The virtual machine extension instance view.
:type instance_view:
~azure.mgmt.compute.v2018_06_01.models.VirtualMachineExtensionInstanceView
:param provision_after_extensions: Collection of extension names after
which this extension needs to be provisioned.
:type provision_after_extensions: list[str]
"""

_validation = {
Expand All @@ -85,7 +82,6 @@ class VirtualMachineExtension(Resource):
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'},
'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'},
}

def __init__(self, **kwargs):
Expand All @@ -99,4 +95,3 @@ def __init__(self, **kwargs):
self.protected_settings = kwargs.get('protected_settings', None)
self.provisioning_state = None
self.instance_view = kwargs.get('instance_view', None)
self.provision_after_extensions = kwargs.get('provision_after_extensions', None)
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ class VirtualMachineExtension(Resource):
:param instance_view: The virtual machine extension instance view.
:type instance_view:
~azure.mgmt.compute.v2018_06_01.models.VirtualMachineExtensionInstanceView
:param provision_after_extensions: Collection of extension names after
which this extension needs to be provisioned.
:type provision_after_extensions: list[str]
"""

_validation = {
Expand All @@ -85,10 +82,9 @@ class VirtualMachineExtension(Resource):
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'},
'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'},
}

def __init__(self, *, location: str, tags=None, force_update_tag: str=None, publisher: str=None, virtual_machine_extension_type: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, instance_view=None, provision_after_extensions=None, **kwargs) -> None:
def __init__(self, *, location: str, tags=None, force_update_tag: str=None, publisher: str=None, virtual_machine_extension_type: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, instance_view=None, **kwargs) -> None:
super(VirtualMachineExtension, self).__init__(location=location, tags=tags, **kwargs)
self.force_update_tag = force_update_tag
self.publisher = publisher
Expand All @@ -99,4 +95,3 @@ def __init__(self, *, location: str, tags=None, force_update_tag: str=None, publ
self.protected_settings = protected_settings
self.provisioning_state = None
self.instance_view = instance_view
self.provision_after_extensions = provision_after_extensions
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ class VirtualMachineExtensionUpdate(UpdateResource):
protectedSettings or protectedSettingsFromKeyVault or no protected
settings at all.
:type protected_settings: object
:param provision_after_extensions: Collection of extension names after
which this extension needs to be provisioned.
:type provision_after_extensions: list[str]
"""

_attribute_map = {
Expand All @@ -52,7 +49,6 @@ class VirtualMachineExtensionUpdate(UpdateResource):
'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'},
'settings': {'key': 'properties.settings', 'type': 'object'},
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'},
}

def __init__(self, **kwargs):
Expand All @@ -64,4 +60,3 @@ def __init__(self, **kwargs):
self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None)
self.settings = kwargs.get('settings', None)
self.protected_settings = kwargs.get('protected_settings', None)
self.provision_after_extensions = kwargs.get('provision_after_extensions', None)
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ class VirtualMachineExtensionUpdate(UpdateResource):
protectedSettings or protectedSettingsFromKeyVault or no protected
settings at all.
:type protected_settings: object
:param provision_after_extensions: Collection of extension names after
which this extension needs to be provisioned.
:type provision_after_extensions: list[str]
"""

_attribute_map = {
Expand All @@ -52,10 +49,9 @@ class VirtualMachineExtensionUpdate(UpdateResource):
'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'},
'settings': {'key': 'properties.settings', 'type': 'object'},
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'},
}

def __init__(self, *, tags=None, force_update_tag: str=None, publisher: str=None, type: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, provision_after_extensions=None, **kwargs) -> None:
def __init__(self, *, tags=None, force_update_tag: str=None, publisher: str=None, type: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, **kwargs) -> None:
super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs)
self.force_update_tag = force_update_tag
self.publisher = publisher
Expand All @@ -64,4 +60,3 @@ def __init__(self, *, tags=None, force_update_tag: str=None, publisher: str=None
self.auto_upgrade_minor_version = auto_upgrade_minor_version
self.settings = settings
self.protected_settings = protected_settings
self.provision_after_extensions = provision_after_extensions
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class VirtualMachineReimageParameters(Model):
"""Paramaters for Reimaging Virtual Machine. Default value for OSDisk : true.

:param temp_disk: Specified whether to reimage temp disk. Default value:
:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
:type temp_disk: bool
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class VirtualMachineReimageParameters(Model):
"""Paramaters for Reimaging Virtual Machine. Default value for OSDisk : true.

:param temp_disk: Specified whether to reimage temp disk. Default value:
:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
:type temp_disk: bool
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly):
:ivar provisioning_state: The provisioning state, which only appears in
the response.
:vartype provisioning_state: str
:param provision_after_extensions: Collection of extension names after
which this extension needs to be provisioned.
:type provision_after_extensions: list[str]
"""

_validation = {
Expand All @@ -68,7 +65,6 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly):
'settings': {'key': 'properties.settings', 'type': 'object'},
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'},
}

def __init__(self, **kwargs):
Expand All @@ -82,4 +78,3 @@ def __init__(self, **kwargs):
self.settings = kwargs.get('settings', None)
self.protected_settings = kwargs.get('protected_settings', None)
self.provisioning_state = None
self.provision_after_extensions = kwargs.get('provision_after_extensions', None)
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly):
:ivar provisioning_state: The provisioning state, which only appears in
the response.
:vartype provisioning_state: str
:param provision_after_extensions: Collection of extension names after
which this extension needs to be provisioned.
:type provision_after_extensions: list[str]
"""

_validation = {
Expand All @@ -68,10 +65,9 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly):
'settings': {'key': 'properties.settings', 'type': 'object'},
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'},
}

def __init__(self, *, name: str=None, force_update_tag: str=None, publisher: str=None, type: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, provision_after_extensions=None, **kwargs) -> None:
def __init__(self, *, name: str=None, force_update_tag: str=None, publisher: str=None, type: str=None, type_handler_version: str=None, auto_upgrade_minor_version: bool=None, settings=None, protected_settings=None, **kwargs) -> None:
super(VirtualMachineScaleSetExtension, self).__init__(**kwargs)
self.name = name
self.force_update_tag = force_update_tag
Expand All @@ -82,4 +78,3 @@ def __init__(self, *, name: str=None, force_update_tag: str=None, publisher: str
self.settings = settings
self.protected_settings = protected_settings
self.provisioning_state = None
self.provision_after_extensions = provision_after_extensions
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class VirtualMachineScaleSetOSDisk(Model):
Possible values include: 'FromImage', 'Empty', 'Attach'
:type create_option: str or
~azure.mgmt.compute.v2018_06_01.models.DiskCreateOptionTypes
:param diff_disk_settings: Specifies the differencing Disk Settings for
the operating system disk used by the virtual machine scale set.
:param diff_disk_settings: Specifies the ephemeral disk Settings for the
operating system disk used by the virtual machine scale set.
:type diff_disk_settings:
~azure.mgmt.compute.v2018_06_01.models.DiffDiskSettings
:param disk_size_gb: Specifies the size of the operating system disk in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class VirtualMachineScaleSetOSDisk(Model):
Possible values include: 'FromImage', 'Empty', 'Attach'
:type create_option: str or
~azure.mgmt.compute.v2018_06_01.models.DiskCreateOptionTypes
:param diff_disk_settings: Specifies the differencing Disk Settings for
the operating system disk used by the virtual machine scale set.
:param diff_disk_settings: Specifies the ephemeral disk Settings for the
operating system disk used by the virtual machine scale set.
:type diff_disk_settings:
~azure.mgmt.compute.v2018_06_01.models.DiffDiskSettings
:param disk_size_gb: Specifies the size of the operating system disk in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimageParameters):
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specified whether to reimage temp disk. Default value:
:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
:type temp_disk: bool
:param instance_ids: The virtual machine scale set instance ids. Omitting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimageParameters):
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specified whether to reimage temp disk. Default value:
:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
:type temp_disk: bool
:param instance_ids: The virtual machine scale set instance ids. Omitting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters):
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specified whether to reimage temp disk. Default value:
:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
:type temp_disk: bool
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters):
"""Describes a Virtual Machine Scale Set VM Reimage Parameters.

:param temp_disk: Specified whether to reimage temp disk. Default value:
:param temp_disk: Specifies whether to reimage temp disk. Default value:
false.
:type temp_disk: bool
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def reimage(
:type vm_scale_set_name: str
:param instance_id: The instance ID of the virtual machine.
:type instance_id: str
:param temp_disk: Specified whether to reimage temp disk. Default
:param temp_disk: Specifies whether to reimage temp disk. Default
value: false.
:type temp_disk: bool
:param dict custom_headers: headers that will be added to the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1540,13 +1540,15 @@ def _reimage_initial(
def reimage(
self, resource_group_name, vm_scale_set_name, temp_disk=None, instance_ids=None, custom_headers=None, raw=False, polling=True, **operation_config):
"""Reimages (upgrade the operating system) one or more virtual machines in
a VM scale set.
a VM scale set which don't have a ephemeral OS disk, for virtual
machines who have a ephemeral OS disk the virtual machine is reset to
initial state.

: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 temp_disk: Specified whether to reimage temp disk. Default
:param temp_disk: Specifies whether to reimage temp disk. Default
value: false.
:type temp_disk: bool
:param instance_ids: The virtual machine scale set instance ids.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1421,14 +1421,14 @@ def _reimage_initial(

def reimage(
self, resource_group_name, vm_name, temp_disk=None, custom_headers=None, raw=False, polling=True, **operation_config):
"""Reimages (upgrade the operating system) virtual machine. This operation
is only supported for differencing OS disks.
"""Reimages the virtual machine which has an ephemeral OS disk back to its
initial state.

:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param vm_name: The name of the virtual machine.
:type vm_name: str
:param temp_disk: Specified whether to reimage temp disk. Default
:param temp_disk: Specifies whether to reimage temp disk. Default
value: false.
:type temp_disk: bool
:param dict custom_headers: headers that will be added to the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@


class DiffDiskSettings(Model):
"""Describes the parameters of differencing disk settings that can be be
specified for operating system disk. <br><br> NOTE: The differencing disk
"""Describes the parameters of ephemeral disk settings that can be be
specified for operating system disk. <br><br> NOTE: The ephemeral disk
settings can only be specified for managed disk.

:param option: Specifies the differencing disk settings for operating
system disk. Possible values include: 'Local'
:param option: Specifies the ephemeral disk settings for operating system
disk. Possible values include: 'Local'
:type option: str or
~azure.mgmt.compute.v2018_10_01.models.DiffDiskOptions
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@


class DiffDiskSettings(Model):
"""Describes the parameters of differencing disk settings that can be be
specified for operating system disk. <br><br> NOTE: The differencing disk
"""Describes the parameters of ephemeral disk settings that can be be
specified for operating system disk. <br><br> NOTE: The ephemeral disk
settings can only be specified for managed disk.

:param option: Specifies the differencing disk settings for operating
system disk. Possible values include: 'Local'
:param option: Specifies the ephemeral disk settings for operating system
disk. Possible values include: 'Local'
:type option: str or
~azure.mgmt.compute.v2018_10_01.models.DiffDiskOptions
"""
Expand Down
Loading