From 680eab4812071a9a631b83b7dc4eeea27b3d3a3f Mon Sep 17 00:00:00 2001 From: Xingjian Wang <79332479+xwang971@users.noreply.github.com> Date: Mon, 8 Aug 2022 21:00:41 -0700 Subject: [PATCH] change response code (#20081) --- .../preview/2022-01-01-preview/SourceControls.json | 8 ++++---- .../examples/SourceControls_CreateOrUpdate.json | 2 +- .../Microsoft.App/stable/2022-03-01/SourceControls.json | 8 ++++---- .../examples/SourceControls_CreateOrUpdate.json | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/SourceControls.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/SourceControls.json index 9a20c0263452..72f8b693e794 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/SourceControls.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/SourceControls.json @@ -177,13 +177,13 @@ ], "responses": { "200": { - "description": "No change performed on the Container App.", + "description": "OK", "schema": { "$ref": "#/definitions/SourceControl" } }, - "202": { - "description": "Container App create or update has been started.", + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/SourceControl" } @@ -236,7 +236,7 @@ ], "responses": { "200": { - "description": "Container App deleted successfully." + "description": "Container App SourceControl deleted successfully." }, "202": { "description": "Delete operation is in progress." diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_CreateOrUpdate.json index a3a5bd3e2b5d..485e17cf743b 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-01-01-preview/examples/SourceControls_CreateOrUpdate.json @@ -44,7 +44,7 @@ } } }, - "202": { + "201": { "headers": { "location": "https://localhost/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/currentInOperationModel/operationresults/5a7f31af-8ae5-489b-a67e-f0a2d11df796?api-version=2021-03-01" }, diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json index 9b2156e9fbfa..bd41835676ba 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/SourceControls.json @@ -177,13 +177,13 @@ ], "responses": { "200": { - "description": "No change performed on the Container App.", + "description": "OK", "schema": { "$ref": "#/definitions/SourceControl" } }, - "202": { - "description": "Container App create or update has been started.", + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/SourceControl" } @@ -236,7 +236,7 @@ ], "responses": { "200": { - "description": "Container App deleted successfully." + "description": "Container App SourceControl deleted successfully." }, "202": { "description": "Delete operation is in progress." diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json index f304e1427005..49ecf9be5314 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/SourceControls_CreateOrUpdate.json @@ -48,7 +48,7 @@ } } }, - "202": { + "201": { "headers": { "location": "https://localhost/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/sourcecontrols/currentInOperationModel/operationresults/5a7f31af-8ae5-489b-a67e-f0a2d11df796?api-version=2021-03-01" },