Skip to content

Commit 76f5dd2

Browse files
authored
Generated from 8741aed33b77989e144e30c2229e44db19aa1265 (#3223)
Added the replica count change.
1 parent f4b3e17 commit 76f5dd2

8 files changed

+104
-35
lines changed

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/__init__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@
153153
from .regional_replication_status_py3 import RegionalReplicationStatus
154154
from .replication_status_py3 import ReplicationStatus
155155
from .gallery_image_version_py3 import GalleryImageVersion
156+
from .target_region_py3 import TargetRegion
156157
from .managed_artifact_py3 import ManagedArtifact
157158
from .gallery_artifact_source_py3 import GalleryArtifactSource
158159
from .gallery_artifact_publishing_profile_base_py3 import GalleryArtifactPublishingProfileBase
@@ -301,6 +302,7 @@
301302
from .regional_replication_status import RegionalReplicationStatus
302303
from .replication_status import ReplicationStatus
303304
from .gallery_image_version import GalleryImageVersion
305+
from .target_region import TargetRegion
304306
from .managed_artifact import ManagedArtifact
305307
from .gallery_artifact_source import GalleryArtifactSource
306308
from .gallery_artifact_publishing_profile_base import GalleryArtifactPublishingProfileBase
@@ -344,7 +346,6 @@
344346
RollingUpgradeStatusCode,
345347
RollingUpgradeActionType,
346348
IntervalInMins,
347-
ScaleTier,
348349
AggregatedReplicationState,
349350
ReplicationState,
350351
HostCaching,
@@ -496,6 +497,7 @@
496497
'RegionalReplicationStatus',
497498
'ReplicationStatus',
498499
'GalleryImageVersion',
500+
'TargetRegion',
499501
'ManagedArtifact',
500502
'GalleryArtifactSource',
501503
'GalleryArtifactPublishingProfileBase',
@@ -538,7 +540,6 @@
538540
'RollingUpgradeStatusCode',
539541
'RollingUpgradeActionType',
540542
'IntervalInMins',
541-
'ScaleTier',
542543
'AggregatedReplicationState',
543544
'ReplicationState',
544545
'HostCaching',

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/compute_management_client_enums.py

-6
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,6 @@ class IntervalInMins(str, Enum):
328328
sixty_mins = "SixtyMins"
329329

330330

331-
class ScaleTier(str, Enum):
332-
333-
s30 = "S30"
334-
s100 = "S100"
335-
336-
337331
class AggregatedReplicationState(str, Enum):
338332

339333
unknown = "Unknown"

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ class GalleryArtifactPublishingProfileBase(Model):
1717
1818
All required parameters must be populated in order to send to Azure.
1919
20-
:param regions: The regions where the artifact is going to be published.
21-
:type regions: list[str]
20+
:param target_regions: The target regions where the artifact is going to
21+
be published.
22+
:type target_regions:
23+
list[~azure.mgmt.compute.v2018_06_01.models.TargetRegion]
2224
:param source: Required.
2325
:type source: ~azure.mgmt.compute.v2018_06_01.models.GalleryArtifactSource
2426
"""
@@ -28,11 +30,11 @@ class GalleryArtifactPublishingProfileBase(Model):
2830
}
2931

3032
_attribute_map = {
31-
'regions': {'key': 'regions', 'type': '[str]'},
33+
'target_regions': {'key': 'targetRegions', 'type': '[TargetRegion]'},
3234
'source': {'key': 'source', 'type': 'GalleryArtifactSource'},
3335
}
3436

3537
def __init__(self, **kwargs):
3638
super(GalleryArtifactPublishingProfileBase, self).__init__(**kwargs)
37-
self.regions = kwargs.get('regions', None)
39+
self.target_regions = kwargs.get('target_regions', None)
3840
self.source = kwargs.get('source', None)

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_artifact_publishing_profile_base_py3.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ class GalleryArtifactPublishingProfileBase(Model):
1717
1818
All required parameters must be populated in order to send to Azure.
1919
20-
:param regions: The regions where the artifact is going to be published.
21-
:type regions: list[str]
20+
:param target_regions: The target regions where the artifact is going to
21+
be published.
22+
:type target_regions:
23+
list[~azure.mgmt.compute.v2018_06_01.models.TargetRegion]
2224
:param source: Required.
2325
:type source: ~azure.mgmt.compute.v2018_06_01.models.GalleryArtifactSource
2426
"""
@@ -28,11 +30,11 @@ class GalleryArtifactPublishingProfileBase(Model):
2830
}
2931

3032
_attribute_map = {
31-
'regions': {'key': 'regions', 'type': '[str]'},
33+
'target_regions': {'key': 'targetRegions', 'type': '[TargetRegion]'},
3234
'source': {'key': 'source', 'type': 'GalleryArtifactSource'},
3335
}
3436

35-
def __init__(self, *, source, regions=None, **kwargs) -> None:
37+
def __init__(self, *, source, target_regions=None, **kwargs) -> None:
3638
super(GalleryArtifactPublishingProfileBase, self).__init__(**kwargs)
37-
self.regions = regions
39+
self.target_regions = target_regions
3840
self.source = source

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile.py

+10-8
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase)
2020
2121
All required parameters must be populated in order to send to Azure.
2222
23-
:param regions: The regions where the artifact is going to be published.
24-
:type regions: list[str]
23+
:param target_regions: The target regions where the artifact is going to
24+
be published.
25+
:type target_regions:
26+
list[~azure.mgmt.compute.v2018_06_01.models.TargetRegion]
2527
:param source: Required.
2628
:type source: ~azure.mgmt.compute.v2018_06_01.models.GalleryArtifactSource
27-
:param scale_tier: The scale tier of the gallery image version. Valid
28-
values are 'S30' and 'S100'. Possible values include: 'S30', 'S100'
29-
:type scale_tier: str or ~azure.mgmt.compute.v2018_06_01.models.ScaleTier
29+
:param replica_count: This is the number of source blob copies in a
30+
region.
31+
:type replica_count: int
3032
:param exclude_from_latest: The flag means that if it is set to true,
3133
people deploying VMs with 'latest' as version will not use this version.
3234
:type exclude_from_latest: bool
@@ -44,17 +46,17 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase)
4446
}
4547

4648
_attribute_map = {
47-
'regions': {'key': 'regions', 'type': '[str]'},
49+
'target_regions': {'key': 'targetRegions', 'type': '[TargetRegion]'},
4850
'source': {'key': 'source', 'type': 'GalleryArtifactSource'},
49-
'scale_tier': {'key': 'scaleTier', 'type': 'str'},
51+
'replica_count': {'key': 'replicaCount', 'type': 'int'},
5052
'exclude_from_latest': {'key': 'excludeFromLatest', 'type': 'bool'},
5153
'published_date': {'key': 'publishedDate', 'type': 'iso-8601'},
5254
'end_of_life_date': {'key': 'endOfLifeDate', 'type': 'iso-8601'},
5355
}
5456

5557
def __init__(self, **kwargs):
5658
super(GalleryImageVersionPublishingProfile, self).__init__(**kwargs)
57-
self.scale_tier = kwargs.get('scale_tier', None)
59+
self.replica_count = kwargs.get('replica_count', None)
5860
self.exclude_from_latest = kwargs.get('exclude_from_latest', None)
5961
self.published_date = None
6062
self.end_of_life_date = kwargs.get('end_of_life_date', None)

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/gallery_image_version_publishing_profile_py3.py

+12-10
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase)
2020
2121
All required parameters must be populated in order to send to Azure.
2222
23-
:param regions: The regions where the artifact is going to be published.
24-
:type regions: list[str]
23+
:param target_regions: The target regions where the artifact is going to
24+
be published.
25+
:type target_regions:
26+
list[~azure.mgmt.compute.v2018_06_01.models.TargetRegion]
2527
:param source: Required.
2628
:type source: ~azure.mgmt.compute.v2018_06_01.models.GalleryArtifactSource
27-
:param scale_tier: The scale tier of the gallery image version. Valid
28-
values are 'S30' and 'S100'. Possible values include: 'S30', 'S100'
29-
:type scale_tier: str or ~azure.mgmt.compute.v2018_06_01.models.ScaleTier
29+
:param replica_count: This is the number of source blob copies in a
30+
region.
31+
:type replica_count: int
3032
:param exclude_from_latest: The flag means that if it is set to true,
3133
people deploying VMs with 'latest' as version will not use this version.
3234
:type exclude_from_latest: bool
@@ -44,17 +46,17 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase)
4446
}
4547

4648
_attribute_map = {
47-
'regions': {'key': 'regions', 'type': '[str]'},
49+
'target_regions': {'key': 'targetRegions', 'type': '[TargetRegion]'},
4850
'source': {'key': 'source', 'type': 'GalleryArtifactSource'},
49-
'scale_tier': {'key': 'scaleTier', 'type': 'str'},
51+
'replica_count': {'key': 'replicaCount', 'type': 'int'},
5052
'exclude_from_latest': {'key': 'excludeFromLatest', 'type': 'bool'},
5153
'published_date': {'key': 'publishedDate', 'type': 'iso-8601'},
5254
'end_of_life_date': {'key': 'endOfLifeDate', 'type': 'iso-8601'},
5355
}
5456

55-
def __init__(self, *, source, regions=None, scale_tier=None, exclude_from_latest: bool=None, end_of_life_date=None, **kwargs) -> None:
56-
super(GalleryImageVersionPublishingProfile, self).__init__(regions=regions, source=source, **kwargs)
57-
self.scale_tier = scale_tier
57+
def __init__(self, *, source, target_regions=None, replica_count: int=None, exclude_from_latest: bool=None, end_of_life_date=None, **kwargs) -> None:
58+
super(GalleryImageVersionPublishingProfile, self).__init__(target_regions=target_regions, source=source, **kwargs)
59+
self.replica_count = replica_count
5860
self.exclude_from_latest = exclude_from_latest
5961
self.published_date = None
6062
self.end_of_life_date = end_of_life_date
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class TargetRegion(Model):
16+
"""Describes the target region information.
17+
18+
:param name: The name of the region.
19+
:type name: str
20+
:param regional_replica_count: This is the number of source blob copies in
21+
this specific region.
22+
:type regional_replica_count: int
23+
"""
24+
25+
_attribute_map = {
26+
'name': {'key': 'name', 'type': 'str'},
27+
'regional_replica_count': {'key': 'regionalReplicaCount', 'type': 'int'},
28+
}
29+
30+
def __init__(self, **kwargs):
31+
super(TargetRegion, self).__init__(**kwargs)
32+
self.name = kwargs.get('name', None)
33+
self.regional_replica_count = kwargs.get('regional_replica_count', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class TargetRegion(Model):
16+
"""Describes the target region information.
17+
18+
:param name: The name of the region.
19+
:type name: str
20+
:param regional_replica_count: This is the number of source blob copies in
21+
this specific region.
22+
:type regional_replica_count: int
23+
"""
24+
25+
_attribute_map = {
26+
'name': {'key': 'name', 'type': 'str'},
27+
'regional_replica_count': {'key': 'regionalReplicaCount', 'type': 'int'},
28+
}
29+
30+
def __init__(self, *, name: str=None, regional_replica_count: int=None, **kwargs) -> None:
31+
super(TargetRegion, self).__init__(**kwargs)
32+
self.name = name
33+
self.regional_replica_count = regional_replica_count

0 commit comments

Comments
 (0)