Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
[AutoPR compute/resource-manager] Swagger: Allowing for VMSS referenc…
…e during VM creation (#6609)

* Generated from 547a98bc34516d8788adff951ebd929d8d5125ae

Swagger: Allowing for VMSS reference during VM creation

* Generated from 2723517c6c29f1c6945bdf05b9c4e42f85159011

fixing typo
  • Loading branch information
AutorestCI authored and Zim Kalinowski committed Aug 27, 2019
commit b07d4010f7683aec226be00ff2c803d06ded5a55
Original file line number Diff line number Diff line change
Expand Up @@ -4260,8 +4260,20 @@ class VirtualMachine(Resource):
maintenance for virtual machines in
Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
<br><br> Currently, a VM can only be added to availability set at creation
time. An existing VM cannot be added to an availability set.
time. An existing VM cannot be added to an availability set. <br><br>This
property cannot exist along with a non-null
properties.virtualMachineScaleSet reference.
:type availability_set: ~azure.mgmt.compute.v2019_03_01.models.SubResource
:param virtual_machine_scale_set: Specifies information about the virtual
machine scale set that the virtual machine should be assigned to. Virtual
machines specified in the same virtual machine scale set are allocated to
different nodes to maximize availability. Currently, a VM can only be
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‐03‐01
:type virtual_machine_scale_set:
~azure.mgmt.compute.v2019_03_01.models.SubResource
:param proximity_placement_group: Specifies information about the
proximity placement group that the virtual machine should be assigned to.
<br><br>Minimum api-version: 2018-04-01.
Expand Down Expand Up @@ -4325,6 +4337,7 @@ class VirtualMachine(Resource):
'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'},
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'},
'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'},
'virtual_machine_scale_set': {'key': 'properties.virtualMachineScaleSet', 'type': 'SubResource'},
'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'},
'host': {'key': 'properties.host', 'type': 'SubResource'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
Expand All @@ -4346,6 +4359,7 @@ def __init__(self, **kwargs):
self.network_profile = kwargs.get('network_profile', None)
self.diagnostics_profile = kwargs.get('diagnostics_profile', None)
self.availability_set = kwargs.get('availability_set', None)
self.virtual_machine_scale_set = kwargs.get('virtual_machine_scale_set', None)
self.proximity_placement_group = kwargs.get('proximity_placement_group', None)
self.host = kwargs.get('host', None)
self.provisioning_state = None
Expand Down Expand Up @@ -6964,8 +6978,20 @@ class VirtualMachineUpdate(UpdateResource):
maintenance for virtual machines in
Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
<br><br> Currently, a VM can only be added to availability set at creation
time. An existing VM cannot be added to an availability set.
time. An existing VM cannot be added to an availability set. <br><br>This
property cannot exist along with a non-null
properties.virtualMachineScaleSet reference.
:type availability_set: ~azure.mgmt.compute.v2019_03_01.models.SubResource
:param virtual_machine_scale_set: Specifies information about the virtual
machine scale set that the virtual machine should be assigned to. Virtual
machines specified in the same virtual machine scale set are allocated to
different nodes to maximize availability. Currently, a VM can only be
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‐03‐01
:type virtual_machine_scale_set:
~azure.mgmt.compute.v2019_03_01.models.SubResource
:param proximity_placement_group: Specifies information about the
proximity placement group that the virtual machine should be assigned to.
<br><br>Minimum api-version: 2018-04-01.
Expand Down Expand Up @@ -7017,6 +7043,7 @@ class VirtualMachineUpdate(UpdateResource):
'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'},
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'},
'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'},
'virtual_machine_scale_set': {'key': 'properties.virtualMachineScaleSet', 'type': 'SubResource'},
'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'},
'host': {'key': 'properties.host', 'type': 'SubResource'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
Expand All @@ -7037,6 +7064,7 @@ def __init__(self, **kwargs):
self.network_profile = kwargs.get('network_profile', None)
self.diagnostics_profile = kwargs.get('diagnostics_profile', None)
self.availability_set = kwargs.get('availability_set', None)
self.virtual_machine_scale_set = kwargs.get('virtual_machine_scale_set', None)
self.proximity_placement_group = kwargs.get('proximity_placement_group', None)
self.host = kwargs.get('host', None)
self.provisioning_state = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4260,8 +4260,20 @@ class VirtualMachine(Resource):
maintenance for virtual machines in
Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
<br><br> Currently, a VM can only be added to availability set at creation
time. An existing VM cannot be added to an availability set.
time. An existing VM cannot be added to an availability set. <br><br>This
property cannot exist along with a non-null
properties.virtualMachineScaleSet reference.
:type availability_set: ~azure.mgmt.compute.v2019_03_01.models.SubResource
:param virtual_machine_scale_set: Specifies information about the virtual
machine scale set that the virtual machine should be assigned to. Virtual
machines specified in the same virtual machine scale set are allocated to
different nodes to maximize availability. Currently, a VM can only be
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‐03‐01
:type virtual_machine_scale_set:
~azure.mgmt.compute.v2019_03_01.models.SubResource
:param proximity_placement_group: Specifies information about the
proximity placement group that the virtual machine should be assigned to.
<br><br>Minimum api-version: 2018-04-01.
Expand Down Expand Up @@ -4325,6 +4337,7 @@ class VirtualMachine(Resource):
'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'},
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'},
'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'},
'virtual_machine_scale_set': {'key': 'properties.virtualMachineScaleSet', 'type': 'SubResource'},
'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'},
'host': {'key': 'properties.host', 'type': 'SubResource'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
Expand All @@ -4336,7 +4349,7 @@ class VirtualMachine(Resource):
'zones': {'key': 'zones', 'type': '[str]'},
}

def __init__(self, *, location: str, tags=None, plan=None, hardware_profile=None, storage_profile=None, additional_capabilities=None, os_profile=None, network_profile=None, diagnostics_profile=None, availability_set=None, proximity_placement_group=None, host=None, license_type: str=None, identity=None, zones=None, **kwargs) -> None:
def __init__(self, *, location: str, tags=None, plan=None, hardware_profile=None, storage_profile=None, additional_capabilities=None, os_profile=None, network_profile=None, diagnostics_profile=None, availability_set=None, virtual_machine_scale_set=None, proximity_placement_group=None, host=None, license_type: str=None, identity=None, zones=None, **kwargs) -> None:
super(VirtualMachine, self).__init__(location=location, tags=tags, **kwargs)
self.plan = plan
self.hardware_profile = hardware_profile
Expand All @@ -4346,6 +4359,7 @@ def __init__(self, *, location: str, tags=None, plan=None, hardware_profile=None
self.network_profile = network_profile
self.diagnostics_profile = diagnostics_profile
self.availability_set = availability_set
self.virtual_machine_scale_set = virtual_machine_scale_set
self.proximity_placement_group = proximity_placement_group
self.host = host
self.provisioning_state = None
Expand Down Expand Up @@ -6964,8 +6978,20 @@ class VirtualMachineUpdate(UpdateResource):
maintenance for virtual machines in
Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
<br><br> Currently, a VM can only be added to availability set at creation
time. An existing VM cannot be added to an availability set.
time. An existing VM cannot be added to an availability set. <br><br>This
property cannot exist along with a non-null
properties.virtualMachineScaleSet reference.
:type availability_set: ~azure.mgmt.compute.v2019_03_01.models.SubResource
:param virtual_machine_scale_set: Specifies information about the virtual
machine scale set that the virtual machine should be assigned to. Virtual
machines specified in the same virtual machine scale set are allocated to
different nodes to maximize availability. Currently, a VM can only be
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‐03‐01
:type virtual_machine_scale_set:
~azure.mgmt.compute.v2019_03_01.models.SubResource
:param proximity_placement_group: Specifies information about the
proximity placement group that the virtual machine should be assigned to.
<br><br>Minimum api-version: 2018-04-01.
Expand Down Expand Up @@ -7017,6 +7043,7 @@ class VirtualMachineUpdate(UpdateResource):
'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'},
'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'},
'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'},
'virtual_machine_scale_set': {'key': 'properties.virtualMachineScaleSet', 'type': 'SubResource'},
'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'},
'host': {'key': 'properties.host', 'type': 'SubResource'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
Expand All @@ -7027,7 +7054,7 @@ class VirtualMachineUpdate(UpdateResource):
'zones': {'key': 'zones', 'type': '[str]'},
}

def __init__(self, *, tags=None, plan=None, hardware_profile=None, storage_profile=None, additional_capabilities=None, os_profile=None, network_profile=None, diagnostics_profile=None, availability_set=None, proximity_placement_group=None, host=None, license_type: str=None, identity=None, zones=None, **kwargs) -> None:
def __init__(self, *, tags=None, plan=None, hardware_profile=None, storage_profile=None, additional_capabilities=None, os_profile=None, network_profile=None, diagnostics_profile=None, availability_set=None, virtual_machine_scale_set=None, proximity_placement_group=None, host=None, license_type: str=None, identity=None, zones=None, **kwargs) -> None:
super(VirtualMachineUpdate, self).__init__(tags=tags, **kwargs)
self.plan = plan
self.hardware_profile = hardware_profile
Expand All @@ -7037,6 +7064,7 @@ def __init__(self, *, tags=None, plan=None, hardware_profile=None, storage_profi
self.network_profile = network_profile
self.diagnostics_profile = diagnostics_profile
self.availability_set = availability_set
self.virtual_machine_scale_set = virtual_machine_scale_set
self.proximity_placement_group = proximity_placement_group
self.host = host
self.provisioning_state = None
Expand Down