Skip to content

Commit

Permalink
Add in missing commondefinitions and webapps.json that wasn't copied …
Browse files Browse the repository at this point in the history
…over from old version
  • Loading branch information
AppServiceSwagger committed Nov 30, 2020
1 parent 72b5bd4 commit 5bdac51
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2157,6 +2157,15 @@
"read"
]
},
"vnetRouteAllEnabled": {
"description": "Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied.",
"type": "boolean"
},
"vnetPrivatePortsCount": {
"format": "int32",
"description": "The number of private ports assigned to this app. These will be assigned dynamically on runtime.",
"type": "integer"
},
"cors": {
"$ref": "#/definitions/CorsSettings",
"description": "Cross-Origin Resource Sharing (CORS) settings."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,59 @@
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/previewStaticSiteWorkflowFile": {
"post": {
"tags": [
"StaticSites"
],
"summary": "Generates a preview workflow file for the static site",
"description": "Description for Generates a preview workflow file for the static site",
"operationId": "StaticSites_PreviewWorkflow",
"parameters": [
{
"name": "location",
"in": "path",
"description": "Location where you plan to create the static site.",
"required": true,
"type": "string"
},
{
"name": "staticSitesWorkflowPreviewRequest",
"in": "body",
"description": "A JSON representation of the StaticSitesWorkflowPreviewRequest properties. See example.",
"required": true,
"schema": {
"$ref": "#/definitions/StaticSitesWorkflowPreviewRequest"
}
},
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/StaticSitesWorkflowPreview"
}
},
"default": {
"description": "App Service error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Generates a preview workflow file for the static site": {
"$ref": "./examples/GenerateStaticSiteWorkflowPreview.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/staticSites": {
"get": {
"tags": [
Expand Down Expand Up @@ -1866,6 +1919,62 @@
"x-ms-client-flatten": true
}
}
},
"StaticSitesWorkflowPreview": {
"description": "Preview for the Static Site Workflow to be generated",
"type": "object",
"allOf": [
{
"$ref": "./CommonDefinitions.json#/definitions/ProxyOnlyResource"
}
],
"properties": {
"properties": {
"description": "StaticSitesWorkflowPreview resource specific properties",
"properties": {
"path": {
"description": "The path for the workflow file to be generated",
"type": "string",
"readOnly": true
},
"contents": {
"description": "The contents for the workflow file to be generated",
"type": "string",
"readOnly": true
}
},
"x-ms-client-flatten": true
}
}
},
"StaticSitesWorkflowPreviewRequest": {
"description": "Request entity for previewing the Static Site workflow",
"type": "object",
"allOf": [
{
"$ref": "./CommonDefinitions.json#/definitions/ProxyOnlyResource"
}
],
"properties": {
"properties": {
"description": "StaticSitesWorkflowPreviewRequest resource specific properties",
"properties": {
"repositoryUrl": {
"description": "URL for the repository of the static site.",
"type": "string"
},
"branch": {
"description": "The target branch in the repository.",
"type": "string"
},
"buildProperties": {
"$ref": "#/definitions/StaticSiteBuildProperties",
"description": "Build properties to configure on the repository."
}
},
"x-ms-client-flatten": true
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"location": "West US 2",
"api-version": "2020-09-01",
"staticSitesWorkflowPreviewRequest": {
"properties": {
"repositoryUrl": "https://github.com/username/RepoName",
"branch": "master",
"buildProperties": {
"appLocation": "app",
"apiLocation": "api",
"appArtifactLocation": "build"
}
}
}
},
"responses": {
"200": {
"headers": {},
"body": {
"properties": {
"path": ".github/workflows/azure-static-web-apps-<generated_hostname>.yml",
"contents": "base64encodedworkflowcontentspreview"
}
}
}
}
}

0 comments on commit 5bdac51

Please sign in to comment.