Skip to content

Commit

Permalink
Generated from 1bc134e61838ad158947963bc3f8f59fcc3665af
Browse files Browse the repository at this point in the history
add name and type
  • Loading branch information
SDK Automation committed Sep 9, 2020
1 parent 41a8d43 commit 3a69c17
Show file tree
Hide file tree
Showing 7 changed files with 388 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5664,7 +5664,7 @@ class VirtualMachine(Resource):
added to virtual machine scale set at creation time. An existing VM cannot
be added to a virtual machine scale set. <br><br>This property cannot
exist along with a non-null properties.availabilitySet reference.
<br><br>Minimum api‐version: 2019‐0301
<br><br>Minimum api‐version: 2019‐03��01
:type virtual_machine_scale_set:
~azure.mgmt.compute.v2019_07_01.models.SubResource
:param proximity_placement_group: Specifies information about the
Expand Down Expand Up @@ -8582,7 +8582,7 @@ class VirtualMachineUpdate(UpdateResource):
added to virtual machine scale set at creation time. An existing VM cannot
be added to a virtual machine scale set. <br><br>This property cannot
exist along with a non-null properties.availabilitySet reference.
<br><br>Minimum api‐version: 2019‐0301
<br><br>Minimum api‐version: 2019‐03��01
:type virtual_machine_scale_set:
~azure.mgmt.compute.v2019_07_01.models.SubResource
:param proximity_placement_group: Specifies information about the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5664,7 +5664,7 @@ class VirtualMachine(Resource):
added to virtual machine scale set at creation time. An existing VM cannot
be added to a virtual machine scale set. <br><br>This property cannot
exist along with a non-null properties.availabilitySet reference.
<br><br>Minimum api‐version: 2019‐0301
<br><br>Minimum api‐version: 2019‐03��01
:type virtual_machine_scale_set:
~azure.mgmt.compute.v2019_07_01.models.SubResource
:param proximity_placement_group: Specifies information about the
Expand Down Expand Up @@ -8582,7 +8582,7 @@ class VirtualMachineUpdate(UpdateResource):
added to virtual machine scale set at creation time. An existing VM cannot
be added to a virtual machine scale set. <br><br>This property cannot
exist along with a non-null properties.availabilitySet reference.
<br><br>Minimum api‐version: 2019‐0301
<br><br>Minimum api‐version: 2019‐03��01
:type virtual_machine_scale_set:
~azure.mgmt.compute.v2019_07_01.models.SubResource
:param proximity_placement_group: Specifies information about the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@
from ._models_py3 import VirtualMachineScaleSetUpdateStorageProfile
from ._models_py3 import VirtualMachineScaleSetUpdateVMProfile
from ._models_py3 import VirtualMachineScaleSetVM
from ._models_py3 import VirtualMachineScaleSetVMExtension
from ._models_py3 import VirtualMachineScaleSetVMExtensionsListResult
from ._models_py3 import VirtualMachineScaleSetVMExtensionsSummary
from ._models_py3 import VirtualMachineScaleSetVMExtensionUpdate
from ._models_py3 import VirtualMachineScaleSetVMInstanceIDs
from ._models_py3 import VirtualMachineScaleSetVMInstanceRequiredIDs
from ._models_py3 import VirtualMachineScaleSetVMInstanceView
Expand Down Expand Up @@ -337,7 +340,10 @@
from ._models import VirtualMachineScaleSetUpdateStorageProfile
from ._models import VirtualMachineScaleSetUpdateVMProfile
from ._models import VirtualMachineScaleSetVM
from ._models import VirtualMachineScaleSetVMExtension
from ._models import VirtualMachineScaleSetVMExtensionsListResult
from ._models import VirtualMachineScaleSetVMExtensionsSummary
from ._models import VirtualMachineScaleSetVMExtensionUpdate
from ._models import VirtualMachineScaleSetVMInstanceIDs
from ._models import VirtualMachineScaleSetVMInstanceRequiredIDs
from ._models import VirtualMachineScaleSetVMInstanceView
Expand Down Expand Up @@ -569,7 +575,10 @@
'VirtualMachineScaleSetUpdateStorageProfile',
'VirtualMachineScaleSetUpdateVMProfile',
'VirtualMachineScaleSetVM',
'VirtualMachineScaleSetVMExtension',
'VirtualMachineScaleSetVMExtensionsListResult',
'VirtualMachineScaleSetVMExtensionsSummary',
'VirtualMachineScaleSetVMExtensionUpdate',
'VirtualMachineScaleSetVMInstanceIDs',
'VirtualMachineScaleSetVMInstanceRequiredIDs',
'VirtualMachineScaleSetVMInstanceView',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6804,6 +6804,106 @@ def __init__(self, **kwargs):
self.zones = None


class VirtualMachineScaleSetVMExtension(SubResourceReadOnly):
"""Describes a VMSS VM Extension.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Resource Id
:vartype id: str
:param name: The name of the extension.
:type name: str
:ivar type: Resource type
:vartype type: str
:param force_update_tag: How the extension handler should be forced to
update even if the extension configuration has not changed.
:type force_update_tag: str
:param publisher: The name of the extension handler publisher.
:type publisher: str
:param type1: Specifies the type of the extension; an example is
"CustomScriptExtension".
:type type1: str
:param type_handler_version: Specifies the version of the script handler.
:type type_handler_version: str
:param auto_upgrade_minor_version: Indicates whether the extension should
use a newer minor version if one is available at deployment time. Once
deployed, however, the extension will not upgrade minor versions unless
redeployed, even with this property set to true.
:type auto_upgrade_minor_version: bool
:param enable_automatic_upgrade: Indicates whether the extension should be
automatically upgraded by the platform if there is a newer version of the
extension available.
:type enable_automatic_upgrade: bool
:param settings: Json formatted public settings for the extension.
:type settings: object
:param protected_settings: The extension can contain either
protectedSettings or protectedSettingsFromKeyVault or no protected
settings at all.
:type protected_settings: object
:ivar provisioning_state: The provisioning state, which only appears in
the response.
:vartype provisioning_state: str
:param instance_view: The virtual machine extension instance view.
:type instance_view:
~azure.mgmt.compute.v2020_06_01.models.VirtualMachineExtensionInstanceView
"""

_validation = {
'id': {'readonly': True},
'type': {'readonly': True},
'provisioning_state': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'},
'publisher': {'key': 'properties.publisher', 'type': 'str'},
'type1': {'key': 'properties.type', 'type': 'str'},
'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'},
'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'},
'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'},
'settings': {'key': 'properties.settings', 'type': 'object'},
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'},
}

def __init__(self, **kwargs):
super(VirtualMachineScaleSetVMExtension, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.type = None
self.force_update_tag = kwargs.get('force_update_tag', None)
self.publisher = kwargs.get('publisher', None)
self.type1 = kwargs.get('type1', None)
self.type_handler_version = kwargs.get('type_handler_version', None)
self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None)
self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None)
self.settings = kwargs.get('settings', None)
self.protected_settings = kwargs.get('protected_settings', None)
self.provisioning_state = None
self.instance_view = kwargs.get('instance_view', None)


class VirtualMachineScaleSetVMExtensionsListResult(Model):
"""The List VMSS VM Extension operation response.
:param value: The list of VMSS VM extensions
:type value:
list[~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMExtension]
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[VirtualMachineScaleSetVMExtension]'},
}

def __init__(self, **kwargs):
super(VirtualMachineScaleSetVMExtensionsListResult, self).__init__(**kwargs)
self.value = kwargs.get('value', None)


class VirtualMachineScaleSetVMExtensionsSummary(Model):
"""Extensions summary for virtual machines of a virtual machine scale set.
Expand Down Expand Up @@ -6833,6 +6933,79 @@ def __init__(self, **kwargs):
self.statuses_summary = None


class VirtualMachineScaleSetVMExtensionUpdate(SubResourceReadOnly):
"""Describes a VMSS VM Extension.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Resource Id
:vartype id: str
:ivar name: The name of the extension.
:vartype name: str
:ivar type: Resource type
:vartype type: str
:param force_update_tag: How the extension handler should be forced to
update even if the extension configuration has not changed.
:type force_update_tag: str
:param publisher: The name of the extension handler publisher.
:type publisher: str
:param type1: Specifies the type of the extension; an example is
"CustomScriptExtension".
:type type1: str
:param type_handler_version: Specifies the version of the script handler.
:type type_handler_version: str
:param auto_upgrade_minor_version: Indicates whether the extension should
use a newer minor version if one is available at deployment time. Once
deployed, however, the extension will not upgrade minor versions unless
redeployed, even with this property set to true.
:type auto_upgrade_minor_version: bool
:param enable_automatic_upgrade: Indicates whether the extension should be
automatically upgraded by the platform if there is a newer version of the
extension available.
:type enable_automatic_upgrade: bool
:param settings: Json formatted public settings for the extension.
:type settings: object
:param protected_settings: The extension can contain either
protectedSettings or protectedSettingsFromKeyVault or no protected
settings at all.
:type protected_settings: object
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'},
'publisher': {'key': 'properties.publisher', 'type': 'str'},
'type1': {'key': 'properties.type', 'type': 'str'},
'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'},
'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'},
'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'},
'settings': {'key': 'properties.settings', 'type': 'object'},
'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'},
}

def __init__(self, **kwargs):
super(VirtualMachineScaleSetVMExtensionUpdate, self).__init__(**kwargs)
self.name = None
self.type = None
self.force_update_tag = kwargs.get('force_update_tag', None)
self.publisher = kwargs.get('publisher', None)
self.type1 = kwargs.get('type1', None)
self.type_handler_version = kwargs.get('type_handler_version', None)
self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None)
self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None)
self.settings = kwargs.get('settings', None)
self.protected_settings = kwargs.get('protected_settings', None)


class VirtualMachineScaleSetVMInstanceIDs(Model):
"""Specifies a list of virtual machine instance IDs from the VM scale set.
Expand Down
Loading

0 comments on commit 3a69c17

Please sign in to comment.