From f9f7727c0ebbc6a0e0d64c1ad3fb64ca3d81132d Mon Sep 17 00:00:00 2001 From: Murilo Giacometti Rocha Date: Wed, 18 Apr 2018 14:05:53 -0700 Subject: [PATCH] Make id readonly by bringing properties from shared resource --- .../stable/2018-02-01/ddosProtectionPlan.json | 36 +++++++++++++++---- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/ddosProtectionPlan.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/ddosProtectionPlan.json index 765a2acb0fe8..fba0fc29fccb 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/ddosProtectionPlan.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-02-01/ddosProtectionPlan.json @@ -258,7 +258,35 @@ }, "definitions": { "DdosProtectionPlan": { + "description": "A DDoS protection plan in a resource group.", + "x-ms-azure-resource": true, "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + }, "properties": { "x-ms-client-flatten": true, "$ref": "#/definitions/DdosProtectionPlanPropertiesFormat", @@ -269,13 +297,7 @@ "type": "string", "description": "A unique read-only string that changes whenever the resource is updated." } - }, - "allOf": [ - { - "$ref": "./network.json#/definitions/Resource" - } - ], - "description": "A DDoS protection plan in a resource group." + } }, "DdosProtectionPlanPropertiesFormat": { "properties": {