Skip to content

Commit

Permalink
Generated from 7d119071aeb883d55e9860d9ccdbf74050ce856b (#3402)
Browse files Browse the repository at this point in the history
Made minor change to gallery swagger.
  • Loading branch information
AutorestCI authored Sep 21, 2018
1 parent bee997f commit 182d8c7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@
class TargetRegion(Model):
"""Describes the target region information.
:param name: The name of the region.
All required parameters must be populated in order to send to Azure.
:param name: Required. The name of the region.
:type name: str
:param regional_replica_count: The number of replicas of the Image Version
to be created per region. This property is updateable.
:type regional_replica_count: int
"""

_validation = {
'name': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'regional_replica_count': {'key': 'regionalReplicaCount', 'type': 'int'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,25 @@
class TargetRegion(Model):
"""Describes the target region information.
:param name: The name of the region.
All required parameters must be populated in order to send to Azure.
:param name: Required. The name of the region.
:type name: str
:param regional_replica_count: The number of replicas of the Image Version
to be created per region. This property is updateable.
:type regional_replica_count: int
"""

_validation = {
'name': {'required': True},
}

_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:
def __init__(self, *, name: str, regional_replica_count: int=None, **kwargs) -> None:
super(TargetRegion, self).__init__(**kwargs)
self.name = name
self.regional_replica_count = regional_replica_count
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def create_or_update(
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param gallery_name: The name of the Shared Image Gallery. The allowed
characters are alphabets and numbers with dots, dashes, and periods
allowed in the middle. The maximum length is 80 characters.
characters are alphabets and numbers with dots and periods allowed in
the middle. The maximum length is 80 characters.
:type gallery_name: str
:param gallery: Parameters supplied to the create or update Shared
Image Gallery operation.
Expand Down

0 comments on commit 182d8c7

Please sign in to comment.