diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md b/sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md index ff4e7c401d0a..72a83db6c81c 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md +++ b/sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 0.14.0 (2020-05-05) + +**Features** + + - Model DatabaseAccountGetResults has a new parameter private_endpoint_connections + ## 0.13.0 (2020-04-18) **Features** 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 5753cb99dfef..696c0f003e40 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 @@ -10,8 +10,11 @@ # -------------------------------------------------------------------------- try: + from ._models_py3 import ApiProperties from ._models_py3 import ARMProxyResource from ._models_py3 import ARMResourceProperties + from ._models_py3 import AutoscaleSettings + from ._models_py3 import AutoscaleSettingsResource from ._models_py3 import AutoUpgradePolicyResource from ._models_py3 import AzureEntityResource from ._models_py3 import Capability @@ -60,6 +63,7 @@ from ._models_py3 import IncludedPath from ._models_py3 import Indexes from ._models_py3 import IndexingPolicy + from ._models_py3 import IpAddressOrRange from ._models_py3 import Location from ._models_py3 import Metric from ._models_py3 import MetricAvailability @@ -93,7 +97,6 @@ from ._models_py3 import PrivateEndpointProperty from ._models_py3 import PrivateLinkResource from ._models_py3 import PrivateLinkServiceConnectionStateProperty - from ._models_py3 import ProvisionedThroughputSettingsResource from ._models_py3 import ProxyResource from ._models_py3 import RegionForOnlineOffline from ._models_py3 import Resource @@ -136,8 +139,11 @@ from ._models_py3 import Usage from ._models_py3 import VirtualNetworkRule except (SyntaxError, ImportError): + from ._models import ApiProperties from ._models import ARMProxyResource from ._models import ARMResourceProperties + from ._models import AutoscaleSettings + from ._models import AutoscaleSettingsResource from ._models import AutoUpgradePolicyResource from ._models import AzureEntityResource from ._models import Capability @@ -186,6 +192,7 @@ from ._models import IncludedPath from ._models import Indexes from ._models import IndexingPolicy + from ._models import IpAddressOrRange from ._models import Location from ._models import Metric from ._models import MetricAvailability @@ -219,7 +226,6 @@ from ._models import PrivateEndpointProperty from ._models import PrivateLinkResource from ._models import PrivateLinkServiceConnectionStateProperty - from ._models import ProvisionedThroughputSettingsResource from ._models import ProxyResource from ._models import RegionForOnlineOffline from ._models import Resource @@ -290,6 +296,7 @@ DefaultConsistencyLevel, ConnectorOffer, PublicNetworkAccess, + ServerVersion, IndexingMode, DataType, IndexKind, @@ -305,8 +312,11 @@ ) __all__ = [ + 'ApiProperties', 'ARMProxyResource', 'ARMResourceProperties', + 'AutoscaleSettings', + 'AutoscaleSettingsResource', 'AutoUpgradePolicyResource', 'AzureEntityResource', 'Capability', @@ -355,6 +365,7 @@ 'IncludedPath', 'Indexes', 'IndexingPolicy', + 'IpAddressOrRange', 'Location', 'Metric', 'MetricAvailability', @@ -388,7 +399,6 @@ 'PrivateEndpointProperty', 'PrivateLinkResource', 'PrivateLinkServiceConnectionStateProperty', - 'ProvisionedThroughputSettingsResource', 'ProxyResource', 'RegionForOnlineOffline', 'Resource', @@ -458,6 +468,7 @@ 'DefaultConsistencyLevel', 'ConnectorOffer', 'PublicNetworkAccess', + 'ServerVersion', 'IndexingMode', 'DataType', 'IndexKind', diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_cosmos_db_management_client_enums.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_cosmos_db_management_client_enums.py index 79f465a82de8..03f302a4a3ff 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_cosmos_db_management_client_enums.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_cosmos_db_management_client_enums.py @@ -44,6 +44,12 @@ class PublicNetworkAccess(str, Enum): disabled = "Disabled" +class ServerVersion(str, Enum): + + three_full_stop_two = "3.2" + three_full_stop_six = "3.6" + + class IndexingMode(str, Enum): consistent = "Consistent" 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 068688ffe78e..93d5732c48cd 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 @@ -13,6 +13,23 @@ from msrest.exceptions import HttpOperationError +class ApiProperties(Model): + """ApiProperties. + + :param server_version: Describes the ServerVersion of an a MongoDB + account. Possible values include: '3.2', '3.6' + :type server_version: str or ~azure.mgmt.cosmosdb.models.ServerVersion + """ + + _attribute_map = { + 'server_version': {'key': 'serverVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApiProperties, self).__init__(**kwargs) + self.server_version = kwargs.get('server_version', None) + + class ARMProxyResource(Model): """The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. @@ -89,6 +106,60 @@ def __init__(self, **kwargs): self.tags = kwargs.get('tags', None) +class AutoscaleSettings(Model): + """AutoscaleSettings. + + :param max_throughput: Represents maximum throughput, the resource can + scale up to. + :type max_throughput: int + """ + + _attribute_map = { + 'max_throughput': {'key': 'maxThroughput', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AutoscaleSettings, self).__init__(**kwargs) + self.max_throughput = kwargs.get('max_throughput', None) + + +class AutoscaleSettingsResource(Model): + """Cosmos DB provisioned throughput 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 maximum throughput container + can scale up to. + :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 maximum throughput + container can scale up to 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(AutoscaleSettingsResource, 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. @@ -252,30 +323,39 @@ def __init__(self, **kwargs): class OptionsResource(Model): """Cosmos DB options resource object. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } def __init__(self, **kwargs): super(OptionsResource, self).__init__(**kwargs) self.throughput = kwargs.get('throughput', None) + self.autoscale_settings = kwargs.get('autoscale_settings', None) class CassandraKeyspaceGetPropertiesOptions(OptionsResource): """CassandraKeyspaceGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } def __init__(self, **kwargs): @@ -487,13 +567,17 @@ def __init__(self, **kwargs): class CassandraTableGetPropertiesOptions(OptionsResource): """CassandraTableGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } def __init__(self, **kwargs): @@ -514,6 +598,8 @@ class CassandraTableGetPropertiesResource(Model): :type default_ttl: int :param schema: Schema of the Cosmos DB Cassandra table :type schema: ~azure.mgmt.cosmosdb.models.CassandraSchema + :param analytical_storage_ttl: Analytical TTL. + :type analytical_storage_ttl: int :ivar _rid: A system generated property. A unique identifier. :vartype _rid: str :ivar _ts: A system generated property that denotes the last updated @@ -535,6 +621,7 @@ class CassandraTableGetPropertiesResource(Model): 'id': {'key': 'id', 'type': 'str'}, 'default_ttl': {'key': 'defaultTtl', 'type': 'int'}, 'schema': {'key': 'schema', 'type': 'CassandraSchema'}, + 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'int'}, '_rid': {'key': '_rid', 'type': 'str'}, '_ts': {'key': '_ts', 'type': 'object'}, '_etag': {'key': '_etag', 'type': 'str'}, @@ -545,6 +632,7 @@ def __init__(self, **kwargs): self.id = kwargs.get('id', None) self.default_ttl = kwargs.get('default_ttl', None) self.schema = kwargs.get('schema', None) + self.analytical_storage_ttl = kwargs.get('analytical_storage_ttl', None) self._rid = None self._ts = None self._etag = None @@ -608,6 +696,8 @@ class CassandraTableResource(Model): :type default_ttl: int :param schema: Schema of the Cosmos DB Cassandra table :type schema: ~azure.mgmt.cosmosdb.models.CassandraSchema + :param analytical_storage_ttl: Analytical TTL. + :type analytical_storage_ttl: int """ _validation = { @@ -618,6 +708,7 @@ class CassandraTableResource(Model): 'id': {'key': 'id', 'type': 'str'}, 'default_ttl': {'key': 'defaultTtl', 'type': 'int'}, 'schema': {'key': 'schema', 'type': 'CassandraSchema'}, + 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'int'}, } def __init__(self, **kwargs): @@ -625,6 +716,7 @@ def __init__(self, **kwargs): self.id = kwargs.get('id', None) self.default_ttl = kwargs.get('default_ttl', None) self.schema = kwargs.get('schema', None) + self.analytical_storage_ttl = kwargs.get('analytical_storage_ttl', None) class CloudError(Model): @@ -803,23 +895,22 @@ class CreateUpdateOptions(Model): 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 + 10000. + :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { - 'additional_properties': {'key': '', 'type': '{str}'}, - 'throughput': {'key': 'throughput', 'type': 'str'}, + 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } def __init__(self, **kwargs): super(CreateUpdateOptions, self).__init__(**kwargs) - self.additional_properties = kwargs.get('additional_properties', None) self.throughput = kwargs.get('throughput', None) + self.autoscale_settings = kwargs.get('autoscale_settings', None) class DatabaseAccountConnectionString(Model): @@ -882,11 +973,8 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): :ivar database_account_offer_type: Required. The offer type for the database. Default value: "Standard" . :vartype database_account_offer_type: str - :param ip_range_filter: Cosmos DB Firewall Support: This value specifies - the set of IP addresses or IP address ranges in CIDR form to be included - as the allowed list of client IPs for a given database account. IP - addresses/ranges must be comma separated and must not contain any spaces. - :type ip_range_filter: str + :param ip_rules: List of IpRules. + :type ip_rules: list[~azure.mgmt.cosmosdb.models.IpAddressOrRange] :param is_virtual_network_filter_enabled: Flag to indicate whether to enable/disable Virtual Network ACL rules. :type is_virtual_network_filter_enabled: bool @@ -919,6 +1007,14 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): allowed. Possible values include: 'Enabled', 'Disabled' :type public_network_access: str or ~azure.mgmt.cosmosdb.models.PublicNetworkAccess + :param enable_free_tier: Flag to indicate whether Free Tier is enabled. + :type enable_free_tier: bool + :param api_properties: API specific properties. Currently, supported only + for MongoDB API. + :type api_properties: ~azure.mgmt.cosmosdb.models.ApiProperties + :param enable_analytical_storage: Flag to indicate whether to enable + storage analytics. + :type enable_analytical_storage: bool """ _validation = { @@ -939,7 +1035,7 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): 'consistency_policy': {'key': 'properties.consistencyPolicy', 'type': 'ConsistencyPolicy'}, 'locations': {'key': 'properties.locations', 'type': '[Location]'}, 'database_account_offer_type': {'key': 'properties.databaseAccountOfferType', 'type': 'str'}, - 'ip_range_filter': {'key': 'properties.ipRangeFilter', 'type': 'str'}, + 'ip_rules': {'key': 'properties.ipRules', 'type': '[IpAddressOrRange]'}, 'is_virtual_network_filter_enabled': {'key': 'properties.isVirtualNetworkFilterEnabled', 'type': 'bool'}, 'enable_automatic_failover': {'key': 'properties.enableAutomaticFailover', 'type': 'bool'}, 'capabilities': {'key': 'properties.capabilities', 'type': '[Capability]'}, @@ -950,6 +1046,9 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): 'disable_key_based_metadata_write_access': {'key': 'properties.disableKeyBasedMetadataWriteAccess', 'type': 'bool'}, 'key_vault_key_uri': {'key': 'properties.keyVaultKeyUri', 'type': 'str'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'enable_free_tier': {'key': 'properties.enableFreeTier', 'type': 'bool'}, + 'api_properties': {'key': 'properties.apiProperties', 'type': 'ApiProperties'}, + 'enable_analytical_storage': {'key': 'properties.enableAnalyticalStorage', 'type': 'bool'}, } database_account_offer_type = "Standard" @@ -959,7 +1058,7 @@ def __init__(self, **kwargs): self.kind = kwargs.get('kind', "GlobalDocumentDB") self.consistency_policy = kwargs.get('consistency_policy', None) self.locations = kwargs.get('locations', None) - self.ip_range_filter = kwargs.get('ip_range_filter', None) + self.ip_rules = kwargs.get('ip_rules', None) self.is_virtual_network_filter_enabled = kwargs.get('is_virtual_network_filter_enabled', None) self.enable_automatic_failover = kwargs.get('enable_automatic_failover', None) self.capabilities = kwargs.get('capabilities', None) @@ -970,6 +1069,9 @@ def __init__(self, **kwargs): 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) self.public_network_access = kwargs.get('public_network_access', None) + self.enable_free_tier = kwargs.get('enable_free_tier', None) + self.api_properties = kwargs.get('api_properties', None) + self.enable_analytical_storage = kwargs.get('enable_analytical_storage', None) class DatabaseAccountGetResults(ARMResourceProperties): @@ -1003,11 +1105,8 @@ class DatabaseAccountGetResults(ARMResourceProperties): 'Standard' :vartype database_account_offer_type: str or ~azure.mgmt.cosmosdb.models.DatabaseAccountOfferType - :param ip_range_filter: Cosmos DB Firewall Support: This value specifies - the set of IP addresses or IP address ranges in CIDR form to be included - as the allowed list of client IPs for a given database account. IP - addresses/ranges must be comma separated and must not contain any spaces. - :type ip_range_filter: str + :param ip_rules: List of IpRules. + :type ip_rules: list[~azure.mgmt.cosmosdb.models.IpAddressOrRange] :param is_virtual_network_filter_enabled: Flag to indicate whether to enable/disable Virtual Network ACL rules. :type is_virtual_network_filter_enabled: bool @@ -1060,6 +1159,13 @@ class DatabaseAccountGetResults(ARMResourceProperties): allowed. Possible values include: 'Enabled', 'Disabled' :type public_network_access: str or ~azure.mgmt.cosmosdb.models.PublicNetworkAccess + :param enable_free_tier: Flag to indicate whether Free Tier is enabled. + :type enable_free_tier: bool + :param api_properties: API specific properties. + :type api_properties: ~azure.mgmt.cosmosdb.models.ApiProperties + :param enable_analytical_storage: Flag to indicate whether to enable + storage analytics. + :type enable_analytical_storage: bool """ _validation = { @@ -1085,7 +1191,7 @@ class DatabaseAccountGetResults(ARMResourceProperties): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'document_endpoint': {'key': 'properties.documentEndpoint', 'type': 'str'}, 'database_account_offer_type': {'key': 'properties.databaseAccountOfferType', 'type': 'DatabaseAccountOfferType'}, - 'ip_range_filter': {'key': 'properties.ipRangeFilter', 'type': 'str'}, + 'ip_rules': {'key': 'properties.ipRules', 'type': '[IpAddressOrRange]'}, 'is_virtual_network_filter_enabled': {'key': 'properties.isVirtualNetworkFilterEnabled', 'type': 'bool'}, 'enable_automatic_failover': {'key': 'properties.enableAutomaticFailover', 'type': 'bool'}, 'consistency_policy': {'key': 'properties.consistencyPolicy', 'type': 'ConsistencyPolicy'}, @@ -1102,6 +1208,9 @@ class DatabaseAccountGetResults(ARMResourceProperties): 'disable_key_based_metadata_write_access': {'key': 'properties.disableKeyBasedMetadataWriteAccess', 'type': 'bool'}, 'key_vault_key_uri': {'key': 'properties.keyVaultKeyUri', 'type': 'str'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'enable_free_tier': {'key': 'properties.enableFreeTier', 'type': 'bool'}, + 'api_properties': {'key': 'properties.apiProperties', 'type': 'ApiProperties'}, + 'enable_analytical_storage': {'key': 'properties.enableAnalyticalStorage', 'type': 'bool'}, } def __init__(self, **kwargs): @@ -1110,7 +1219,7 @@ def __init__(self, **kwargs): self.provisioning_state = kwargs.get('provisioning_state', None) self.document_endpoint = None self.database_account_offer_type = None - self.ip_range_filter = kwargs.get('ip_range_filter', None) + self.ip_rules = kwargs.get('ip_rules', None) self.is_virtual_network_filter_enabled = kwargs.get('is_virtual_network_filter_enabled', None) self.enable_automatic_failover = kwargs.get('enable_automatic_failover', None) self.consistency_policy = kwargs.get('consistency_policy', None) @@ -1127,6 +1236,9 @@ def __init__(self, **kwargs): 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) self.public_network_access = kwargs.get('public_network_access', None) + self.enable_free_tier = kwargs.get('enable_free_tier', None) + self.api_properties = kwargs.get('api_properties', None) + self.enable_analytical_storage = kwargs.get('enable_analytical_storage', None) class DatabaseAccountListConnectionStringsResult(Model): @@ -1254,11 +1366,8 @@ class DatabaseAccountUpdateParameters(Model): :param locations: An array that contains the georeplication locations enabled for the Cosmos DB account. :type locations: list[~azure.mgmt.cosmosdb.models.Location] - :param ip_range_filter: Cosmos DB Firewall Support: This value specifies - the set of IP addresses or IP address ranges in CIDR form to be included - as the allowed list of client IPs for a given database account. IP - addresses/ranges must be comma separated and must not contain any spaces. - :type ip_range_filter: str + :param ip_rules: List of IpRules. + :type ip_rules: list[~azure.mgmt.cosmosdb.models.IpAddressOrRange] :param is_virtual_network_filter_enabled: Flag to indicate whether to enable/disable Virtual Network ACL rules. :type is_virtual_network_filter_enabled: bool @@ -1291,6 +1400,14 @@ class DatabaseAccountUpdateParameters(Model): allowed. Possible values include: 'Enabled', 'Disabled' :type public_network_access: str or ~azure.mgmt.cosmosdb.models.PublicNetworkAccess + :param enable_free_tier: Flag to indicate whether Free Tier is enabled. + :type enable_free_tier: bool + :param api_properties: API specific properties. Currently, supported only + for MongoDB API. + :type api_properties: ~azure.mgmt.cosmosdb.models.ApiProperties + :param enable_analytical_storage: Flag to indicate whether to enable + storage analytics. + :type enable_analytical_storage: bool """ _attribute_map = { @@ -1298,7 +1415,7 @@ class DatabaseAccountUpdateParameters(Model): 'location': {'key': 'location', 'type': 'str'}, 'consistency_policy': {'key': 'properties.consistencyPolicy', 'type': 'ConsistencyPolicy'}, 'locations': {'key': 'properties.locations', 'type': '[Location]'}, - 'ip_range_filter': {'key': 'properties.ipRangeFilter', 'type': 'str'}, + 'ip_rules': {'key': 'properties.ipRules', 'type': '[IpAddressOrRange]'}, 'is_virtual_network_filter_enabled': {'key': 'properties.isVirtualNetworkFilterEnabled', 'type': 'bool'}, 'enable_automatic_failover': {'key': 'properties.enableAutomaticFailover', 'type': 'bool'}, 'capabilities': {'key': 'properties.capabilities', 'type': '[Capability]'}, @@ -1309,6 +1426,9 @@ class DatabaseAccountUpdateParameters(Model): 'disable_key_based_metadata_write_access': {'key': 'properties.disableKeyBasedMetadataWriteAccess', 'type': 'bool'}, 'key_vault_key_uri': {'key': 'properties.keyVaultKeyUri', 'type': 'str'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'enable_free_tier': {'key': 'properties.enableFreeTier', 'type': 'bool'}, + 'api_properties': {'key': 'properties.apiProperties', 'type': 'ApiProperties'}, + 'enable_analytical_storage': {'key': 'properties.enableAnalyticalStorage', 'type': 'bool'}, } def __init__(self, **kwargs): @@ -1317,7 +1437,7 @@ def __init__(self, **kwargs): self.location = kwargs.get('location', None) self.consistency_policy = kwargs.get('consistency_policy', None) self.locations = kwargs.get('locations', None) - self.ip_range_filter = kwargs.get('ip_range_filter', None) + self.ip_rules = kwargs.get('ip_rules', None) self.is_virtual_network_filter_enabled = kwargs.get('is_virtual_network_filter_enabled', None) self.enable_automatic_failover = kwargs.get('enable_automatic_failover', None) self.capabilities = kwargs.get('capabilities', None) @@ -1328,6 +1448,9 @@ def __init__(self, **kwargs): 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) self.public_network_access = kwargs.get('public_network_access', None) + self.enable_free_tier = kwargs.get('enable_free_tier', None) + self.api_properties = kwargs.get('api_properties', None) + self.enable_analytical_storage = kwargs.get('enable_analytical_storage', None) class ErrorResponse(Model): @@ -1527,13 +1650,17 @@ def __init__(self, **kwargs): class GremlinDatabaseGetPropertiesOptions(OptionsResource): """GremlinDatabaseGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } def __init__(self, **kwargs): @@ -1704,13 +1831,17 @@ def __init__(self, **kwargs): class GremlinGraphGetPropertiesOptions(OptionsResource): """GremlinGraphGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } def __init__(self, **kwargs): @@ -1966,6 +2097,27 @@ def __init__(self, **kwargs): self.spatial_indexes = kwargs.get('spatial_indexes', None) +class IpAddressOrRange(Model): + """IpAddressOrRange object. + + :param ip_address_or_range: A single IPv4 address or a single IPv4 address + range in CIDR format. Provided IPs must be well-formatted and cannot be + contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, + 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP + address filter. Example of valid inputs: “23.40.210.245” or + “23.40.210.0/8”. + :type ip_address_or_range: str + """ + + _attribute_map = { + 'ip_address_or_range': {'key': 'ipAddressOrRange', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(IpAddressOrRange, self).__init__(**kwargs) + self.ip_address_or_range = kwargs.get('ip_address_or_range', None) + + class Location(Model): """A region in which the Azure Cosmos DB database account is deployed. @@ -2277,13 +2429,17 @@ def __init__(self, **kwargs): class MongoDBCollectionGetPropertiesOptions(OptionsResource): """MongoDBCollectionGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } def __init__(self, **kwargs): @@ -2305,6 +2461,8 @@ class MongoDBCollectionGetPropertiesResource(Model): :type shard_key: dict[str, str] :param indexes: List of index keys :type indexes: list[~azure.mgmt.cosmosdb.models.MongoIndex] + :param analytical_storage_ttl: Analytical TTL. + :type analytical_storage_ttl: int :ivar _rid: A system generated property. A unique identifier. :vartype _rid: str :ivar _ts: A system generated property that denotes the last updated @@ -2326,6 +2484,7 @@ class MongoDBCollectionGetPropertiesResource(Model): 'id': {'key': 'id', 'type': 'str'}, 'shard_key': {'key': 'shardKey', 'type': '{str}'}, 'indexes': {'key': 'indexes', 'type': '[MongoIndex]'}, + 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'int'}, '_rid': {'key': '_rid', 'type': 'str'}, '_ts': {'key': '_ts', 'type': 'object'}, '_etag': {'key': '_etag', 'type': 'str'}, @@ -2336,6 +2495,7 @@ def __init__(self, **kwargs): self.id = kwargs.get('id', None) self.shard_key = kwargs.get('shard_key', None) self.indexes = kwargs.get('indexes', None) + self.analytical_storage_ttl = kwargs.get('analytical_storage_ttl', None) self._rid = None self._ts = None self._etag = None @@ -2400,6 +2560,8 @@ class MongoDBCollectionResource(Model): :type shard_key: dict[str, str] :param indexes: List of index keys :type indexes: list[~azure.mgmt.cosmosdb.models.MongoIndex] + :param analytical_storage_ttl: Analytical TTL. + :type analytical_storage_ttl: int """ _validation = { @@ -2410,6 +2572,7 @@ class MongoDBCollectionResource(Model): 'id': {'key': 'id', 'type': 'str'}, 'shard_key': {'key': 'shardKey', 'type': '{str}'}, 'indexes': {'key': 'indexes', 'type': '[MongoIndex]'}, + 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'int'}, } def __init__(self, **kwargs): @@ -2417,6 +2580,7 @@ def __init__(self, **kwargs): self.id = kwargs.get('id', None) self.shard_key = kwargs.get('shard_key', None) self.indexes = kwargs.get('indexes', None) + self.analytical_storage_ttl = kwargs.get('analytical_storage_ttl', None) class MongoDBDatabaseCreateUpdateParameters(ARMResourceProperties): @@ -2472,13 +2636,17 @@ def __init__(self, **kwargs): class MongoDBDatabaseGetPropertiesOptions(OptionsResource): """MongoDBDatabaseGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } def __init__(self, **kwargs): @@ -3259,43 +3427,6 @@ def __init__(self, **kwargs): self.description = kwargs.get('description', None) -class ProvisionedThroughputSettingsResource(Model): - """Cosmos DB provisioned throughput 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 maximum throughput container - can scale up to. - :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 maximum throughput - container can scale up to 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(ProvisionedThroughputSettingsResource, 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 RegionForOnlineOffline(Model): """Cosmos DB region to online or offline. @@ -3393,13 +3524,17 @@ def __init__(self, **kwargs): class SqlContainerGetPropertiesOptions(OptionsResource): """SqlContainerGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } def __init__(self, **kwargs): @@ -3624,13 +3759,17 @@ def __init__(self, **kwargs): class SqlDatabaseGetPropertiesOptions(OptionsResource): """SqlDatabaseGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } def __init__(self, **kwargs): @@ -4325,13 +4464,17 @@ def __init__(self, **kwargs): class TableGetPropertiesOptions(OptionsResource): """TableGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } def __init__(self, **kwargs): @@ -4476,14 +4619,13 @@ class ThroughputSettingsGetPropertiesResource(Model): sending a request. :param throughput: Value of the Cosmos DB resource throughput. Either - throughput is required or provisionedThroughputSettings is required, but - not both. + throughput is required or autoscaleSettings is required, but not both. :type throughput: int - :param provisioned_throughput_settings: Cosmos DB resource for provisioned - throughput settings. Either throughput is required or - provisionedThroughputSettings is required, but not both. - :type provisioned_throughput_settings: - ~azure.mgmt.cosmosdb.models.ProvisionedThroughputSettingsResource + :param autoscale_settings: Cosmos DB resource for autoscale settings. + Either throughput is required or autoscaleSettings is required, but not + both. + :type autoscale_settings: + ~azure.mgmt.cosmosdb.models.AutoscaleSettingsResource :ivar minimum_throughput: The minimum throughput of the resource :vartype minimum_throughput: str :ivar offer_replace_pending: The throughput replace is pending @@ -4508,7 +4650,7 @@ class ThroughputSettingsGetPropertiesResource(Model): _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, - 'provisioned_throughput_settings': {'key': 'provisionedThroughputSettings', 'type': 'ProvisionedThroughputSettingsResource'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettingsResource'}, 'minimum_throughput': {'key': 'minimumThroughput', 'type': 'str'}, 'offer_replace_pending': {'key': 'offerReplacePending', 'type': 'str'}, '_rid': {'key': '_rid', 'type': 'str'}, @@ -4519,7 +4661,7 @@ class ThroughputSettingsGetPropertiesResource(Model): def __init__(self, **kwargs): super(ThroughputSettingsGetPropertiesResource, self).__init__(**kwargs) self.throughput = kwargs.get('throughput', None) - self.provisioned_throughput_settings = kwargs.get('provisioned_throughput_settings', None) + self.autoscale_settings = kwargs.get('autoscale_settings', None) self.minimum_throughput = None self.offer_replace_pending = None self._rid = None @@ -4571,20 +4713,19 @@ def __init__(self, **kwargs): class ThroughputSettingsResource(Model): """Cosmos DB resource throughput object. Either throughput is required or - provisionedThroughputSettings is required, but not both. + autoscaleSettings is required, but not both. Variables are only populated by the server, and will be ignored when sending a request. :param throughput: Value of the Cosmos DB resource throughput. Either - throughput is required or provisionedThroughputSettings is required, but - not both. + throughput is required or autoscaleSettings is required, but not both. :type throughput: int - :param provisioned_throughput_settings: Cosmos DB resource for provisioned - throughput settings. Either throughput is required or - provisionedThroughputSettings is required, but not both. - :type provisioned_throughput_settings: - ~azure.mgmt.cosmosdb.models.ProvisionedThroughputSettingsResource + :param autoscale_settings: Cosmos DB resource for autoscale settings. + Either throughput is required or autoscaleSettings is required, but not + both. + :type autoscale_settings: + ~azure.mgmt.cosmosdb.models.AutoscaleSettingsResource :ivar minimum_throughput: The minimum throughput of the resource :vartype minimum_throughput: str :ivar offer_replace_pending: The throughput replace is pending @@ -4598,7 +4739,7 @@ class ThroughputSettingsResource(Model): _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, - 'provisioned_throughput_settings': {'key': 'provisionedThroughputSettings', 'type': 'ProvisionedThroughputSettingsResource'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettingsResource'}, 'minimum_throughput': {'key': 'minimumThroughput', 'type': 'str'}, 'offer_replace_pending': {'key': 'offerReplacePending', 'type': 'str'}, } @@ -4606,7 +4747,7 @@ class ThroughputSettingsResource(Model): def __init__(self, **kwargs): super(ThroughputSettingsResource, self).__init__(**kwargs) self.throughput = kwargs.get('throughput', None) - self.provisioned_throughput_settings = kwargs.get('provisioned_throughput_settings', None) + self.autoscale_settings = kwargs.get('autoscale_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 cff96588906c..de79c453f17d 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 @@ -13,6 +13,23 @@ from msrest.exceptions import HttpOperationError +class ApiProperties(Model): + """ApiProperties. + + :param server_version: Describes the ServerVersion of an a MongoDB + account. Possible values include: '3.2', '3.6' + :type server_version: str or ~azure.mgmt.cosmosdb.models.ServerVersion + """ + + _attribute_map = { + 'server_version': {'key': 'serverVersion', 'type': 'str'}, + } + + def __init__(self, *, server_version=None, **kwargs) -> None: + super(ApiProperties, self).__init__(**kwargs) + self.server_version = server_version + + class ARMProxyResource(Model): """The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. @@ -89,6 +106,60 @@ def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: self.tags = tags +class AutoscaleSettings(Model): + """AutoscaleSettings. + + :param max_throughput: Represents maximum throughput, the resource can + scale up to. + :type max_throughput: int + """ + + _attribute_map = { + 'max_throughput': {'key': 'maxThroughput', 'type': 'int'}, + } + + def __init__(self, *, max_throughput: int=None, **kwargs) -> None: + super(AutoscaleSettings, self).__init__(**kwargs) + self.max_throughput = max_throughput + + +class AutoscaleSettingsResource(Model): + """Cosmos DB provisioned throughput 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 maximum throughput container + can scale up to. + :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 maximum throughput + container can scale up to 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(AutoscaleSettingsResource, 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. @@ -252,34 +323,43 @@ def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs class OptionsResource(Model): """Cosmos DB options resource object. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } - def __init__(self, *, throughput: int=None, **kwargs) -> None: + def __init__(self, *, throughput: int=None, autoscale_settings=None, **kwargs) -> None: super(OptionsResource, self).__init__(**kwargs) self.throughput = throughput + self.autoscale_settings = autoscale_settings class CassandraKeyspaceGetPropertiesOptions(OptionsResource): """CassandraKeyspaceGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } - def __init__(self, *, throughput: int=None, **kwargs) -> None: - super(CassandraKeyspaceGetPropertiesOptions, self).__init__(throughput=throughput, **kwargs) + def __init__(self, *, throughput: int=None, autoscale_settings=None, **kwargs) -> None: + super(CassandraKeyspaceGetPropertiesOptions, self).__init__(throughput=throughput, autoscale_settings=autoscale_settings, **kwargs) class CassandraKeyspaceGetPropertiesResource(Model): @@ -487,17 +567,21 @@ def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs class CassandraTableGetPropertiesOptions(OptionsResource): """CassandraTableGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } - def __init__(self, *, throughput: int=None, **kwargs) -> None: - super(CassandraTableGetPropertiesOptions, self).__init__(throughput=throughput, **kwargs) + def __init__(self, *, throughput: int=None, autoscale_settings=None, **kwargs) -> None: + super(CassandraTableGetPropertiesOptions, self).__init__(throughput=throughput, autoscale_settings=autoscale_settings, **kwargs) class CassandraTableGetPropertiesResource(Model): @@ -514,6 +598,8 @@ class CassandraTableGetPropertiesResource(Model): :type default_ttl: int :param schema: Schema of the Cosmos DB Cassandra table :type schema: ~azure.mgmt.cosmosdb.models.CassandraSchema + :param analytical_storage_ttl: Analytical TTL. + :type analytical_storage_ttl: int :ivar _rid: A system generated property. A unique identifier. :vartype _rid: str :ivar _ts: A system generated property that denotes the last updated @@ -535,16 +621,18 @@ class CassandraTableGetPropertiesResource(Model): 'id': {'key': 'id', 'type': 'str'}, 'default_ttl': {'key': 'defaultTtl', 'type': 'int'}, 'schema': {'key': 'schema', 'type': 'CassandraSchema'}, + 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'int'}, '_rid': {'key': '_rid', 'type': 'str'}, '_ts': {'key': '_ts', 'type': 'object'}, '_etag': {'key': '_etag', 'type': 'str'}, } - def __init__(self, *, id: str, default_ttl: int=None, schema=None, **kwargs) -> None: + def __init__(self, *, id: str, default_ttl: int=None, schema=None, analytical_storage_ttl: int=None, **kwargs) -> None: super(CassandraTableGetPropertiesResource, self).__init__(**kwargs) self.id = id self.default_ttl = default_ttl self.schema = schema + self.analytical_storage_ttl = analytical_storage_ttl self._rid = None self._ts = None self._etag = None @@ -608,6 +696,8 @@ class CassandraTableResource(Model): :type default_ttl: int :param schema: Schema of the Cosmos DB Cassandra table :type schema: ~azure.mgmt.cosmosdb.models.CassandraSchema + :param analytical_storage_ttl: Analytical TTL. + :type analytical_storage_ttl: int """ _validation = { @@ -618,13 +708,15 @@ class CassandraTableResource(Model): 'id': {'key': 'id', 'type': 'str'}, 'default_ttl': {'key': 'defaultTtl', 'type': 'int'}, 'schema': {'key': 'schema', 'type': 'CassandraSchema'}, + 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'int'}, } - def __init__(self, *, id: str, default_ttl: int=None, schema=None, **kwargs) -> None: + def __init__(self, *, id: str, default_ttl: int=None, schema=None, analytical_storage_ttl: int=None, **kwargs) -> None: super(CassandraTableResource, self).__init__(**kwargs) self.id = id self.default_ttl = default_ttl self.schema = schema + self.analytical_storage_ttl = analytical_storage_ttl class CloudError(Model): @@ -803,23 +895,22 @@ class CreateUpdateOptions(Model): 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 + 10000. + :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { - 'additional_properties': {'key': '', 'type': '{str}'}, - 'throughput': {'key': 'throughput', 'type': 'str'}, + 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } - def __init__(self, *, additional_properties=None, throughput: str=None, **kwargs) -> None: + def __init__(self, *, throughput: int=None, autoscale_settings=None, **kwargs) -> None: super(CreateUpdateOptions, self).__init__(**kwargs) - self.additional_properties = additional_properties self.throughput = throughput + self.autoscale_settings = autoscale_settings class DatabaseAccountConnectionString(Model): @@ -882,11 +973,8 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): :ivar database_account_offer_type: Required. The offer type for the database. Default value: "Standard" . :vartype database_account_offer_type: str - :param ip_range_filter: Cosmos DB Firewall Support: This value specifies - the set of IP addresses or IP address ranges in CIDR form to be included - as the allowed list of client IPs for a given database account. IP - addresses/ranges must be comma separated and must not contain any spaces. - :type ip_range_filter: str + :param ip_rules: List of IpRules. + :type ip_rules: list[~azure.mgmt.cosmosdb.models.IpAddressOrRange] :param is_virtual_network_filter_enabled: Flag to indicate whether to enable/disable Virtual Network ACL rules. :type is_virtual_network_filter_enabled: bool @@ -919,6 +1007,14 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): allowed. Possible values include: 'Enabled', 'Disabled' :type public_network_access: str or ~azure.mgmt.cosmosdb.models.PublicNetworkAccess + :param enable_free_tier: Flag to indicate whether Free Tier is enabled. + :type enable_free_tier: bool + :param api_properties: API specific properties. Currently, supported only + for MongoDB API. + :type api_properties: ~azure.mgmt.cosmosdb.models.ApiProperties + :param enable_analytical_storage: Flag to indicate whether to enable + storage analytics. + :type enable_analytical_storage: bool """ _validation = { @@ -939,7 +1035,7 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): 'consistency_policy': {'key': 'properties.consistencyPolicy', 'type': 'ConsistencyPolicy'}, 'locations': {'key': 'properties.locations', 'type': '[Location]'}, 'database_account_offer_type': {'key': 'properties.databaseAccountOfferType', 'type': 'str'}, - 'ip_range_filter': {'key': 'properties.ipRangeFilter', 'type': 'str'}, + 'ip_rules': {'key': 'properties.ipRules', 'type': '[IpAddressOrRange]'}, 'is_virtual_network_filter_enabled': {'key': 'properties.isVirtualNetworkFilterEnabled', 'type': 'bool'}, 'enable_automatic_failover': {'key': 'properties.enableAutomaticFailover', 'type': 'bool'}, 'capabilities': {'key': 'properties.capabilities', 'type': '[Capability]'}, @@ -950,16 +1046,19 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): 'disable_key_based_metadata_write_access': {'key': 'properties.disableKeyBasedMetadataWriteAccess', 'type': 'bool'}, 'key_vault_key_uri': {'key': 'properties.keyVaultKeyUri', 'type': 'str'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'enable_free_tier': {'key': 'properties.enableFreeTier', 'type': 'bool'}, + 'api_properties': {'key': 'properties.apiProperties', 'type': 'ApiProperties'}, + 'enable_analytical_storage': {'key': 'properties.enableAnalyticalStorage', 'type': 'bool'}, } 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, key_vault_key_uri: str=None, public_network_access=None, **kwargs) -> None: + def __init__(self, *, locations, location: str=None, tags=None, kind="GlobalDocumentDB", consistency_policy=None, ip_rules=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, public_network_access=None, enable_free_tier: bool=None, api_properties=None, enable_analytical_storage: bool=None, **kwargs) -> None: super(DatabaseAccountCreateUpdateParameters, self).__init__(location=location, tags=tags, **kwargs) self.kind = kind self.consistency_policy = consistency_policy self.locations = locations - self.ip_range_filter = ip_range_filter + self.ip_rules = ip_rules self.is_virtual_network_filter_enabled = is_virtual_network_filter_enabled self.enable_automatic_failover = enable_automatic_failover self.capabilities = capabilities @@ -970,6 +1069,9 @@ def __init__(self, *, locations, location: str=None, tags=None, kind="GlobalDocu self.disable_key_based_metadata_write_access = disable_key_based_metadata_write_access self.key_vault_key_uri = key_vault_key_uri self.public_network_access = public_network_access + self.enable_free_tier = enable_free_tier + self.api_properties = api_properties + self.enable_analytical_storage = enable_analytical_storage class DatabaseAccountGetResults(ARMResourceProperties): @@ -1003,11 +1105,8 @@ class DatabaseAccountGetResults(ARMResourceProperties): 'Standard' :vartype database_account_offer_type: str or ~azure.mgmt.cosmosdb.models.DatabaseAccountOfferType - :param ip_range_filter: Cosmos DB Firewall Support: This value specifies - the set of IP addresses or IP address ranges in CIDR form to be included - as the allowed list of client IPs for a given database account. IP - addresses/ranges must be comma separated and must not contain any spaces. - :type ip_range_filter: str + :param ip_rules: List of IpRules. + :type ip_rules: list[~azure.mgmt.cosmosdb.models.IpAddressOrRange] :param is_virtual_network_filter_enabled: Flag to indicate whether to enable/disable Virtual Network ACL rules. :type is_virtual_network_filter_enabled: bool @@ -1060,6 +1159,13 @@ class DatabaseAccountGetResults(ARMResourceProperties): allowed. Possible values include: 'Enabled', 'Disabled' :type public_network_access: str or ~azure.mgmt.cosmosdb.models.PublicNetworkAccess + :param enable_free_tier: Flag to indicate whether Free Tier is enabled. + :type enable_free_tier: bool + :param api_properties: API specific properties. + :type api_properties: ~azure.mgmt.cosmosdb.models.ApiProperties + :param enable_analytical_storage: Flag to indicate whether to enable + storage analytics. + :type enable_analytical_storage: bool """ _validation = { @@ -1085,7 +1191,7 @@ class DatabaseAccountGetResults(ARMResourceProperties): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'document_endpoint': {'key': 'properties.documentEndpoint', 'type': 'str'}, 'database_account_offer_type': {'key': 'properties.databaseAccountOfferType', 'type': 'DatabaseAccountOfferType'}, - 'ip_range_filter': {'key': 'properties.ipRangeFilter', 'type': 'str'}, + 'ip_rules': {'key': 'properties.ipRules', 'type': '[IpAddressOrRange]'}, 'is_virtual_network_filter_enabled': {'key': 'properties.isVirtualNetworkFilterEnabled', 'type': 'bool'}, 'enable_automatic_failover': {'key': 'properties.enableAutomaticFailover', 'type': 'bool'}, 'consistency_policy': {'key': 'properties.consistencyPolicy', 'type': 'ConsistencyPolicy'}, @@ -1102,15 +1208,18 @@ class DatabaseAccountGetResults(ARMResourceProperties): 'disable_key_based_metadata_write_access': {'key': 'properties.disableKeyBasedMetadataWriteAccess', 'type': 'bool'}, 'key_vault_key_uri': {'key': 'properties.keyVaultKeyUri', 'type': 'str'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'enable_free_tier': {'key': 'properties.enableFreeTier', 'type': 'bool'}, + 'api_properties': {'key': 'properties.apiProperties', 'type': 'ApiProperties'}, + 'enable_analytical_storage': {'key': 'properties.enableAnalyticalStorage', 'type': 'bool'}, } - 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, public_network_access=None, **kwargs) -> None: + def __init__(self, *, location: str=None, tags=None, kind="GlobalDocumentDB", provisioning_state: str=None, ip_rules=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, public_network_access=None, enable_free_tier: bool=None, api_properties=None, enable_analytical_storage: bool=None, **kwargs) -> None: super(DatabaseAccountGetResults, self).__init__(location=location, tags=tags, **kwargs) self.kind = kind self.provisioning_state = provisioning_state self.document_endpoint = None self.database_account_offer_type = None - self.ip_range_filter = ip_range_filter + self.ip_rules = ip_rules self.is_virtual_network_filter_enabled = is_virtual_network_filter_enabled self.enable_automatic_failover = enable_automatic_failover self.consistency_policy = consistency_policy @@ -1127,6 +1236,9 @@ def __init__(self, *, location: str=None, tags=None, kind="GlobalDocumentDB", pr self.disable_key_based_metadata_write_access = disable_key_based_metadata_write_access self.key_vault_key_uri = key_vault_key_uri self.public_network_access = public_network_access + self.enable_free_tier = enable_free_tier + self.api_properties = api_properties + self.enable_analytical_storage = enable_analytical_storage class DatabaseAccountListConnectionStringsResult(Model): @@ -1254,11 +1366,8 @@ class DatabaseAccountUpdateParameters(Model): :param locations: An array that contains the georeplication locations enabled for the Cosmos DB account. :type locations: list[~azure.mgmt.cosmosdb.models.Location] - :param ip_range_filter: Cosmos DB Firewall Support: This value specifies - the set of IP addresses or IP address ranges in CIDR form to be included - as the allowed list of client IPs for a given database account. IP - addresses/ranges must be comma separated and must not contain any spaces. - :type ip_range_filter: str + :param ip_rules: List of IpRules. + :type ip_rules: list[~azure.mgmt.cosmosdb.models.IpAddressOrRange] :param is_virtual_network_filter_enabled: Flag to indicate whether to enable/disable Virtual Network ACL rules. :type is_virtual_network_filter_enabled: bool @@ -1291,6 +1400,14 @@ class DatabaseAccountUpdateParameters(Model): allowed. Possible values include: 'Enabled', 'Disabled' :type public_network_access: str or ~azure.mgmt.cosmosdb.models.PublicNetworkAccess + :param enable_free_tier: Flag to indicate whether Free Tier is enabled. + :type enable_free_tier: bool + :param api_properties: API specific properties. Currently, supported only + for MongoDB API. + :type api_properties: ~azure.mgmt.cosmosdb.models.ApiProperties + :param enable_analytical_storage: Flag to indicate whether to enable + storage analytics. + :type enable_analytical_storage: bool """ _attribute_map = { @@ -1298,7 +1415,7 @@ class DatabaseAccountUpdateParameters(Model): 'location': {'key': 'location', 'type': 'str'}, 'consistency_policy': {'key': 'properties.consistencyPolicy', 'type': 'ConsistencyPolicy'}, 'locations': {'key': 'properties.locations', 'type': '[Location]'}, - 'ip_range_filter': {'key': 'properties.ipRangeFilter', 'type': 'str'}, + 'ip_rules': {'key': 'properties.ipRules', 'type': '[IpAddressOrRange]'}, 'is_virtual_network_filter_enabled': {'key': 'properties.isVirtualNetworkFilterEnabled', 'type': 'bool'}, 'enable_automatic_failover': {'key': 'properties.enableAutomaticFailover', 'type': 'bool'}, 'capabilities': {'key': 'properties.capabilities', 'type': '[Capability]'}, @@ -1309,15 +1426,18 @@ class DatabaseAccountUpdateParameters(Model): 'disable_key_based_metadata_write_access': {'key': 'properties.disableKeyBasedMetadataWriteAccess', 'type': 'bool'}, 'key_vault_key_uri': {'key': 'properties.keyVaultKeyUri', 'type': 'str'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'enable_free_tier': {'key': 'properties.enableFreeTier', 'type': 'bool'}, + 'api_properties': {'key': 'properties.apiProperties', 'type': 'ApiProperties'}, + 'enable_analytical_storage': {'key': 'properties.enableAnalyticalStorage', 'type': 'bool'}, } - 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, public_network_access=None, **kwargs) -> None: + def __init__(self, *, tags=None, location: str=None, consistency_policy=None, locations=None, ip_rules=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, public_network_access=None, enable_free_tier: bool=None, api_properties=None, enable_analytical_storage: bool=None, **kwargs) -> None: super(DatabaseAccountUpdateParameters, self).__init__(**kwargs) self.tags = tags self.location = location self.consistency_policy = consistency_policy self.locations = locations - self.ip_range_filter = ip_range_filter + self.ip_rules = ip_rules self.is_virtual_network_filter_enabled = is_virtual_network_filter_enabled self.enable_automatic_failover = enable_automatic_failover self.capabilities = capabilities @@ -1328,6 +1448,9 @@ def __init__(self, *, tags=None, location: str=None, consistency_policy=None, lo self.disable_key_based_metadata_write_access = disable_key_based_metadata_write_access self.key_vault_key_uri = key_vault_key_uri self.public_network_access = public_network_access + self.enable_free_tier = enable_free_tier + self.api_properties = api_properties + self.enable_analytical_storage = enable_analytical_storage class ErrorResponse(Model): @@ -1527,17 +1650,21 @@ def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs class GremlinDatabaseGetPropertiesOptions(OptionsResource): """GremlinDatabaseGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } - def __init__(self, *, throughput: int=None, **kwargs) -> None: - super(GremlinDatabaseGetPropertiesOptions, self).__init__(throughput=throughput, **kwargs) + def __init__(self, *, throughput: int=None, autoscale_settings=None, **kwargs) -> None: + super(GremlinDatabaseGetPropertiesOptions, self).__init__(throughput=throughput, autoscale_settings=autoscale_settings, **kwargs) class GremlinDatabaseGetPropertiesResource(Model): @@ -1704,17 +1831,21 @@ def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs class GremlinGraphGetPropertiesOptions(OptionsResource): """GremlinGraphGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } - def __init__(self, *, throughput: int=None, **kwargs) -> None: - super(GremlinGraphGetPropertiesOptions, self).__init__(throughput=throughput, **kwargs) + def __init__(self, *, throughput: int=None, autoscale_settings=None, **kwargs) -> None: + super(GremlinGraphGetPropertiesOptions, self).__init__(throughput=throughput, autoscale_settings=autoscale_settings, **kwargs) class GremlinGraphGetPropertiesResource(Model): @@ -1966,6 +2097,27 @@ def __init__(self, *, automatic: bool=None, indexing_mode="Consistent", included self.spatial_indexes = spatial_indexes +class IpAddressOrRange(Model): + """IpAddressOrRange object. + + :param ip_address_or_range: A single IPv4 address or a single IPv4 address + range in CIDR format. Provided IPs must be well-formatted and cannot be + contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, + 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP + address filter. Example of valid inputs: “23.40.210.245” or + “23.40.210.0/8”. + :type ip_address_or_range: str + """ + + _attribute_map = { + 'ip_address_or_range': {'key': 'ipAddressOrRange', 'type': 'str'}, + } + + def __init__(self, *, ip_address_or_range: str=None, **kwargs) -> None: + super(IpAddressOrRange, self).__init__(**kwargs) + self.ip_address_or_range = ip_address_or_range + + class Location(Model): """A region in which the Azure Cosmos DB database account is deployed. @@ -2277,17 +2429,21 @@ def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs class MongoDBCollectionGetPropertiesOptions(OptionsResource): """MongoDBCollectionGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } - def __init__(self, *, throughput: int=None, **kwargs) -> None: - super(MongoDBCollectionGetPropertiesOptions, self).__init__(throughput=throughput, **kwargs) + def __init__(self, *, throughput: int=None, autoscale_settings=None, **kwargs) -> None: + super(MongoDBCollectionGetPropertiesOptions, self).__init__(throughput=throughput, autoscale_settings=autoscale_settings, **kwargs) class MongoDBCollectionGetPropertiesResource(Model): @@ -2305,6 +2461,8 @@ class MongoDBCollectionGetPropertiesResource(Model): :type shard_key: dict[str, str] :param indexes: List of index keys :type indexes: list[~azure.mgmt.cosmosdb.models.MongoIndex] + :param analytical_storage_ttl: Analytical TTL. + :type analytical_storage_ttl: int :ivar _rid: A system generated property. A unique identifier. :vartype _rid: str :ivar _ts: A system generated property that denotes the last updated @@ -2326,16 +2484,18 @@ class MongoDBCollectionGetPropertiesResource(Model): 'id': {'key': 'id', 'type': 'str'}, 'shard_key': {'key': 'shardKey', 'type': '{str}'}, 'indexes': {'key': 'indexes', 'type': '[MongoIndex]'}, + 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'int'}, '_rid': {'key': '_rid', 'type': 'str'}, '_ts': {'key': '_ts', 'type': 'object'}, '_etag': {'key': '_etag', 'type': 'str'}, } - def __init__(self, *, id: str, shard_key=None, indexes=None, **kwargs) -> None: + def __init__(self, *, id: str, shard_key=None, indexes=None, analytical_storage_ttl: int=None, **kwargs) -> None: super(MongoDBCollectionGetPropertiesResource, self).__init__(**kwargs) self.id = id self.shard_key = shard_key self.indexes = indexes + self.analytical_storage_ttl = analytical_storage_ttl self._rid = None self._ts = None self._etag = None @@ -2400,6 +2560,8 @@ class MongoDBCollectionResource(Model): :type shard_key: dict[str, str] :param indexes: List of index keys :type indexes: list[~azure.mgmt.cosmosdb.models.MongoIndex] + :param analytical_storage_ttl: Analytical TTL. + :type analytical_storage_ttl: int """ _validation = { @@ -2410,13 +2572,15 @@ class MongoDBCollectionResource(Model): 'id': {'key': 'id', 'type': 'str'}, 'shard_key': {'key': 'shardKey', 'type': '{str}'}, 'indexes': {'key': 'indexes', 'type': '[MongoIndex]'}, + 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'int'}, } - def __init__(self, *, id: str, shard_key=None, indexes=None, **kwargs) -> None: + def __init__(self, *, id: str, shard_key=None, indexes=None, analytical_storage_ttl: int=None, **kwargs) -> None: super(MongoDBCollectionResource, self).__init__(**kwargs) self.id = id self.shard_key = shard_key self.indexes = indexes + self.analytical_storage_ttl = analytical_storage_ttl class MongoDBDatabaseCreateUpdateParameters(ARMResourceProperties): @@ -2472,17 +2636,21 @@ def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs class MongoDBDatabaseGetPropertiesOptions(OptionsResource): """MongoDBDatabaseGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } - def __init__(self, *, throughput: int=None, **kwargs) -> None: - super(MongoDBDatabaseGetPropertiesOptions, self).__init__(throughput=throughput, **kwargs) + def __init__(self, *, throughput: int=None, autoscale_settings=None, **kwargs) -> None: + super(MongoDBDatabaseGetPropertiesOptions, self).__init__(throughput=throughput, autoscale_settings=autoscale_settings, **kwargs) class MongoDBDatabaseGetPropertiesResource(Model): @@ -3259,43 +3427,6 @@ def __init__(self, *, status: str=None, description: str=None, **kwargs) -> None self.description = description -class ProvisionedThroughputSettingsResource(Model): - """Cosmos DB provisioned throughput 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 maximum throughput container - can scale up to. - :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 maximum throughput - container can scale up to 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(ProvisionedThroughputSettingsResource, self).__init__(**kwargs) - self.max_throughput = max_throughput - self.auto_upgrade_policy = auto_upgrade_policy - self.target_max_throughput = None - - class RegionForOnlineOffline(Model): """Cosmos DB region to online or offline. @@ -3393,17 +3524,21 @@ def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs class SqlContainerGetPropertiesOptions(OptionsResource): """SqlContainerGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } - def __init__(self, *, throughput: int=None, **kwargs) -> None: - super(SqlContainerGetPropertiesOptions, self).__init__(throughput=throughput, **kwargs) + def __init__(self, *, throughput: int=None, autoscale_settings=None, **kwargs) -> None: + super(SqlContainerGetPropertiesOptions, self).__init__(throughput=throughput, autoscale_settings=autoscale_settings, **kwargs) class SqlContainerGetPropertiesResource(Model): @@ -3624,17 +3759,21 @@ def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs class SqlDatabaseGetPropertiesOptions(OptionsResource): """SqlDatabaseGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } - def __init__(self, *, throughput: int=None, **kwargs) -> None: - super(SqlDatabaseGetPropertiesOptions, self).__init__(throughput=throughput, **kwargs) + def __init__(self, *, throughput: int=None, autoscale_settings=None, **kwargs) -> None: + super(SqlDatabaseGetPropertiesOptions, self).__init__(throughput=throughput, autoscale_settings=autoscale_settings, **kwargs) class SqlDatabaseGetPropertiesResource(Model): @@ -4325,17 +4464,21 @@ def __init__(self, *, resource, options, location: str=None, tags=None, **kwargs class TableGetPropertiesOptions(OptionsResource): """TableGetPropertiesOptions. - :param throughput: Value of the Cosmos DB resource throughput. Use the - ThroughputSetting resource when retrieving offer details. + :param throughput: Value of the Cosmos DB resource throughput or + autoscaleSettings. Use the ThroughputSetting resource when retrieving + offer details. :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings """ _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, } - def __init__(self, *, throughput: int=None, **kwargs) -> None: - super(TableGetPropertiesOptions, self).__init__(throughput=throughput, **kwargs) + def __init__(self, *, throughput: int=None, autoscale_settings=None, **kwargs) -> None: + super(TableGetPropertiesOptions, self).__init__(throughput=throughput, autoscale_settings=autoscale_settings, **kwargs) class TableGetPropertiesResource(Model): @@ -4476,14 +4619,13 @@ class ThroughputSettingsGetPropertiesResource(Model): sending a request. :param throughput: Value of the Cosmos DB resource throughput. Either - throughput is required or provisionedThroughputSettings is required, but - not both. + throughput is required or autoscaleSettings is required, but not both. :type throughput: int - :param provisioned_throughput_settings: Cosmos DB resource for provisioned - throughput settings. Either throughput is required or - provisionedThroughputSettings is required, but not both. - :type provisioned_throughput_settings: - ~azure.mgmt.cosmosdb.models.ProvisionedThroughputSettingsResource + :param autoscale_settings: Cosmos DB resource for autoscale settings. + Either throughput is required or autoscaleSettings is required, but not + both. + :type autoscale_settings: + ~azure.mgmt.cosmosdb.models.AutoscaleSettingsResource :ivar minimum_throughput: The minimum throughput of the resource :vartype minimum_throughput: str :ivar offer_replace_pending: The throughput replace is pending @@ -4508,7 +4650,7 @@ class ThroughputSettingsGetPropertiesResource(Model): _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, - 'provisioned_throughput_settings': {'key': 'provisionedThroughputSettings', 'type': 'ProvisionedThroughputSettingsResource'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettingsResource'}, 'minimum_throughput': {'key': 'minimumThroughput', 'type': 'str'}, 'offer_replace_pending': {'key': 'offerReplacePending', 'type': 'str'}, '_rid': {'key': '_rid', 'type': 'str'}, @@ -4516,10 +4658,10 @@ class ThroughputSettingsGetPropertiesResource(Model): '_etag': {'key': '_etag', 'type': 'str'}, } - def __init__(self, *, throughput: int=None, provisioned_throughput_settings=None, **kwargs) -> None: + def __init__(self, *, throughput: int=None, autoscale_settings=None, **kwargs) -> None: super(ThroughputSettingsGetPropertiesResource, self).__init__(**kwargs) self.throughput = throughput - self.provisioned_throughput_settings = provisioned_throughput_settings + self.autoscale_settings = autoscale_settings self.minimum_throughput = None self.offer_replace_pending = None self._rid = None @@ -4571,20 +4713,19 @@ def __init__(self, *, location: str=None, tags=None, resource=None, **kwargs) -> class ThroughputSettingsResource(Model): """Cosmos DB resource throughput object. Either throughput is required or - provisionedThroughputSettings is required, but not both. + autoscaleSettings is required, but not both. Variables are only populated by the server, and will be ignored when sending a request. :param throughput: Value of the Cosmos DB resource throughput. Either - throughput is required or provisionedThroughputSettings is required, but - not both. + throughput is required or autoscaleSettings is required, but not both. :type throughput: int - :param provisioned_throughput_settings: Cosmos DB resource for provisioned - throughput settings. Either throughput is required or - provisionedThroughputSettings is required, but not both. - :type provisioned_throughput_settings: - ~azure.mgmt.cosmosdb.models.ProvisionedThroughputSettingsResource + :param autoscale_settings: Cosmos DB resource for autoscale settings. + Either throughput is required or autoscaleSettings is required, but not + both. + :type autoscale_settings: + ~azure.mgmt.cosmosdb.models.AutoscaleSettingsResource :ivar minimum_throughput: The minimum throughput of the resource :vartype minimum_throughput: str :ivar offer_replace_pending: The throughput replace is pending @@ -4598,15 +4739,15 @@ class ThroughputSettingsResource(Model): _attribute_map = { 'throughput': {'key': 'throughput', 'type': 'int'}, - 'provisioned_throughput_settings': {'key': 'provisionedThroughputSettings', 'type': 'ProvisionedThroughputSettingsResource'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettingsResource'}, 'minimum_throughput': {'key': 'minimumThroughput', 'type': 'str'}, 'offer_replace_pending': {'key': 'offerReplacePending', 'type': 'str'}, } - def __init__(self, *, throughput: int=None, provisioned_throughput_settings=None, **kwargs) -> None: + def __init__(self, *, throughput: int=None, autoscale_settings=None, **kwargs) -> None: super(ThroughputSettingsResource, self).__init__(**kwargs) self.throughput = throughput - self.provisioned_throughput_settings = provisioned_throughput_settings + self.autoscale_settings = autoscale_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 e033c0d99eec..edf5a0edca37 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 7571b451f8fd..a6fea326ec30 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 00dcebb409de..c091e2d2d1f7 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 c6dac8999fbd..3e655642bec0 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 e184fb0a353e..026b59f04dc7 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 ac951a49c749..62653e8f5197 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 13e6175b4570..5ae37b0d6bcd 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 458b45ba7931..76863c6853f8 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 da3cdc0136fe..b44ac5b95e0f 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 01b747444d0b..737b438a510b 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_notebook_workspaces_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_notebook_workspaces_operations.py index 6491fd1fd6a6..a31e5f690c32 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_notebook_workspaces_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_notebook_workspaces_operations.py @@ -26,7 +26,7 @@ class NotebookWorkspacesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2019-08-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". :ivar notebook_workspace_name: The name of the notebook workspace resource. Constant value: "default". """ @@ -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 = "2020-04-01" self.notebook_workspace_name = "default" 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 77c01a335018..a1b09893c482 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 389b1f58df72..6f7193191195 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 413d493e7c2e..3029821dc362 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 e1ca66894257..040b0125a258 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 f72c7bed0bee..f351b3e7c108 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 137c0b77f924..480bdfa2c5f6 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" 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 1d922fdd4513..b9f729bfb474 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" self.config = 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 35387303004e..3ad2e78c23b8 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: The API version to use for this operation. Constant value: "2020-03-01". + :ivar api_version: The API version to use for this operation. Constant value: "2020-04-01". """ 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 = "2020-03-01" + self.api_version = "2020-04-01" self.config = config diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/version.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/version.py index aeae719acfc3..eba31a2798cf 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/version.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.13.0" +VERSION = "0.14.0"