From 908b66041f37a59ab3ca714170b12592e1c0deb5 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 25 Feb 2020 18:51:27 +0000 Subject: [PATCH] Generated from c231f546180a69b3b329376125be35bbf1bb2a11 Adds 'Offline' state to provisioning states. --- .../azure/mgmt/cosmosdb/_configuration.py | 7 +- .../cosmosdb/_cosmos_db_management_client.py | 6 +- .../azure/mgmt/cosmosdb/models/__init__.py | 12 ++ .../azure/mgmt/cosmosdb/models/_models.py | 190 ++++++++++++++--- .../azure/mgmt/cosmosdb/models/_models_py3.py | 200 ++++++++++++++---- .../_cassandra_resources_operations.py | 4 +- .../operations/_collection_operations.py | 4 +- .../_collection_partition_operations.py | 4 +- ..._collection_partition_region_operations.py | 4 +- .../_collection_region_operations.py | 4 +- .../_database_account_region_operations.py | 4 +- .../_database_accounts_operations.py | 4 +- .../operations/_database_operations.py | 4 +- .../_gremlin_resources_operations.py | 4 +- .../_mongo_db_resources_operations.py | 4 +- .../mgmt/cosmosdb/operations/_operations.py | 4 +- .../_partition_key_range_id_operations.py | 4 +- ...artition_key_range_id_region_operations.py | 4 +- .../operations/_percentile_operations.py | 4 +- .../_percentile_source_target_operations.py | 4 +- .../_percentile_target_operations.py | 4 +- .../operations/_sql_resources_operations.py | 10 +- .../operations/_table_resources_operations.py | 4 +- 23 files changed, 380 insertions(+), 113 deletions(-) diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_configuration.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_configuration.py index 56e6d9005aa1..2bdf807a0821 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_configuration.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_configuration.py @@ -23,16 +23,20 @@ class CosmosDBManagementClientConfiguration(AzureConfiguration): object` :param subscription_id: Azure subscription ID. :type subscription_id: str + :param subscription_id1: The ID of the target subscription. + :type subscription_id1: str :param str base_url: Service URL """ def __init__( - self, credentials, subscription_id, base_url=None): + self, credentials, subscription_id, subscription_id1, base_url=None): if credentials is None: raise ValueError("Parameter 'credentials' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") + if subscription_id1 is None: + raise ValueError("Parameter 'subscription_id1' must not be None.") if not base_url: base_url = 'https://management.azure.com' @@ -46,3 +50,4 @@ def __init__( self.credentials = credentials self.subscription_id = subscription_id + self.subscription_id1 = subscription_id1 diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db_management_client.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db_management_client.py index a54d59f8452d..c042b77800bf 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db_management_client.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db_management_client.py @@ -88,13 +88,15 @@ class CosmosDBManagementClient(SDKClient): object` :param subscription_id: Azure subscription ID. :type subscription_id: str + :param subscription_id1: The ID of the target subscription. + :type subscription_id1: str :param str base_url: Service URL """ def __init__( - self, credentials, subscription_id, base_url=None): + self, credentials, subscription_id, subscription_id1, base_url=None): - self.config = CosmosDBManagementClientConfiguration(credentials, subscription_id, base_url) + self.config = CosmosDBManagementClientConfiguration(credentials, subscription_id, subscription_id1, base_url) super(CosmosDBManagementClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py index 7ca7646f0ce4..5200f9fe8ef6 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py @@ -12,6 +12,8 @@ try: from ._models_py3 import ARMProxyResource from ._models_py3 import ARMResourceProperties + from ._models_py3 import AutopilotSettingsResource + from ._models_py3 import AutoUpgradePolicyResource from ._models_py3 import AzureEntityResource from ._models_py3 import Capability from ._models_py3 import CassandraKeyspaceCreateUpdateParameters @@ -30,6 +32,7 @@ from ._models_py3 import ConflictResolutionPolicy from ._models_py3 import ConsistencyPolicy from ._models_py3 import ContainerPartitionKey + from ._models_py3 import CreateUpdateOptions from ._models_py3 import DatabaseAccountConnectionString from ._models_py3 import DatabaseAccountCreateUpdateParameters from ._models_py3 import DatabaseAccountGetResults @@ -109,6 +112,7 @@ from ._models_py3 import TableGetPropertiesResource from ._models_py3 import TableGetResults from ._models_py3 import TableResource + from ._models_py3 import ThroughputPolicyResource from ._models_py3 import ThroughputSettingsGetPropertiesResource from ._models_py3 import ThroughputSettingsGetResults from ._models_py3 import ThroughputSettingsResource @@ -121,6 +125,8 @@ except (SyntaxError, ImportError): from ._models import ARMProxyResource from ._models import ARMResourceProperties + from ._models import AutopilotSettingsResource + from ._models import AutoUpgradePolicyResource from ._models import AzureEntityResource from ._models import Capability from ._models import CassandraKeyspaceCreateUpdateParameters @@ -139,6 +145,7 @@ from ._models import ConflictResolutionPolicy from ._models import ConsistencyPolicy from ._models import ContainerPartitionKey + from ._models import CreateUpdateOptions from ._models import DatabaseAccountConnectionString from ._models import DatabaseAccountCreateUpdateParameters from ._models import DatabaseAccountGetResults @@ -218,6 +225,7 @@ from ._models import TableGetPropertiesResource from ._models import TableGetResults from ._models import TableResource + from ._models import ThroughputPolicyResource from ._models import ThroughputSettingsGetPropertiesResource from ._models import ThroughputSettingsGetResults from ._models import ThroughputSettingsResource @@ -271,6 +279,8 @@ __all__ = [ 'ARMProxyResource', 'ARMResourceProperties', + 'AutopilotSettingsResource', + 'AutoUpgradePolicyResource', 'AzureEntityResource', 'Capability', 'CassandraKeyspaceCreateUpdateParameters', @@ -289,6 +299,7 @@ 'ConflictResolutionPolicy', 'ConsistencyPolicy', 'ContainerPartitionKey', + 'CreateUpdateOptions', 'DatabaseAccountConnectionString', 'DatabaseAccountCreateUpdateParameters', 'DatabaseAccountGetResults', @@ -368,6 +379,7 @@ 'TableGetPropertiesResource', 'TableGetResults', 'TableResource', + 'ThroughputPolicyResource', 'ThroughputSettingsGetPropertiesResource', 'ThroughputSettingsGetResults', 'ThroughputSettingsResource', diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models.py index 69faed807597..48901a798c8c 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models.py @@ -89,6 +89,61 @@ def __init__(self, **kwargs): self.tags = kwargs.get('tags', None) +class AutopilotSettingsResource(Model): + """Cosmos DB autopilot settings object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param max_throughput: Required. Represents max throughput an autopilot + container can operate at. + :type max_throughput: int + :param auto_upgrade_policy: Cosmos DB resource auto-upgrade policy + :type auto_upgrade_policy: + ~azure.mgmt.cosmosdb.models.AutoUpgradePolicyResource + :ivar target_max_throughput: Represents target max throughput an autopilot + container should operate at once offer is no longer in pending state. + :vartype target_max_throughput: int + """ + + _validation = { + 'max_throughput': {'required': True}, + 'target_max_throughput': {'readonly': True}, + } + + _attribute_map = { + 'max_throughput': {'key': 'maxThroughput', 'type': 'int'}, + 'auto_upgrade_policy': {'key': 'autoUpgradePolicy', 'type': 'AutoUpgradePolicyResource'}, + 'target_max_throughput': {'key': 'targetMaxThroughput', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AutopilotSettingsResource, self).__init__(**kwargs) + self.max_throughput = kwargs.get('max_throughput', None) + self.auto_upgrade_policy = kwargs.get('auto_upgrade_policy', None) + self.target_max_throughput = None + + +class AutoUpgradePolicyResource(Model): + """Cosmos DB resource auto-upgrade policy. + + :param throughput_policy: Represents throughput policy which service must + adhere to for auto-upgrade + :type throughput_policy: + ~azure.mgmt.cosmosdb.models.ThroughputPolicyResource + """ + + _attribute_map = { + 'throughput_policy': {'key': 'throughputPolicy', 'type': 'ThroughputPolicyResource'}, + } + + def __init__(self, **kwargs): + super(AutoUpgradePolicyResource, self).__init__(**kwargs) + self.throughput_policy = kwargs.get('throughput_policy', None) + + class Resource(Model): """Resource. @@ -204,7 +259,7 @@ class CassandraKeyspaceCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.CassandraKeyspaceResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -222,7 +277,7 @@ class CassandraKeyspaceCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'CassandraKeyspaceResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, **kwargs): @@ -401,7 +456,7 @@ class CassandraTableCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.CassandraTableResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -419,7 +474,7 @@ class CassandraTableCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'CassandraTableResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, **kwargs): @@ -721,6 +776,30 @@ def __init__(self, **kwargs): self.version = kwargs.get('version', None) +class CreateUpdateOptions(Model): + """CreateUpdateOptions are a list of key-value pairs that describe the + resource. Supported keys are "If-Match", "If-None-Match", "Session-Token" + and "Throughput". + + :param additional_properties: Unmatched properties from the message are + deserialized this collection + :type additional_properties: dict[str, str] + :param throughput: Request Units per second. For example, "throughput": + "10000". + :type throughput: str + """ + + _attribute_map = { + 'additional_properties': {'key': '', 'type': '{str}'}, + 'throughput': {'key': 'throughput', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CreateUpdateOptions, self).__init__(**kwargs) + self.additional_properties = kwargs.get('additional_properties', None) + self.throughput = kwargs.get('throughput', None) + + class DatabaseAccountConnectionString(Model): """Connection string for the Cosmos DB account. @@ -812,6 +891,8 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): :param disable_key_based_metadata_write_access: Disable write operations on metadata resources (databases, containers, throughput) via account keys :type disable_key_based_metadata_write_access: bool + :param key_vault_key_uri: The URI of the key vault + :type key_vault_key_uri: str """ _validation = { @@ -841,6 +922,7 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): 'enable_cassandra_connector': {'key': 'properties.enableCassandraConnector', 'type': 'bool'}, 'connector_offer': {'key': 'properties.connectorOffer', 'type': 'str'}, 'disable_key_based_metadata_write_access': {'key': 'properties.disableKeyBasedMetadataWriteAccess', 'type': 'bool'}, + 'key_vault_key_uri': {'key': 'properties.keyVaultKeyUri', 'type': 'str'}, } database_account_offer_type = "Standard" @@ -859,6 +941,7 @@ def __init__(self, **kwargs): self.enable_cassandra_connector = kwargs.get('enable_cassandra_connector', None) self.connector_offer = kwargs.get('connector_offer', None) self.disable_key_based_metadata_write_access = kwargs.get('disable_key_based_metadata_write_access', None) + self.key_vault_key_uri = kwargs.get('key_vault_key_uri', None) class DatabaseAccountGetResults(ARMResourceProperties): @@ -939,6 +1022,8 @@ class DatabaseAccountGetResults(ARMResourceProperties): :param disable_key_based_metadata_write_access: Disable write operations on metadata resources (databases, containers, throughput) via account keys :type disable_key_based_metadata_write_access: bool + :param key_vault_key_uri: The URI of the key vault + :type key_vault_key_uri: str """ _validation = { @@ -977,6 +1062,7 @@ class DatabaseAccountGetResults(ARMResourceProperties): 'enable_cassandra_connector': {'key': 'properties.enableCassandraConnector', 'type': 'bool'}, 'connector_offer': {'key': 'properties.connectorOffer', 'type': 'str'}, 'disable_key_based_metadata_write_access': {'key': 'properties.disableKeyBasedMetadataWriteAccess', 'type': 'bool'}, + 'key_vault_key_uri': {'key': 'properties.keyVaultKeyUri', 'type': 'str'}, } def __init__(self, **kwargs): @@ -999,6 +1085,7 @@ def __init__(self, **kwargs): self.enable_cassandra_connector = kwargs.get('enable_cassandra_connector', None) self.connector_offer = kwargs.get('connector_offer', None) self.disable_key_based_metadata_write_access = kwargs.get('disable_key_based_metadata_write_access', None) + self.key_vault_key_uri = kwargs.get('key_vault_key_uri', None) class DatabaseAccountListConnectionStringsResult(Model): @@ -1157,6 +1244,8 @@ class DatabaseAccountUpdateParameters(Model): :param disable_key_based_metadata_write_access: Disable write operations on metadata resources (databases, containers, throughput) via account keys :type disable_key_based_metadata_write_access: bool + :param key_vault_key_uri: The URI of the key vault + :type key_vault_key_uri: str """ _attribute_map = { @@ -1173,6 +1262,7 @@ class DatabaseAccountUpdateParameters(Model): 'enable_cassandra_connector': {'key': 'properties.enableCassandraConnector', 'type': 'bool'}, 'connector_offer': {'key': 'properties.connectorOffer', 'type': 'str'}, 'disable_key_based_metadata_write_access': {'key': 'properties.disableKeyBasedMetadataWriteAccess', 'type': 'bool'}, + 'key_vault_key_uri': {'key': 'properties.keyVaultKeyUri', 'type': 'str'}, } def __init__(self, **kwargs): @@ -1190,6 +1280,7 @@ def __init__(self, **kwargs): self.enable_cassandra_connector = kwargs.get('enable_cassandra_connector', None) self.connector_offer = kwargs.get('connector_offer', None) self.disable_key_based_metadata_write_access = kwargs.get('disable_key_based_metadata_write_access', None) + self.key_vault_key_uri = kwargs.get('key_vault_key_uri', None) class ErrorResponse(Model): @@ -1359,7 +1450,7 @@ class GremlinDatabaseCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.GremlinDatabaseResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -1377,7 +1468,7 @@ class GremlinDatabaseCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'GremlinDatabaseResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, **kwargs): @@ -1515,7 +1606,7 @@ class GremlinGraphCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.GremlinGraphResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -1533,7 +1624,7 @@ class GremlinGraphCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'GremlinGraphResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, **kwargs): @@ -2067,7 +2158,7 @@ class MongoDBCollectionCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.MongoDBCollectionResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -2085,7 +2176,7 @@ class MongoDBCollectionCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'MongoDBCollectionResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, **kwargs): @@ -2241,7 +2332,7 @@ class MongoDBDatabaseCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.MongoDBDatabaseResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -2259,7 +2350,7 @@ class MongoDBDatabaseCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'MongoDBDatabaseResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, **kwargs): @@ -2991,7 +3082,7 @@ class SqlContainerCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.SqlContainerResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -3009,7 +3100,7 @@ class SqlContainerCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'SqlContainerResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, **kwargs): @@ -3201,7 +3292,7 @@ class SqlDatabaseCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.SqlDatabaseResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -3219,7 +3310,7 @@ class SqlDatabaseCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'SqlDatabaseResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, **kwargs): @@ -3367,7 +3458,7 @@ class SqlStoredProcedureCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.SqlStoredProcedureResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -3385,7 +3476,7 @@ class SqlStoredProcedureCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'SqlStoredProcedureResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, **kwargs): @@ -3531,7 +3622,7 @@ class SqlTriggerCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.SqlTriggerResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -3549,7 +3640,7 @@ class SqlTriggerCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'SqlTriggerResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, **kwargs): @@ -3718,7 +3809,7 @@ class SqlUserDefinedFunctionCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.SqlUserDefinedFunctionResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -3736,7 +3827,7 @@ class SqlUserDefinedFunctionCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'SqlUserDefinedFunctionResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, **kwargs): @@ -3882,7 +3973,7 @@ class TableCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.TableResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -3900,7 +3991,7 @@ class TableCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'TableResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, **kwargs): @@ -4014,16 +4105,42 @@ def __init__(self, **kwargs): self.id = kwargs.get('id', None) +class ThroughputPolicyResource(Model): + """Cosmos DB resource throughput policy. + + :param is_enabled: Determines whether the ThroughputPolicy is active or + not + :type is_enabled: bool + :param increment_percent: Represents the percentage by which throughput + can increase every time throughput policy kicks in. + :type increment_percent: int + """ + + _attribute_map = { + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'increment_percent': {'key': 'incrementPercent', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ThroughputPolicyResource, self).__init__(**kwargs) + self.is_enabled = kwargs.get('is_enabled', None) + self.increment_percent = kwargs.get('increment_percent', None) + + class ThroughputSettingsGetPropertiesResource(Model): """ThroughputSettingsGetPropertiesResource. Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. - - :param throughput: Required. Value of the Cosmos DB resource throughput + :param throughput: Value of the Cosmos DB resource throughput. Either + throughput is required or autopilotSettings is required, but not both. :type throughput: int + :param autopilot_settings: Cosmos DB resource for Autopilot settings. + Either throughput is required or autopilotSettings is required, but not + both. + :type autopilot_settings: + ~azure.mgmt.cosmosdb.models.AutopilotSettingsResource :ivar minimum_throughput: The minimum throughput of the resource :vartype minimum_throughput: str :ivar offer_replace_pending: The throughput replace is pending @@ -4039,7 +4156,6 @@ class ThroughputSettingsGetPropertiesResource(Model): """ _validation = { - 'throughput': {'required': True}, 'minimum_throughput': {'readonly': True}, 'offer_replace_pending': {'readonly': True}, '_rid': {'readonly': True}, @@ -4049,6 +4165,7 @@ class ThroughputSettingsGetPropertiesResource(Model): _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autopilot_settings': {'key': 'autopilotSettings', 'type': 'AutopilotSettingsResource'}, 'minimum_throughput': {'key': 'minimumThroughput', 'type': 'str'}, 'offer_replace_pending': {'key': 'offerReplacePending', 'type': 'str'}, '_rid': {'key': '_rid', 'type': 'str'}, @@ -4059,6 +4176,7 @@ class ThroughputSettingsGetPropertiesResource(Model): def __init__(self, **kwargs): super(ThroughputSettingsGetPropertiesResource, self).__init__(**kwargs) self.throughput = kwargs.get('throughput', None) + self.autopilot_settings = kwargs.get('autopilot_settings', None) self.minimum_throughput = None self.offer_replace_pending = None self._rid = None @@ -4109,15 +4227,20 @@ def __init__(self, **kwargs): class ThroughputSettingsResource(Model): - """Cosmos DB resource throughput object. + """Cosmos DB resource throughput object. Either throughput is required or + autopilotSettings is required, but not both. Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. - - :param throughput: Required. Value of the Cosmos DB resource throughput + :param throughput: Value of the Cosmos DB resource throughput. Either + throughput is required or autopilotSettings is required, but not both. :type throughput: int + :param autopilot_settings: Cosmos DB resource for Autopilot settings. + Either throughput is required or autopilotSettings is required, but not + both. + :type autopilot_settings: + ~azure.mgmt.cosmosdb.models.AutopilotSettingsResource :ivar minimum_throughput: The minimum throughput of the resource :vartype minimum_throughput: str :ivar offer_replace_pending: The throughput replace is pending @@ -4125,13 +4248,13 @@ class ThroughputSettingsResource(Model): """ _validation = { - 'throughput': {'required': True}, 'minimum_throughput': {'readonly': True}, 'offer_replace_pending': {'readonly': True}, } _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autopilot_settings': {'key': 'autopilotSettings', 'type': 'AutopilotSettingsResource'}, 'minimum_throughput': {'key': 'minimumThroughput', 'type': 'str'}, 'offer_replace_pending': {'key': 'offerReplacePending', 'type': 'str'}, } @@ -4139,6 +4262,7 @@ class ThroughputSettingsResource(Model): def __init__(self, **kwargs): super(ThroughputSettingsResource, self).__init__(**kwargs) self.throughput = kwargs.get('throughput', None) + self.autopilot_settings = kwargs.get('autopilot_settings', None) self.minimum_throughput = None self.offer_replace_pending = None diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models_py3.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models_py3.py index 73fa8bf4efde..962ba48fb534 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models_py3.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models_py3.py @@ -89,6 +89,61 @@ def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: self.tags = tags +class AutopilotSettingsResource(Model): + """Cosmos DB autopilot settings object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param max_throughput: Required. Represents max throughput an autopilot + container can operate at. + :type max_throughput: int + :param auto_upgrade_policy: Cosmos DB resource auto-upgrade policy + :type auto_upgrade_policy: + ~azure.mgmt.cosmosdb.models.AutoUpgradePolicyResource + :ivar target_max_throughput: Represents target max throughput an autopilot + container should operate at once offer is no longer in pending state. + :vartype target_max_throughput: int + """ + + _validation = { + 'max_throughput': {'required': True}, + 'target_max_throughput': {'readonly': True}, + } + + _attribute_map = { + 'max_throughput': {'key': 'maxThroughput', 'type': 'int'}, + 'auto_upgrade_policy': {'key': 'autoUpgradePolicy', 'type': 'AutoUpgradePolicyResource'}, + 'target_max_throughput': {'key': 'targetMaxThroughput', 'type': 'int'}, + } + + def __init__(self, *, max_throughput: int, auto_upgrade_policy=None, **kwargs) -> None: + super(AutopilotSettingsResource, self).__init__(**kwargs) + self.max_throughput = max_throughput + self.auto_upgrade_policy = auto_upgrade_policy + self.target_max_throughput = None + + +class AutoUpgradePolicyResource(Model): + """Cosmos DB resource auto-upgrade policy. + + :param throughput_policy: Represents throughput policy which service must + adhere to for auto-upgrade + :type throughput_policy: + ~azure.mgmt.cosmosdb.models.ThroughputPolicyResource + """ + + _attribute_map = { + 'throughput_policy': {'key': 'throughputPolicy', 'type': 'ThroughputPolicyResource'}, + } + + def __init__(self, *, throughput_policy=None, **kwargs) -> None: + super(AutoUpgradePolicyResource, self).__init__(**kwargs) + self.throughput_policy = throughput_policy + + class Resource(Model): """Resource. @@ -204,7 +259,7 @@ class CassandraKeyspaceCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.CassandraKeyspaceResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -222,7 +277,7 @@ class CassandraKeyspaceCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'CassandraKeyspaceResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs) -> None: @@ -401,7 +456,7 @@ class CassandraTableCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.CassandraTableResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -419,7 +474,7 @@ class CassandraTableCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'CassandraTableResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs) -> None: @@ -721,6 +776,30 @@ def __init__(self, *, paths=None, kind="Hash", version: int=None, **kwargs) -> N self.version = version +class CreateUpdateOptions(Model): + """CreateUpdateOptions are a list of key-value pairs that describe the + resource. Supported keys are "If-Match", "If-None-Match", "Session-Token" + and "Throughput". + + :param additional_properties: Unmatched properties from the message are + deserialized this collection + :type additional_properties: dict[str, str] + :param throughput: Request Units per second. For example, "throughput": + "10000". + :type throughput: str + """ + + _attribute_map = { + 'additional_properties': {'key': '', 'type': '{str}'}, + 'throughput': {'key': 'throughput', 'type': 'str'}, + } + + def __init__(self, *, additional_properties=None, throughput: str=None, **kwargs) -> None: + super(CreateUpdateOptions, self).__init__(**kwargs) + self.additional_properties = additional_properties + self.throughput = throughput + + class DatabaseAccountConnectionString(Model): """Connection string for the Cosmos DB account. @@ -812,6 +891,8 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): :param disable_key_based_metadata_write_access: Disable write operations on metadata resources (databases, containers, throughput) via account keys :type disable_key_based_metadata_write_access: bool + :param key_vault_key_uri: The URI of the key vault + :type key_vault_key_uri: str """ _validation = { @@ -841,11 +922,12 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): 'enable_cassandra_connector': {'key': 'properties.enableCassandraConnector', 'type': 'bool'}, 'connector_offer': {'key': 'properties.connectorOffer', 'type': 'str'}, 'disable_key_based_metadata_write_access': {'key': 'properties.disableKeyBasedMetadataWriteAccess', 'type': 'bool'}, + 'key_vault_key_uri': {'key': 'properties.keyVaultKeyUri', 'type': 'str'}, } database_account_offer_type = "Standard" - def __init__(self, *, locations, location: str=None, tags=None, kind="GlobalDocumentDB", consistency_policy=None, ip_range_filter: str=None, is_virtual_network_filter_enabled: bool=None, enable_automatic_failover: bool=None, capabilities=None, virtual_network_rules=None, enable_multiple_write_locations: bool=None, enable_cassandra_connector: bool=None, connector_offer=None, disable_key_based_metadata_write_access: bool=None, **kwargs) -> None: + def __init__(self, *, locations, location: str=None, tags=None, kind="GlobalDocumentDB", consistency_policy=None, ip_range_filter: str=None, is_virtual_network_filter_enabled: bool=None, enable_automatic_failover: bool=None, capabilities=None, virtual_network_rules=None, enable_multiple_write_locations: bool=None, enable_cassandra_connector: bool=None, connector_offer=None, disable_key_based_metadata_write_access: bool=None, key_vault_key_uri: str=None, **kwargs) -> None: super(DatabaseAccountCreateUpdateParameters, self).__init__(location=location, tags=tags, **kwargs) self.kind = kind self.consistency_policy = consistency_policy @@ -859,6 +941,7 @@ def __init__(self, *, locations, location: str=None, tags=None, kind="GlobalDocu self.enable_cassandra_connector = enable_cassandra_connector self.connector_offer = connector_offer self.disable_key_based_metadata_write_access = disable_key_based_metadata_write_access + self.key_vault_key_uri = key_vault_key_uri class DatabaseAccountGetResults(ARMResourceProperties): @@ -939,6 +1022,8 @@ class DatabaseAccountGetResults(ARMResourceProperties): :param disable_key_based_metadata_write_access: Disable write operations on metadata resources (databases, containers, throughput) via account keys :type disable_key_based_metadata_write_access: bool + :param key_vault_key_uri: The URI of the key vault + :type key_vault_key_uri: str """ _validation = { @@ -977,9 +1062,10 @@ class DatabaseAccountGetResults(ARMResourceProperties): 'enable_cassandra_connector': {'key': 'properties.enableCassandraConnector', 'type': 'bool'}, 'connector_offer': {'key': 'properties.connectorOffer', 'type': 'str'}, 'disable_key_based_metadata_write_access': {'key': 'properties.disableKeyBasedMetadataWriteAccess', 'type': 'bool'}, + 'key_vault_key_uri': {'key': 'properties.keyVaultKeyUri', 'type': 'str'}, } - def __init__(self, *, location: str=None, tags=None, kind="GlobalDocumentDB", provisioning_state: str=None, ip_range_filter: str=None, is_virtual_network_filter_enabled: bool=None, enable_automatic_failover: bool=None, consistency_policy=None, capabilities=None, virtual_network_rules=None, enable_multiple_write_locations: bool=None, enable_cassandra_connector: bool=None, connector_offer=None, disable_key_based_metadata_write_access: bool=None, **kwargs) -> None: + def __init__(self, *, location: str=None, tags=None, kind="GlobalDocumentDB", provisioning_state: str=None, ip_range_filter: str=None, is_virtual_network_filter_enabled: bool=None, enable_automatic_failover: bool=None, consistency_policy=None, capabilities=None, virtual_network_rules=None, enable_multiple_write_locations: bool=None, enable_cassandra_connector: bool=None, connector_offer=None, disable_key_based_metadata_write_access: bool=None, key_vault_key_uri: str=None, **kwargs) -> None: super(DatabaseAccountGetResults, self).__init__(location=location, tags=tags, **kwargs) self.kind = kind self.provisioning_state = provisioning_state @@ -999,6 +1085,7 @@ def __init__(self, *, location: str=None, tags=None, kind="GlobalDocumentDB", pr self.enable_cassandra_connector = enable_cassandra_connector self.connector_offer = connector_offer self.disable_key_based_metadata_write_access = disable_key_based_metadata_write_access + self.key_vault_key_uri = key_vault_key_uri class DatabaseAccountListConnectionStringsResult(Model): @@ -1157,6 +1244,8 @@ class DatabaseAccountUpdateParameters(Model): :param disable_key_based_metadata_write_access: Disable write operations on metadata resources (databases, containers, throughput) via account keys :type disable_key_based_metadata_write_access: bool + :param key_vault_key_uri: The URI of the key vault + :type key_vault_key_uri: str """ _attribute_map = { @@ -1173,9 +1262,10 @@ class DatabaseAccountUpdateParameters(Model): 'enable_cassandra_connector': {'key': 'properties.enableCassandraConnector', 'type': 'bool'}, 'connector_offer': {'key': 'properties.connectorOffer', 'type': 'str'}, 'disable_key_based_metadata_write_access': {'key': 'properties.disableKeyBasedMetadataWriteAccess', 'type': 'bool'}, + 'key_vault_key_uri': {'key': 'properties.keyVaultKeyUri', 'type': 'str'}, } - def __init__(self, *, tags=None, location: str=None, consistency_policy=None, locations=None, ip_range_filter: str=None, is_virtual_network_filter_enabled: bool=None, enable_automatic_failover: bool=None, capabilities=None, virtual_network_rules=None, enable_multiple_write_locations: bool=None, enable_cassandra_connector: bool=None, connector_offer=None, disable_key_based_metadata_write_access: bool=None, **kwargs) -> None: + def __init__(self, *, tags=None, location: str=None, consistency_policy=None, locations=None, ip_range_filter: str=None, is_virtual_network_filter_enabled: bool=None, enable_automatic_failover: bool=None, capabilities=None, virtual_network_rules=None, enable_multiple_write_locations: bool=None, enable_cassandra_connector: bool=None, connector_offer=None, disable_key_based_metadata_write_access: bool=None, key_vault_key_uri: str=None, **kwargs) -> None: super(DatabaseAccountUpdateParameters, self).__init__(**kwargs) self.tags = tags self.location = location @@ -1190,6 +1280,7 @@ def __init__(self, *, tags=None, location: str=None, consistency_policy=None, lo self.enable_cassandra_connector = enable_cassandra_connector self.connector_offer = connector_offer self.disable_key_based_metadata_write_access = disable_key_based_metadata_write_access + self.key_vault_key_uri = key_vault_key_uri class ErrorResponse(Model): @@ -1359,7 +1450,7 @@ class GremlinDatabaseCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.GremlinDatabaseResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -1377,7 +1468,7 @@ class GremlinDatabaseCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'GremlinDatabaseResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs) -> None: @@ -1515,7 +1606,7 @@ class GremlinGraphCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.GremlinGraphResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -1533,7 +1624,7 @@ class GremlinGraphCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'GremlinGraphResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs) -> None: @@ -2067,7 +2158,7 @@ class MongoDBCollectionCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.MongoDBCollectionResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -2085,7 +2176,7 @@ class MongoDBCollectionCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'MongoDBCollectionResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs) -> None: @@ -2241,7 +2332,7 @@ class MongoDBDatabaseCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.MongoDBDatabaseResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -2259,7 +2350,7 @@ class MongoDBDatabaseCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'MongoDBDatabaseResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs) -> None: @@ -2991,7 +3082,7 @@ class SqlContainerCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.SqlContainerResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -3009,7 +3100,7 @@ class SqlContainerCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'SqlContainerResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs) -> None: @@ -3201,7 +3292,7 @@ class SqlDatabaseCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.SqlDatabaseResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -3219,7 +3310,7 @@ class SqlDatabaseCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'SqlDatabaseResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs) -> None: @@ -3367,7 +3458,7 @@ class SqlStoredProcedureCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.SqlStoredProcedureResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -3385,7 +3476,7 @@ class SqlStoredProcedureCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'SqlStoredProcedureResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs) -> None: @@ -3531,7 +3622,7 @@ class SqlTriggerCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.SqlTriggerResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -3549,7 +3640,7 @@ class SqlTriggerCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'SqlTriggerResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs) -> None: @@ -3718,7 +3809,7 @@ class SqlUserDefinedFunctionCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.SqlUserDefinedFunctionResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -3736,7 +3827,7 @@ class SqlUserDefinedFunctionCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'SqlUserDefinedFunctionResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs) -> None: @@ -3882,7 +3973,7 @@ class TableCreateUpdateParameters(ARMResourceProperties): :type resource: ~azure.mgmt.cosmosdb.models.TableResource :param options: Required. A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - :type options: dict[str, str] + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions """ _validation = { @@ -3900,7 +3991,7 @@ class TableCreateUpdateParameters(ARMResourceProperties): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'resource': {'key': 'properties.resource', 'type': 'TableResource'}, - 'options': {'key': 'properties.options', 'type': '{str}'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, } def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs) -> None: @@ -4014,16 +4105,42 @@ def __init__(self, *, id: str, **kwargs) -> None: self.id = id +class ThroughputPolicyResource(Model): + """Cosmos DB resource throughput policy. + + :param is_enabled: Determines whether the ThroughputPolicy is active or + not + :type is_enabled: bool + :param increment_percent: Represents the percentage by which throughput + can increase every time throughput policy kicks in. + :type increment_percent: int + """ + + _attribute_map = { + 'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, + 'increment_percent': {'key': 'incrementPercent', 'type': 'int'}, + } + + def __init__(self, *, is_enabled: bool=None, increment_percent: int=None, **kwargs) -> None: + super(ThroughputPolicyResource, self).__init__(**kwargs) + self.is_enabled = is_enabled + self.increment_percent = increment_percent + + class ThroughputSettingsGetPropertiesResource(Model): """ThroughputSettingsGetPropertiesResource. Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. - - :param throughput: Required. Value of the Cosmos DB resource throughput + :param throughput: Value of the Cosmos DB resource throughput. Either + throughput is required or autopilotSettings is required, but not both. :type throughput: int + :param autopilot_settings: Cosmos DB resource for Autopilot settings. + Either throughput is required or autopilotSettings is required, but not + both. + :type autopilot_settings: + ~azure.mgmt.cosmosdb.models.AutopilotSettingsResource :ivar minimum_throughput: The minimum throughput of the resource :vartype minimum_throughput: str :ivar offer_replace_pending: The throughput replace is pending @@ -4039,7 +4156,6 @@ class ThroughputSettingsGetPropertiesResource(Model): """ _validation = { - 'throughput': {'required': True}, 'minimum_throughput': {'readonly': True}, 'offer_replace_pending': {'readonly': True}, '_rid': {'readonly': True}, @@ -4049,6 +4165,7 @@ class ThroughputSettingsGetPropertiesResource(Model): _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autopilot_settings': {'key': 'autopilotSettings', 'type': 'AutopilotSettingsResource'}, 'minimum_throughput': {'key': 'minimumThroughput', 'type': 'str'}, 'offer_replace_pending': {'key': 'offerReplacePending', 'type': 'str'}, '_rid': {'key': '_rid', 'type': 'str'}, @@ -4056,9 +4173,10 @@ class ThroughputSettingsGetPropertiesResource(Model): '_etag': {'key': '_etag', 'type': 'str'}, } - def __init__(self, *, throughput: int, **kwargs) -> None: + def __init__(self, *, throughput: int=None, autopilot_settings=None, **kwargs) -> None: super(ThroughputSettingsGetPropertiesResource, self).__init__(**kwargs) self.throughput = throughput + self.autopilot_settings = autopilot_settings self.minimum_throughput = None self.offer_replace_pending = None self._rid = None @@ -4109,15 +4227,20 @@ def __init__(self, *, location: str=None, tags=None, resource=None, **kwargs) -> class ThroughputSettingsResource(Model): - """Cosmos DB resource throughput object. + """Cosmos DB resource throughput object. Either throughput is required or + autopilotSettings is required, but not both. Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. - - :param throughput: Required. Value of the Cosmos DB resource throughput + :param throughput: Value of the Cosmos DB resource throughput. Either + throughput is required or autopilotSettings is required, but not both. :type throughput: int + :param autopilot_settings: Cosmos DB resource for Autopilot settings. + Either throughput is required or autopilotSettings is required, but not + both. + :type autopilot_settings: + ~azure.mgmt.cosmosdb.models.AutopilotSettingsResource :ivar minimum_throughput: The minimum throughput of the resource :vartype minimum_throughput: str :ivar offer_replace_pending: The throughput replace is pending @@ -4125,20 +4248,21 @@ class ThroughputSettingsResource(Model): """ _validation = { - 'throughput': {'required': True}, 'minimum_throughput': {'readonly': True}, 'offer_replace_pending': {'readonly': True}, } _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autopilot_settings': {'key': 'autopilotSettings', 'type': 'AutopilotSettingsResource'}, 'minimum_throughput': {'key': 'minimumThroughput', 'type': 'str'}, 'offer_replace_pending': {'key': 'offerReplacePending', 'type': 'str'}, } - def __init__(self, *, throughput: int, **kwargs) -> None: + def __init__(self, *, throughput: int=None, autopilot_settings=None, **kwargs) -> None: super(ThroughputSettingsResource, self).__init__(**kwargs) self.throughput = throughput + self.autopilot_settings = autopilot_settings self.minimum_throughput = None self.offer_replace_pending = None diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_cassandra_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_cassandra_resources_operations.py index 1c1b20290d1a..ad836ef533e2 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_cassandra_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_cassandra_resources_operations.py @@ -27,7 +27,7 @@ class CassandraResourcesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_operations.py index 6625da8ca5c0..8842120f320b 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_operations.py @@ -25,7 +25,7 @@ class CollectionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_operations.py index 9abb55d22edc..d25527c3ccdc 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_operations.py @@ -25,7 +25,7 @@ class CollectionPartitionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_region_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_region_operations.py index e5e4e613fbce..fcd52bd117e6 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_region_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_region_operations.py @@ -25,7 +25,7 @@ class CollectionPartitionRegionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_region_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_region_operations.py index 4efa93d1f031..9180263a19a7 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_region_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_region_operations.py @@ -25,7 +25,7 @@ class CollectionRegionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_account_region_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_account_region_operations.py index e6936977e156..dfb7aaa49da3 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_account_region_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_account_region_operations.py @@ -25,7 +25,7 @@ class DatabaseAccountRegionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_accounts_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_accounts_operations.py index 7257b276151c..3645fa2359d0 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_accounts_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_accounts_operations.py @@ -27,7 +27,7 @@ class DatabaseAccountsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_operations.py index 99924fa25e9c..2460e649729e 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_operations.py @@ -25,7 +25,7 @@ class DatabaseOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_gremlin_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_gremlin_resources_operations.py index a2de0aa16135..310532a6233c 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_gremlin_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_gremlin_resources_operations.py @@ -27,7 +27,7 @@ class GremlinResourcesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_mongo_db_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_mongo_db_resources_operations.py index b3a5a85ce810..df71938db559 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_mongo_db_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_mongo_db_resources_operations.py @@ -27,7 +27,7 @@ class MongoDBResourcesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_operations.py index 99522b8106ec..b1075244124e 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_operations.py @@ -25,7 +25,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_operations.py index 3b40c73a7331..43b3d9f7cf9d 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_operations.py @@ -25,7 +25,7 @@ class PartitionKeyRangeIdOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_region_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_region_operations.py index e8845d4361a5..4817b3a96c5f 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_region_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_region_operations.py @@ -25,7 +25,7 @@ class PartitionKeyRangeIdRegionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_operations.py index 6060f545eaed..54c862d5c341 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_operations.py @@ -25,7 +25,7 @@ class PercentileOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_source_target_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_source_target_operations.py index 5e4f6f3135fc..0675e8c2b0dd 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_source_target_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_source_target_operations.py @@ -25,7 +25,7 @@ class PercentileSourceTargetOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_target_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_target_operations.py index 5bb6c3a69845..7626209064c5 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_target_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_target_operations.py @@ -25,7 +25,7 @@ class PercentileTargetOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_sql_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_sql_resources_operations.py index 55120ab74132..c32445f872de 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_sql_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_sql_resources_operations.py @@ -27,7 +27,7 @@ class SqlResourcesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config @@ -1137,7 +1137,7 @@ def internal_paging(next_link=None): deserialized = models.SqlStoredProcedureGetResultsPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized - list_sql_stored_procedures.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/'} + list_sql_stored_procedures.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures'} def get_sql_stored_procedure( self, resource_group_name, account_name, database_name, container_name, stored_procedure_name, custom_headers=None, raw=False, **operation_config): @@ -1493,7 +1493,7 @@ def internal_paging(next_link=None): deserialized = models.SqlUserDefinedFunctionGetResultsPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized - list_sql_user_defined_functions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/'} + list_sql_user_defined_functions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions'} def get_sql_user_defined_function( self, resource_group_name, account_name, database_name, container_name, user_defined_function_name, custom_headers=None, raw=False, **operation_config): @@ -1850,7 +1850,7 @@ def internal_paging(next_link=None): deserialized = models.SqlTriggerGetResultsPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized - list_sql_triggers.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/'} + list_sql_triggers.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers'} def get_sql_trigger( self, resource_group_name, account_name, database_name, container_name, trigger_name, custom_headers=None, raw=False, **operation_config): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_table_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_table_resources_operations.py index de9502cf86aa..88d83483f18c 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_table_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_table_resources_operations.py @@ -27,7 +27,7 @@ class TableResourcesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-08-01". + :ivar api_version: Version of the API to be used with the client request. The current version is 2019-08-01. Constant value: "2019-12-12". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-08-01" + self.api_version = "2019-12-12" self.config = config