From 212e6ea4d3a0b6c55b33e456828d656ca89902e2 Mon Sep 17 00:00:00 2001 From: Zhenfeng Date: Fri, 3 Jan 2020 11:17:12 -0800 Subject: [PATCH 1/2] [SRP] Add response status code 404 --- .../Microsoft.Storage/stable/2019-06-01/storage.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/storage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/storage.json index e457d4b98b7b..92d28368e09b 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/storage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/storage.json @@ -245,6 +245,9 @@ "schema": { "$ref": "#/definitions/StorageAccount" } + }, + "404": { + "description": "Not Found" } } }, From 40703e6be5fb9549d3484bf41b7c3bffa740b2b5 Mon Sep 17 00:00:00 2001 From: Zhenfeng Date: Fri, 3 Jan 2020 11:27:30 -0800 Subject: [PATCH 2/2] Add default response --- .../stable/2019-06-01/storage.json | 37 ++++++++++++++++++- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/storage.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/storage.json index 92d28368e09b..488dfd9635c8 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/storage.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2019-06-01/storage.json @@ -162,6 +162,12 @@ }, "202": { "description": "Accepted -- Create or update request accepted; operation will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-long-running-operation": true @@ -246,8 +252,11 @@ "$ref": "#/definitions/StorageAccount" } }, - "404": { - "description": "Not Found" + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } } }, @@ -294,6 +303,12 @@ "schema": { "$ref": "#/definitions/StorageAccount" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } } } @@ -460,6 +475,12 @@ "schema": { "$ref": "#/definitions/StorageAccountListKeysResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } } } @@ -669,6 +690,12 @@ "schema": { "$ref": "#/definitions/ManagementPolicy" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } } }, @@ -715,6 +742,12 @@ "schema": { "$ref": "#/definitions/ManagementPolicy" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } } },