Skip to content

Commit

Permalink
[AutoRelease] t2-cosmosdb-2021-10-26-16894 (#21412)
Browse files Browse the repository at this point in the history
* CodeGen from PR 15733 in Azure/azure-rest-api-specs
[Hub Generated] Review request for Microsoft.DocumentDB to add version stable/2021-10-15 (#15733)

* Adds base for updating Microsoft.DocumentDB from version stable/2021-06-15 to version 2021-09-15

* Updates readme

* Updates API version in new specs and examples

* Add support for fetching continuous backup information for latest restorable timestamp.

* Adding locations API and backupRedundancy

* Fixing ref

* Add 10-15 Preview along with ClientEncryptionKey management changes

* Renaming 2021-09-15 api version to 2021-10-15

* Fixing some more renames

* fix validation checks

* add clientencryptionkeys to custom-words

* initial commit

* Swagger specifiations

* readme file updated

* Review comments addressed

* Added TotalThroughputLimit property to Database Create and Update

* Rebased and added type to capacity

* Added changes to preview folder as well

* Added changes to missing files

* initial checkin of base version

* Adding examples; /deallocate and /start api in swagger

* update readme.md file

* Removing 2021-10-15-preview changes

* managed cassandra swagger changes for GA

* Fixing linter issues

* minor description fixes

* adding missing example

* add stable and preview swagger

* revert to Thu Sep 9 2021 change

* fix linter errors in swagger

* fix validation errors

* validation fixes

* remove fetchNodeStatus from stable

* remove unused example file, fix validation error

* Fixing the spell check and formatting issues

* remove /repair api, make /command async

* remove unreferrenced example json

* remove pageable link from /status api

* remove backups api, add cassandraAuditLoggingEnabled property

* add cassandraAuditLoggingEnabled property

* make /status api async, minor fixes

* remove async tag to /status

* remove connectivity property, add Ldap as preview

* remove unreferenced example files

* use guid in subid for examples

* add backupStorageCustomerKeyUri property

* fix api response code

* remove ldap

* Changing operationId for locations API

* review comments

Co-authored-by: REDMOND\amisi <amisi@microsoft.com>
Co-authored-by: Anuj Toshniwal <antoshni@microsoft.com>
Co-authored-by: Abhijit Karanjkar <abhijitkaranjkar@gmail.com>
Co-authored-by: Praful Johari <pjohari@microsoft.com>
Co-authored-by: visunda <visunda@microsoft.com>
Co-authored-by: Vivek Sundararajan <s.vivek.rajan@gmail.com>
Co-authored-by: vivek-microsoft <32766101+vivek-microsoft@users.noreply.github.com>

* version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: REDMOND\amisi <amisi@microsoft.com>
Co-authored-by: Anuj Toshniwal <antoshni@microsoft.com>
Co-authored-by: Abhijit Karanjkar <abhijitkaranjkar@gmail.com>
Co-authored-by: Praful Johari <pjohari@microsoft.com>
Co-authored-by: visunda <visunda@microsoft.com>
Co-authored-by: Vivek Sundararajan <s.vivek.rajan@gmail.com>
Co-authored-by: vivek-microsoft <32766101+vivek-microsoft@users.noreply.github.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
  • Loading branch information
9 people authored Oct 26, 2021
1 parent 2e92f43 commit 84a9eb6
Show file tree
Hide file tree
Showing 76 changed files with 2,586 additions and 6,157 deletions.
71 changes: 71 additions & 0 deletions sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,76 @@
# Release History

## 7.0.0b2 (2021-10-26)

**Features**

- Model DataCenterResourceProperties has a new parameter disk_capacity
- Model DataCenterResourceProperties has a new parameter disk_sku
- Model DataCenterResourceProperties has a new parameter managed_disk_customer_key_uri
- Model DataCenterResourceProperties has a new parameter sku
- Model DataCenterResourceProperties has a new parameter availability_zone
- Model DataCenterResourceProperties has a new parameter backup_storage_customer_key_uri
- Model DatabaseAccountCreateUpdateParameters has a new parameter capacity
- Model DatabaseAccountUpdateParameters has a new parameter capacity
- Model ClusterResourceProperties has a new parameter cassandra_audit_logging_enabled
- Model ClusterResourceProperties has a new parameter deallocated
- Model DatabaseAccountGetResults has a new parameter capacity
- Added operation MongoDBResourcesOperations.begin_retrieve_continuous_backup_information
- Added operation CassandraClustersOperations.begin_invoke_command
- Added operation CassandraClustersOperations.begin_start
- Added operation CassandraClustersOperations.begin_deallocate
- Added operation CassandraClustersOperations.status
- Added operation group LocationsOperations

**Breaking changes**

- Model MongoDBDatabaseGetResults no longer has parameter identity
- Model MongoDBDatabaseCreateUpdateParameters no longer has parameter identity
- Model SqlContainerGetResults no longer has parameter identity
- Model SqlUserDefinedFunctionGetResults no longer has parameter identity
- Model GremlinDatabaseGetResults no longer has parameter identity
- Model SqlTriggerCreateUpdateParameters no longer has parameter identity
- Model SqlContainerCreateUpdateParameters no longer has parameter identity
- Model SqlDatabaseCreateUpdateParameters no longer has parameter identity
- Model LocationProperties no longer has parameter status
- Model DatabaseAccountCreateUpdateParameters no longer has parameter diagnostic_log_settings
- Model ThroughputSettingsGetResults no longer has parameter identity
- Model DatabaseAccountUpdateParameters no longer has parameter diagnostic_log_settings
- Model ARMResourceProperties no longer has parameter identity
- Model CassandraTableGetResults no longer has parameter identity
- Model GremlinGraphGetResults no longer has parameter identity
- Model CassandraKeyspaceCreateUpdateParameters no longer has parameter identity
- Model GremlinDatabaseCreateUpdateParameters no longer has parameter identity
- Model SqlTriggerGetResults no longer has parameter identity
- Model GremlinGraphCreateUpdateParameters no longer has parameter identity
- Model MongoDBCollectionGetResults no longer has parameter identity
- Model TableGetResults no longer has parameter identity
- Model CassandraKeyspaceGetResults no longer has parameter identity
- Model MongoDBCollectionCreateUpdateParameters no longer has parameter identity
- Model SqlStoredProcedureGetResults no longer has parameter identity
- Model SqlStoredProcedureCreateUpdateParameters no longer has parameter identity
- Model ThroughputSettingsUpdateParameters no longer has parameter identity
- Model SqlUserDefinedFunctionCreateUpdateParameters no longer has parameter identity
- Model TableCreateUpdateParameters no longer has parameter identity
- Model DatabaseAccountGetResults no longer has parameter diagnostic_log_settings
- Model SqlDatabaseGetResults no longer has parameter identity
- Model CassandraTableCreateUpdateParameters no longer has parameter identity
- Removed operation CassandraResourcesOperations.begin_create_update_cassandra_view
- Removed operation CassandraResourcesOperations.get_cassandra_view
- Removed operation CassandraResourcesOperations.list_cassandra_views
- Removed operation CassandraResourcesOperations.begin_migrate_cassandra_view_to_autoscale
- Removed operation CassandraResourcesOperations.begin_update_cassandra_view_throughput
- Removed operation CassandraResourcesOperations.get_cassandra_view_throughput
- Removed operation CassandraResourcesOperations.begin_delete_cassandra_view
- Removed operation CassandraResourcesOperations.begin_migrate_cassandra_view_to_manual_throughput
- Removed operation CassandraClustersOperations.begin_request_repair
- Removed operation CassandraClustersOperations.begin_fetch_node_status
- Removed operation CassandraClustersOperations.get_backup
- Removed operation CassandraClustersOperations.list_backups
- Removed operation group ServiceOperations
- Removed operation group CosmosDBManagementClientOperationsMixin
- Removed operation group GraphResourcesOperations

## 7.0.0b1 (2021-09-17)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-mgmt-cosmosdb/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "f7bdc95b45115dd1d5d7aec82d1b88ea17a938a7",
"commit": "a87e536b2060dfe47c4d2bbf24a7f32d67944f9c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/cosmos-db/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-07-01-preview"
self.api_version = "2021-10-15"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-cosmosdb/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@
from .operations import CollectionPartitionOperations
from .operations import PartitionKeyRangeIdOperations
from .operations import PartitionKeyRangeIdRegionOperations
from .operations import GraphResourcesOperations
from .operations import SqlResourcesOperations
from .operations import MongoDBResourcesOperations
from .operations import TableResourcesOperations
from .operations import CassandraResourcesOperations
from .operations import GremlinResourcesOperations
from .operations import CosmosDBManagementClientOperationsMixin
from .operations import LocationsOperations
from .operations import NotebookWorkspacesOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
Expand All @@ -51,11 +50,10 @@
from .operations import RestorableMongodbResourcesOperations
from .operations import CassandraClustersOperations
from .operations import CassandraDataCentersOperations
from .operations import ServiceOperations
from . import models


class CosmosDBManagementClient(CosmosDBManagementClientOperationsMixin):
class CosmosDBManagementClient(object):
"""Azure Cosmos DB Database Service Resource Provider REST API.
:ivar database_accounts: DatabaseAccountsOperations operations
Expand Down Expand Up @@ -84,8 +82,6 @@ class CosmosDBManagementClient(CosmosDBManagementClientOperationsMixin):
:vartype partition_key_range_id: azure.mgmt.cosmosdb.operations.PartitionKeyRangeIdOperations
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegionOperations operations
:vartype partition_key_range_id_region: azure.mgmt.cosmosdb.operations.PartitionKeyRangeIdRegionOperations
:ivar graph_resources: GraphResourcesOperations operations
:vartype graph_resources: azure.mgmt.cosmosdb.operations.GraphResourcesOperations
:ivar sql_resources: SqlResourcesOperations operations
:vartype sql_resources: azure.mgmt.cosmosdb.operations.SqlResourcesOperations
:ivar mongo_db_resources: MongoDBResourcesOperations operations
Expand All @@ -96,6 +92,8 @@ class CosmosDBManagementClient(CosmosDBManagementClientOperationsMixin):
:vartype cassandra_resources: azure.mgmt.cosmosdb.operations.CassandraResourcesOperations
:ivar gremlin_resources: GremlinResourcesOperations operations
:vartype gremlin_resources: azure.mgmt.cosmosdb.operations.GremlinResourcesOperations
:ivar locations: LocationsOperations operations
:vartype locations: azure.mgmt.cosmosdb.operations.LocationsOperations
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
:vartype notebook_workspaces: azure.mgmt.cosmosdb.operations.NotebookWorkspacesOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
Expand All @@ -120,8 +118,6 @@ class CosmosDBManagementClient(CosmosDBManagementClientOperationsMixin):
:vartype cassandra_clusters: azure.mgmt.cosmosdb.operations.CassandraClustersOperations
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
:vartype cassandra_data_centers: azure.mgmt.cosmosdb.operations.CassandraDataCentersOperations
:ivar service: ServiceOperations operations
:vartype service: azure.mgmt.cosmosdb.operations.ServiceOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
Expand Down Expand Up @@ -174,8 +170,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.partition_key_range_id_region = PartitionKeyRangeIdRegionOperations(
self._client, self._config, self._serialize, self._deserialize)
self.graph_resources = GraphResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.sql_resources = SqlResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.mongo_db_resources = MongoDBResourcesOperations(
Expand All @@ -186,6 +180,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.gremlin_resources = GremlinResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.locations = LocationsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.notebook_workspaces = NotebookWorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
Expand All @@ -210,8 +206,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.cassandra_data_centers = CassandraDataCentersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.service = ServiceOperations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
# type: (HttpRequest, Any) -> HttpResponse
Expand Down
43 changes: 6 additions & 37 deletions sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-07-01-preview",
"total_api_version_list": ["2021-07-01-preview"],
"chosen_version": "2021-10-15",
"total_api_version_list": ["2021-10-15"],
"client": {
"name": "CosmosDBManagementClient",
"filename": "_cosmos_db_management_client",
Expand All @@ -10,8 +10,8 @@
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false,
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"CosmosDBManagementClientConfiguration\"], \"._operations_mixin\": [\"CosmosDBManagementClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"CosmosDBManagementClientConfiguration\"], \"._operations_mixin\": [\"CosmosDBManagementClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"CosmosDBManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"CosmosDBManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
},
"global_parameters": {
"sync": {
Expand Down Expand Up @@ -111,12 +111,12 @@
"collection_partition": "CollectionPartitionOperations",
"partition_key_range_id": "PartitionKeyRangeIdOperations",
"partition_key_range_id_region": "PartitionKeyRangeIdRegionOperations",
"graph_resources": "GraphResourcesOperations",
"sql_resources": "SqlResourcesOperations",
"mongo_db_resources": "MongoDBResourcesOperations",
"table_resources": "TableResourcesOperations",
"cassandra_resources": "CassandraResourcesOperations",
"gremlin_resources": "GremlinResourcesOperations",
"locations": "LocationsOperations",
"notebook_workspaces": "NotebookWorkspacesOperations",
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
"private_link_resources": "PrivateLinkResourcesOperations",
Expand All @@ -128,37 +128,6 @@
"restorable_mongodb_collections": "RestorableMongodbCollectionsOperations",
"restorable_mongodb_resources": "RestorableMongodbResourcesOperations",
"cassandra_clusters": "CassandraClustersOperations",
"cassandra_data_centers": "CassandraDataCentersOperations",
"service": "ServiceOperations"
},
"operation_mixins": {
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"], \"azure.core.paging\": [\"ItemPaged\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"Iterable\", \"Optional\", \"TypeVar\"]}}}",
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"], \"azure.core.async_paging\": [\"AsyncItemPaged\", \"AsyncList\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"AsyncIterable\", \"Callable\", \"Dict\", \"Generic\", \"Optional\", \"TypeVar\"]}}}",
"operations": {
"location_list" : {
"sync": {
"signature": "def location_list(\n self,\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"List Cosmos DB locations and their properties.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either LocationListResult or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.cosmosdb.models.LocationListResult]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": false,
"signature": "def location_list(\n self,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.LocationListResult\"]:\n",
"doc": "\"\"\"List Cosmos DB locations and their properties.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either LocationListResult or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.cosmosdb.models.LocationListResult]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": ""
},
"location_get" : {
"sync": {
"signature": "def location_get(\n self,\n location, # type: str\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Get the properties of an existing Cosmos DB location.\n\n:param location: Cosmos DB region, with spaces between words and each word capitalized.\n:type location: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: LocationGetResult, or the result of cls(response)\n:rtype: ~azure.mgmt.cosmosdb.models.LocationGetResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def location_get(\n self,\n location: str,\n **kwargs: Any\n) -\u003e \"_models.LocationGetResult\":\n",
"doc": "\"\"\"Get the properties of an existing Cosmos DB location.\n\n:param location: Cosmos DB region, with spaces between words and each word capitalized.\n:type location: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: LocationGetResult, or the result of cls(response)\n:rtype: ~azure.mgmt.cosmosdb.models.LocationGetResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "location"
}
}
"cassandra_data_centers": "CassandraDataCentersOperations"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "7.0.0b1"
VERSION = "7.0.0b2"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-07-01-preview"
self.api_version = "2021-10-15"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-cosmosdb/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Loading

0 comments on commit 84a9eb6

Please sign in to comment.