Skip to content

Commit fc8e040

Browse files
authored
fix lro final-state-via and revert change of ErrorResponse (#23544)
* fix lro final-state-via * revert replication role * revert cloudError
1 parent 24166ce commit fc8e040

File tree

10 files changed

+133
-59
lines changed

10 files changed

+133
-59
lines changed

specification/mysql/resource-manager/Microsoft.DBforMySQL/AAD/stable/2022-01-01/AzureADAdministrator.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"default": {
9797
"description": "Error response describing why the operation failed.",
9898
"schema": {
99-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
99+
"$ref": "#/definitions/CloudError"
100100
}
101101
}
102102
},
@@ -148,7 +148,7 @@
148148
"default": {
149149
"description": "Error response describing why the operation failed.",
150150
"schema": {
151-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
151+
"$ref": "#/definitions/CloudError"
152152
}
153153
}
154154
},
@@ -195,7 +195,7 @@
195195
"default": {
196196
"description": "Error response describing why the operation failed.",
197197
"schema": {
198-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
198+
"$ref": "#/definitions/CloudError"
199199
}
200200
}
201201
}
@@ -237,7 +237,7 @@
237237
"default": {
238238
"description": "Error response describing why the operation failed.",
239239
"schema": {
240-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
240+
"$ref": "#/definitions/CloudError"
241241
}
242242
}
243243
},
@@ -318,6 +318,17 @@
318318
}
319319
},
320320
"description": "A List of azure ad administrators."
321+
},
322+
"CloudError": {
323+
"type": "object",
324+
"x-ms-external": true,
325+
"properties": {
326+
"error": {
327+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
328+
"description": "The resource management error response."
329+
}
330+
},
331+
"description": "An error response from the Batch service."
321332
}
322333
},
323334
"parameters": {

specification/mysql/resource-manager/Microsoft.DBforMySQL/Backups/stable/2022-01-01/Backups.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"default": {
7474
"description": "Error response describing why the operation failed.",
7575
"schema": {
76-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
76+
"$ref": "#/definitions/CloudError"
7777
}
7878
}
7979
}
@@ -116,7 +116,7 @@
116116
"default": {
117117
"description": "Error response describing why the operation failed.",
118118
"schema": {
119-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
119+
"$ref": "#/definitions/CloudError"
120120
}
121121
}
122122
}
@@ -158,7 +158,7 @@
158158
"default": {
159159
"description": "Error response describing why the operation failed.",
160160
"schema": {
161-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
161+
"$ref": "#/definitions/CloudError"
162162
}
163163
}
164164
},
@@ -225,6 +225,17 @@
225225
}
226226
},
227227
"description": "A list of server backups."
228+
},
229+
"CloudError": {
230+
"type": "object",
231+
"x-ms-external": true,
232+
"properties": {
233+
"error": {
234+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
235+
"description": "The resource management error response."
236+
}
237+
},
238+
"description": "An error response from the Batch service."
228239
}
229240
},
230241
"parameters": {

specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/preview/2021-12-01-preview/Configurations.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@
9494
}
9595
}
9696
},
97-
"x-ms-long-running-operation": true,
98-
"x-ms-long-running-operation-options": {
99-
"final-state-via": "location"
100-
}
97+
"x-ms-long-running-operation": true
10198
},
10299
"patch": {
103100
"tags": [

specification/mysql/resource-manager/Microsoft.DBforMySQL/Configurations/stable/2022-01-01/Configurations.json

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,11 @@
9090
"default": {
9191
"description": "Error response describing why the operation failed.",
9292
"schema": {
93-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
93+
"$ref": "#/definitions/CloudError"
9494
}
9595
}
9696
},
97-
"x-ms-long-running-operation": true,
98-
"x-ms-long-running-operation-options": {
99-
"final-state-via": "location"
100-
}
97+
"x-ms-long-running-operation": true
10198
},
10299
"patch": {
103100
"tags": [
@@ -154,7 +151,7 @@
154151
"default": {
155152
"description": "Error response describing why the operation failed.",
156153
"schema": {
157-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
154+
"$ref": "#/definitions/CloudError"
158155
}
159156
}
160157
},
@@ -198,7 +195,7 @@
198195
"default": {
199196
"description": "Error response describing why the operation failed.",
200197
"schema": {
201-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
198+
"$ref": "#/definitions/CloudError"
202199
}
203200
}
204201
}
@@ -257,7 +254,7 @@
257254
"default": {
258255
"description": "Error response describing why the operation failed.",
259256
"schema": {
260-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
257+
"$ref": "#/definitions/CloudError"
261258
}
262259
}
263260
},
@@ -315,7 +312,7 @@
315312
"default": {
316313
"description": "Error response describing why the operation failed.",
317314
"schema": {
318-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
315+
"$ref": "#/definitions/CloudError"
319316
}
320317
}
321318
},
@@ -504,6 +501,17 @@
504501
}
505502
},
506503
"description": "A list of server configurations to update."
504+
},
505+
"CloudError": {
506+
"type": "object",
507+
"x-ms-external": true,
508+
"properties": {
509+
"error": {
510+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
511+
"description": "The resource management error response."
512+
}
513+
},
514+
"description": "An error response from the Batch service."
507515
}
508516
},
509517
"parameters": {

specification/mysql/resource-manager/Microsoft.DBforMySQL/Databases/stable/2022-01-01/Databases.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"default": {
9797
"description": "Error response describing why the operation failed.",
9898
"schema": {
99-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
99+
"$ref": "#/definitions/CloudError"
100100
}
101101
}
102102
},
@@ -148,14 +148,11 @@
148148
"default": {
149149
"description": "Error response describing why the operation failed.",
150150
"schema": {
151-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
151+
"$ref": "#/definitions/CloudError"
152152
}
153153
}
154154
},
155-
"x-ms-long-running-operation": true,
156-
"x-ms-long-running-operation-options": {
157-
"final-state-via": "location"
158-
}
155+
"x-ms-long-running-operation": true
159156
},
160157
"get": {
161158
"tags": [
@@ -195,7 +192,7 @@
195192
"default": {
196193
"description": "Error response describing why the operation failed.",
197194
"schema": {
198-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
195+
"$ref": "#/definitions/CloudError"
199196
}
200197
}
201198
}
@@ -237,7 +234,7 @@
237234
"default": {
238235
"description": "Error response describing why the operation failed.",
239236
"schema": {
240-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
237+
"$ref": "#/definitions/CloudError"
241238
}
242239
}
243240
},
@@ -299,6 +296,17 @@
299296
}
300297
},
301298
"description": "A List of databases."
299+
},
300+
"CloudError": {
301+
"type": "object",
302+
"x-ms-external": true,
303+
"properties": {
304+
"error": {
305+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
306+
"description": "The resource management error response."
307+
}
308+
},
309+
"description": "An error response from the Batch service."
302310
}
303311
},
304312
"parameters": {

specification/mysql/resource-manager/Microsoft.DBforMySQL/Firewall/stable/2022-01-01/FirewallRules.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"default": {
9797
"description": "Error response describing why the operation failed.",
9898
"schema": {
99-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
99+
"$ref": "#/definitions/CloudError"
100100
}
101101
}
102102
},
@@ -148,14 +148,11 @@
148148
"default": {
149149
"description": "Error response describing why the operation failed.",
150150
"schema": {
151-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
151+
"$ref": "#/definitions/CloudError"
152152
}
153153
}
154154
},
155-
"x-ms-long-running-operation": true,
156-
"x-ms-long-running-operation-options": {
157-
"final-state-via": "location"
158-
}
155+
"x-ms-long-running-operation": true
159156
},
160157
"get": {
161158
"tags": [
@@ -195,7 +192,7 @@
195192
"default": {
196193
"description": "Error response describing why the operation failed.",
197194
"schema": {
198-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
195+
"$ref": "#/definitions/CloudError"
199196
}
200197
}
201198
}
@@ -237,7 +234,7 @@
237234
"default": {
238235
"description": "Error response describing why the operation failed.",
239236
"schema": {
240-
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
237+
"$ref": "#/definitions/CloudError"
241238
}
242239
}
243240
},
@@ -308,6 +305,17 @@
308305
}
309306
},
310307
"description": "A list of firewall rules."
308+
},
309+
"CloudError": {
310+
"type": "object",
311+
"x-ms-external": true,
312+
"properties": {
313+
"error": {
314+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
315+
"description": "The resource management error response."
316+
}
317+
},
318+
"description": "An error response from the Batch service."
311319
}
312320
},
313321
"parameters": {

specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2021-12-01-preview/FlexibleServers.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
},
207207
"x-ms-long-running-operation": true,
208208
"x-ms-long-running-operation-options": {
209-
"final-state-via": "location"
209+
"final-state-via": "azure-async-operation"
210210
}
211211
},
212212
"get": {

0 commit comments

Comments
 (0)