diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/__init__.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/__init__.py index 71cbc14a54ae..db9142e47016 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/__init__.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/__init__.py @@ -153,6 +153,7 @@ from .regional_replication_status_py3 import RegionalReplicationStatus from .replication_status_py3 import ReplicationStatus from .gallery_image_version_py3 import GalleryImageVersion + from .target_region_py3 import TargetRegion from .managed_artifact_py3 import ManagedArtifact from .gallery_artifact_source_py3 import GalleryArtifactSource from .gallery_artifact_publishing_profile_base_py3 import GalleryArtifactPublishingProfileBase @@ -301,6 +302,7 @@ from .regional_replication_status import RegionalReplicationStatus from .replication_status import ReplicationStatus from .gallery_image_version import GalleryImageVersion + from .target_region import TargetRegion from .managed_artifact import ManagedArtifact from .gallery_artifact_source import GalleryArtifactSource from .gallery_artifact_publishing_profile_base import GalleryArtifactPublishingProfileBase @@ -344,7 +346,6 @@ RollingUpgradeStatusCode, RollingUpgradeActionType, IntervalInMins, - ScaleTier, AggregatedReplicationState, ReplicationState, HostCaching, @@ -496,6 +497,7 @@ 'RegionalReplicationStatus', 'ReplicationStatus', 'GalleryImageVersion', + 'TargetRegion', 'ManagedArtifact', 'GalleryArtifactSource', 'GalleryArtifactPublishingProfileBase', @@ -538,7 +540,6 @@ 'RollingUpgradeStatusCode', 'RollingUpgradeActionType', 'IntervalInMins', - 'ScaleTier', 'AggregatedReplicationState', 'ReplicationState', 'HostCaching', diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/compute_management_client_enums.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/compute_management_client_enums.py index 7992a6cd0806..67ef79394577 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/compute_management_client_enums.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/compute_management_client_enums.py @@ -328,12 +328,6 @@ class IntervalInMins(str, Enum): sixty_mins = "SixtyMins" -class ScaleTier(str, Enum): - - s30 = "S30" - s100 = "S100" - - class AggregatedReplicationState(str, Enum): unknown = "Unknown" diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base.py index e596234aadff..bb59422b13cb 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base.py @@ -17,8 +17,10 @@ class GalleryArtifactPublishingProfileBase(Model): All required parameters must be populated in order to send to Azure. - :param regions: The regions where the artifact is going to be published. - :type regions: list[str] + :param target_regions: The target regions where the artifact is going to + be published. + :type target_regions: + list[~azure.mgmt.compute.v2018_06_01.models.TargetRegion] :param source: Required. :type source: ~azure.mgmt.compute.v2018_06_01.models.GalleryArtifactSource """ @@ -28,11 +30,11 @@ class GalleryArtifactPublishingProfileBase(Model): } _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, + 'target_regions': {'key': 'targetRegions', 'type': '[TargetRegion]'}, 'source': {'key': 'source', 'type': 'GalleryArtifactSource'}, } def __init__(self, **kwargs): super(GalleryArtifactPublishingProfileBase, self).__init__(**kwargs) - self.regions = kwargs.get('regions', None) + self.target_regions = kwargs.get('target_regions', None) self.source = kwargs.get('source', None) diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base_py3.py index bcbf1b231b2d..335f17f5793c 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base_py3.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base_py3.py @@ -17,8 +17,10 @@ class GalleryArtifactPublishingProfileBase(Model): All required parameters must be populated in order to send to Azure. - :param regions: The regions where the artifact is going to be published. - :type regions: list[str] + :param target_regions: The target regions where the artifact is going to + be published. + :type target_regions: + list[~azure.mgmt.compute.v2018_06_01.models.TargetRegion] :param source: Required. :type source: ~azure.mgmt.compute.v2018_06_01.models.GalleryArtifactSource """ @@ -28,11 +30,11 @@ class GalleryArtifactPublishingProfileBase(Model): } _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, + 'target_regions': {'key': 'targetRegions', 'type': '[TargetRegion]'}, 'source': {'key': 'source', 'type': 'GalleryArtifactSource'}, } - def __init__(self, *, source, regions=None, **kwargs) -> None: + def __init__(self, *, source, target_regions=None, **kwargs) -> None: super(GalleryArtifactPublishingProfileBase, self).__init__(**kwargs) - self.regions = regions + self.target_regions = target_regions self.source = source diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile.py index 7f1a56ccf562..c5e3be1292a9 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile.py @@ -20,13 +20,15 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase) All required parameters must be populated in order to send to Azure. - :param regions: The regions where the artifact is going to be published. - :type regions: list[str] + :param target_regions: The target regions where the artifact is going to + be published. + :type target_regions: + list[~azure.mgmt.compute.v2018_06_01.models.TargetRegion] :param source: Required. :type source: ~azure.mgmt.compute.v2018_06_01.models.GalleryArtifactSource - :param scale_tier: The scale tier of the gallery image version. Valid - values are 'S30' and 'S100'. Possible values include: 'S30', 'S100' - :type scale_tier: str or ~azure.mgmt.compute.v2018_06_01.models.ScaleTier + :param replica_count: This is the number of source blob copies in a + region. + :type replica_count: int :param exclude_from_latest: The flag means that if it is set to true, people deploying VMs with 'latest' as version will not use this version. :type exclude_from_latest: bool @@ -44,9 +46,9 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase) } _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, + 'target_regions': {'key': 'targetRegions', 'type': '[TargetRegion]'}, 'source': {'key': 'source', 'type': 'GalleryArtifactSource'}, - 'scale_tier': {'key': 'scaleTier', 'type': 'str'}, + 'replica_count': {'key': 'replicaCount', 'type': 'int'}, 'exclude_from_latest': {'key': 'excludeFromLatest', 'type': 'bool'}, 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, 'end_of_life_date': {'key': 'endOfLifeDate', 'type': 'iso-8601'}, @@ -54,7 +56,7 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase) def __init__(self, **kwargs): super(GalleryImageVersionPublishingProfile, self).__init__(**kwargs) - self.scale_tier = kwargs.get('scale_tier', None) + self.replica_count = kwargs.get('replica_count', None) self.exclude_from_latest = kwargs.get('exclude_from_latest', None) self.published_date = None self.end_of_life_date = kwargs.get('end_of_life_date', None) diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile_py3.py index cb022546367b..54fee2cc6da8 100644 --- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile_py3.py +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile_py3.py @@ -20,13 +20,15 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase) All required parameters must be populated in order to send to Azure. - :param regions: The regions where the artifact is going to be published. - :type regions: list[str] + :param target_regions: The target regions where the artifact is going to + be published. + :type target_regions: + list[~azure.mgmt.compute.v2018_06_01.models.TargetRegion] :param source: Required. :type source: ~azure.mgmt.compute.v2018_06_01.models.GalleryArtifactSource - :param scale_tier: The scale tier of the gallery image version. Valid - values are 'S30' and 'S100'. Possible values include: 'S30', 'S100' - :type scale_tier: str or ~azure.mgmt.compute.v2018_06_01.models.ScaleTier + :param replica_count: This is the number of source blob copies in a + region. + :type replica_count: int :param exclude_from_latest: The flag means that if it is set to true, people deploying VMs with 'latest' as version will not use this version. :type exclude_from_latest: bool @@ -44,17 +46,17 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase) } _attribute_map = { - 'regions': {'key': 'regions', 'type': '[str]'}, + 'target_regions': {'key': 'targetRegions', 'type': '[TargetRegion]'}, 'source': {'key': 'source', 'type': 'GalleryArtifactSource'}, - 'scale_tier': {'key': 'scaleTier', 'type': 'str'}, + 'replica_count': {'key': 'replicaCount', 'type': 'int'}, 'exclude_from_latest': {'key': 'excludeFromLatest', 'type': 'bool'}, 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, 'end_of_life_date': {'key': 'endOfLifeDate', 'type': 'iso-8601'}, } - def __init__(self, *, source, regions=None, scale_tier=None, exclude_from_latest: bool=None, end_of_life_date=None, **kwargs) -> None: - super(GalleryImageVersionPublishingProfile, self).__init__(regions=regions, source=source, **kwargs) - self.scale_tier = scale_tier + def __init__(self, *, source, target_regions=None, replica_count: int=None, exclude_from_latest: bool=None, end_of_life_date=None, **kwargs) -> None: + super(GalleryImageVersionPublishingProfile, self).__init__(target_regions=target_regions, source=source, **kwargs) + self.replica_count = replica_count self.exclude_from_latest = exclude_from_latest self.published_date = None self.end_of_life_date = end_of_life_date diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region.py new file mode 100644 index 000000000000..6c1343cd129c --- /dev/null +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TargetRegion(Model): + """Describes the target region information. + + :param name: The name of the region. + :type name: str + :param regional_replica_count: This is the number of source blob copies in + this specific region. + :type regional_replica_count: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'regional_replica_count': {'key': 'regionalReplicaCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(TargetRegion, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.regional_replica_count = kwargs.get('regional_replica_count', None) diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region_py3.py new file mode 100644 index 000000000000..3a307a116d4d --- /dev/null +++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/target_region_py3.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TargetRegion(Model): + """Describes the target region information. + + :param name: The name of the region. + :type name: str + :param regional_replica_count: This is the number of source blob copies in + this specific region. + :type regional_replica_count: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'regional_replica_count': {'key': 'regionalReplicaCount', 'type': 'int'}, + } + + def __init__(self, *, name: str=None, regional_replica_count: int=None, **kwargs) -> None: + super(TargetRegion, self).__init__(**kwargs) + self.name = name + self.regional_replica_count = regional_replica_count