Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR compute/resource-manager] Improve gallery swagger by improving one description and mark one param as required. #3402

Merged
merged 1 commit into from
Sep 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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