Skip to content

Commit

Permalink
Generated from c930d158febafb829d52d7edb32b1c65960af21e (#5010)
Browse files Browse the repository at this point in the history
Fix default value of capacity.
  • Loading branch information
AutorestCI authored May 1, 2019
1 parent 2b2e422 commit 8bffdd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ApiManagementServiceSkuProperties(Model):
'Developer', 'Standard', 'Premium', 'Basic', 'Consumption'
:type name: str or ~azure.mgmt.apimanagement.models.SkuType
:param capacity: Capacity of the SKU (number of deployed units of the
SKU). The default value is 1. Default value: 1 .
SKU).
:type capacity: int
"""

Expand All @@ -37,4 +37,4 @@ class ApiManagementServiceSkuProperties(Model):
def __init__(self, **kwargs):
super(ApiManagementServiceSkuProperties, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.capacity = kwargs.get('capacity', 1)
self.capacity = kwargs.get('capacity', None)
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ApiManagementServiceSkuProperties(Model):
'Developer', 'Standard', 'Premium', 'Basic', 'Consumption'
:type name: str or ~azure.mgmt.apimanagement.models.SkuType
:param capacity: Capacity of the SKU (number of deployed units of the
SKU). The default value is 1. Default value: 1 .
SKU).
:type capacity: int
"""

Expand All @@ -34,7 +34,7 @@ class ApiManagementServiceSkuProperties(Model):
'capacity': {'key': 'capacity', 'type': 'int'},
}

def __init__(self, *, name, capacity: int=1, **kwargs) -> None:
def __init__(self, *, name, capacity: int=None, **kwargs) -> None:
super(ApiManagementServiceSkuProperties, self).__init__(**kwargs)
self.name = name
self.capacity = capacity

0 comments on commit 8bffdd2

Please sign in to comment.