From 25c0fbdb8c66eb097a021f4f47c2f5186224ce88 Mon Sep 17 00:00:00 2001 From: Shuo LI Date: Tue, 31 Aug 2021 15:49:37 -0700 Subject: [PATCH 1/2] Adding 202 for deletion call --- .../preview/2021-07-01-preview/azurearcdata.json | 12 ++++++++++++ .../examples/DeleteDataController.json | 1 + .../examples/DeletePostgresInstance.json | 1 + .../examples/DeleteSqlManagedInstance.json | 1 + .../examples/DeleteSqlServerInstance.json | 1 + .../stable/2021-08-01/azurearcdata.json | 9 +++++++++ .../2021-08-01/examples/DeleteDataController.json | 1 + .../examples/DeleteSqlManagedInstance.json | 1 + .../2021-08-01/examples/DeleteSqlServerInstance.json | 1 + 9 files changed, 28 insertions(+) diff --git a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/azurearcdata.json b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/azurearcdata.json index 59d36a6d0271..0190dd05def8 100644 --- a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/azurearcdata.json +++ b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/azurearcdata.json @@ -273,6 +273,9 @@ "200": { "description": "Successfully deleted the SQL Managed Instance." }, + "202": { + "description": "Resource deletion is in progress." + }, "default": { "description": "*** Error Responses: ***", "schema": { @@ -565,6 +568,9 @@ "200": { "description": "Successfully deleted the SQL Server Instance." }, + "202": { + "description": "Resource deletion is in progress." + }, "default": { "description": "*** Error Responses: ***", "schema": { @@ -857,6 +863,9 @@ "200": { "description": "Successfully deleted the Postgres Instance." }, + "202": { + "description": "Resource deletion is in progress." + }, "default": { "description": "*** Error Responses: ***", "schema": { @@ -1101,6 +1110,9 @@ "200": { "description": "Successfully deleted the DataController." }, + "202": { + "description": "Resource deletion is in progress." + }, "default": { "description": "*** Error Responses: ***", "schema": { diff --git a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeleteDataController.json b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeleteDataController.json index 58606fc55a76..d24bece16646 100644 --- a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeleteDataController.json +++ b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeleteDataController.json @@ -7,6 +7,7 @@ }, "responses": { "200": {}, + "202": {}, "204": {} } } diff --git a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeletePostgresInstance.json b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeletePostgresInstance.json index 320f20f0adc7..98fee0c985f2 100644 --- a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeletePostgresInstance.json +++ b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeletePostgresInstance.json @@ -7,6 +7,7 @@ }, "responses": { "200": {}, + "202": {}, "204": {} } } diff --git a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeleteSqlManagedInstance.json b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeleteSqlManagedInstance.json index 3a26a34560a3..6bffdb54dd5a 100644 --- a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeleteSqlManagedInstance.json +++ b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeleteSqlManagedInstance.json @@ -7,6 +7,7 @@ }, "responses": { "200": {}, + "202": {}, "204": {} } } diff --git a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeleteSqlServerInstance.json b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeleteSqlServerInstance.json index 1a71c055daf4..bf2fd621f08f 100644 --- a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeleteSqlServerInstance.json +++ b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/examples/DeleteSqlServerInstance.json @@ -7,6 +7,7 @@ }, "responses": { "200": {}, + "202": {}, "204": {} } } diff --git a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/azurearcdata.json b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/azurearcdata.json index 8365ce078488..2e988d30961c 100644 --- a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/azurearcdata.json +++ b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/azurearcdata.json @@ -273,6 +273,9 @@ "200": { "description": "Successfully deleted the SQL Managed Instance." }, + "202": { + "description": "Resource deletion is in progress.." + }, "default": { "description": "*** Error Responses: ***", "schema": { @@ -565,6 +568,9 @@ "200": { "description": "Successfully deleted the SQL Server Instance." }, + "202": { + "description": "Resource deletion is in progress." + }, "default": { "description": "*** Error Responses: ***", "schema": { @@ -809,6 +815,9 @@ "200": { "description": "Successfully deleted the DataController." }, + "202": { + "description": "Resource deletion is in progress." + }, "default": { "description": "*** Error Responses: ***", "schema": { diff --git a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/examples/DeleteDataController.json b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/examples/DeleteDataController.json index 6a89f9eee6a4..b2b62f86bc95 100644 --- a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/examples/DeleteDataController.json +++ b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/examples/DeleteDataController.json @@ -7,6 +7,7 @@ }, "responses": { "200": {}, + "202": {}, "204": {} } } diff --git a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/examples/DeleteSqlManagedInstance.json b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/examples/DeleteSqlManagedInstance.json index 9e3e3d305063..deee2e859c18 100644 --- a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/examples/DeleteSqlManagedInstance.json +++ b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/examples/DeleteSqlManagedInstance.json @@ -7,6 +7,7 @@ }, "responses": { "200": {}, + "202": {}, "204": {} } } diff --git a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/examples/DeleteSqlServerInstance.json b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/examples/DeleteSqlServerInstance.json index 93f371929bfe..44f0c7fc8db9 100644 --- a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/examples/DeleteSqlServerInstance.json +++ b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/examples/DeleteSqlServerInstance.json @@ -7,6 +7,7 @@ }, "responses": { "200": {}, + "202": {}, "204": {} } } From d2a42d8f79beba941b23d8af1721775633b09dea Mon Sep 17 00:00:00 2001 From: Shuo LI Date: Tue, 31 Aug 2021 16:01:29 -0700 Subject: [PATCH 2/2] Adding headers to suppress warnings --- .../preview/2021-07-01-preview/azurearcdata.json | 12 ++++++++---- .../stable/2021-08-01/azurearcdata.json | 9 ++++++--- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/azurearcdata.json b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/azurearcdata.json index 0190dd05def8..55b20489f5f5 100644 --- a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/azurearcdata.json +++ b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2021-07-01-preview/azurearcdata.json @@ -290,7 +290,8 @@ "Delete a SQL Instance.": { "$ref": "./examples/DeleteSqlManagedInstance.json" } - } + }, + "x-ms-long-running-operation": true }, "patch": { "tags": [ @@ -585,7 +586,8 @@ "Delete a SQL Server Instance.": { "$ref": "./examples/DeleteSqlServerInstance.json" } - } + }, + "x-ms-long-running-operation": true }, "patch": { "tags": [ @@ -880,7 +882,8 @@ "Deletes a PostgresInstances.": { "$ref": "./examples/DeletePostgresInstance.json" } - } + }, + "x-ms-long-running-operation": true }, "patch": { "tags": [ @@ -1127,7 +1130,8 @@ "Delete a dataController.": { "$ref": "./examples/DeleteDataController.json" } - } + }, + "x-ms-long-running-operation": true }, "get": { "tags": [ diff --git a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/azurearcdata.json b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/azurearcdata.json index 2e988d30961c..b5787b2ee117 100644 --- a/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/azurearcdata.json +++ b/specification/azurearcdata/resource-manager/Microsoft.AzureArcData/stable/2021-08-01/azurearcdata.json @@ -290,7 +290,8 @@ "Delete a SQL Instance.": { "$ref": "./examples/DeleteSqlManagedInstance.json" } - } + }, + "x-ms-long-running-operation": true }, "patch": { "tags": [ @@ -585,7 +586,8 @@ "Delete a SQL Server Instance.": { "$ref": "./examples/DeleteSqlServerInstance.json" } - } + }, + "x-ms-long-running-operation": true }, "patch": { "tags": [ @@ -832,7 +834,8 @@ "Delete a dataController.": { "$ref": "./examples/DeleteDataController.json" } - } + }, + "x-ms-long-running-operation": true }, "get": { "tags": [