Skip to content

Commit 8ba9700

Browse files
Merge pull request #2001 from bhavyej/PlayFabSchema
Manually generate and add schema for Microsoft PlayFab RP
2 parents 31829f5 + 56c5c8e commit 8ba9700

File tree

3 files changed

+257
-1
lines changed

3 files changed

+257
-1
lines changed

schemas/2019-04-01/deploymentTemplate.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1858,7 +1858,9 @@
18581858
{ "$ref": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.Advisor.json#/resourceDefinitions/configurations" },
18591859
{ "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.ManuallyAuthored.json#/resourceDefinitions/components" },
18601860
{ "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.ManuallyAuthored.json#/resourceDefinitions/webtests" },
1861-
{ "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.ManuallyAuthored.json#/resourceDefinitions/autoscalesettings" }
1861+
{ "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.ManuallyAuthored.json#/resourceDefinitions/autoscalesettings" },
1862+
{ "$ref": "https://schema.management.azure.com/schemas/2021-09-07-preview/Microsoft.PlayFab.json#/resourceDefinitions/playerAccountPools" },
1863+
{ "$ref": "https://schema.management.azure.com/schemas/2021-09-07-preview/Microsoft.PlayFab.json#/resourceDefinitions/titles" }
18621864
]
18631865
}
18641866
]
Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2021-09-07-preview/Microsoft.PlayFab.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.PlayFab",
5+
"description": "Microsoft PlayFab Resource Types",
6+
"resourceDefinitions": {
7+
"playerAccountPools": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2021-09-07-preview"
14+
]
15+
},
16+
"location": {
17+
"type": "string",
18+
"description": "The geo-location where the resource lives"
19+
},
20+
"name": {
21+
"type": "string",
22+
"description": "Resource Name"
23+
},
24+
"properties": {
25+
"oneOf": [
26+
{
27+
"$ref": "#/definitions/PlayerAccountPoolProperties"
28+
},
29+
{
30+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
31+
}
32+
],
33+
"description": "Properties of PlayerAccountPool Resource"
34+
},
35+
"systemData": {
36+
"oneOf": [
37+
{
38+
"$ref": "#/definitions/SystemData"
39+
},
40+
{
41+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
42+
}
43+
],
44+
"description": "Metadata pertaining to creation and last modification of the resource."
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.PlayFab/playerAccountPools"
65+
]
66+
}
67+
},
68+
"required": [
69+
"apiVersion",
70+
"location",
71+
"name",
72+
"properties",
73+
"type"
74+
],
75+
"description": "Microsoft.PlayFab/playerAccountPools"
76+
},
77+
"titles": {
78+
"type": "object",
79+
"properties": {
80+
"apiVersion": {
81+
"type": "string",
82+
"enum": [
83+
"2021-09-07-preview"
84+
]
85+
},
86+
"location": {
87+
"type": "string",
88+
"description": "The geo-location where the resource lives"
89+
},
90+
"name": {
91+
"type": "string",
92+
"description": "Resource Name"
93+
},
94+
"properties": {
95+
"oneOf": [
96+
{
97+
"$ref": "#/definitions/TitleProperties"
98+
},
99+
{
100+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
101+
}
102+
],
103+
"description": "Properties of Title Resource"
104+
},
105+
"systemData": {
106+
"oneOf": [
107+
{
108+
"$ref": "#/definitions/SystemData"
109+
},
110+
{
111+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
112+
}
113+
],
114+
"description": "Metadata pertaining to creation and last modification of the resource."
115+
},
116+
"tags": {
117+
"oneOf": [
118+
{
119+
"type": "object",
120+
"additionalProperties": {
121+
"type": "string"
122+
},
123+
"properties": {}
124+
},
125+
{
126+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
127+
}
128+
],
129+
"description": "Resource tags."
130+
},
131+
"type": {
132+
"type": "string",
133+
"enum": [
134+
"Microsoft.PlayFab/titles"
135+
]
136+
}
137+
},
138+
"required": [
139+
"apiVersion",
140+
"location",
141+
"name",
142+
"properties",
143+
"type"
144+
],
145+
"description": "Microsoft.PlayFab/titles"
146+
}
147+
},
148+
"definitions": {
149+
"PlayerAccountPoolProperties": {
150+
"type": "object",
151+
"properties": {},
152+
"description": "Properties of PlayerAccountPool Resource"
153+
},
154+
"SystemData": {
155+
"type": "object",
156+
"properties": {
157+
"createdAt": {
158+
"type": "string",
159+
"format": "date-time",
160+
"description": "The timestamp of resource creation (UTC)."
161+
},
162+
"createdBy": {
163+
"type": "string",
164+
"description": "The identity that created the resource."
165+
},
166+
"createdByType": {
167+
"oneOf": [
168+
{
169+
"type": "string",
170+
"enum": [
171+
"User",
172+
"Application",
173+
"ManagedIdentity",
174+
"Key"
175+
]
176+
},
177+
{
178+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
179+
}
180+
],
181+
"description": "The type of identity that created the resource."
182+
},
183+
"lastModifiedAt": {
184+
"type": "string",
185+
"format": "date-time",
186+
"description": "The timestamp of resource last modification (UTC)"
187+
},
188+
"lastModifiedBy": {
189+
"type": "string",
190+
"description": "The identity that last modified the resource."
191+
},
192+
"lastModifiedByType": {
193+
"oneOf": [
194+
{
195+
"type": "string",
196+
"enum": [
197+
"User",
198+
"Application",
199+
"ManagedIdentity",
200+
"Key"
201+
]
202+
},
203+
{
204+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
205+
}
206+
],
207+
"description": "The type of identity that last modified the resource."
208+
}
209+
},
210+
"description": "Metadata pertaining to creation and last modification of the resource."
211+
},
212+
"TitleProperties": {
213+
"type": "object",
214+
"properties": {
215+
"playerAccountPoolId": {
216+
"type": "string",
217+
"description": "Azure resource Id of the playerAccountPool resource."
218+
}
219+
},
220+
"required": [
221+
"playerAccountPoolId"
222+
],
223+
"description": "Properties of Title Resource"
224+
}
225+
}
226+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"tests": [
3+
{
4+
"name": "PlayFab tests - minimal title resource",
5+
"definition": "https://schema.management.azure.com/schemas/2021-09-07-preview/Microsoft.PlayFab.json#/resourceDefinitions/titles",
6+
"json": {
7+
"name": "title1",
8+
"type": "Microsoft.PlayFab/titles",
9+
"apiVersion": "2021-09-07-preview",
10+
"location": "westus2",
11+
"properties": {
12+
"playerAccountPoolId": "/subscriptions/3f753bd1-b08e-4473-965c-0397c16d9789/resourceGroups/testrg/providers/Microsoft.PlayFab/playerAccountPools/playerAccountName"
13+
}
14+
}
15+
},
16+
{
17+
"name": "PlayFab tests - minimal playerAccountPool resource",
18+
"definition": "https://schema.management.azure.com/schemas/2021-09-07-preview/Microsoft.PlayFab.json#/resourceDefinitions/playerAccountPools",
19+
"json": {
20+
"name": "playerAccountPool1",
21+
"type": "Microsoft.PlayFab/playerAccountPools",
22+
"apiVersion": "2021-09-07-preview",
23+
"location": "westus2",
24+
"properties": {}
25+
}
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)