Skip to content

Commit b10924c

Browse files
author
SDKAuto
committed
CodeGen from PR 33751 in Azure/azure-rest-api-specs
Merge 52db3e7e856ec61a00e0026a957286fbfb87739c into 9db97082212bc1bb0f428681766d69a9e8a7435d
1 parent b305dc7 commit b10924c

File tree

412 files changed

+10184
-38157
lines changed

Some content is hidden

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

412 files changed

+10184
-38157
lines changed

sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Release History
22

3+
## 9.8.0 (2025-04-15)
4+
5+
### Features Added
6+
7+
- Model `RestorableSqlContainerPropertiesResourceContainer` added property `full_text_policy`
8+
- Model `SqlContainerGetPropertiesResource` added property `full_text_policy`
9+
- Model `SqlContainerResource` added property `full_text_policy`
10+
- Added model `FullTextPath`
11+
- Added model `FullTextPolicy`
12+
313
## 10.0.0b5 (2024-12-23)
414

515
### Features Added

sdk/cosmos/azure-mgmt-cosmosdb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "4aad50a36767f7c36673f2c7982bb4055dbf5ed4",
2+
"commit": "54e2fa051779a091a31d804fce47087da5b23577",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.26.4",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.26.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ class CosmosDBManagementClientConfiguration: # pylint: disable=too-many-instanc
2525
2626
:param credential: Credential needed for the client to connect to Azure. Required.
2727
:type credential: ~azure.core.credentials.TokenCredential
28-
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
28+
:param subscription_id: The ID of the target subscription. Required.
2929
:type subscription_id: str
30-
:keyword api_version: Api Version. Default value is "2024-12-01-preview". Note that overriding
31-
this default value may result in unsupported behavior.
30+
:keyword api_version: Api Version. Default value is "2025-04-15". Note that overriding this
31+
default value may result in unsupported behavior.
3232
:paramtype api_version: str
3333
"""
3434

3535
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2024-12-01-preview")
36+
api_version: str = kwargs.pop("api_version", "2025-04-15")
3737

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

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

Lines changed: 4 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,16 @@
2222
CassandraClustersOperations,
2323
CassandraDataCentersOperations,
2424
CassandraResourcesOperations,
25-
ChaosFaultOperations,
2625
CollectionOperations,
2726
CollectionPartitionOperations,
2827
CollectionPartitionRegionOperations,
2928
CollectionRegionOperations,
30-
DataTransferJobsOperations,
3129
DatabaseAccountRegionOperations,
3230
DatabaseAccountsOperations,
3331
DatabaseOperations,
34-
GraphResourcesOperations,
3532
GremlinResourcesOperations,
3633
LocationsOperations,
3734
MongoDBResourcesOperations,
38-
NetworkSecurityPerimeterConfigurationsOperations,
3935
NotebookWorkspacesOperations,
4036
Operations,
4137
PartitionKeyRangeIdOperations,
@@ -60,21 +56,15 @@
6056
ServiceOperations,
6157
SqlResourcesOperations,
6258
TableResourcesOperations,
63-
ThroughputPoolAccountOperations,
64-
ThroughputPoolAccountsOperations,
65-
ThroughputPoolOperations,
66-
ThroughputPoolsOperations,
6759
)
6860

6961
if TYPE_CHECKING:
7062
from azure.core.credentials import TokenCredential
7163

7264

7365
class CosmosDBManagementClient: # pylint: disable=too-many-instance-attributes
74-
"""Azure Cosmos DB Chaos Fault REST API.
66+
"""Azure Cosmos DB Database Service Resource Provider REST API.
7567
76-
:ivar chaos_fault: ChaosFaultOperations operations
77-
:vartype chaos_fault: azure.mgmt.cosmosdb.operations.ChaosFaultOperations
7868
:ivar database_accounts: DatabaseAccountsOperations operations
7969
:vartype database_accounts: azure.mgmt.cosmosdb.operations.DatabaseAccountsOperations
8070
:ivar operations: Operations operations
@@ -105,8 +95,6 @@ class CosmosDBManagementClient: # pylint: disable=too-many-instance-attributes
10595
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegionOperations operations
10696
:vartype partition_key_range_id_region:
10797
azure.mgmt.cosmosdb.operations.PartitionKeyRangeIdRegionOperations
108-
:ivar graph_resources: GraphResourcesOperations operations
109-
:vartype graph_resources: azure.mgmt.cosmosdb.operations.GraphResourcesOperations
11098
:ivar sql_resources: SqlResourcesOperations operations
11199
:vartype sql_resources: azure.mgmt.cosmosdb.operations.SqlResourcesOperations
112100
:ivar mongo_db_resources: MongoDBResourcesOperations operations
@@ -119,16 +107,10 @@ class CosmosDBManagementClient: # pylint: disable=too-many-instance-attributes
119107
:vartype gremlin_resources: azure.mgmt.cosmosdb.operations.GremlinResourcesOperations
120108
:ivar locations: LocationsOperations operations
121109
:vartype locations: azure.mgmt.cosmosdb.operations.LocationsOperations
122-
:ivar data_transfer_jobs: DataTransferJobsOperations operations
123-
:vartype data_transfer_jobs: azure.mgmt.cosmosdb.operations.DataTransferJobsOperations
124110
:ivar cassandra_clusters: CassandraClustersOperations operations
125111
:vartype cassandra_clusters: azure.mgmt.cosmosdb.operations.CassandraClustersOperations
126112
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
127113
:vartype cassandra_data_centers: azure.mgmt.cosmosdb.operations.CassandraDataCentersOperations
128-
:ivar network_security_perimeter_configurations:
129-
NetworkSecurityPerimeterConfigurationsOperations operations
130-
:vartype network_security_perimeter_configurations:
131-
azure.mgmt.cosmosdb.operations.NetworkSecurityPerimeterConfigurationsOperations
132114
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
133115
:vartype notebook_workspaces: azure.mgmt.cosmosdb.operations.NotebookWorkspacesOperations
134116
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
@@ -173,24 +155,14 @@ class CosmosDBManagementClient: # pylint: disable=too-many-instance-attributes
173155
azure.mgmt.cosmosdb.operations.RestorableTableResourcesOperations
174156
:ivar service: ServiceOperations operations
175157
:vartype service: azure.mgmt.cosmosdb.operations.ServiceOperations
176-
:ivar throughput_pools: ThroughputPoolsOperations operations
177-
:vartype throughput_pools: azure.mgmt.cosmosdb.operations.ThroughputPoolsOperations
178-
:ivar throughput_pool: ThroughputPoolOperations operations
179-
:vartype throughput_pool: azure.mgmt.cosmosdb.operations.ThroughputPoolOperations
180-
:ivar throughput_pool_accounts: ThroughputPoolAccountsOperations operations
181-
:vartype throughput_pool_accounts:
182-
azure.mgmt.cosmosdb.operations.ThroughputPoolAccountsOperations
183-
:ivar throughput_pool_account: ThroughputPoolAccountOperations operations
184-
:vartype throughput_pool_account:
185-
azure.mgmt.cosmosdb.operations.ThroughputPoolAccountOperations
186158
:param credential: Credential needed for the client to connect to Azure. Required.
187159
:type credential: ~azure.core.credentials.TokenCredential
188-
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
160+
:param subscription_id: The ID of the target subscription. Required.
189161
:type subscription_id: str
190162
:param base_url: Service URL. Default value is "https://management.azure.com".
191163
:type base_url: str
192-
:keyword api_version: Api Version. Default value is "2024-12-01-preview". Note that overriding
193-
this default value may result in unsupported behavior.
164+
:keyword api_version: Api Version. Default value is "2025-04-15". Note that overriding this
165+
default value may result in unsupported behavior.
194166
:paramtype api_version: str
195167
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
196168
Retry-After header is present.
@@ -230,7 +202,6 @@ def __init__(
230202
self._serialize = Serializer(client_models)
231203
self._deserialize = Deserializer(client_models)
232204
self._serialize.client_side_validation = False
233-
self.chaos_fault = ChaosFaultOperations(self._client, self._config, self._serialize, self._deserialize)
234205
self.database_accounts = DatabaseAccountsOperations(
235206
self._client, self._config, self._serialize, self._deserialize
236207
)
@@ -262,7 +233,6 @@ def __init__(
262233
self.partition_key_range_id_region = PartitionKeyRangeIdRegionOperations(
263234
self._client, self._config, self._serialize, self._deserialize
264235
)
265-
self.graph_resources = GraphResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
266236
self.sql_resources = SqlResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
267237
self.mongo_db_resources = MongoDBResourcesOperations(
268238
self._client, self._config, self._serialize, self._deserialize
@@ -275,18 +245,12 @@ def __init__(
275245
self._client, self._config, self._serialize, self._deserialize
276246
)
277247
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
278-
self.data_transfer_jobs = DataTransferJobsOperations(
279-
self._client, self._config, self._serialize, self._deserialize
280-
)
281248
self.cassandra_clusters = CassandraClustersOperations(
282249
self._client, self._config, self._serialize, self._deserialize
283250
)
284251
self.cassandra_data_centers = CassandraDataCentersOperations(
285252
self._client, self._config, self._serialize, self._deserialize
286253
)
287-
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
288-
self._client, self._config, self._serialize, self._deserialize
289-
)
290254
self.notebook_workspaces = NotebookWorkspacesOperations(
291255
self._client, self._config, self._serialize, self._deserialize
292256
)
@@ -333,16 +297,6 @@ def __init__(
333297
self._client, self._config, self._serialize, self._deserialize
334298
)
335299
self.service = ServiceOperations(self._client, self._config, self._serialize, self._deserialize)
336-
self.throughput_pools = ThroughputPoolsOperations(
337-
self._client, self._config, self._serialize, self._deserialize
338-
)
339-
self.throughput_pool = ThroughputPoolOperations(self._client, self._config, self._serialize, self._deserialize)
340-
self.throughput_pool_accounts = ThroughputPoolAccountsOperations(
341-
self._client, self._config, self._serialize, self._deserialize
342-
)
343-
self.throughput_pool_account = ThroughputPoolAccountOperations(
344-
self._client, self._config, self._serialize, self._deserialize
345-
)
346300

347301
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
348302
"""Runs the network request through the client's chained policies.

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def _create_xml_node(tag, prefix=None, ns=None):
310310
return ET.Element(tag)
311311

312312

313-
class Model(object):
313+
class Model:
314314
"""Mixin for all client request body/response body models to support
315315
serialization and deserialization.
316316
"""
@@ -563,7 +563,7 @@ def _decode_attribute_map_key(key):
563563
return key.replace("\\.", ".")
564564

565565

566-
class Serializer(object): # pylint: disable=too-many-public-methods
566+
class Serializer: # pylint: disable=too-many-public-methods
567567
"""Request object model serializer."""
568568

569569
basic_types = {str: "str", int: "int", bool: "bool", float: "float"}
@@ -1441,7 +1441,7 @@ def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument
14411441
return children[0]
14421442

14431443

1444-
class Deserializer(object):
1444+
class Deserializer:
14451445
"""Response object model deserializer.
14461446
14471447
:param dict classes: Class type dictionary for deserializing complex types.
@@ -1683,17 +1683,21 @@ def _instantiate_model(self, response, attrs, additional_properties=None):
16831683
subtype = getattr(response, "_subtype_map", {})
16841684
try:
16851685
readonly = [
1686-
k for k, v in response._validation.items() if v.get("readonly") # pylint: disable=protected-access
1686+
k
1687+
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
1688+
if v.get("readonly")
16871689
]
16881690
const = [
1689-
k for k, v in response._validation.items() if v.get("constant") # pylint: disable=protected-access
1691+
k
1692+
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
1693+
if v.get("constant")
16901694
]
16911695
kwargs = {k: v for k, v in attrs.items() if k not in subtype and k not in readonly + const}
16921696
response_obj = response(**kwargs)
16931697
for attr in readonly:
16941698
setattr(response_obj, attr, attrs.get(attr))
16951699
if additional_properties:
1696-
response_obj.additional_properties = additional_properties
1700+
response_obj.additional_properties = additional_properties # type: ignore
16971701
return response_obj
16981702
except TypeError as err:
16991703
msg = "Unable to deserialize {} into model {}. ".format(kwargs, response) # type: ignore

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 = "10.0.0b5"
9+
VERSION = "9.8.0"

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ class CosmosDBManagementClientConfiguration: # pylint: disable=too-many-instanc
2525
2626
:param credential: Credential needed for the client to connect to Azure. Required.
2727
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
28-
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
28+
:param subscription_id: The ID of the target subscription. Required.
2929
:type subscription_id: str
30-
:keyword api_version: Api Version. Default value is "2024-12-01-preview". Note that overriding
31-
this default value may result in unsupported behavior.
30+
:keyword api_version: Api Version. Default value is "2025-04-15". Note that overriding this
31+
default value may result in unsupported behavior.
3232
:paramtype api_version: str
3333
"""
3434

3535
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2024-12-01-preview")
36+
api_version: str = kwargs.pop("api_version", "2025-04-15")
3737

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

0 commit comments

Comments
 (0)