Skip to content

[AutoRelease] t2-cosmosdb-2024-11-14-60943(can only be merged by SDK owner) #38531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Release History

## 9.7.0 (2024-11-18)

### Features Added

- Model `DatabaseAccountCreateUpdateParameters` added property `enable_per_region_per_partition_autoscale`
- Model `DatabaseAccountGetResults` added property `enable_per_region_per_partition_autoscale`
- Model `DatabaseAccountUpdateParameters` added property `enable_per_region_per_partition_autoscale`
- Model `IndexingPolicy` added property `vector_indexes`
- Model `RestorableSqlContainerPropertiesResourceContainer` added property `vector_embedding_policy`
- Model `SqlContainerGetPropertiesResource` added property `vector_embedding_policy`
- Model `SqlContainerResource` added property `vector_embedding_policy`
- Added enum `DistanceFunction`
- Added enum `VectorDataType`
- Added model `VectorEmbedding`
- Added model `VectorEmbeddingPolicy`
- Added model `VectorIndex`
- Added enum `VectorIndexType`

## 10.0.0b4 (2024-09-23)

### Features Added
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
@@ -1,11 +1,11 @@
{
"commit": "b72e0199fa3242d64b0b49f38e71586066a8c048",
"commit": "00d50cba07376c494f3b50647b847cd4ba348a04",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"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=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"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/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/cosmos-db/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class CosmosDBManagementClientConfiguration: # pylint: disable=too-many-instanc
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-11-15". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-09-01-preview")
api_version: str = kwargs.pop("api_version", "2024-11-15")

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 @@ -22,20 +22,16 @@
CassandraClustersOperations,
CassandraDataCentersOperations,
CassandraResourcesOperations,
ChaosFaultOperations,
CollectionOperations,
CollectionPartitionOperations,
CollectionPartitionRegionOperations,
CollectionRegionOperations,
DataTransferJobsOperations,
DatabaseAccountRegionOperations,
DatabaseAccountsOperations,
DatabaseOperations,
GraphResourcesOperations,
GremlinResourcesOperations,
LocationsOperations,
MongoDBResourcesOperations,
NetworkSecurityPerimeterConfigurationsOperations,
NotebookWorkspacesOperations,
Operations,
PartitionKeyRangeIdOperations,
Expand All @@ -60,10 +56,6 @@
ServiceOperations,
SqlResourcesOperations,
TableResourcesOperations,
ThroughputPoolAccountOperations,
ThroughputPoolAccountsOperations,
ThroughputPoolOperations,
ThroughputPoolsOperations,
)

if TYPE_CHECKING:
Expand Down Expand Up @@ -104,8 +96,6 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
: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 @@ -118,16 +108,10 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
: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
:vartype cassandra_data_centers: azure.mgmt.cosmosdb.operations.CassandraDataCentersOperations
:ivar network_security_perimeter_configurations:
NetworkSecurityPerimeterConfigurationsOperations operations
:vartype network_security_perimeter_configurations:
azure.mgmt.cosmosdb.operations.NetworkSecurityPerimeterConfigurationsOperations
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
:vartype notebook_workspaces: azure.mgmt.cosmosdb.operations.NotebookWorkspacesOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
Expand Down Expand Up @@ -172,26 +156,14 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
azure.mgmt.cosmosdb.operations.RestorableTableResourcesOperations
:ivar service: ServiceOperations operations
:vartype service: azure.mgmt.cosmosdb.operations.ServiceOperations
:ivar throughput_pools: ThroughputPoolsOperations operations
:vartype throughput_pools: azure.mgmt.cosmosdb.operations.ThroughputPoolsOperations
:ivar throughput_pool: ThroughputPoolOperations operations
:vartype throughput_pool: azure.mgmt.cosmosdb.operations.ThroughputPoolOperations
:ivar throughput_pool_accounts: ThroughputPoolAccountsOperations operations
:vartype throughput_pool_accounts:
azure.mgmt.cosmosdb.operations.ThroughputPoolAccountsOperations
:ivar throughput_pool_account: ThroughputPoolAccountOperations operations
:vartype throughput_pool_account:
azure.mgmt.cosmosdb.operations.ThroughputPoolAccountOperations
:ivar chaos_fault: ChaosFaultOperations operations
:vartype chaos_fault: azure.mgmt.cosmosdb.operations.ChaosFaultOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
: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 "2024-09-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-11-15". 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 @@ -262,7 +234,6 @@ 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)
self.mongo_db_resources = MongoDBResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
Expand All @@ -275,18 +246,12 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
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
)
self.cassandra_data_centers = CassandraDataCentersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.notebook_workspaces = NotebookWorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down Expand Up @@ -333,17 +298,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.service = ServiceOperations(self._client, self._config, self._serialize, self._deserialize)
self.throughput_pools = ThroughputPoolsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.throughput_pool = ThroughputPoolOperations(self._client, self._config, self._serialize, self._deserialize)
self.throughput_pool_accounts = ThroughputPoolAccountsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.throughput_pool_account = ThroughputPoolAccountOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.chaos_fault = ChaosFaultOperations(self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
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 = "10.0.0b4"
VERSION = "9.7.0"
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class CosmosDBManagementClientConfiguration: # pylint: disable=too-many-instanc
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-11-15". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-09-01-preview")
api_version: str = kwargs.pop("api_version", "2024-11-15")

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 @@ -22,20 +22,16 @@
CassandraClustersOperations,
CassandraDataCentersOperations,
CassandraResourcesOperations,
ChaosFaultOperations,
CollectionOperations,
CollectionPartitionOperations,
CollectionPartitionRegionOperations,
CollectionRegionOperations,
DataTransferJobsOperations,
DatabaseAccountRegionOperations,
DatabaseAccountsOperations,
DatabaseOperations,
GraphResourcesOperations,
GremlinResourcesOperations,
LocationsOperations,
MongoDBResourcesOperations,
NetworkSecurityPerimeterConfigurationsOperations,
NotebookWorkspacesOperations,
Operations,
PartitionKeyRangeIdOperations,
Expand All @@ -60,10 +56,6 @@
ServiceOperations,
SqlResourcesOperations,
TableResourcesOperations,
ThroughputPoolAccountOperations,
ThroughputPoolAccountsOperations,
ThroughputPoolOperations,
ThroughputPoolsOperations,
)

if TYPE_CHECKING:
Expand Down Expand Up @@ -105,8 +97,6 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
:ivar partition_key_range_id_region: PartitionKeyRangeIdRegionOperations operations
:vartype partition_key_range_id_region:
azure.mgmt.cosmosdb.aio.operations.PartitionKeyRangeIdRegionOperations
:ivar graph_resources: GraphResourcesOperations operations
:vartype graph_resources: azure.mgmt.cosmosdb.aio.operations.GraphResourcesOperations
:ivar sql_resources: SqlResourcesOperations operations
:vartype sql_resources: azure.mgmt.cosmosdb.aio.operations.SqlResourcesOperations
:ivar mongo_db_resources: MongoDBResourcesOperations operations
Expand All @@ -119,17 +109,11 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
:vartype gremlin_resources: azure.mgmt.cosmosdb.aio.operations.GremlinResourcesOperations
:ivar locations: LocationsOperations operations
:vartype locations: azure.mgmt.cosmosdb.aio.operations.LocationsOperations
:ivar data_transfer_jobs: DataTransferJobsOperations operations
:vartype data_transfer_jobs: azure.mgmt.cosmosdb.aio.operations.DataTransferJobsOperations
:ivar cassandra_clusters: CassandraClustersOperations operations
:vartype cassandra_clusters: azure.mgmt.cosmosdb.aio.operations.CassandraClustersOperations
:ivar cassandra_data_centers: CassandraDataCentersOperations operations
:vartype cassandra_data_centers:
azure.mgmt.cosmosdb.aio.operations.CassandraDataCentersOperations
:ivar network_security_perimeter_configurations:
NetworkSecurityPerimeterConfigurationsOperations operations
:vartype network_security_perimeter_configurations:
azure.mgmt.cosmosdb.aio.operations.NetworkSecurityPerimeterConfigurationsOperations
:ivar notebook_workspaces: NotebookWorkspacesOperations operations
:vartype notebook_workspaces: azure.mgmt.cosmosdb.aio.operations.NotebookWorkspacesOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
Expand Down Expand Up @@ -175,26 +159,14 @@ class CosmosDBManagementClient: # pylint: disable=client-accepts-api-version-ke
azure.mgmt.cosmosdb.aio.operations.RestorableTableResourcesOperations
:ivar service: ServiceOperations operations
:vartype service: azure.mgmt.cosmosdb.aio.operations.ServiceOperations
:ivar throughput_pools: ThroughputPoolsOperations operations
:vartype throughput_pools: azure.mgmt.cosmosdb.aio.operations.ThroughputPoolsOperations
:ivar throughput_pool: ThroughputPoolOperations operations
:vartype throughput_pool: azure.mgmt.cosmosdb.aio.operations.ThroughputPoolOperations
:ivar throughput_pool_accounts: ThroughputPoolAccountsOperations operations
:vartype throughput_pool_accounts:
azure.mgmt.cosmosdb.aio.operations.ThroughputPoolAccountsOperations
:ivar throughput_pool_account: ThroughputPoolAccountOperations operations
:vartype throughput_pool_account:
azure.mgmt.cosmosdb.aio.operations.ThroughputPoolAccountOperations
:ivar chaos_fault: ChaosFaultOperations operations
:vartype chaos_fault: azure.mgmt.cosmosdb.aio.operations.ChaosFaultOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
: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 "2024-09-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-11-15". 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 @@ -265,7 +237,6 @@ 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)
self.mongo_db_resources = MongoDBResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
Expand All @@ -278,18 +249,12 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
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
)
self.cassandra_data_centers = CassandraDataCentersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.notebook_workspaces = NotebookWorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down Expand Up @@ -336,17 +301,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.service = ServiceOperations(self._client, self._config, self._serialize, self._deserialize)
self.throughput_pools = ThroughputPoolsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.throughput_pool = ThroughputPoolOperations(self._client, self._config, self._serialize, self._deserialize)
self.throughput_pool_accounts = ThroughputPoolAccountsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.throughput_pool_account = ThroughputPoolAccountOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.chaos_fault = ChaosFaultOperations(self._client, self._config, self._serialize, self._deserialize)

def _send_request(
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
Expand Down
Loading