From 500d2cee1a3b61d153478a5c325a675bc48129c9 Mon Sep 17 00:00:00 2001 From: rrahulms <42217269+rrahulms@users.noreply.github.com> Date: Thu, 18 Nov 2021 16:27:43 -0800 Subject: [PATCH 1/2] Change route and security policy to use ActivatedResourceReference for domains associated Routes and security policies can know if their associated domains are validated or not by using ActivatedResourceReference, which contains a property to indicate the domain validation state. --- .../Microsoft.Cdn/stable/2021-06-01/afdx.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/afdx.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/afdx.json index 5ada28d5e3cb..0f1b7814833d 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/afdx.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/afdx.json @@ -4366,7 +4366,7 @@ "description": "List of domains.", "type": "array", "items": { - "$ref": "./cdn.json#/definitions/ResourceReference" + "$ref": "./cdn.json#/definitions/ActivatedResourceReference" } }, "patternsToMatch": { @@ -5092,7 +5092,7 @@ "description": "Domains referenced by this endpoint.", "type": "array", "items": { - "$ref": "./cdn.json#/definitions/ResourceReference" + "$ref": "./cdn.json#/definitions/ActivatedResourceReference" } }, "originGroup": { @@ -5795,4 +5795,4 @@ "description": "Name of the Resource group within the Azure subscription." } } -} \ No newline at end of file +} From 05282f72f7771679edcc6425c1ad70c07efb7ac3 Mon Sep 17 00:00:00 2001 From: rrahulms <42217269+rrahulms@users.noreply.github.com> Date: Thu, 18 Nov 2021 16:42:08 -0800 Subject: [PATCH 2/2] Add ActivatedResourceReference support Adding support to have a resource reference with a property to indicate whether the resource is active. To start with, this would indicate whether a domain referenced is active or inactive, but it can also be used for other purposes in the future. --- .../Microsoft.Cdn/stable/2021-06-01/cdn.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/cdn.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/cdn.json index 5432f7a261aa..1fff8928eb8a 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/cdn.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/cdn.json @@ -4546,6 +4546,20 @@ "description": "Reference to another resource.", "x-ms-azure-resource": true }, + "ActivatedResourceReference": { + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + }, + "IsActive": { + "type": "boolean", + "description": "Whether the resource is active or inactive" + } + }, + "description": "Reference to another resource along with its state.", + "x-ms-azure-resource": true + }, "GeoFilter": { "description": "Rules defining user's geo access within a CDN endpoint.", "type": "object",