Skip to content

Commit 88b71df

Browse files
masenolMirzaSikander
authored andcommitted
[Quantum] Fixing correctness issue regarding the CheckNameAvailability (Azure#13360)
* [Quantum] Fixing correctness issue regarding the CheckNameAvailability API * Adding read-only property
1 parent b7b0460 commit 88b71df

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

specification/quantum/resource-manager/Microsoft.Quantum/preview/2019-11-04-preview/examples/quantumWorkspacesCheckNameAvailability.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
"responses": {
1212
"200": {
1313
"body": {
14-
"nameAvailable": true,
15-
"reason": ""
14+
"nameAvailable": false,
15+
"reason": "AlreadyExists",
16+
"message": "Resource name already exists"
1617
}
1718
}
1819
}

specification/quantum/resource-manager/Microsoft.Quantum/preview/2019-11-04-preview/quantum.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,11 @@
930930
"reason": {
931931
"type": "string",
932932
"description": "The reason of unavailability."
933+
},
934+
"message": {
935+
"readOnly": true,
936+
"type": "string",
937+
"description": "The detailed info regarding the reason associated with the Namespace."
933938
}
934939
}
935940
}

0 commit comments

Comments
 (0)