Skip to content

Commit 2f22056

Browse files
Merge pull request #1464 from leni-msft/onboard-mixedreality
Onboard mixedreality for schema autogeneration
2 parents 51f2acf + 7d27bf7 commit 2f22056

File tree

6 files changed

+557
-0
lines changed

6 files changed

+557
-0
lines changed

generator/autogenlist.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,10 @@ const autogenlist: AutogenlistConfig[] = [
393393
basePath: 'maps/resource-manager',
394394
namespace: 'Microsoft.Maps',
395395
},
396+
{
397+
basePath: 'mixedreality/resource-manager',
398+
namespace: 'Microsoft.MixedReality',
399+
},
396400
{
397401
basePath: 'netapp/resource-manager',
398402
namespace: 'Microsoft.NetApp',
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2019-02-28-preview/Microsoft.MixedReality.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.MixedReality",
5+
"description": "Microsoft MixedReality Resource Types",
6+
"resourceDefinitions": {
7+
"spatialAnchorsAccounts": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2019-02-28-preview"
14+
]
15+
},
16+
"identity": {
17+
"oneOf": [
18+
{
19+
"$ref": "#/definitions/Identity"
20+
},
21+
{
22+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
23+
}
24+
],
25+
"description": "Identity for the resource."
26+
},
27+
"location": {
28+
"type": "string",
29+
"description": "The geo-location where the resource lives"
30+
},
31+
"name": {
32+
"oneOf": [
33+
{
34+
"type": "string",
35+
"pattern": "^[-\\w\\._\\(\\)]+$",
36+
"minLength": 1,
37+
"maxLength": 90
38+
},
39+
{
40+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
41+
}
42+
],
43+
"description": "Name of an Mixed Reality Spatial Anchors Account."
44+
},
45+
"properties": {
46+
"oneOf": [
47+
{
48+
"$ref": "#/definitions/SpatialAnchorsAccountProperties"
49+
},
50+
{
51+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
52+
}
53+
],
54+
"description": "Spatial Anchors Account Customize Properties"
55+
},
56+
"tags": {
57+
"oneOf": [
58+
{
59+
"type": "object",
60+
"additionalProperties": {
61+
"type": "string"
62+
},
63+
"properties": {}
64+
},
65+
{
66+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
67+
}
68+
],
69+
"description": "Resource tags."
70+
},
71+
"type": {
72+
"type": "string",
73+
"enum": [
74+
"Microsoft.MixedReality/spatialAnchorsAccounts"
75+
]
76+
}
77+
},
78+
"required": [
79+
"apiVersion",
80+
"location",
81+
"name",
82+
"properties",
83+
"type"
84+
],
85+
"description": "Microsoft.MixedReality/spatialAnchorsAccounts"
86+
}
87+
},
88+
"definitions": {
89+
"Identity": {
90+
"type": "object",
91+
"properties": {
92+
"type": {
93+
"oneOf": [
94+
{
95+
"type": "string",
96+
"enum": [
97+
"SystemAssigned"
98+
]
99+
},
100+
{
101+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
102+
}
103+
],
104+
"description": "The identity type."
105+
}
106+
},
107+
"description": "Identity for the resource."
108+
},
109+
"SpatialAnchorsAccountProperties": {
110+
"type": "object",
111+
"properties": {},
112+
"description": "Spatial Anchors Account Customize Properties"
113+
}
114+
}
115+
}
Lines changed: 195 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2019-12-02-preview/Microsoft.MixedReality.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.MixedReality",
5+
"description": "Microsoft MixedReality Resource Types",
6+
"resourceDefinitions": {
7+
"remoteRenderingAccounts": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2019-12-02-preview"
14+
]
15+
},
16+
"identity": {
17+
"oneOf": [
18+
{
19+
"$ref": "#/definitions/Identity"
20+
},
21+
{
22+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
23+
}
24+
],
25+
"description": "Identity for the resource."
26+
},
27+
"location": {
28+
"type": "string",
29+
"description": "The geo-location where the resource lives"
30+
},
31+
"name": {
32+
"oneOf": [
33+
{
34+
"type": "string",
35+
"pattern": "^[-\\w\\._\\(\\)]+$",
36+
"minLength": 1,
37+
"maxLength": 90
38+
},
39+
{
40+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
41+
}
42+
],
43+
"description": "Name of an Mixed Reality Account."
44+
},
45+
"properties": {
46+
"oneOf": [
47+
{
48+
"$ref": "#/definitions/MixedRealityAccountProperties"
49+
},
50+
{
51+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
52+
}
53+
],
54+
"description": "Common Properties shared by Mixed Reality Accounts"
55+
},
56+
"tags": {
57+
"oneOf": [
58+
{
59+
"type": "object",
60+
"additionalProperties": {
61+
"type": "string"
62+
},
63+
"properties": {}
64+
},
65+
{
66+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
67+
}
68+
],
69+
"description": "Resource tags."
70+
},
71+
"type": {
72+
"type": "string",
73+
"enum": [
74+
"Microsoft.MixedReality/remoteRenderingAccounts"
75+
]
76+
}
77+
},
78+
"required": [
79+
"apiVersion",
80+
"location",
81+
"name",
82+
"properties",
83+
"type"
84+
],
85+
"description": "Microsoft.MixedReality/remoteRenderingAccounts"
86+
},
87+
"spatialAnchorsAccounts": {
88+
"type": "object",
89+
"properties": {
90+
"apiVersion": {
91+
"type": "string",
92+
"enum": [
93+
"2019-12-02-preview"
94+
]
95+
},
96+
"identity": {
97+
"oneOf": [
98+
{
99+
"$ref": "#/definitions/Identity"
100+
},
101+
{
102+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
103+
}
104+
],
105+
"description": "Identity for the resource."
106+
},
107+
"location": {
108+
"type": "string",
109+
"description": "The geo-location where the resource lives"
110+
},
111+
"name": {
112+
"oneOf": [
113+
{
114+
"type": "string",
115+
"pattern": "^[-\\w\\._\\(\\)]+$",
116+
"minLength": 1,
117+
"maxLength": 90
118+
},
119+
{
120+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
121+
}
122+
],
123+
"description": "Name of an Mixed Reality Account."
124+
},
125+
"properties": {
126+
"oneOf": [
127+
{
128+
"$ref": "#/definitions/MixedRealityAccountProperties"
129+
},
130+
{
131+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
132+
}
133+
],
134+
"description": "Common Properties shared by Mixed Reality Accounts"
135+
},
136+
"tags": {
137+
"oneOf": [
138+
{
139+
"type": "object",
140+
"additionalProperties": {
141+
"type": "string"
142+
},
143+
"properties": {}
144+
},
145+
{
146+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
147+
}
148+
],
149+
"description": "Resource tags."
150+
},
151+
"type": {
152+
"type": "string",
153+
"enum": [
154+
"Microsoft.MixedReality/spatialAnchorsAccounts"
155+
]
156+
}
157+
},
158+
"required": [
159+
"apiVersion",
160+
"location",
161+
"name",
162+
"properties",
163+
"type"
164+
],
165+
"description": "Microsoft.MixedReality/spatialAnchorsAccounts"
166+
}
167+
},
168+
"definitions": {
169+
"Identity": {
170+
"type": "object",
171+
"properties": {
172+
"type": {
173+
"oneOf": [
174+
{
175+
"type": "string",
176+
"enum": [
177+
"SystemAssigned"
178+
]
179+
},
180+
{
181+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
182+
}
183+
],
184+
"description": "The identity type."
185+
}
186+
},
187+
"description": "Identity for the resource."
188+
},
189+
"MixedRealityAccountProperties": {
190+
"type": "object",
191+
"properties": {},
192+
"description": "Common Properties shared by Mixed Reality Accounts"
193+
}
194+
}
195+
}

0 commit comments

Comments
 (0)