Skip to content

Commit

Permalink
[Quantum] Addressing swagger completeness and correctness errors (Azu…
Browse files Browse the repository at this point in the history
…re#13150)

* [Quantum] Addressing swagger completeness and correctness errors

* Fixing errors in SpellCheck and PrettierCheck
  • Loading branch information
masenol authored and mkarmark committed Jul 20, 2021
1 parent 7d53b67 commit f3b775c
Show file tree
Hide file tree
Showing 8 changed files with 157 additions and 3 deletions.
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": {
"type": "string",
"description": "The reason of unavailability."
}
}
}
},
"parameters": {
Expand Down

0 comments on commit f3b775c

Please sign in to comment.