From a1573514f8f278d35795b73e0ecad7c8d35dd648 Mon Sep 17 00:00:00 2001 From: Steven Vukelich Date: Sun, 6 Mar 2022 17:36:42 -0800 Subject: [PATCH] Add x-ms-identifiers to resources/resource-manager. (#17766) Co-authored-by: Steven Vukelich --- .../stable/2020-05-01/locks.json | 4 ++ .../2020-09-01/dataPolicyManifests.json | 13 +++++++ .../stable/2021-06-01/policyAssignments.json | 4 ++ .../stable/2021-06-01/policyDefinitions.json | 1 + .../2021-06-01/policySetDefinitions.json | 6 +++ .../stable/2021-07-01/features.json | 6 ++- .../stable/2016-09-01/links.json | 3 ++ .../stable/2020-06-01/resources.json | 1 + .../stable/2020-10-01/deploymentScripts.json | 5 ++- .../stable/2021-01-01/subscriptions.json | 13 +++++++ .../stable/2021-04-01/resources.json | 38 ++++++++++++++++++- .../stable/2021-05-01/templateSpecs.json | 3 ++ .../2018-06-01/managedapplications.json | 15 +++++++- 13 files changed, 107 insertions(+), 5 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json index 9a58ec7f0eca..cdf8070f209c 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json @@ -1075,6 +1075,9 @@ "items": { "$ref": "#/definitions/ManagementLockOwner" }, + "x-ms-identifiers": [ + "applicationId" + ], "description": "The owners of the lock." } }, @@ -1167,6 +1170,7 @@ "items": { "$ref": "#/definitions/Operation" }, + "x-ms-identifiers": [], "description": "List of Microsoft.Authorization operations." }, "nextLink": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/dataPolicyManifests.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/dataPolicyManifests.json index 2e6c787d2834..1230fb65f259 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/dataPolicyManifests.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/dataPolicyManifests.json @@ -167,6 +167,10 @@ "items": { "$ref": "#/definitions/DataManifestCustomResourceFunctionDefinition" }, + "x-ms-identifiers": [ + "name", + "fullyQualifiedResourceType" + ], "description": "An array of data manifest custom resource definition." } }, @@ -196,6 +200,9 @@ "items": { "$ref": "../../../Microsoft.Resources/stable/2020-06-01/resources.json#/definitions/Alias" }, + "x-ms-identifiers": [ + "name" + ], "description": "The aliases for property names." } }, @@ -223,6 +230,9 @@ "items": { "$ref": "#/definitions/ResourceTypeAliases" }, + "x-ms-identifiers": [ + "resourceType" + ], "description": "An array of resource type aliases." }, "effects": { @@ -230,6 +240,9 @@ "items": { "$ref": "#/definitions/DataEffect" }, + "x-ms-identifiers": [ + "name" + ], "description": "The effect definition." }, "fieldValues": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policyAssignments.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policyAssignments.json index 774fbb3c0d9d..52286009c752 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policyAssignments.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policyAssignments.json @@ -765,6 +765,10 @@ "items": { "$ref": "#/definitions/NonComplianceMessage" }, + "x-ms-identifiers": [ + "message", + "policyDefinitionReferenceId" + ], "description": "The messages that describe why a resource is non-compliant with the policy." } }, diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policyDefinitions.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policyDefinitions.json index 91e32c41f0c6..2ba6c22217af 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policyDefinitions.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policyDefinitions.json @@ -566,6 +566,7 @@ "items": { "type": "object" }, + "x-ms-identifiers": [], "description": "The allowed values for the parameter." }, "defaultValue": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policySetDefinitions.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policySetDefinitions.json index 37fc417b421f..c2b0255ceb9b 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policySetDefinitions.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2021-06-01/policySetDefinitions.json @@ -550,6 +550,9 @@ "items": { "$ref": "#/definitions/PolicyDefinitionReference" }, + "x-ms-identifiers": [ + "policyDefinitionReferenceId" + ], "description": "An array of policy definition references." }, "policyDefinitionGroups": { @@ -557,6 +560,9 @@ "items": { "$ref": "#/definitions/PolicyDefinitionGroup" }, + "x-ms-identifiers": [ + "name" + ], "description": "The metadata describing groups of policy definition references within the policy set definition." } }, diff --git a/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/features.json b/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/features.json index 64550d6d16e1..378154ffc4c9 100644 --- a/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/features.json +++ b/specification/resources/resource-manager/Microsoft.Features/stable/2021-07-01/features.json @@ -395,6 +395,9 @@ "items": { "$ref": "#/definitions/Operation" }, + "x-ms-identifiers": [ + "name" + ], "description": "List of Microsoft.Features operations." }, "nextLink": { @@ -432,7 +435,8 @@ "type": "array", "items": { "$ref": "#/definitions/ErrorDefinition" - } + }, + "x-ms-identifiers": [] } } } diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2016-09-01/links.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2016-09-01/links.json index 3e40f3b45996..fc6bd702fd51 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2016-09-01/links.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2016-09-01/links.json @@ -363,6 +363,9 @@ "items": { "$ref": "#/definitions/Operation" }, + "x-ms-identifiers": [ + "name" + ], "description": "List of Microsoft.Resources operations." }, "nextLink": { diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json index b45427c6a5c6..96ed5637d6f8 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json @@ -4781,6 +4781,7 @@ "items": { "$ref": "#/definitions/AliasPath" }, + "x-ms-identifiers": [], "description": "The paths for an alias." }, "type": { diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/deploymentScripts.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/deploymentScripts.json index 2d344824ae5b..2cb992cdb75a 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/deploymentScripts.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/deploymentScripts.json @@ -593,7 +593,10 @@ "type": "array", "items": { "$ref": "#/definitions/EnvironmentVariable" - } + }, + "x-ms-identifiers": [ + "name" + ] }, "forceUpdateTag": { "type": "string", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/subscriptions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/subscriptions.json index e8fe4a1afdf4..3e83a8bd8f27 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/subscriptions.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/subscriptions.json @@ -474,6 +474,9 @@ "items": { "$ref": "#/definitions/ManagedByTenant" }, + "x-ms-identifiers": [ + "tenantId" + ], "description": "An array containing the tenants managing the subscription." }, "tags": { @@ -722,6 +725,9 @@ "items": { "$ref": "#/definitions/Operation" }, + "x-ms-identifiers": [ + "name" + ], "description": "List of Microsoft.Resources operations." }, "nextLink": { @@ -765,6 +771,9 @@ "items": { "$ref": "#/definitions/AvailabilityZonePeers" }, + "x-ms-identifiers": [ + "availabilityZone" + ], "description": "The Availability Zones shared by the subscriptions." } } @@ -782,6 +791,10 @@ "items": { "$ref": "#/definitions/Peers" }, + "x-ms-identifiers": [ + "availabilityZone", + "subscriptionId" + ], "description": "Details of shared availability zone." } }, diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/resources.json index 62cc74084494..f8d84a66bd1b 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/resources.json @@ -4908,6 +4908,7 @@ "items": { "$ref": "#/definitions/AliasPath" }, + "x-ms-identifiers": [], "description": "The paths for an alias." }, "type": { @@ -4991,6 +4992,10 @@ "items": { "$ref": "#/definitions/ProviderExtendedLocation" }, + "x-ms-identifiers": [ + "location", + "type" + ], "description": "The location mappings that are supported by this resource type." }, "aliases": { @@ -4998,6 +5003,9 @@ "items": { "$ref": "#/definitions/Alias" }, + "x-ms-identifiers": [ + "name" + ], "description": "The aliases that are supported by this resource type." }, "apiVersions": { @@ -5016,7 +5024,10 @@ "type": "array", "items": { "$ref": "#/definitions/ZoneMapping" - } + }, + "x-ms-identifiers": [ + "location" + ] }, "apiProfiles": { "type": "array", @@ -5024,6 +5035,10 @@ "items": { "$ref": "#/definitions/ApiProfile" }, + "x-ms-identifiers": [ + "apiVersion", + "profileVersion" + ], "description": "The API profiles for the resource provider." }, "capabilities": { @@ -5068,6 +5083,9 @@ "items": { "$ref": "#/definitions/ProviderResourceType" }, + "x-ms-identifiers": [ + "resourceType" + ], "description": "The collection of provider resource types." }, "providerAuthorizationConsentState": { @@ -5407,6 +5425,9 @@ "items": { "$ref": "#/definitions/ProviderResourceType" }, + "x-ms-identifiers": [ + "resourceType" + ], "description": "An array of resource types." }, "nextLink": { @@ -6126,6 +6147,9 @@ "items": { "$ref": "#/definitions/Operation" }, + "x-ms-identifiers": [ + "name" + ], "description": "List of Microsoft.Resources operations." }, "nextLink": { @@ -6207,6 +6231,9 @@ "items": { "$ref": "#/definitions/WhatIfPropertyChange" }, + "x-ms-identifiers": [ + "path" + ], "description": "Nested property changes." } }, @@ -6287,6 +6314,9 @@ "items": { "$ref": "#/definitions/WhatIfPropertyChange" }, + "x-ms-identifiers": [ + "path" + ], "description": "The predicted changes to resource properties." } } @@ -6299,6 +6329,10 @@ "items": { "$ref": "#/definitions/WhatIfChange" }, + "x-ms-identifiers": [ + "resourceId", + "changeType" + ], "description": "List of resource changes predicted by What-If operation." } } @@ -6454,6 +6488,7 @@ "items": { "$ref": "#/definitions/Permission" }, + "x-ms-identifiers": [], "description": "Role definition permissions." }, "scopes": { @@ -6505,6 +6540,7 @@ "items": { "$ref": "#/definitions/ProviderPermission" }, + "x-ms-identifiers": [], "description": "An array of provider permissions." }, "nextLink": { diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/templateSpecs.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/templateSpecs.json index e6a6b1c38e21..fdcc5063ece1 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/templateSpecs.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2021-05-01/templateSpecs.json @@ -745,6 +745,9 @@ "items": { "$ref": "#/definitions/LinkedTemplateArtifact" }, + "x-ms-identifiers": [ + "path" + ], "description": "An array of linked template artifacts." }, "metadata": { diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index 783627c1c356..bd7b751c934a 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -1147,14 +1147,22 @@ "type": "array", "items": { "$ref": "#/definitions/ApplicationProviderAuthorization" - } + }, + "x-ms-identifiers": [ + "principalId", + "roleDefinitionId" + ] }, "artifacts": { "description": "The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.", "type": "array", "items": { "$ref": "#/definitions/ApplicationArtifact" - } + }, + "x-ms-identifiers": [ + "name", + "uri" + ] }, "description": { "type": "string", @@ -1514,6 +1522,9 @@ "items": { "$ref": "#/definitions/Operation" }, + "x-ms-identifiers": [ + "name" + ], "description": "List of Microsoft.Solutions operations." }, "nextLink": {