Skip to content

Commit 2adb8e0

Browse files
committed
Onboarding Microsoft.Quantum for autogeneration
1 parent 10d28e7 commit 2adb8e0

File tree

3 files changed

+177
-0
lines changed

3 files changed

+177
-0
lines changed

generator/autogenlist.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,10 @@ const autogenlist: AutogenlistConfig[] = [
682682
namespace: 'Microsoft.Insights',
683683
suffix: 'Application',
684684
},
685+
{
686+
basePath: 'quantum/resource-manager',
687+
namespace: 'Microsoft.Quantum',
688+
},
685689
];
686690

687691
export function getAutogenlist(): AutogenlistConfig[] {
Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2019-11-04-preview/Microsoft.Quantum.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.Quantum",
5+
"description": "Microsoft Quantum Resource Types",
6+
"resourceDefinitions": {
7+
"workspaces": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2019-11-04-preview"
14+
]
15+
},
16+
"identity": {
17+
"oneOf": [
18+
{
19+
"$ref": "#/definitions/QuantumWorkspaceIdentity"
20+
},
21+
{
22+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
23+
}
24+
],
25+
"description": "Managed Identity information."
26+
},
27+
"location": {
28+
"type": "string",
29+
"description": "The geo-location where the resource lives"
30+
},
31+
"name": {
32+
"type": "string",
33+
"description": "The name of the quantum workspace resource."
34+
},
35+
"properties": {
36+
"oneOf": [
37+
{
38+
"$ref": "#/definitions/WorkspaceResourceProperties"
39+
},
40+
{
41+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
42+
}
43+
],
44+
"description": "Properties of a Workspace"
45+
},
46+
"tags": {
47+
"oneOf": [
48+
{
49+
"type": "object",
50+
"additionalProperties": {
51+
"type": "string"
52+
},
53+
"properties": {}
54+
},
55+
{
56+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
57+
}
58+
],
59+
"description": "Resource tags."
60+
},
61+
"type": {
62+
"type": "string",
63+
"enum": [
64+
"Microsoft.Quantum/workspaces"
65+
]
66+
}
67+
},
68+
"required": [
69+
"apiVersion",
70+
"location",
71+
"name",
72+
"properties",
73+
"type"
74+
],
75+
"description": "Microsoft.Quantum/workspaces"
76+
}
77+
},
78+
"definitions": {
79+
"Provider": {
80+
"type": "object",
81+
"properties": {
82+
"applicationName": {
83+
"type": "string",
84+
"description": "The provider's marketplace application display name."
85+
},
86+
"instanceUri": {
87+
"type": "string",
88+
"description": "A Uri identifying the specific instance of this provider."
89+
},
90+
"providerId": {
91+
"type": "string",
92+
"description": "Unique id of this provider."
93+
},
94+
"providerSku": {
95+
"type": "string",
96+
"description": "The sku associated with pricing information for this provider."
97+
},
98+
"provisioningState": {
99+
"oneOf": [
100+
{
101+
"type": "string",
102+
"enum": [
103+
"Succeeded",
104+
"Launching",
105+
"Updating",
106+
"Deleting",
107+
"Deleted",
108+
"Failed"
109+
]
110+
},
111+
{
112+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
113+
}
114+
],
115+
"description": "Provisioning status field."
116+
},
117+
"resourceUsageId": {
118+
"type": "string",
119+
"description": "Id to track resource usage for the provider."
120+
}
121+
},
122+
"description": "Information about a Provider. A Provider is an entity that offers Targets to run Azure Quantum Jobs."
123+
},
124+
"QuantumWorkspaceIdentity": {
125+
"type": "object",
126+
"properties": {
127+
"type": {
128+
"oneOf": [
129+
{
130+
"type": "string",
131+
"enum": [
132+
"SystemAssigned",
133+
"None"
134+
]
135+
},
136+
{
137+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
138+
}
139+
],
140+
"description": "The identity type."
141+
}
142+
},
143+
"description": "Managed Identity information."
144+
},
145+
"WorkspaceResourceProperties": {
146+
"type": "object",
147+
"properties": {
148+
"providers": {
149+
"oneOf": [
150+
{
151+
"type": "array",
152+
"items": {
153+
"$ref": "#/definitions/Provider"
154+
}
155+
},
156+
{
157+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
158+
}
159+
],
160+
"description": "List of Providers selected for this Workspace"
161+
},
162+
"storageAccount": {
163+
"type": "string",
164+
"description": "ARM Resource Id of the storage account associated with this workspace."
165+
}
166+
},
167+
"description": "Properties of a Workspace"
168+
}
169+
}
170+
}

schemas/common/autogeneratedResources.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4882,6 +4882,9 @@
48824882
{
48834883
"$ref": "https://schema.management.azure.com/schemas/2020-10-30-preview/Microsoft.PowerPlatform.json#/resourceDefinitions/enterprisePolicies_subnets"
48844884
},
4885+
{
4886+
"$ref": "https://schema.management.azure.com/schemas/2019-11-04-preview/Microsoft.Quantum.json#/resourceDefinitions/workspaces"
4887+
},
48854888
{
48864889
"$ref": "https://schema.management.azure.com/schemas/2016-06-01/Microsoft.RecoveryServices.Backup.json#/resourceDefinitions/vaults_backupFabrics_protectionContainers_protectedItems"
48874890
},

0 commit comments

Comments
 (0)