Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Generated from cef6f97615ded43f65dab5eda4a5837d5ec45621
Add Capabilities to stable version, Modify ApplicationType and AccessMode to Enum.
In order to be consistent with the response from RP side, add suppression for DefinitionsPropertiesNamesCamelCase
  • Loading branch information
AutorestCI committed Jul 19, 2019
commit 294f775494a92189a518996b2e1670aa131c108b
Original file line number Diff line number Diff line change
Expand Up @@ -1417,17 +1417,26 @@ def __init__(self, **kwargs):
class QuotaCapability(Model):
"""The regional quota capability.

:param cores_used: The number of cores used in the subscription.
:type cores_used: long
:param max_cores_allowed: The number of cores that the subscription
allowed.
:type max_cores_allowed: long
:param regional_quotas: The list of region quota capabilities.
:type regional_quotas:
list[~azure.mgmt.hdinsight.models.RegionalQuotaCapability]
"""

_attribute_map = {
'cores_used': {'key': 'cores_used', 'type': 'long'},
'max_cores_allowed': {'key': 'max_cores_allowed', 'type': 'long'},
'regional_quotas': {'key': 'regionalQuotas', 'type': '[RegionalQuotaCapability]'},
}

def __init__(self, **kwargs):
super(QuotaCapability, self).__init__(**kwargs)
self.cores_used = kwargs.get('cores_used', None)
self.max_cores_allowed = kwargs.get('max_cores_allowed', None)
self.regional_quotas = kwargs.get('regional_quotas', None)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1417,17 +1417,26 @@ def __init__(self, *, linux_operating_system_profile=None, **kwargs) -> None:
class QuotaCapability(Model):
"""The regional quota capability.

:param cores_used: The number of cores used in the subscription.
:type cores_used: long
:param max_cores_allowed: The number of cores that the subscription
allowed.
:type max_cores_allowed: long
:param regional_quotas: The list of region quota capabilities.
:type regional_quotas:
list[~azure.mgmt.hdinsight.models.RegionalQuotaCapability]
"""

_attribute_map = {
'cores_used': {'key': 'cores_used', 'type': 'long'},
'max_cores_allowed': {'key': 'max_cores_allowed', 'type': 'long'},
'regional_quotas': {'key': 'regionalQuotas', 'type': '[RegionalQuotaCapability]'},
}

def __init__(self, *, regional_quotas=None, **kwargs) -> None:
def __init__(self, *, cores_used: int=None, max_cores_allowed: int=None, regional_quotas=None, **kwargs) -> None:
super(QuotaCapability, self).__init__(**kwargs)
self.cores_used = cores_used
self.max_cores_allowed = max_cores_allowed
self.regional_quotas = regional_quotas


Expand Down