From 7dfc303ee18440ee5eede155bb0d63797fbdc4bb Mon Sep 17 00:00:00 2001 From: dannysongg <38927254+dannysongg@users.noreply.github.com> Date: Tue, 28 Mar 2023 17:11:32 -0700 Subject: [PATCH] Fix OneDeploy request and response bodies (#23224) * Fix OneDeploy request and response bodies * Fixing typo --- .../stable/2023-01-01/WebApps.json | 59 ++++++++++++++++++- 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2023-01-01/WebApps.json b/specification/web/resource-manager/Microsoft.Web/stable/2023-01-01/WebApps.json index 5bb245e1f09b..7846b6448af3 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2023-01-01/WebApps.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2023-01-01/WebApps.json @@ -3831,7 +3831,7 @@ "200": { "description": "OK", "schema": { - "type": "object" + "$ref": "#/definitions/Deployment" } }, "default": { @@ -3860,6 +3860,14 @@ "required": true, "type": "string" }, + { + "name": "request", + "in": "body", + "description": "Information on OneDeploy request", + "schema": { + "$ref": "#/definitions/OneDeployRequest" + } + }, { "$ref": "#/parameters/subscriptionIdParameter" }, @@ -3871,7 +3879,7 @@ "200": { "description": "OK", "schema": { - "type": "object" + "$ref": "#/definitions/Deployment" } }, "default": { @@ -26502,6 +26510,53 @@ "type": "object", "properties": {} }, + "OneDeployRequest": { + "type": "object", + "description": "OneDeploy settings defined by user", + "allOf": [ + { + "$ref": "./CommonDefinitions.json#/definitions/ProxyOnlyResource" + } + ], + "properties": { + "packageUri": { + "description": "The Uri where the source artifact can be pulled from", + "type": "string" + }, + "type": { + "description": "The type of the artifact being deployed", + "type": "string" + }, + "async": { + "description": "Specifies whether the deployment should be performed asynchronously", + "type": "boolean" + }, + "path": { + "description": "The absolute path to deploy the artifact to", + "type": "string" + }, + "restart": { + "description": "Specifies whether to restart the app following the deployment", + "type": "boolean" + }, + "clean": { + "description": "Specifies whether to clean the target deployment directory", + "type": "boolean" + }, + "ignoreStack": { + "description": "Disables any language-specific defaults", + "type": "boolean" + }, + "trackDeploymentProgress": { + "description": "The type of the artifact being deployed", + "type": "boolean" + }, + "reset": { + "description": "Resets Java apps to the default parking page if set to true with no type specified", + "type": "boolean" + } + } + }, "OpenAuthenticationAccessPolicies": { "type": "object", "description": "AuthenticationPolicy of type Open.",