From d0568db1287b6104afc5468cefaac8c1d352da9d Mon Sep 17 00:00:00 2001 From: Mason Chen Date: Fri, 22 Sep 2023 14:15:45 +0800 Subject: [PATCH] Add apiTryOutEnabledState for api protal --- .../preview/2023-11-01-preview/appplatform.json | 13 +++++++++++++ .../examples/ApiPortals_CreateOrUpdate.json | 6 ++++-- .../2023-11-01-preview/examples/ApiPortals_Get.json | 3 ++- .../examples/ApiPortals_List.json | 3 ++- 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/appplatform.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/appplatform.json index 55957d0ddfbc..3c5e7acbbff0 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/appplatform.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/appplatform.json @@ -14389,6 +14389,19 @@ "$ref": "#/definitions/ApiPortalInstance" }, "readOnly": true + }, + "apiTryOutEnabledState": { + "description": "Indicates whether the API try-out feature is enabled or disabled. When enabled, users can try out the API by sending requests and viewing responses in API portal. When disabled, users cannot try out the API.", + "type": "string", + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "ApiPortalApiTryOutEnabledState", + "modelAsString": true + } } } }, diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/ApiPortals_CreateOrUpdate.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/ApiPortals_CreateOrUpdate.json index 91a37753916c..7d56fda48988 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/ApiPortals_CreateOrUpdate.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/ApiPortals_CreateOrUpdate.json @@ -10,7 +10,8 @@ "public": true, "gatewayIds": [ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default" - ] + ], + "apiTryOutEnabledState": "Enabled" }, "sku": { "name": "E0", @@ -42,7 +43,8 @@ "name": "instance2", "status": "Running" } - ] + ], + "apiTryOutEnabledState": "Enabled" }, "sku": { "name": "E0", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/ApiPortals_Get.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/ApiPortals_Get.json index 6209bb5368c7..1fbe5831dd27 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/ApiPortals_Get.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/ApiPortals_Get.json @@ -29,7 +29,8 @@ "name": "instance2", "status": "Running" } - ] + ], + "apiTryOutEnabledState": "Enabled" }, "sku": { "name": "E0", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/ApiPortals_List.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/ApiPortals_List.json index b96e780c291b..03ca3b86b578 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/ApiPortals_List.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-11-01-preview/examples/ApiPortals_List.json @@ -30,7 +30,8 @@ "name": "instance2", "status": "Running" } - ] + ], + "apiTryOutEnabledState": "Enabled" }, "sku": { "name": "E0",