Skip to content

Commit 2667b95

Browse files
senatolKayla Ames
authored and
Kayla Ames
committed
Update operation ids (Azure#23100)
1 parent e01b1c7 commit 2667b95

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-11-08/postgresqlhsc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"tags": [
122122
"Clusters"
123123
],
124-
"operationId": "Clusters_CreateOrUpdate",
124+
"operationId": "Clusters_Create",
125125
"x-ms-long-running-operation": true,
126126
"x-ms-long-running-operation-options": {
127127
"final-state-via": "azure-async-operation"
@@ -641,7 +641,7 @@
641641
"tags": [
642642
"Configurations"
643643
],
644-
"operationId": "Configurations_CreateOrUpdateCoordinator",
644+
"operationId": "Configurations_UpdateOnCoordinator",
645645
"x-ms-long-running-operation": true,
646646
"x-ms-long-running-operation-options": {
647647
"final-state-via": "azure-async-operation"
@@ -756,7 +756,7 @@
756756
"tags": [
757757
"Configurations"
758758
],
759-
"operationId": "Configurations_CreateOrUpdateNode",
759+
"operationId": "Configurations_UpdateOnNode",
760760
"x-ms-long-running-operation": true,
761761
"x-ms-long-running-operation-options": {
762762
"final-state-via": "azure-async-operation"

specification/postgresqlhsc/resource-manager/readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ directive:
5858
- suppress: EnumInsteadOfBoolean
5959
from: postgresqlhsc.json
6060
reason: It's been used as boolean since 2019 by internal teams and also private preview customers like Azure Portal and we have no plans to use any values other than true/false.
61+
- suppress: PutInOperationName
62+
where:
63+
- $..paths[($..operationId["Configurations_Update*"])]
64+
from: postgresqlhsc.json
65+
reason: Configurations have preset default values and customers can only update them, they can't create. So we don't need "Create" in operation id.
6166
```
6267

6368
---

0 commit comments

Comments
 (0)