From 13654a3cb5e44f4d63bfe9ce13c8e84dde6e6881 Mon Sep 17 00:00:00 2001 From: Arcturus Date: Tue, 11 Aug 2020 14:28:36 +0800 Subject: [PATCH] Fix `identity` in servicebus swagger (#10380) * Fix identity in servicebus * Principal ID and tenant ID should be readonly --- .../preview/2018-01-01-preview/servicebus-preview.json | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2018-01-01-preview/servicebus-preview.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2018-01-01-preview/servicebus-preview.json index 33c89e5d3e11..c089a7efe2e0 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2018-01-01-preview/servicebus-preview.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2018-01-01-preview/servicebus-preview.json @@ -956,6 +956,10 @@ "x-ms-client-flatten": true, "$ref": "#/definitions/SBNamespaceProperties", "description": "Properties of the namespace." + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "Properties of BYOK Identity description" } }, "allOf": [ @@ -998,10 +1002,6 @@ "type": "boolean", "description": "Enabling this property creates a Premium Service Bus Namespace in regions supported availability zones." }, - "identity": { - "$ref": "#/definitions/Identity", - "description": "Properties of BYOK Identity description" - }, "encryption": { "$ref": "#/definitions/Encryption", "description": "Properties of BYOK Encryption description" @@ -1291,10 +1291,12 @@ "properties": { "principalId": { "type": "string", + "readOnly": true, "description": "ObjectId from the KeyVault" }, "tenantId": { "type": "string", + "readOnly": true, "description": "TenantId from the KeyVault" }, "type": {