From 03fcd07f212935a6b0b5bccd68069183561d46fe Mon Sep 17 00:00:00 2001 From: jiansong-msft <77516279+jiansong-msft@users.noreply.github.com> Date: Tue, 7 Jun 2022 17:35:23 -0700 Subject: [PATCH] PublicNetworkAccess Swagger Change (#19352) * add publicNetworkAccess property in site for swagger * add suppression to fix Model Validation CI * Add allowed values in the description --- .../Microsoft.Web/stable/2022-03-01/CommonDefinitions.json | 4 ++++ .../Microsoft.Web/stable/2022-03-01/StaticSites.json | 4 ++++ .../Microsoft.Web/stable/2022-03-01/WebApps.json | 4 ++++ specification/web/resource-manager/readme.md | 6 ++++++ 4 files changed, 18 insertions(+) diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/CommonDefinitions.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/CommonDefinitions.json index 0787946ce2cb..67ad7873982c 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/CommonDefinitions.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/CommonDefinitions.json @@ -3001,6 +3001,10 @@ "readOnly": true, "example": "00000000-0000-0000-0000-000000000000" }, + "publicNetworkAccess": { + "description": "Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string.", + "type": "string" + }, "storageAccountRequired": { "description": "Checks if Customer provided storage account is required", "type": "boolean" diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/StaticSites.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/StaticSites.json index 0704506cc137..1c28ba5b1b68 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/StaticSites.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/StaticSites.json @@ -3516,6 +3516,10 @@ "name": "EnterpriseGradeCdnStatus", "modelAsString": true } + }, + "publicNetworkAccess": { + "description": "State indicating whether public traffic are allowed or not for a static web app. Allowed Values: 'Enabled', 'Disabled' or an empty string.", + "type": "string" } } }, diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/WebApps.json b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/WebApps.json index 7bed79b8f53d..5604d5616258 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/WebApps.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2022-03-01/WebApps.json @@ -25822,6 +25822,10 @@ "readOnly": true, "example": "00000000-0000-0000-0000-000000000000" }, + "publicNetworkAccess": { + "description": "Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string.", + "type": "string" + }, "storageAccountRequired": { "description": "Checks if Customer provided storage account is required", "type": "boolean" diff --git a/specification/web/resource-manager/readme.md b/specification/web/resource-manager/readme.md index e57844f75b77..c7ad500eacbd 100644 --- a/specification/web/resource-manager/readme.md +++ b/specification/web/resource-manager/readme.md @@ -67,6 +67,12 @@ directive: - suppress: XMS_EXAMPLE_NOTFOUND_ERROR from: WebApps.json reason: Retroactive addition of missing examples out of scope at this time. + - suppress: RESPONSE_STATUS_CODE_NOT_IN_SPEC + from: StaticSites.json + reason: Retroactive addition of missing examples out of scope at this time. + - suppress: RESPONSE_STATUS_CODE_NOT_IN_EXAMPLE + from: StaticSites.json + reason: Retroactive addition of missing examples out of scope at this time. ```