Skip to content

Commit 14eee62

Browse files
author
SDKAuto
committed
CodeGen from PR 23191 in Azure/azure-rest-api-specs
Merge 104bb8a3c125ff535292c4f796c75a08c0f1f909 into 543f1920ac96303cc244d60e1c12f0b56fc646db
1 parent 581864a commit 14eee62

File tree

336 files changed

+7673
-1850
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+7673
-1850
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "1e7b408f3323e7f5424745718fe62c7a043a2337",
2+
"commit": "3ab11e37660ba01b35cd2735b5a1b4a6dbb5f1e0",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/[email protected].0",
6+
"@autorest/[email protected].3",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected].0 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected].3 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/cosmos-db/resource-manager/readme.md"
1111
}

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ class CosmosDBManagementClientConfiguration(Configuration): # pylint: disable=t
3535
:type credential: ~azure.core.credentials.TokenCredential
3636
:param subscription_id: The ID of the target subscription. Required.
3737
:type subscription_id: str
38-
:keyword api_version: Api Version. Default value is "2022-11-15-preview". Note that overriding
38+
:keyword api_version: Api Version. Default value is "2023-03-01-preview". Note that overriding
3939
this default value may result in unsupported behavior.
4040
:paramtype api_version: str
4141
"""
4242

4343
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4444
super(CosmosDBManagementClientConfiguration, self).__init__(**kwargs)
45-
api_version: Literal["2022-11-15-preview"] = kwargs.pop("api_version", "2022-11-15-preview")
45+
api_version: Literal["2023-03-01-preview"] = kwargs.pop("api_version", "2023-03-01-preview")
4646

4747
if credential is None:
4848
raise ValueError("Parameter 'credential' must not be None.")

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db_management_client.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
GraphResourcesOperations,
3131
GremlinResourcesOperations,
3232
LocationsOperations,
33+
MongoClustersOperations,
3334
MongoDBResourcesOperations,
3435
NotebookWorkspacesOperations,
3536
Operations,
@@ -115,6 +116,8 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
115116
:vartype cassandra_clusters: azure.mgmt.cosmosdb.operations.CassandraClustersOperations
116117
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
117118
:vartype cassandra_data_centers: azure.mgmt.cosmosdb.operations.CassandraDataCentersOperations
119+
:ivar mongo_clusters: MongoClustersOperations operations
120+
:vartype mongo_clusters: azure.mgmt.cosmosdb.operations.MongoClustersOperations
118121
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
119122
:vartype notebook_workspaces: azure.mgmt.cosmosdb.operations.NotebookWorkspacesOperations
120123
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
@@ -165,7 +168,7 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
165168
:type subscription_id: str
166169
:param base_url: Service URL. Default value is "https://management.azure.com".
167170
:type base_url: str
168-
:keyword api_version: Api Version. Default value is "2022-11-15-preview". Note that overriding
171+
:keyword api_version: Api Version. Default value is "2023-03-01-preview". Note that overriding
169172
this default value may result in unsupported behavior.
170173
:paramtype api_version: str
171174
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -182,7 +185,7 @@ def __init__(
182185
self._config = CosmosDBManagementClientConfiguration(
183186
credential=credential, subscription_id=subscription_id, **kwargs
184187
)
185-
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
188+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
186189

187190
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
188191
self._serialize = Serializer(client_models)
@@ -241,6 +244,7 @@ def __init__(
241244
self.cassandra_data_centers = CassandraDataCentersOperations(
242245
self._client, self._config, self._serialize, self._deserialize
243246
)
247+
self.mongo_clusters = MongoClustersOperations(self._client, self._config, self._serialize, self._deserialize)
244248
self.notebook_workspaces = NotebookWorkspacesOperations(
245249
self._client, self._config, self._serialize, self._deserialize
246250
)

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "9.1.0b1"
9+
VERSION = "0.7.0"

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ class CosmosDBManagementClientConfiguration(Configuration): # pylint: disable=t
3535
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3636
:param subscription_id: The ID of the target subscription. Required.
3737
:type subscription_id: str
38-
:keyword api_version: Api Version. Default value is "2022-11-15-preview". Note that overriding
38+
:keyword api_version: Api Version. Default value is "2023-03-01-preview". Note that overriding
3939
this default value may result in unsupported behavior.
4040
:paramtype api_version: str
4141
"""
4242

4343
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
4444
super(CosmosDBManagementClientConfiguration, self).__init__(**kwargs)
45-
api_version: Literal["2022-11-15-preview"] = kwargs.pop("api_version", "2022-11-15-preview")
45+
api_version: Literal["2023-03-01-preview"] = kwargs.pop("api_version", "2023-03-01-preview")
4646

4747
if credential is None:
4848
raise ValueError("Parameter 'credential' must not be None.")

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/_cosmos_db_management_client.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
GraphResourcesOperations,
3131
GremlinResourcesOperations,
3232
LocationsOperations,
33+
MongoClustersOperations,
3334
MongoDBResourcesOperations,
3435
NotebookWorkspacesOperations,
3536
Operations,
@@ -117,6 +118,8 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
117118
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
118119
:vartype cassandra_data_centers:
119120
azure.mgmt.cosmosdb.aio.operations.CassandraDataCentersOperations
121+
:ivar mongo_clusters: MongoClustersOperations operations
122+
:vartype mongo_clusters: azure.mgmt.cosmosdb.aio.operations.MongoClustersOperations
120123
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
121124
:vartype notebook_workspaces: azure.mgmt.cosmosdb.aio.operations.NotebookWorkspacesOperations
122125
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
@@ -168,7 +171,7 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
168171
:type subscription_id: str
169172
:param base_url: Service URL. Default value is "https://management.azure.com".
170173
:type base_url: str
171-
:keyword api_version: Api Version. Default value is "2022-11-15-preview". Note that overriding
174+
:keyword api_version: Api Version. Default value is "2023-03-01-preview". Note that overriding
172175
this default value may result in unsupported behavior.
173176
:paramtype api_version: str
174177
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -185,7 +188,7 @@ def __init__(
185188
self._config = CosmosDBManagementClientConfiguration(
186189
credential=credential, subscription_id=subscription_id, **kwargs
187190
)
188-
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
191+
self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
189192

190193
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
191194
self._serialize = Serializer(client_models)
@@ -244,6 +247,7 @@ def __init__(
244247
self.cassandra_data_centers = CassandraDataCentersOperations(
245248
self._client, self._config, self._serialize, self._deserialize
246249
)
250+
self.mongo_clusters = MongoClustersOperations(self._client, self._config, self._serialize, self._deserialize)
247251
self.notebook_workspaces = NotebookWorkspacesOperations(
248252
self._client, self._config, self._serialize, self._deserialize
249253
)

sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from ._data_transfer_jobs_operations import DataTransferJobsOperations
3030
from ._cassandra_clusters_operations import CassandraClustersOperations
3131
from ._cassandra_data_centers_operations import CassandraDataCentersOperations
32+
from ._mongo_clusters_operations import MongoClustersOperations
3233
from ._notebook_workspaces_operations import NotebookWorkspacesOperations
3334
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
3435
from ._private_link_resources_operations import PrivateLinkResourcesOperations
@@ -74,6 +75,7 @@
7475
"DataTransferJobsOperations",
7576
"CassandraClustersOperations",
7677
"CassandraDataCentersOperations",
78+
"MongoClustersOperations",
7779
"NotebookWorkspacesOperations",
7880
"PrivateEndpointConnectionsOperations",
7981
"PrivateLinkResourcesOperations",

0 commit comments

Comments
 (0)