Skip to content

Commit 2a96231

Browse files
authored
[Tempfix] Switching default API version to release stable SDKs (#43928)
* Switching default API version to release stable SDKs * [Bugfix] Use standard ArmResourcePatchSync for FleetResource update Replace custom Legacy.CustomPatchSync (hand-written FleetResourceUpdate, OptionalRequestBody) with the standard tracked-resource patch. The PATCH body now uses the standard tags + properties envelope and is required, matching tracked-resource conventions. * Revert "Switching default API version to release stable SDKs" This reverts commit 55162ae. * [Temporary] Adding stable API version for SDK release * Review comment - kept the original envelope and added tags
1 parent 89c41a2 commit 2a96231

5 files changed

Lines changed: 28 additions & 9 deletions

File tree

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/DocumentDB/FleetResource.tsp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@ interface FleetResources {
3838
/**
3939
* Updates the properties of an existing Azure Cosmos DB Fleet.
4040
*/
41-
@patch(#{ implicitOptionality: false })
42-
update is Azure.ResourceManager.Legacy.CustomPatchSync<
43-
FleetResource,
44-
PatchModel = FleetResourceUpdate,
45-
OptionalRequestBody = true
46-
>;
41+
update is ArmCustomPatchSync<FleetResource, FleetResourceUpdate>;
4742

4843
/**
4944
* Deletes an existing Azure Cosmos DB Fleet.

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/DocumentDB/models.tsp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8611,8 +8611,13 @@ model FleetResourceProperties {
86118611
/**
86128612
* Represents a fleet resource for updates.
86138613
*/
8614-
#suppress "@azure-tools/typespec-azure-resource-manager/patch-envelope" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
86158614
model FleetResourceUpdate {
8615+
/**
8616+
* Resource tags.
8617+
*/
8618+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Standard ARM resource tags use Record<string>."
8619+
tags?: Record<string>;
8620+
86168621
/**
86178622
* Properties to update Azure Cosmos DB fleet resource.
86188623
*/

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/DocumentDB/preview/2026-04-01-preview/openapi.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18481,7 +18481,7 @@
1848118481
"name": "body",
1848218482
"in": "body",
1848318483
"description": "The parameters to provide for the current fleet.",
18484-
"required": false,
18484+
"required": true,
1848518485
"schema": {
1848618486
"$ref": "#/definitions/FleetResourceUpdate"
1848718487
}
@@ -26016,6 +26016,13 @@
2601626016
"type": "object",
2601726017
"description": "Represents a fleet resource for updates.",
2601826018
"properties": {
26019+
"tags": {
26020+
"type": "object",
26021+
"description": "Resource tags.",
26022+
"additionalProperties": {
26023+
"type": "string"
26024+
}
26025+
},
2601926026
"properties": {
2602026027
"$ref": "#/definitions/FleetResourceProperties",
2602126028
"description": "Properties to update Azure Cosmos DB fleet resource.",

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/DocumentDB/stable/2026-03-15/openapi.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15011,7 +15011,7 @@
1501115011
"name": "body",
1501215012
"in": "body",
1501315013
"description": "The parameters to provide for the current fleet.",
15014-
"required": false,
15014+
"required": true,
1501515015
"schema": {
1501615016
"$ref": "#/definitions/FleetResourceUpdate"
1501715017
}
@@ -18951,6 +18951,13 @@
1895118951
"type": "object",
1895218952
"description": "Represents a fleet resource for updates.",
1895318953
"properties": {
18954+
"tags": {
18955+
"type": "object",
18956+
"description": "Resource tags.",
18957+
"additionalProperties": {
18958+
"type": "string"
18959+
}
18960+
},
1895418961
"properties": {
1895518962
"$ref": "#/definitions/FleetResourceProperties",
1895618963
"description": "Properties to update Azure Cosmos DB fleet resource.",

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/DocumentDB/tspconfig.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ options:
2121
generate-test: true
2222
generate-sample: true
2323
flavor: azure
24+
api-version: "2026-03-15"
2425
"@azure-tools/typespec-ts":
2526
emitter-output-dir: "{output-dir}/{service-dir}/arm-cosmosdb"
2627
compatibility-lro: true
2728
package-details:
2829
name: "@azure/arm-cosmosdb"
2930
flavor: azure
3031
experimental-extensible-enums: true
32+
api-version: "2026-03-15"
3133
"@azure-tools/typespec-java":
3234
service-dir: "sdk/cosmos"
3335
emitter-output-dir: "{output-dir}/{service-dir}/azure-resourcemanager-cosmos"
@@ -41,6 +43,7 @@ options:
4143
customization-class: customization/src/main/java/CosmosCustomization.java
4244
rename-model:
4345
DatabaseAccountGetPropertiesDatabaseAccountOfferType: DatabaseAccountOfferType
46+
api-version: "2026-03-15"
4447
"@azure-tools/typespec-go":
4548
module: "github.com/Azure/azure-sdk-for-go/{service-dir}/armcosmos/v4"
4649
service-dir: "sdk/resourcemanager/cosmos"
@@ -51,10 +54,12 @@ options:
5154
flavor: azure
5255
generate-samples: true
5356
head-as-boolean: true
57+
api-version: "2026-03-15"
5458
"@azure-typespec/http-client-csharp-mgmt":
5559
enable-wire-path-attribute: true
5660
namespace: "Azure.ResourceManager.CosmosDB"
5761
emitter-output-dir: "{output-dir}/{service-dir}/{namespace}"
62+
api-version: "2026-03-15"
5863
linter:
5964
extends:
6065
- "@azure-tools/typespec-azure-rulesets/resource-manager"

0 commit comments

Comments
 (0)