[cosmos] Replace / Update Throughput is not working #22915
Labels
Client
This issue points to a problem in the data-plane of the library.
Cosmos
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
This issue needs attention from Azure service team or SDK team
Bug Report
A typo in cosmos_database.go prevents the update of a Cosmos database throughput via the SDK.
The method called should be
return offers.ReplaceThroughputIfExists(ctx, throughputProperties, rid, o)
Example of how to use the method can be found here:
https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos#example-ContainerClient.ReplaceThroughput
The text was updated successfully, but these errors were encountered: