|
76 | 76 | "schema": { |
77 | 77 | "$ref": "#/definitions/DedicatedCapacity" |
78 | 78 | } |
| 79 | + }, |
| 80 | + "default": { |
| 81 | + "description": "Error response describing why the operation failed.", |
| 82 | + "schema": { |
| 83 | + "$ref": "#/definitions/ErrorResponse" |
| 84 | + } |
79 | 85 | } |
80 | 86 | } |
81 | 87 | }, |
|
132 | 138 | "schema": { |
133 | 139 | "$ref": "#/definitions/DedicatedCapacity" |
134 | 140 | } |
| 141 | + }, |
| 142 | + "default": { |
| 143 | + "description": "Error response describing why the operation failed.", |
| 144 | + "schema": { |
| 145 | + "$ref": "#/definitions/ErrorResponse" |
| 146 | + } |
135 | 147 | } |
136 | 148 | }, |
137 | 149 | "x-ms-long-running-operation": true |
|
177 | 189 | }, |
178 | 190 | "202": { |
179 | 191 | "description": "Accepted." |
| 192 | + }, |
| 193 | + "default": { |
| 194 | + "description": "Error response describing why the operation failed.", |
| 195 | + "schema": { |
| 196 | + "$ref": "#/definitions/ErrorResponse" |
| 197 | + } |
180 | 198 | } |
181 | 199 | }, |
182 | 200 | "x-ms-long-running-operation": true |
|
234 | 252 | "schema": { |
235 | 253 | "$ref": "#/definitions/DedicatedCapacity" |
236 | 254 | } |
| 255 | + }, |
| 256 | + "default": { |
| 257 | + "description": "Error response describing why the operation failed.", |
| 258 | + "schema": { |
| 259 | + "$ref": "#/definitions/ErrorResponse" |
| 260 | + } |
237 | 261 | } |
238 | 262 | }, |
239 | 263 | "x-ms-long-running-operation": true |
|
278 | 302 | }, |
279 | 303 | "202": { |
280 | 304 | "description": "Accepted." |
| 305 | + }, |
| 306 | + "default": { |
| 307 | + "description": "Error response describing why the operation failed.", |
| 308 | + "schema": { |
| 309 | + "$ref": "#/definitions/ErrorResponse" |
| 310 | + } |
281 | 311 | } |
282 | 312 | }, |
283 | 313 | "x-ms-long-running-operation": true |
|
322 | 352 | }, |
323 | 353 | "202": { |
324 | 354 | "description": "Accepted" |
| 355 | + }, |
| 356 | + "default": { |
| 357 | + "description": "Error response describing why the operation failed.", |
| 358 | + "schema": { |
| 359 | + "$ref": "#/definitions/ErrorResponse" |
| 360 | + } |
325 | 361 | } |
326 | 362 | }, |
327 | 363 | "x-ms-long-running-operation": true |
|
356 | 392 | "schema": { |
357 | 393 | "$ref": "#/definitions/DedicatedCapacities" |
358 | 394 | } |
| 395 | + }, |
| 396 | + "default": { |
| 397 | + "description": "Error response describing why the operation failed.", |
| 398 | + "schema": { |
| 399 | + "$ref": "#/definitions/ErrorResponse" |
| 400 | + } |
359 | 401 | } |
360 | 402 | }, |
361 | 403 | "x-ms-pageable": { |
|
389 | 431 | "schema": { |
390 | 432 | "$ref": "#/definitions/DedicatedCapacities" |
391 | 433 | } |
| 434 | + }, |
| 435 | + "default": { |
| 436 | + "description": "Error response describing why the operation failed.", |
| 437 | + "schema": { |
| 438 | + "$ref": "#/definitions/ErrorResponse" |
| 439 | + } |
392 | 440 | } |
393 | 441 | }, |
394 | 442 | "x-ms-pageable": { |
|
419 | 467 | "schema": { |
420 | 468 | "$ref": "#/definitions/SkuEnumerationForNewResourceResult" |
421 | 469 | } |
| 470 | + }, |
| 471 | + "default": { |
| 472 | + "description": "Error response describing why the operation failed.", |
| 473 | + "schema": { |
| 474 | + "$ref": "#/definitions/ErrorResponse" |
| 475 | + } |
422 | 476 | } |
423 | 477 | } |
424 | 478 | } |
|
462 | 516 | "schema": { |
463 | 517 | "$ref": "#/definitions/SkuEnumerationForExistingResourceResult" |
464 | 518 | } |
| 519 | + }, |
| 520 | + "default": { |
| 521 | + "description": "Error response describing why the operation failed.", |
| 522 | + "schema": { |
| 523 | + "$ref": "#/definitions/ErrorResponse" |
| 524 | + } |
465 | 525 | } |
466 | 526 | } |
467 | 527 | } |
|
539 | 599 | "schema": { |
540 | 600 | "$ref": "#/definitions/CheckCapacityNameAvailabilityResult" |
541 | 601 | } |
| 602 | + }, |
| 603 | + "default": { |
| 604 | + "description": "Error response describing why the operation failed.", |
| 605 | + "schema": { |
| 606 | + "$ref": "#/definitions/ErrorResponse" |
| 607 | + } |
542 | 608 | } |
543 | 609 | } |
544 | 610 | } |
|
831 | 897 | } |
832 | 898 | }, |
833 | 899 | "ErrorResponse": { |
834 | | - "description": "Describes the format of Error response.", |
835 | 900 | "type": "object", |
| 901 | + "description": "Describes the format of Error response.", |
836 | 902 | "properties": { |
837 | | - "code": { |
838 | | - "description": "Error code", |
839 | | - "type": "string" |
840 | | - }, |
841 | | - "message": { |
842 | | - "description": "Error message indicating why the operation failed.", |
843 | | - "type": "string" |
| 903 | + "error": { |
| 904 | + "description": "The error object", |
| 905 | + "properties": { |
| 906 | + "code": { |
| 907 | + "type": "string", |
| 908 | + "description": "Error code" |
| 909 | + }, |
| 910 | + "message": { |
| 911 | + "type": "string", |
| 912 | + "description": "Error message indicating why the operation failed." |
| 913 | + } |
| 914 | + } |
844 | 915 | } |
845 | 916 | } |
846 | 917 | }, |
|
0 commit comments