Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
{
"name": "Standard",
"id": "Standard",
"version": "1.0",
"description": "Provider CPU and FPGA QIO based solver.",
"restrictedAccessUri": "https://endpoint",
"targets": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"api-version": "2019-11-04-preview",
"locationName": "westus2",
"checkNameAvailabilityParameters": {
"name": "sample-workspace-name",
"type": "Microsoft.Quantum/Workspaces"
}
},
"responses": {
"200": {
"body": {
"nameAvailable": true,
"reason": ""
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@
"type": "SystemAssigned",
"principalId": "00000000-1111-2222-3333-444444444444",
"tenantId": "00000000-1111-2222-3333-444444444444"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
"type": "SystemAssigned",
"principalId": "00000000-1111-2222-3333-444444444444",
"tenantId": "00000000-1111-2222-3333-444444444444"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
"type": "SystemAssigned",
"principalId": "00000000-1111-2222-3333-444444444444",
"tenantId": "00000000-1111-2222-3333-444444444444"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@
"type": "SystemAssigned",
"principalId": "00000000-1111-2222-3333-444444444444",
"tenantId": "00000000-1111-2222-3333-444444444444"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@
"type": "SystemAssigned",
"principalId": "00000000-1111-2222-3333-444444444444",
"tenantId": "00000000-1111-2222-3333-444444444444"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
}
}
},
Expand Down Expand Up @@ -111,6 +119,14 @@
"type": "SystemAssigned",
"principalId": "00000000-1111-2222-3333-444444444444",
"tenantId": "00000000-1111-2222-3333-444444444444"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,52 @@
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/checkNameAvailability": {
"post": {
"description": "Check the availability of the resource name.",
"operationId": "Workspace_CheckNameAvailability",
"x-ms-examples": {
"QuantumWorkspacesCheckNameAvailability": {
"$ref": "./examples/quantumWorkspacesCheckNameAvailability.json"
}
},
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/LocationParameter"
},
{
"name": "checkNameAvailabilityParameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/CheckNameAvailabilityParameters"
},
"description": "The name and type of the resource."
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/CheckNameAvailabilityResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
"deprecated": false
}
}
},
"definitions": {
Expand Down Expand Up @@ -402,7 +448,7 @@
"properties": {
"properties": {
"x-ms-client-flatten": true,
"description": "Gets or sets the properties. Define quantum space's specific properties.",
"description": "Gets or sets the properties. Define quantum workspace's specific properties.",
"$ref": "#/definitions/WorkspaceResourceProperties"
},
"identity": {
Expand Down Expand Up @@ -432,6 +478,11 @@
}
}
}
},
"systemData": {
"description": "System metadata",
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData",
"readOnly": true
}
},
"allOf": [
Expand Down Expand Up @@ -654,6 +705,10 @@
"type": "string",
"description": "Display name of this sku."
},
"version": {
"type": "string",
"description": "Display name of this sku."
},
"description": {
"type": "string",
"description": "Description about this sku."
Expand Down Expand Up @@ -769,7 +824,8 @@
},
"applicationName": {
"type": "string",
"description": "The provider's marketplace application display name."
"description": "The provider's marketplace application display name.",
"readOnly": true
},
"provisioningState": {
"type": "string",
Expand All @@ -789,7 +845,8 @@
},
"resourceUsageId": {
"type": "string",
"description": "Id to track resource usage for the provider."
"description": "Id to track resource usage for the provider.",
"readOnly": true
}
}
},
Expand Down Expand Up @@ -848,6 +905,35 @@
"required": [
"value"
]
},
"CheckNameAvailabilityParameters": {
"description": "Details of check name availability request body.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name for checking availability."
},
"type": {
"type": "string",
"default": "Microsoft.Quantum/Workspaces",
"description": "The resource type of Quantum Workspace."
}
}
},
"CheckNameAvailabilityResult": {
"description": "Result of check name availability.",
"type": "object",
"properties": {
"nameAvailable": {
"type": "boolean",
"description": "Indicator of availability of the Quantum Workspace resource name."
},
"reason": {
Copy link
Member

@RamyasreeChakka RamyasreeChakka Feb 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@masenol Consider modeling this as enum if limited set of values are returned. If a property has a finite set of values (enforced by the service), the string property should be declared as an enum type in the Swagger (using the x-ms-enum annotation) to enable client-side input validation and discovery.
Refer API guidelines here: https://armwiki.azurewebsites.net/rp_onboarding/process/api_review_best_practices.html

"type": "string",
"description": "The reason of unavailability."
}
}
}
},
"parameters": {
Expand Down