From 97c0fdbf4aa7eb55317e9e24997cb155146b64f9 Mon Sep 17 00:00:00 2001 From: Roy Tan Date: Tue, 24 Nov 2020 16:32:10 -0800 Subject: [PATCH 1/2] fix spec --- ...heckNameAvailabilityForLocalUniqueness.json | 2 +- .../stable/2020-05-01/proxy.json | 18 +++++------------- .../stable/2020-05-01/spatial-anchors.json | 4 ++++ 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json index f7dc975be35d..d4961f796cd4 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/examples/proxy/CheckNameAvailabilityForLocalUniqueness.json @@ -11,7 +11,7 @@ "responses": { "200": { "body": { - "nameAvailable": "false", + "nameAvailable": false, "reason": "AlreadyExists", "message": "..." } diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/proxy.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/proxy.json index 34a1c29036f5..fbf6615bfda2 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/proxy.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/proxy.json @@ -144,7 +144,7 @@ "properties": { "nameAvailable": { "description": "if name Available", - "$ref": "#/definitions/NameAvailability" + "type":"boolean" }, "reason": { "description": "Resource Name To Verify", @@ -167,6 +167,10 @@ "display": { "description": "The object that represents the operation.", "$ref": "#/definitions/OperationDisplay" + }, + "isDataAction": { + "description": "Whether or not this is a data plane operation", + "type": "boolean" } } }, @@ -198,18 +202,6 @@ } } }, - "NameAvailability": { - "description": "Whether or not the name is available.", - "type": "string", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "NameAvailability", - "modelAsString": true - } - }, "NameUnavailableReason": { "description": "reason of name unavailable.", "type": "string", diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/spatial-anchors.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/spatial-anchors.json index d5c4f1a4d3c7..7145f2196a19 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/spatial-anchors.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/spatial-anchors.json @@ -392,6 +392,10 @@ "x-ms-client-flatten": true, "description": "Property bag.", "$ref": "./common.json#/definitions/MixedRealityAccountProperties" + }, + "identity": { + "description": "The identity associated with this account", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Identity" } } }, From a6a05a3d159a7ff6cd43c829719a93ba5368948a Mon Sep 17 00:00:00 2001 From: Roy Tan Date: Thu, 10 Dec 2020 09:09:50 -0800 Subject: [PATCH 2/2] fix prettier --- .../Microsoft.MixedReality/stable/2020-05-01/proxy.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/proxy.json b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/proxy.json index fbf6615bfda2..7dff07d5428f 100644 --- a/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/proxy.json +++ b/specification/mixedreality/resource-manager/Microsoft.MixedReality/stable/2020-05-01/proxy.json @@ -144,7 +144,7 @@ "properties": { "nameAvailable": { "description": "if name Available", - "type":"boolean" + "type": "boolean" }, "reason": { "description": "Resource Name To Verify",