@@ -20,13 +20,15 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase)
20
20
21
21
All required parameters must be populated in order to send to Azure.
22
22
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]
25
27
:param source: Required.
26
28
: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
30
32
:param exclude_from_latest: The flag means that if it is set to true,
31
33
people deploying VMs with 'latest' as version will not use this version.
32
34
:type exclude_from_latest: bool
@@ -44,17 +46,17 @@ class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase)
44
46
}
45
47
46
48
_attribute_map = {
47
- 'regions ' : {'key' : 'regions ' , 'type' : '[str ]' },
49
+ 'target_regions ' : {'key' : 'targetRegions ' , 'type' : '[TargetRegion ]' },
48
50
'source' : {'key' : 'source' , 'type' : 'GalleryArtifactSource' },
49
- 'scale_tier ' : {'key' : 'scaleTier ' , 'type' : 'str ' },
51
+ 'replica_count ' : {'key' : 'replicaCount ' , 'type' : 'int ' },
50
52
'exclude_from_latest' : {'key' : 'excludeFromLatest' , 'type' : 'bool' },
51
53
'published_date' : {'key' : 'publishedDate' , 'type' : 'iso-8601' },
52
54
'end_of_life_date' : {'key' : 'endOfLifeDate' , 'type' : 'iso-8601' },
53
55
}
54
56
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
58
60
self .exclude_from_latest = exclude_from_latest
59
61
self .published_date = None
60
62
self .end_of_life_date = end_of_life_date
0 commit comments