From 6c2b778a80d05c0099240e08dd5229ba4512786f Mon Sep 17 00:00:00 2001 From: Mahmut Burak Senol Date: Tue, 9 Mar 2021 16:04:42 -0800 Subject: [PATCH 1/2] [Quantum] Fixing correctness issue regarding the CheckNameAvailability API --- .../examples/quantumWorkspacesCheckNameAvailability.json | 5 +++-- .../preview/2019-11-04-preview/quantum.json | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2019-11-04-preview/examples/quantumWorkspacesCheckNameAvailability.json b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2019-11-04-preview/examples/quantumWorkspacesCheckNameAvailability.json index 78dbf1fe48b1..34c0d6f1cbf6 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2019-11-04-preview/examples/quantumWorkspacesCheckNameAvailability.json +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2019-11-04-preview/examples/quantumWorkspacesCheckNameAvailability.json @@ -11,8 +11,9 @@ "responses": { "200": { "body": { - "nameAvailable": true, - "reason": "" + "nameAvailable": false, + "reason": "AlreadyExists", + "message": "Resource name already exists" } } } diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2019-11-04-preview/quantum.json b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2019-11-04-preview/quantum.json index e8941d9e760c..d65fe836fa92 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2019-11-04-preview/quantum.json +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2019-11-04-preview/quantum.json @@ -930,6 +930,10 @@ "reason": { "type": "string", "description": "The reason of unavailability." + }, + "message": { + "type": "string", + "description": "The detailed info regarding the reason associated with the Namespace." } } } From a53aae62b7a834b0785c8fd18faa72ae682d04d5 Mon Sep 17 00:00:00 2001 From: Mahmut Burak Senol Date: Wed, 10 Mar 2021 09:21:13 -0800 Subject: [PATCH 2/2] Adding read-only property --- .../Microsoft.Quantum/preview/2019-11-04-preview/quantum.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2019-11-04-preview/quantum.json b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2019-11-04-preview/quantum.json index d65fe836fa92..036be7d3bfb6 100644 --- a/specification/quantum/resource-manager/Microsoft.Quantum/preview/2019-11-04-preview/quantum.json +++ b/specification/quantum/resource-manager/Microsoft.Quantum/preview/2019-11-04-preview/quantum.json @@ -932,6 +932,7 @@ "description": "The reason of unavailability." }, "message": { + "readOnly": true, "type": "string", "description": "The detailed info regarding the reason associated with the Namespace." }