Cosmos: Cutover remaining ContainerClient operations#4287
Merged
simorenoh merged 4 commits intoApr 30, 2026
Conversation
Member
Author
|
/azp run rust - cosmos - weekly |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR completes the cutover of the remaining ContainerClient control-plane operations (read, replace, delete) to execute via CosmosDriver (using CosmosOperation) instead of the legacy CosmosRequest + ContainerConnection gateway pipeline, aligning container CRUD with prior driver migrations.
Changes:
- Add
CosmosOperation::replace_container(ContainerReference)factory method in the driver models. - Route
ContainerClient::{read,replace,delete}throughdriver.execute_operation(...)and bridge the driver response back into SDK response types. - Remove the unused
ContainerClient.linkfield and clean up an unused import.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| sdk/cosmos/azure_data_cosmos_driver/src/models/cosmos_operation.rs | Adds a new container replace operation factory (replace_container). |
| sdk/cosmos/azure_data_cosmos/src/clients/container_client.rs | Reworks container read/replace/delete to use the driver execution path; removes unused link field and an unused import. |
Member
Author
|
/azp run rust - cosmos - weekly |
|
Azure Pipelines successfully started running 1 pipeline(s). |
analogrelay
approved these changes
Apr 28, 2026
tvaron3
approved these changes
Apr 28, 2026
fa05c31
into
release/azure_data_cosmos-previews
16 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Route ContainerClient::read(), replace(), and delete() through CosmosDriver instead of the legacy CosmosRequest +
ContainerConnection pipeline, following the pattern established in #4147 and #4128.
driver.execute_operation()