From 793b4f78d9a24c30a177d59d23d89f69e4eec582 Mon Sep 17 00:00:00 2001 From: Zijian Ju Date: Mon, 10 Apr 2023 13:26:40 +0800 Subject: [PATCH 01/13] Add ContainerApp Start/Stop for 2023-04-01-preview --- .../2023-04-01-preview/ContainerApps.json | 134 ++++++++++++++++++ .../examples/ContainerApps_Start.json | 16 +++ .../examples/ContainerApps_Stop.json | 16 +++ 3 files changed, 166 insertions(+) create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json index 0d85ef658464..c5464421a629 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json @@ -483,6 +483,140 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/start": { + "post": { + "tags": [ + "ContainerApps" + ], + "summary": "Start a container app", + "operationId": "ContainerApps_Start", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Container App started successfully." + }, + "202": { + "description": "Start operation is in progress.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "400": { + "description": "Bad Request.", + "x-ms-error-response": true + }, + "404": { + "description": "Not found.", + "x-ms-error-response": true + }, + "409": { + "description": "Conflict.", + "x-ms-error-response": true + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Container App": { + "$ref": "./examples/ContainerApps_Start.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/stop": { + "post": { + "tags": [ + "ContainerApps" + ], + "summary": "Stop a container app", + "operationId": "ContainerApps_Stop", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "containerAppName", + "in": "path", + "description": "Name of the Container App.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Container App stopped successfully." + }, + "202": { + "description": "Stop operation is in progress.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "400": { + "description": "Bad Request.", + "x-ms-error-response": true + }, + "404": { + "description": "Not found.", + "x-ms-error-response": true + }, + "409": { + "description": "Conflict.", + "x-ms-error-response": true + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Container App": { + "$ref": "./examples/ContainerApps_Stop.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } } }, "definitions": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json new file mode 100644 index 000000000000..7dd3149d7f4f --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testWorkerApp0", + "api-version": "2023-04-01-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" + } + } + } +} diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json new file mode 100644 index 000000000000..7dd3149d7f4f --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "containerAppName": "testWorkerApp0", + "api-version": "2023-04-01-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" + } + } + } +} From 69243dde76268bced6bc4ac70df730353d1cb686 Mon Sep 17 00:00:00 2001 From: Zijian Ju Date: Mon, 10 Apr 2023 15:25:34 +0800 Subject: [PATCH 02/13] Fix validation error --- .../2023-04-01-preview/ContainerApps.json | 28 ++----------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json index c5464421a629..0127dd681fa4 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json @@ -521,18 +521,6 @@ } } }, - "400": { - "description": "Bad Request.", - "x-ms-error-response": true - }, - "404": { - "description": "Not found.", - "x-ms-error-response": true - }, - "409": { - "description": "Conflict.", - "x-ms-error-response": true - }, "default": { "description": "Common error response.", "schema": { @@ -541,7 +529,7 @@ } }, "x-ms-examples": { - "Delete Container App": { + "Start Container App": { "$ref": "./examples/ContainerApps_Start.json" } }, @@ -588,18 +576,6 @@ } } }, - "400": { - "description": "Bad Request.", - "x-ms-error-response": true - }, - "404": { - "description": "Not found.", - "x-ms-error-response": true - }, - "409": { - "description": "Conflict.", - "x-ms-error-response": true - }, "default": { "description": "Common error response.", "schema": { @@ -608,7 +584,7 @@ } }, "x-ms-examples": { - "Delete Container App": { + "Stop Container App": { "$ref": "./examples/ContainerApps_Stop.json" } }, From fd456ab1c512ea1d054d443d378a44098c36282b Mon Sep 17 00:00:00 2001 From: Zijian Ju Date: Mon, 10 Apr 2023 15:49:27 +0800 Subject: [PATCH 03/13] Fix validation error --- .../preview/2023-04-01-preview/ContainerApps.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json index 0127dd681fa4..8862d054b101 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json @@ -506,7 +506,8 @@ "in": "path", "description": "Name of the Container App.", "required": true, - "type": "string" + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$" } ], "responses": { @@ -561,7 +562,8 @@ "in": "path", "description": "Name of the Container App.", "required": true, - "type": "string" + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$" } ], "responses": { From 5dc8785246c642c55b0af371af11c5a4b120dc28 Mon Sep 17 00:00:00 2001 From: Zijian Ju Date: Tue, 18 Apr 2023 17:22:04 +0800 Subject: [PATCH 04/13] Change example to add location in header --- .../2023-04-01-preview/examples/ContainerApps_Start.json | 2 +- .../preview/2023-04-01-preview/examples/ContainerApps_Stop.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json index 7dd3149d7f4f..e004baa6c7d7 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json @@ -9,7 +9,7 @@ "200": {}, "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" + "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json index 7dd3149d7f4f..e004baa6c7d7 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json @@ -9,7 +9,7 @@ "200": {}, "202": { "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" + "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" } } } From ae69010a2fb2b6d17e902456e1a281489353dc4d Mon Sep 17 00:00:00 2001 From: Zijian Ju Date: Thu, 20 Apr 2023 16:03:44 +0800 Subject: [PATCH 05/13] Fix lint error --- .../preview/2023-04-01-preview/ContainerApps.json | 4 ++-- .../2023-04-01-preview/examples/ContainerApps_Start.json | 3 ++- .../2023-04-01-preview/examples/ContainerApps_Stop.json | 6 ++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json index 8862d054b101..669602762de7 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json @@ -536,7 +536,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "location" + "final-state-via": "azure-async-operation" } } }, @@ -592,7 +592,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "location" + "final-state-via": "azure-async-operation" } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json index e004baa6c7d7..9b4d4f4d127d 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json @@ -9,7 +9,8 @@ "200": {}, "202": { "headers": { - "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" + "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview", + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json index e004baa6c7d7..a0512c46537c 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json @@ -6,10 +6,12 @@ "api-version": "2023-04-01-preview" }, "responses": { - "200": {}, + "200": { + }, "202": { "headers": { - "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" + "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview", + "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" } } } From e11e0a9a37d54e3640bd3e4e3a5e6193f78a3e27 Mon Sep 17 00:00:00 2001 From: Zijian Ju Date: Thu, 20 Apr 2023 16:17:27 +0800 Subject: [PATCH 06/13] Fix lint issue --- .../preview/2023-04-01-preview/ContainerApps.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json index 669602762de7..a0a4c1aaa84f 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json @@ -536,7 +536,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "Location" } } }, @@ -592,7 +592,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "Location" } } } From cdc2c5375b5860fe58a8366e2361b8548c08f208 Mon Sep 17 00:00:00 2001 From: Zijian Ju Date: Thu, 20 Apr 2023 16:23:00 +0800 Subject: [PATCH 07/13] Fix lint issue --- .../preview/2023-04-01-preview/ContainerApps.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json index a0a4c1aaa84f..8862d054b101 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json @@ -536,7 +536,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "Location" + "final-state-via": "location" } } }, @@ -592,7 +592,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via": "Location" + "final-state-via": "location" } } } From 578799863c803145487aeab2407760c43ee48d65 Mon Sep 17 00:00:00 2001 From: Zijian Ju Date: Thu, 20 Apr 2023 16:29:29 +0800 Subject: [PATCH 08/13] Fix lint issue --- .../2023-04-01-preview/examples/ContainerApps_Start.json | 3 +-- .../2023-04-01-preview/examples/ContainerApps_Stop.json | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json index 9b4d4f4d127d..e004baa6c7d7 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json @@ -9,8 +9,7 @@ "200": {}, "202": { "headers": { - "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview", - "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" + "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" } } } diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json index a0512c46537c..e5f0dee74e25 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json @@ -10,8 +10,7 @@ }, "202": { "headers": { - "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview", - "azure-asyncoperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" + "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" } } } From bf6b691349da8a42375c2cbdd41401d646701521 Mon Sep 17 00:00:00 2001 From: Zijian Ju Date: Thu, 20 Apr 2023 16:37:02 +0800 Subject: [PATCH 09/13] Fix lint issue --- .../2023-04-01-preview/examples/ContainerApps_Start.json | 4 +++- .../2023-04-01-preview/examples/ContainerApps_Stop.json | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json index e004baa6c7d7..ba950de31493 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json @@ -6,7 +6,9 @@ "api-version": "2023-04-01-preview" }, "responses": { - "200": {}, + "200": { + "headers": {} + }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json index e5f0dee74e25..ba950de31493 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json @@ -7,6 +7,7 @@ }, "responses": { "200": { + "headers": {} }, "202": { "headers": { From ee42b5f598f3a9e87e02467c157edca0ac1aff5d Mon Sep 17 00:00:00 2001 From: Zijian Ju Date: Thu, 20 Apr 2023 16:43:45 +0800 Subject: [PATCH 10/13] Fix lint issue --- .../2023-04-01-preview/examples/ContainerApps_Start.json | 2 +- .../preview/2023-04-01-preview/examples/ContainerApps_Stop.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json index ba950de31493..6b94cf1a8944 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json @@ -7,7 +7,7 @@ }, "responses": { "200": { - "headers": {} + "body": {} }, "202": { "headers": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json index ba950de31493..6b94cf1a8944 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json @@ -7,7 +7,7 @@ }, "responses": { "200": { - "headers": {} + "body": {} }, "202": { "headers": { From 66d02851449b4c3543703e27d9fc97c3cb3a551b Mon Sep 17 00:00:00 2001 From: Zijian Ju Date: Thu, 20 Apr 2023 16:48:13 +0800 Subject: [PATCH 11/13] Fix lint issue --- .../2023-04-01-preview/examples/ContainerApps_Start.json | 4 +++- .../2023-04-01-preview/examples/ContainerApps_Stop.json | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json index 6b94cf1a8944..8883bdd2ddb7 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json @@ -7,7 +7,9 @@ }, "responses": { "200": { - "body": {} + "body": { + "message": "" + } }, "202": { "headers": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json index 6b94cf1a8944..8883bdd2ddb7 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json @@ -7,7 +7,9 @@ }, "responses": { "200": { - "body": {} + "body": { + "message": "" + } }, "202": { "headers": { From e28bbe3ad6d20dce3bcbda7941c974020ef3ab39 Mon Sep 17 00:00:00 2001 From: Zijian Ju Date: Thu, 20 Apr 2023 16:55:49 +0800 Subject: [PATCH 12/13] Fix lint issue --- .../preview/2023-04-01-preview/ContainerApps.json | 6 ------ .../2023-04-01-preview/examples/ContainerApps_Start.json | 5 ----- .../2023-04-01-preview/examples/ContainerApps_Stop.json | 5 ----- 3 files changed, 16 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json index 8862d054b101..58d8a909d051 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json @@ -511,9 +511,6 @@ } ], "responses": { - "200": { - "description": "Container App started successfully." - }, "202": { "description": "Start operation is in progress.", "headers": { @@ -567,9 +564,6 @@ } ], "responses": { - "200": { - "description": "Container App stopped successfully." - }, "202": { "description": "Stop operation is in progress.", "headers": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json index 8883bdd2ddb7..fd07d819d999 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json @@ -6,11 +6,6 @@ "api-version": "2023-04-01-preview" }, "responses": { - "200": { - "body": { - "message": "" - } - }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json index 8883bdd2ddb7..fd07d819d999 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json @@ -6,11 +6,6 @@ "api-version": "2023-04-01-preview" }, "responses": { - "200": { - "body": { - "message": "" - } - }, "202": { "headers": { "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" From df755b5c5eba21600ed29c8ea7206d11dee4f07e Mon Sep 17 00:00:00 2001 From: Zijian Ju Date: Thu, 20 Apr 2023 17:16:48 +0800 Subject: [PATCH 13/13] Fix lint issue --- .../preview/2023-04-01-preview/ContainerApps.json | 6 ++++++ .../2023-04-01-preview/examples/ContainerApps_Start.json | 1 + .../2023-04-01-preview/examples/ContainerApps_Stop.json | 1 + 3 files changed, 8 insertions(+) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json index 58d8a909d051..8862d054b101 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json @@ -511,6 +511,9 @@ } ], "responses": { + "200": { + "description": "Container App started successfully." + }, "202": { "description": "Start operation is in progress.", "headers": { @@ -564,6 +567,9 @@ } ], "responses": { + "200": { + "description": "Container App stopped successfully." + }, "202": { "description": "Stop operation is in progress.", "headers": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json index fd07d819d999..e004baa6c7d7 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json @@ -6,6 +6,7 @@ "api-version": "2023-04-01-preview" }, "responses": { + "200": {}, "202": { "headers": { "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview" diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json index fd07d819d999..e004baa6c7d7 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json @@ -6,6 +6,7 @@ "api-version": "2023-04-01-preview" }, "responses": { + "200": {}, "202": { "headers": { "location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps/testWorkerApp0/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-04-01-preview"