Skip to content

Commit

Permalink
[AutoRelease] t2-cosmosdb-2022-07-29-98207(Do not merge) (#25461)
Browse files Browse the repository at this point in the history
* code and test

* Update CHANGELOG.md

Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: zhenbiao wei <424401670@qq.com>
  • Loading branch information
azure-sdk and Wzb123456789 authored Aug 3, 2022
1 parent 35cc6e5 commit b8dac8c
Show file tree
Hide file tree
Showing 92 changed files with 22,411 additions and 6,214 deletions.
91 changes: 91 additions & 0 deletions sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,96 @@
# Release History

## 8.0.0b1 (2022-08-03)

**Features**

- Added operation CassandraClustersOperations.get_backup
- Added operation CassandraClustersOperations.list_backups
- Added operation CassandraResourcesOperations.begin_create_update_cassandra_view
- Added operation CassandraResourcesOperations.begin_delete_cassandra_view
- Added operation CassandraResourcesOperations.begin_migrate_cassandra_view_to_autoscale
- Added operation CassandraResourcesOperations.begin_migrate_cassandra_view_to_manual_throughput
- Added operation CassandraResourcesOperations.begin_update_cassandra_view_throughput
- Added operation CassandraResourcesOperations.get_cassandra_view
- Added operation CassandraResourcesOperations.get_cassandra_view_throughput
- Added operation CassandraResourcesOperations.list_cassandra_views
- Added operation GremlinResourcesOperations.begin_retrieve_continuous_backup_information
- Added operation MongoDBResourcesOperations.begin_create_update_mongo_role_definition
- Added operation MongoDBResourcesOperations.begin_create_update_mongo_user_definition
- Added operation MongoDBResourcesOperations.begin_delete_mongo_role_definition
- Added operation MongoDBResourcesOperations.begin_delete_mongo_user_definition
- Added operation MongoDBResourcesOperations.begin_list_mongo_db_collection_partition_merge
- Added operation MongoDBResourcesOperations.begin_mongo_db_container_redistribute_throughput
- Added operation MongoDBResourcesOperations.begin_mongo_db_container_retrieve_throughput_distribution
- Added operation MongoDBResourcesOperations.get_mongo_role_definition
- Added operation MongoDBResourcesOperations.get_mongo_user_definition
- Added operation MongoDBResourcesOperations.list_mongo_role_definitions
- Added operation MongoDBResourcesOperations.list_mongo_user_definitions
- Added operation SqlResourcesOperations.begin_create_update_client_encryption_key
- Added operation SqlResourcesOperations.begin_list_sql_container_partition_merge
- Added operation SqlResourcesOperations.begin_sql_container_redistribute_throughput
- Added operation SqlResourcesOperations.begin_sql_container_retrieve_throughput_distribution
- Added operation SqlResourcesOperations.get_client_encryption_key
- Added operation SqlResourcesOperations.list_client_encryption_keys
- Added operation TableResourcesOperations.begin_retrieve_continuous_backup_information
- Added operation group DataTransferJobsOperations
- Added operation group GraphResourcesOperations
- Added operation group RestorableGremlinDatabasesOperations
- Added operation group RestorableGremlinGraphsOperations
- Added operation group RestorableGremlinResourcesOperations
- Added operation group RestorableTableResourcesOperations
- Added operation group RestorableTablesOperations
- Model ARMResourceProperties has a new parameter identity
- Model CassandraKeyspaceCreateUpdateParameters has a new parameter identity
- Model CassandraKeyspaceGetResults has a new parameter identity
- Model CassandraTableCreateUpdateParameters has a new parameter identity
- Model CassandraTableGetResults has a new parameter identity
- Model ContinuousModeBackupPolicy has a new parameter continuous_mode_properties
- Model DataCenterResourceProperties has a new parameter authentication_method_ldap_properties
- Model DatabaseAccountCreateUpdateParameters has a new parameter diagnostic_log_settings
- Model DatabaseAccountCreateUpdateParameters has a new parameter enable_materialized_views
- Model DatabaseAccountCreateUpdateParameters has a new parameter keys_metadata
- Model DatabaseAccountGetResults has a new parameter diagnostic_log_settings
- Model DatabaseAccountGetResults has a new parameter enable_materialized_views
- Model DatabaseAccountGetResults has a new parameter keys_metadata
- Model DatabaseAccountUpdateParameters has a new parameter diagnostic_log_settings
- Model DatabaseAccountUpdateParameters has a new parameter enable_materialized_views
- Model DatabaseAccountUpdateParameters has a new parameter keys_metadata
- Model GremlinDatabaseCreateUpdateParameters has a new parameter identity
- Model GremlinDatabaseGetResults has a new parameter identity
- Model GremlinGraphCreateUpdateParameters has a new parameter identity
- Model GremlinGraphGetResults has a new parameter identity
- Model LocationProperties has a new parameter status
- Model MongoDBCollectionCreateUpdateParameters has a new parameter identity
- Model MongoDBCollectionGetResults has a new parameter identity
- Model MongoDBDatabaseCreateUpdateParameters has a new parameter identity
- Model MongoDBDatabaseGetResults has a new parameter identity
- Model RestorableDatabaseAccountGetResult has a new parameter oldest_restorable_time
- Model RestorableSqlContainerPropertiesResourceContainer has a new parameter client_encryption_policy
- Model RestoreParameters has a new parameter gremlin_databases_to_restore
- Model RestoreParameters has a new parameter tables_to_restore
- Model SqlContainerCreateUpdateParameters has a new parameter identity
- Model SqlContainerGetPropertiesResource has a new parameter client_encryption_policy
- Model SqlContainerGetResults has a new parameter identity
- Model SqlContainerResource has a new parameter client_encryption_policy
- Model SqlDatabaseCreateUpdateParameters has a new parameter identity
- Model SqlDatabaseGetResults has a new parameter identity
- Model SqlStoredProcedureCreateUpdateParameters has a new parameter identity
- Model SqlStoredProcedureGetResults has a new parameter identity
- Model SqlTriggerCreateUpdateParameters has a new parameter identity
- Model SqlTriggerGetResults has a new parameter identity
- Model SqlUserDefinedFunctionCreateUpdateParameters has a new parameter identity
- Model SqlUserDefinedFunctionGetResults has a new parameter identity
- Model TableCreateUpdateParameters has a new parameter identity
- Model TableGetResults has a new parameter identity
- Model ThroughputSettingsGetResults has a new parameter identity
- Model ThroughputSettingsUpdateParameters has a new parameter identity

**Breaking changes**

- Operation RestorableMongodbCollectionsOperations.list has a new parameter end_time
- Operation RestorableMongodbCollectionsOperations.list has a new parameter start_time

## 7.0.0 (2022-07-22)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-mgmt-cosmosdb/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure Cosmos DB Management Client Library.
This package has been tested with Python 3.6+.
This package has been tested with Python 3.7+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

## _Disclaimer_
Expand Down
4 changes: 2 additions & 2 deletions sdk/cosmos/azure-mgmt-cosmosdb/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/python@5.16.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "432872fac1d0f8edcae98a0e8504afc0ee302710",
"commit": "1dd79c416cdccde274113ec03b92b75069fad464",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --tag=package-2022-05 --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/cosmos-db/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class CosmosDBManagementClientConfiguration(Configuration): # pylint: disable=t
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-05-15". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2022-05-15-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

Expand All @@ -41,7 +41,7 @@ def __init__(
**kwargs: Any
) -> None:
super(CosmosDBManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2022-05-15") # type: str
api_version = kwargs.pop('api_version', "2022-05-15-preview") # type: str

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from . import models
from ._configuration import CosmosDBManagementClientConfiguration
from .operations import CassandraClustersOperations, CassandraDataCentersOperations, CassandraResourcesOperations, CollectionOperations, CollectionPartitionOperations, CollectionPartitionRegionOperations, CollectionRegionOperations, DatabaseAccountRegionOperations, DatabaseAccountsOperations, DatabaseOperations, GremlinResourcesOperations, LocationsOperations, MongoDBResourcesOperations, NotebookWorkspacesOperations, Operations, PartitionKeyRangeIdOperations, PartitionKeyRangeIdRegionOperations, PercentileOperations, PercentileSourceTargetOperations, PercentileTargetOperations, PrivateEndpointConnectionsOperations, PrivateLinkResourcesOperations, RestorableDatabaseAccountsOperations, RestorableMongodbCollectionsOperations, RestorableMongodbDatabasesOperations, RestorableMongodbResourcesOperations, RestorableSqlContainersOperations, RestorableSqlDatabasesOperations, RestorableSqlResourcesOperations, ServiceOperations, SqlResourcesOperations, TableResourcesOperations
from .operations import CassandraClustersOperations, CassandraDataCentersOperations, CassandraResourcesOperations, CollectionOperations, CollectionPartitionOperations, CollectionPartitionRegionOperations, CollectionRegionOperations, DataTransferJobsOperations, DatabaseAccountRegionOperations, DatabaseAccountsOperations, DatabaseOperations, GraphResourcesOperations, GremlinResourcesOperations, LocationsOperations, MongoDBResourcesOperations, NotebookWorkspacesOperations, Operations, PartitionKeyRangeIdOperations, PartitionKeyRangeIdRegionOperations, PercentileOperations, PercentileSourceTargetOperations, PercentileTargetOperations, PrivateEndpointConnectionsOperations, PrivateLinkResourcesOperations, RestorableDatabaseAccountsOperations, RestorableGremlinDatabasesOperations, RestorableGremlinGraphsOperations, RestorableGremlinResourcesOperations, RestorableMongodbCollectionsOperations, RestorableMongodbDatabasesOperations, RestorableMongodbResourcesOperations, RestorableSqlContainersOperations, RestorableSqlDatabasesOperations, RestorableSqlResourcesOperations, RestorableTableResourcesOperations, RestorableTablesOperations, ServiceOperations, SqlResourcesOperations, TableResourcesOperations

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
Expand Down Expand Up @@ -55,6 +55,8 @@ class CosmosDBManagementClient: # pylint: disable=too-many-instance-attribute
: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 @@ -67,6 +69,8 @@ class CosmosDBManagementClient: # pylint: disable=too-many-instance-attribute
:vartype gremlin_resources: azure.mgmt.cosmosdb.operations.GremlinResourcesOperations
:ivar locations: LocationsOperations operations
:vartype locations: azure.mgmt.cosmosdb.operations.LocationsOperations
:ivar data_transfer_jobs: DataTransferJobsOperations operations
:vartype data_transfer_jobs: azure.mgmt.cosmosdb.operations.DataTransferJobsOperations
:ivar cassandra_clusters: CassandraClustersOperations operations
:vartype cassandra_clusters: azure.mgmt.cosmosdb.operations.CassandraClustersOperations
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
Expand Down Expand Up @@ -99,6 +103,20 @@ class CosmosDBManagementClient: # pylint: disable=too-many-instance-attribute
:ivar restorable_mongodb_resources: RestorableMongodbResourcesOperations operations
:vartype restorable_mongodb_resources:
azure.mgmt.cosmosdb.operations.RestorableMongodbResourcesOperations
:ivar restorable_gremlin_databases: RestorableGremlinDatabasesOperations operations
:vartype restorable_gremlin_databases:
azure.mgmt.cosmosdb.operations.RestorableGremlinDatabasesOperations
:ivar restorable_gremlin_graphs: RestorableGremlinGraphsOperations operations
:vartype restorable_gremlin_graphs:
azure.mgmt.cosmosdb.operations.RestorableGremlinGraphsOperations
:ivar restorable_gremlin_resources: RestorableGremlinResourcesOperations operations
:vartype restorable_gremlin_resources:
azure.mgmt.cosmosdb.operations.RestorableGremlinResourcesOperations
:ivar restorable_tables: RestorableTablesOperations operations
:vartype restorable_tables: azure.mgmt.cosmosdb.operations.RestorableTablesOperations
:ivar restorable_table_resources: RestorableTableResourcesOperations operations
:vartype restorable_table_resources:
azure.mgmt.cosmosdb.operations.RestorableTableResourcesOperations
:ivar service: ServiceOperations operations
:vartype service: azure.mgmt.cosmosdb.operations.ServiceOperations
:param credential: Credential needed for the client to connect to Azure.
Expand All @@ -107,8 +125,8 @@ class CosmosDBManagementClient: # pylint: disable=too-many-instance-attribute
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2022-05-15". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2022-05-15-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -167,6 +185,9 @@ def __init__(
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
)
Expand All @@ -185,6 +206,9 @@ def __init__(
self.locations = LocationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.data_transfer_jobs = DataTransferJobsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.cassandra_clusters = CassandraClustersOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down Expand Up @@ -221,6 +245,21 @@ def __init__(
self.restorable_mongodb_resources = RestorableMongodbResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.restorable_gremlin_databases = RestorableGremlinDatabasesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.restorable_gremlin_graphs = RestorableGremlinGraphsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.restorable_gremlin_resources = RestorableGremlinResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.restorable_tables = RestorableTablesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.restorable_table_resources = RestorableTableResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.service = ServiceOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down
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.0"
VERSION = "8.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class CosmosDBManagementClientConfiguration(Configuration): # pylint: disable=t
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-05-15". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2022-05-15-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

Expand All @@ -41,7 +41,7 @@ def __init__(
**kwargs: Any
) -> None:
super(CosmosDBManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2022-05-15") # type: str
api_version = kwargs.pop('api_version', "2022-05-15-preview") # type: str

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Loading

0 comments on commit b8dac8c

Please sign in to comment.