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] [Compute] Add patch spec for SharedImageGallery #8610

Merged
merged 5 commits into from
Nov 18, 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 @@ -4910,6 +4910,11 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
:param single_placement_group: When true this limits the scale set to a
single placement group, of max size 100 virtual machines.
:type single_placement_group: bool
:param proximity_placement_group: Specifies information about the
proximity placement group that the virtual machine scale set should be
assigned to. <br><br>Minimum api-version: 2018-04-01.
:type proximity_placement_group:
~azure.mgmt.compute.v2018_04_01.models.SubResource
:param identity: The identity of the virtual machine scale set, if
configured.
:type identity:
Expand All @@ -4924,6 +4929,7 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
'virtual_machine_profile': {'key': 'properties.virtualMachineProfile', 'type': 'VirtualMachineScaleSetUpdateVMProfile'},
'overprovision': {'key': 'properties.overprovision', 'type': 'bool'},
'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'},
'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'},
'identity': {'key': 'identity', 'type': 'VirtualMachineScaleSetIdentity'},
}

Expand All @@ -4935,6 +4941,7 @@ def __init__(self, **kwargs):
self.virtual_machine_profile = kwargs.get('virtual_machine_profile', None)
self.overprovision = kwargs.get('overprovision', None)
self.single_placement_group = kwargs.get('single_placement_group', None)
self.proximity_placement_group = kwargs.get('proximity_placement_group', None)
self.identity = kwargs.get('identity', None)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4910,6 +4910,11 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
:param single_placement_group: When true this limits the scale set to a
single placement group, of max size 100 virtual machines.
:type single_placement_group: bool
:param proximity_placement_group: Specifies information about the
proximity placement group that the virtual machine scale set should be
assigned to. <br><br>Minimum api-version: 2018-04-01.
:type proximity_placement_group:
~azure.mgmt.compute.v2018_04_01.models.SubResource
:param identity: The identity of the virtual machine scale set, if
configured.
:type identity:
Expand All @@ -4924,17 +4929,19 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
'virtual_machine_profile': {'key': 'properties.virtualMachineProfile', 'type': 'VirtualMachineScaleSetUpdateVMProfile'},
'overprovision': {'key': 'properties.overprovision', 'type': 'bool'},
'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'},
'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'},
'identity': {'key': 'identity', 'type': 'VirtualMachineScaleSetIdentity'},
}

def __init__(self, *, tags=None, sku=None, plan=None, upgrade_policy=None, virtual_machine_profile=None, overprovision: bool=None, single_placement_group: bool=None, identity=None, **kwargs) -> None:
def __init__(self, *, tags=None, sku=None, plan=None, upgrade_policy=None, virtual_machine_profile=None, overprovision: bool=None, single_placement_group: bool=None, proximity_placement_group=None, identity=None, **kwargs) -> None:
super(VirtualMachineScaleSetUpdate, self).__init__(tags=tags, **kwargs)
self.sku = sku
self.plan = plan
self.upgrade_policy = upgrade_policy
self.virtual_machine_profile = virtual_machine_profile
self.overprovision = overprovision
self.single_placement_group = single_placement_group
self.proximity_placement_group = proximity_placement_group
self.identity = identity


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5895,6 +5895,11 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
:param single_placement_group: When true this limits the scale set to a
single placement group, of max size 100 virtual machines.
:type single_placement_group: bool
:param proximity_placement_group: Specifies information about the
proximity placement group that the virtual machine scale set should be
assigned to. <br><br>Minimum api-version: 2018-04-01.
:type proximity_placement_group:
~azure.mgmt.compute.v2018_06_01.models.SubResource
:param identity: The identity of the virtual machine scale set, if
configured.
:type identity:
Expand All @@ -5909,6 +5914,7 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
'virtual_machine_profile': {'key': 'properties.virtualMachineProfile', 'type': 'VirtualMachineScaleSetUpdateVMProfile'},
'overprovision': {'key': 'properties.overprovision', 'type': 'bool'},
'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'},
'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'},
'identity': {'key': 'identity', 'type': 'VirtualMachineScaleSetIdentity'},
}

Expand All @@ -5920,6 +5926,7 @@ def __init__(self, **kwargs):
self.virtual_machine_profile = kwargs.get('virtual_machine_profile', None)
self.overprovision = kwargs.get('overprovision', None)
self.single_placement_group = kwargs.get('single_placement_group', None)
self.proximity_placement_group = kwargs.get('proximity_placement_group', None)
self.identity = kwargs.get('identity', None)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5895,6 +5895,11 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
:param single_placement_group: When true this limits the scale set to a
single placement group, of max size 100 virtual machines.
:type single_placement_group: bool
:param proximity_placement_group: Specifies information about the
proximity placement group that the virtual machine scale set should be
assigned to. <br><br>Minimum api-version: 2018-04-01.
:type proximity_placement_group:
~azure.mgmt.compute.v2018_06_01.models.SubResource
:param identity: The identity of the virtual machine scale set, if
configured.
:type identity:
Expand All @@ -5909,17 +5914,19 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
'virtual_machine_profile': {'key': 'properties.virtualMachineProfile', 'type': 'VirtualMachineScaleSetUpdateVMProfile'},
'overprovision': {'key': 'properties.overprovision', 'type': 'bool'},
'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'},
'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'},
'identity': {'key': 'identity', 'type': 'VirtualMachineScaleSetIdentity'},
}

def __init__(self, *, tags=None, sku=None, plan=None, upgrade_policy=None, virtual_machine_profile=None, overprovision: bool=None, single_placement_group: bool=None, identity=None, **kwargs) -> None:
def __init__(self, *, tags=None, sku=None, plan=None, upgrade_policy=None, virtual_machine_profile=None, overprovision: bool=None, single_placement_group: bool=None, proximity_placement_group=None, identity=None, **kwargs) -> None:
super(VirtualMachineScaleSetUpdate, self).__init__(tags=tags, **kwargs)
self.sku = sku
self.plan = plan
self.upgrade_policy = upgrade_policy
self.virtual_machine_profile = virtual_machine_profile
self.overprovision = overprovision
self.single_placement_group = single_placement_group
self.proximity_placement_group = proximity_placement_group
self.identity = identity


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4663,6 +4663,11 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
:param single_placement_group: When true this limits the scale set to a
single placement group, of max size 100 virtual machines.
:type single_placement_group: bool
:param proximity_placement_group: Specifies information about the
proximity placement group that the virtual machine scale set should be
assigned to. <br><br>Minimum api-version: 2018-04-01.
:type proximity_placement_group:
~azure.mgmt.compute.v2018_10_01.models.SubResource
:param identity: The identity of the virtual machine scale set, if
configured.
:type identity:
Expand All @@ -4679,6 +4684,7 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
'overprovision': {'key': 'properties.overprovision', 'type': 'bool'},
'do_not_run_extensions_on_overprovisioned_vms': {'key': 'properties.doNotRunExtensionsOnOverprovisionedVMs', 'type': 'bool'},
'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'},
'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'},
'identity': {'key': 'identity', 'type': 'VirtualMachineScaleSetIdentity'},
}

Expand All @@ -4692,6 +4698,7 @@ def __init__(self, **kwargs):
self.overprovision = kwargs.get('overprovision', None)
self.do_not_run_extensions_on_overprovisioned_vms = kwargs.get('do_not_run_extensions_on_overprovisioned_vms', None)
self.single_placement_group = kwargs.get('single_placement_group', None)
self.proximity_placement_group = kwargs.get('proximity_placement_group', None)
self.identity = kwargs.get('identity', None)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4663,6 +4663,11 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
:param single_placement_group: When true this limits the scale set to a
single placement group, of max size 100 virtual machines.
:type single_placement_group: bool
:param proximity_placement_group: Specifies information about the
proximity placement group that the virtual machine scale set should be
assigned to. <br><br>Minimum api-version: 2018-04-01.
:type proximity_placement_group:
~azure.mgmt.compute.v2018_10_01.models.SubResource
:param identity: The identity of the virtual machine scale set, if
configured.
:type identity:
Expand All @@ -4679,10 +4684,11 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
'overprovision': {'key': 'properties.overprovision', 'type': 'bool'},
'do_not_run_extensions_on_overprovisioned_vms': {'key': 'properties.doNotRunExtensionsOnOverprovisionedVMs', 'type': 'bool'},
'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'},
'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'},
'identity': {'key': 'identity', 'type': 'VirtualMachineScaleSetIdentity'},
}

def __init__(self, *, tags=None, sku=None, plan=None, upgrade_policy=None, automatic_repairs_policy=None, virtual_machine_profile=None, overprovision: bool=None, do_not_run_extensions_on_overprovisioned_vms: bool=None, single_placement_group: bool=None, identity=None, **kwargs) -> None:
def __init__(self, *, tags=None, sku=None, plan=None, upgrade_policy=None, automatic_repairs_policy=None, virtual_machine_profile=None, overprovision: bool=None, do_not_run_extensions_on_overprovisioned_vms: bool=None, single_placement_group: bool=None, proximity_placement_group=None, identity=None, **kwargs) -> None:
super(VirtualMachineScaleSetUpdate, self).__init__(tags=tags, **kwargs)
self.sku = sku
self.plan = plan
Expand All @@ -4692,6 +4698,7 @@ def __init__(self, *, tags=None, sku=None, plan=None, upgrade_policy=None, autom
self.overprovision = overprovision
self.do_not_run_extensions_on_overprovisioned_vms = do_not_run_extensions_on_overprovisioned_vms
self.single_placement_group = single_placement_group
self.proximity_placement_group = proximity_placement_group
self.identity = identity


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6898,6 +6898,11 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
is scaled-in.
:type scale_in_policy:
~azure.mgmt.compute.v2019_03_01.models.ScaleInPolicy
:param proximity_placement_group: Specifies information about the
proximity placement group that the virtual machine scale set should be
assigned to. <br><br>Minimum api-version: 2018-04-01.
:type proximity_placement_group:
~azure.mgmt.compute.v2019_03_01.models.SubResource
:param identity: The identity of the virtual machine scale set, if
configured.
:type identity:
Expand All @@ -6916,6 +6921,7 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'},
'additional_capabilities': {'key': 'properties.additionalCapabilities', 'type': 'AdditionalCapabilities'},
'scale_in_policy': {'key': 'properties.scaleInPolicy', 'type': 'ScaleInPolicy'},
'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'},
'identity': {'key': 'identity', 'type': 'VirtualMachineScaleSetIdentity'},
}

Expand All @@ -6931,6 +6937,7 @@ def __init__(self, **kwargs):
self.single_placement_group = kwargs.get('single_placement_group', None)
self.additional_capabilities = kwargs.get('additional_capabilities', None)
self.scale_in_policy = kwargs.get('scale_in_policy', None)
self.proximity_placement_group = kwargs.get('proximity_placement_group', None)
self.identity = kwargs.get('identity', None)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6898,6 +6898,11 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
is scaled-in.
:type scale_in_policy:
~azure.mgmt.compute.v2019_03_01.models.ScaleInPolicy
:param proximity_placement_group: Specifies information about the
proximity placement group that the virtual machine scale set should be
assigned to. <br><br>Minimum api-version: 2018-04-01.
:type proximity_placement_group:
~azure.mgmt.compute.v2019_03_01.models.SubResource
:param identity: The identity of the virtual machine scale set, if
configured.
:type identity:
Expand All @@ -6916,10 +6921,11 @@ class VirtualMachineScaleSetUpdate(UpdateResource):
'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'},
'additional_capabilities': {'key': 'properties.additionalCapabilities', 'type': 'AdditionalCapabilities'},
'scale_in_policy': {'key': 'properties.scaleInPolicy', 'type': 'ScaleInPolicy'},
'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'},
'identity': {'key': 'identity', 'type': 'VirtualMachineScaleSetIdentity'},
}

def __init__(self, *, tags=None, sku=None, plan=None, upgrade_policy=None, automatic_repairs_policy=None, virtual_machine_profile=None, overprovision: bool=None, do_not_run_extensions_on_overprovisioned_vms: bool=None, single_placement_group: bool=None, additional_capabilities=None, scale_in_policy=None, identity=None, **kwargs) -> None:
def __init__(self, *, tags=None, sku=None, plan=None, upgrade_policy=None, automatic_repairs_policy=None, virtual_machine_profile=None, overprovision: bool=None, do_not_run_extensions_on_overprovisioned_vms: bool=None, single_placement_group: bool=None, additional_capabilities=None, scale_in_policy=None, proximity_placement_group=None, identity=None, **kwargs) -> None:
super(VirtualMachineScaleSetUpdate, self).__init__(tags=tags, **kwargs)
self.sku = sku
self.plan = plan
Expand All @@ -6931,6 +6937,7 @@ def __init__(self, *, tags=None, sku=None, plan=None, upgrade_policy=None, autom
self.single_placement_group = single_placement_group
self.additional_capabilities = additional_capabilities
self.scale_in_policy = scale_in_policy
self.proximity_placement_group = proximity_placement_group
self.identity = identity


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@
from ._models_py3 import EncryptionSettingsElement
from ._models_py3 import Gallery
from ._models_py3 import GalleryApplication
from ._models_py3 import GalleryApplicationUpdate
from ._models_py3 import GalleryApplicationVersion
from ._models_py3 import GalleryApplicationVersionPublishingProfile
from ._models_py3 import GalleryApplicationVersionUpdate
from ._models_py3 import GalleryArtifactPublishingProfileBase
from ._models_py3 import GalleryArtifactSource
from ._models_py3 import GalleryArtifactVersionSource
Expand All @@ -62,10 +64,13 @@
from ._models_py3 import GalleryIdentifier
from ._models_py3 import GalleryImage
from ._models_py3 import GalleryImageIdentifier
from ._models_py3 import GalleryImageUpdate
from ._models_py3 import GalleryImageVersion
from ._models_py3 import GalleryImageVersionPublishingProfile
from ._models_py3 import GalleryImageVersionStorageProfile
from ._models_py3 import GalleryImageVersionUpdate
from ._models_py3 import GalleryOSDiskImage
from ._models_py3 import GalleryUpdate
from ._models_py3 import GrantAccessData
from ._models_py3 import HardwareProfile
from ._models_py3 import Image
Expand Down Expand Up @@ -250,8 +255,10 @@
from ._models import EncryptionSettingsElement
from ._models import Gallery
from ._models import GalleryApplication
from ._models import GalleryApplicationUpdate
from ._models import GalleryApplicationVersion
from ._models import GalleryApplicationVersionPublishingProfile
from ._models import GalleryApplicationVersionUpdate
from ._models import GalleryArtifactPublishingProfileBase
from ._models import GalleryArtifactSource
from ._models import GalleryArtifactVersionSource
Expand All @@ -260,10 +267,13 @@
from ._models import GalleryIdentifier
from ._models import GalleryImage
from ._models import GalleryImageIdentifier
from ._models import GalleryImageUpdate
from ._models import GalleryImageVersion
from ._models import GalleryImageVersionPublishingProfile
from ._models import GalleryImageVersionStorageProfile
from ._models import GalleryImageVersionUpdate
from ._models import GalleryOSDiskImage
from ._models import GalleryUpdate
from ._models import GrantAccessData
from ._models import HardwareProfile
from ._models import Image
Expand Down Expand Up @@ -518,8 +528,10 @@
'EncryptionSettingsElement',
'Gallery',
'GalleryApplication',
'GalleryApplicationUpdate',
'GalleryApplicationVersion',
'GalleryApplicationVersionPublishingProfile',
'GalleryApplicationVersionUpdate',
'GalleryArtifactPublishingProfileBase',
'GalleryArtifactSource',
'GalleryArtifactVersionSource',
Expand All @@ -528,10 +540,13 @@
'GalleryIdentifier',
'GalleryImage',
'GalleryImageIdentifier',
'GalleryImageUpdate',
'GalleryImageVersion',
'GalleryImageVersionPublishingProfile',
'GalleryImageVersionStorageProfile',
'GalleryImageVersionUpdate',
'GalleryOSDiskImage',
'GalleryUpdate',
'GrantAccessData',
'HardwareProfile',
'Image',
Expand Down
Loading