-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Generated from 52d214f4baac2d149b566204a7c2740f98dab7f3 (#2227) added descriptions to include ARM template values per task 1158120 https://mseng.visualstudio.com/TechnicalContent/_queries/edit/1158120/?triage=true * Generated from f4de45b64671c46afe8ce792c163c2dcc92f9988 (#2353) Undo Test * Fix Autorest 3.0 generation * azure-mgmt-cosmosdb 0.4.0
- Loading branch information
1 parent
1521c97
commit 0e57de7
Showing
71 changed files
with
1,875 additions
and
346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/capability_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class Capability(Model): | ||
"""Cosmos DB capability object. | ||
:param name: Name of the Cosmos DB capability. For example, "name": | ||
"EnableCassandra". Current values also include "EnableTable" and | ||
"EnableGremlin". | ||
:type name: str | ||
""" | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, name: str=None, **kwargs) -> None: | ||
super(Capability, self).__init__(**kwargs) | ||
self.name = name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/consistency_policy_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class ConsistencyPolicy(Model): | ||
"""The consistency policy for the Cosmos DB database account. | ||
All required parameters must be populated in order to send to Azure. | ||
:param default_consistency_level: Required. The default consistency level | ||
and configuration settings of the Cosmos DB account. Possible values | ||
include: 'Eventual', 'Session', 'BoundedStaleness', 'Strong', | ||
'ConsistentPrefix' | ||
:type default_consistency_level: str or | ||
~azure.mgmt.cosmosdb.models.DefaultConsistencyLevel | ||
:param max_staleness_prefix: When used with the Bounded Staleness | ||
consistency level, this value represents the number of stale requests | ||
tolerated. Accepted range for this value is 1 – 2,147,483,647. Required | ||
when defaultConsistencyPolicy is set to 'BoundedStaleness'. | ||
:type max_staleness_prefix: long | ||
:param max_interval_in_seconds: When used with the Bounded Staleness | ||
consistency level, this value represents the time amount of staleness (in | ||
seconds) tolerated. Accepted range for this value is 5 - 86400. Required | ||
when defaultConsistencyPolicy is set to 'BoundedStaleness'. | ||
:type max_interval_in_seconds: int | ||
""" | ||
|
||
_validation = { | ||
'default_consistency_level': {'required': True}, | ||
'max_staleness_prefix': {'maximum': 2147483647, 'minimum': 1}, | ||
'max_interval_in_seconds': {'maximum': 86400, 'minimum': 5}, | ||
} | ||
|
||
_attribute_map = { | ||
'default_consistency_level': {'key': 'defaultConsistencyLevel', 'type': 'DefaultConsistencyLevel'}, | ||
'max_staleness_prefix': {'key': 'maxStalenessPrefix', 'type': 'long'}, | ||
'max_interval_in_seconds': {'key': 'maxIntervalInSeconds', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, *, default_consistency_level, max_staleness_prefix: int=None, max_interval_in_seconds: int=None, **kwargs) -> None: | ||
super(ConsistencyPolicy, self).__init__(**kwargs) | ||
self.default_consistency_level = default_consistency_level | ||
self.max_staleness_prefix = max_staleness_prefix | ||
self.max_interval_in_seconds = max_interval_in_seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.