Skip to content

Commit 182d8c7

Browse files
authored
Generated from 7d119071aeb883d55e9860d9ccdbf74050ce856b (#3402)
Made minor change to gallery swagger.
1 parent bee997f commit 182d8c7

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

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

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,19 @@
1515
class TargetRegion(Model):
1616
"""Describes the target region information.
1717
18-
:param name: The name of the region.
18+
All required parameters must be populated in order to send to Azure.
19+
20+
:param name: Required. The name of the region.
1921
:type name: str
2022
:param regional_replica_count: The number of replicas of the Image Version
2123
to be created per region. This property is updateable.
2224
:type regional_replica_count: int
2325
"""
2426

27+
_validation = {
28+
'name': {'required': True},
29+
}
30+
2531
_attribute_map = {
2632
'name': {'key': 'name', 'type': 'str'},
2733
'regional_replica_count': {'key': 'regionalReplicaCount', 'type': 'int'},

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

+8-2
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,25 @@
1515
class TargetRegion(Model):
1616
"""Describes the target region information.
1717
18-
:param name: The name of the region.
18+
All required parameters must be populated in order to send to Azure.
19+
20+
:param name: Required. The name of the region.
1921
:type name: str
2022
:param regional_replica_count: The number of replicas of the Image Version
2123
to be created per region. This property is updateable.
2224
:type regional_replica_count: int
2325
"""
2426

27+
_validation = {
28+
'name': {'required': True},
29+
}
30+
2531
_attribute_map = {
2632
'name': {'key': 'name', 'type': 'str'},
2733
'regional_replica_count': {'key': 'regionalReplicaCount', 'type': 'int'},
2834
}
2935

30-
def __init__(self, *, name: str=None, regional_replica_count: int=None, **kwargs) -> None:
36+
def __init__(self, *, name: str, regional_replica_count: int=None, **kwargs) -> None:
3137
super(TargetRegion, self).__init__(**kwargs)
3238
self.name = name
3339
self.regional_replica_count = regional_replica_count

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/galleries_operations.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def create_or_update(
100100
:param resource_group_name: The name of the resource group.
101101
:type resource_group_name: str
102102
:param gallery_name: The name of the Shared Image Gallery. The allowed
103-
characters are alphabets and numbers with dots, dashes, and periods
104-
allowed in the middle. The maximum length is 80 characters.
103+
characters are alphabets and numbers with dots and periods allowed in
104+
the middle. The maximum length is 80 characters.
105105
:type gallery_name: str
106106
:param gallery: Parameters supplied to the create or update Shared
107107
Image Gallery operation.

0 commit comments

Comments
 (0)