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] cosmos-db/resource-manager #5335

Closed
wants to merge 4 commits into from
Closed
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
5 changes: 5 additions & 0 deletions azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class Location(Model):
priority = (total number of regions - 1). Failover priority values must be
unique for each of the regions in which the database account exists.
:type failover_priority: int
:param is_zone_redundant: Flag to indicate whether or not this region is
an AvailabilityZone region
:type is_zone_redundant: bool
"""

_validation = {
Expand All @@ -48,6 +51,7 @@ class Location(Model):
'document_endpoint': {'key': 'documentEndpoint', 'type': 'str'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'failover_priority': {'key': 'failoverPriority', 'type': 'int'},
'is_zone_redundant': {'key': 'isZoneRedundant', 'type': 'bool'},
}

def __init__(self, **kwargs):
Expand All @@ -57,3 +61,4 @@ def __init__(self, **kwargs):
self.document_endpoint = None
self.provisioning_state = kwargs.get('provisioning_state', None)
self.failover_priority = kwargs.get('failover_priority', None)
self.is_zone_redundant = kwargs.get('is_zone_redundant', None)
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class Location(Model):
priority = (total number of regions - 1). Failover priority values must be
unique for each of the regions in which the database account exists.
:type failover_priority: int
:param is_zone_redundant: Flag to indicate whether or not this region is
an AvailabilityZone region
:type is_zone_redundant: bool
"""

_validation = {
Expand All @@ -48,12 +51,14 @@ class Location(Model):
'document_endpoint': {'key': 'documentEndpoint', 'type': 'str'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'failover_priority': {'key': 'failoverPriority', 'type': 'int'},
'is_zone_redundant': {'key': 'isZoneRedundant', 'type': 'bool'},
}

def __init__(self, *, location_name: str=None, provisioning_state: str=None, failover_priority: int=None, **kwargs) -> None:
def __init__(self, *, location_name: str=None, provisioning_state: str=None, failover_priority: int=None, is_zone_redundant: bool=None, **kwargs) -> None:
super(Location, self).__init__(**kwargs)
self.id = None
self.location_name = location_name
self.document_endpoint = None
self.provisioning_state = provisioning_state
self.failover_priority = failover_priority
self.is_zone_redundant = is_zone_redundant
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class PartitionUsage(Usage):
:ivar quota_period: The quota period used to summarize the usage values.
:vartype quota_period: str
:ivar limit: Maximum value for this metric
:vartype limit: int
:vartype limit: long
:ivar current_value: Current value for this metric
:vartype current_value: int
:vartype current_value: long
:ivar partition_id: The partition id (GUID identifier) of the usages.
:vartype partition_id: str
:ivar partition_key_range_id: The partition key range id (integer
Expand All @@ -50,8 +50,8 @@ class PartitionUsage(Usage):
'unit': {'key': 'unit', 'type': 'str'},
'name': {'key': 'name', 'type': 'MetricName'},
'quota_period': {'key': 'quotaPeriod', 'type': 'str'},
'limit': {'key': 'limit', 'type': 'int'},
'current_value': {'key': 'currentValue', 'type': 'int'},
'limit': {'key': 'limit', 'type': 'long'},
'current_value': {'key': 'currentValue', 'type': 'long'},
'partition_id': {'key': 'partitionId', 'type': 'str'},
'partition_key_range_id': {'key': 'partitionKeyRangeId', 'type': 'str'},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class PartitionUsage(Usage):
:ivar quota_period: The quota period used to summarize the usage values.
:vartype quota_period: str
:ivar limit: Maximum value for this metric
:vartype limit: int
:vartype limit: long
:ivar current_value: Current value for this metric
:vartype current_value: int
:vartype current_value: long
:ivar partition_id: The partition id (GUID identifier) of the usages.
:vartype partition_id: str
:ivar partition_key_range_id: The partition key range id (integer
Expand All @@ -50,8 +50,8 @@ class PartitionUsage(Usage):
'unit': {'key': 'unit', 'type': 'str'},
'name': {'key': 'name', 'type': 'MetricName'},
'quota_period': {'key': 'quotaPeriod', 'type': 'str'},
'limit': {'key': 'limit', 'type': 'int'},
'current_value': {'key': 'currentValue', 'type': 'int'},
'limit': {'key': 'limit', 'type': 'long'},
'current_value': {'key': 'currentValue', 'type': 'long'},
'partition_id': {'key': 'partitionId', 'type': 'str'},
'partition_key_range_id': {'key': 'partitionKeyRangeId', 'type': 'str'},
}
Expand Down
8 changes: 4 additions & 4 deletions azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class Usage(Model):
:ivar quota_period: The quota period used to summarize the usage values.
:vartype quota_period: str
:ivar limit: Maximum value for this metric
:vartype limit: int
:vartype limit: long
:ivar current_value: Current value for this metric
:vartype current_value: int
:vartype current_value: long
"""

_validation = {
Expand All @@ -43,8 +43,8 @@ class Usage(Model):
'unit': {'key': 'unit', 'type': 'str'},
'name': {'key': 'name', 'type': 'MetricName'},
'quota_period': {'key': 'quotaPeriod', 'type': 'str'},
'limit': {'key': 'limit', 'type': 'int'},
'current_value': {'key': 'currentValue', 'type': 'int'},
'limit': {'key': 'limit', 'type': 'long'},
'current_value': {'key': 'currentValue', 'type': 'long'},
}

def __init__(self, **kwargs):
Expand Down
8 changes: 4 additions & 4 deletions azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/usage_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class Usage(Model):
:ivar quota_period: The quota period used to summarize the usage values.
:vartype quota_period: str
:ivar limit: Maximum value for this metric
:vartype limit: int
:vartype limit: long
:ivar current_value: Current value for this metric
:vartype current_value: int
:vartype current_value: long
"""

_validation = {
Expand All @@ -43,8 +43,8 @@ class Usage(Model):
'unit': {'key': 'unit', 'type': 'str'},
'name': {'key': 'name', 'type': 'MetricName'},
'quota_period': {'key': 'quotaPeriod', 'type': 'str'},
'limit': {'key': 'limit', 'type': 'int'},
'current_value': {'key': 'currentValue', 'type': 'int'},
'limit': {'key': 'limit', 'type': 'long'},
'current_value': {'key': 'currentValue', 'type': 'long'},
}

def __init__(self, *, unit=None, **kwargs) -> None:
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.6.0"
VERSION = "0.3.0"