From 4d770f7076d7a5ed6b03038a25aef34b9e3f6943 Mon Sep 17 00:00:00 2001 From: Jeff <1830237+domainname@users.noreply.github.com> Date: Fri, 8 Sep 2023 15:22:36 +0800 Subject: [PATCH] use enum for autoSync --- .../preview/2023-09-01-preview/appplatform.json | 14 +++++++++++--- .../examples/Certificates_CreateOrUpdate.json | 8 ++++---- .../examples/Certificates_Get.json | 2 +- .../examples/Certificates_List.json | 2 +- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/appplatform.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/appplatform.json index 503d3e0cd5cb..404da3a62015 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/appplatform.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/appplatform.json @@ -11637,9 +11637,17 @@ "default": false }, "autoSync": { - "description": "Indicates whether to automatically synchronize certificate from key vault.", - "type": "boolean", - "default": false + "description": "Indicates whether to automatically synchronize certificate from key vault or not.", + "enum": [ + "Disabled", + "Enabled" + ], + "default": "Disabled", + "type": "string", + "x-ms-enum": { + "name": "AutoSyncCertificate", + "modelAsString": true + } } }, "x-ms-discriminator-value": "KeyVaultCertificate" diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/examples/Certificates_CreateOrUpdate.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/examples/Certificates_CreateOrUpdate.json index 54869c3825b5..b5e9107ce409 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/examples/Certificates_CreateOrUpdate.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/examples/Certificates_CreateOrUpdate.json @@ -6,7 +6,7 @@ "vaultUri": "https://myvault.vault.azure.net", "keyVaultCertName": "mycert", "certVersion": "08a219d06d874795a96db47e06fbb01e", - "autoSync": true + "autoSync": "Enabled" } }, "api-version": "2023-09-01-preview", @@ -35,7 +35,7 @@ "mydomain.net", "mydomain.io" ], - "autoSync": true + "autoSync": "Enabled" }, "systemData": { "createdBy": "sample-user", @@ -69,7 +69,7 @@ "mydomain.net", "mydomain.io" ], - "autoSync": true + "autoSync": "Enabled" }, "type": "Microsoft.AppPlatform/Spring/certificates", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycertificate", @@ -95,7 +95,7 @@ "mydomain.net", "mydomain.io" ], - "autoSync": true + "autoSync": "Enabled" }, "type": "Microsoft.AppPlatform/Spring/certificates", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycertificate", diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/examples/Certificates_Get.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/examples/Certificates_Get.json index f7c3c190b395..ba097370486a 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/examples/Certificates_Get.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/examples/Certificates_Get.json @@ -26,7 +26,7 @@ "mydomain.net", "mydomain.io" ], - "autoSync": false, + "autoSync": "Disabled", "provisioningState": "Succeeded" }, "systemData": { diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/examples/Certificates_List.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/examples/Certificates_List.json index 487ad251b489..e080d07e5ea6 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/examples/Certificates_List.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2023-09-01-preview/examples/Certificates_List.json @@ -27,7 +27,7 @@ "mydomain.net", "mydomain.io" ], - "autoSync": false, + "autoSync": "Disabled", "provisioningState": "Succeeded" }, "systemData": {