Skip to content

Commit f73c62c

Browse files
authored
Create listing_config_schema.json
1 parent 533b7bd commit f73c62c

File tree

1 file changed

+230
-0
lines changed

1 file changed

+230
-0
lines changed

.ci/listing_config_schema.json

+230
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
{
2+
"$schema" : "https://json-schema.org/draft/2020-12/schema",
3+
"$id" : "https://example.com/product.schema.json",
4+
"title" : "Azure Partner Center Listing Configurations",
5+
"description": "A configuration for a product in the Azure Partner Center",
6+
"type" : "object",
7+
"properties" : {
8+
"offer_setup" : {
9+
"description": "Azure Partner Center Submission Offer Setup settings",
10+
"type" : "object",
11+
"properties" : {
12+
"alias" : {
13+
"type": "string"
14+
},
15+
"testDrive": {
16+
"type": "boolean"
17+
},
18+
"crm" : {
19+
"type": "string"
20+
}
21+
},
22+
"required" : [
23+
"alias"
24+
]
25+
},
26+
"property_settings" : {
27+
"description": "Azure Partner Center Submission Property Settings",
28+
"type" : "object",
29+
"properties" : {
30+
"categories": {
31+
"type" : "array",
32+
"items": {
33+
"type": "object"
34+
}
35+
}
36+
}
37+
},
38+
"offer_listing" : {
39+
"description": "Azure Partner Center Submission Offer Listing Settings",
40+
"type" : "object",
41+
"properties" : {
42+
"name" : {
43+
"type": "string"
44+
},
45+
"summary" : {
46+
"type": "string"
47+
},
48+
"short_description" : {
49+
"type": "string"
50+
},
51+
"description" : {
52+
"type": "string"
53+
},
54+
"keywords" : {
55+
"type": "object"
56+
},
57+
"listing_contacts" : {
58+
"type": "list"
59+
},
60+
"listing_uris" : {
61+
"type": "list"
62+
},
63+
"listing_logos" : {
64+
"type": "list"
65+
},
66+
"listing_screenshots": {
67+
"type": "list"
68+
},
69+
"listing_videos" : {
70+
"type": "list"
71+
}
72+
},
73+
"required" : [
74+
"name",
75+
"summary",
76+
"description",
77+
"keywords",
78+
"listing_contacts",
79+
"listing_uris",
80+
"listing_logos"
81+
]
82+
},
83+
"preview_audience" : {
84+
"description": "Azure Partner Center Submission Preview Audience Settings",
85+
"type" : "object",
86+
"properties" : {
87+
"subscriptions": {
88+
"type" : "array",
89+
"items" : {
90+
"type": "string"
91+
},
92+
"minItems" : 1,
93+
"maxItems" : 10,
94+
"uniqueItems": true
95+
}
96+
},
97+
"required" : [
98+
"subscriptions"
99+
]
100+
},
101+
"technical_configuration": {
102+
"description": "Azure Partner Center Submission Technical Configuration Settings",
103+
"type" : "object",
104+
"properties" : {
105+
"tenant_id" : {
106+
"type": "string"
107+
},
108+
"application_id": {
109+
"type": "string"
110+
}
111+
}
112+
},
113+
"plan_overview" : {
114+
"description": "Azure Partner Center Submission Plan Overview Settings",
115+
"type" : "object",
116+
"properties" : {
117+
"type" : "array",
118+
"items": {
119+
"type" : "object",
120+
"properties": {
121+
"plan_listing" : {
122+
"type" : "object",
123+
"properties": {
124+
"title" : {
125+
"type": "string"
126+
},
127+
"summary" : {
128+
"type": "string"
129+
},
130+
"description": {
131+
"type": "string"
132+
}
133+
}
134+
},
135+
"pricing_and_availability": {
136+
"type" : "object",
137+
"properties": {
138+
"visibility": {
139+
"type": "string",
140+
"enum": [
141+
"private",
142+
"public"
143+
]
144+
},
145+
"azure_private_subscriptions": {
146+
"type": "array",
147+
"items": {
148+
"type": "object",
149+
"properties": {
150+
"ID": {
151+
"type": "string"
152+
},
153+
"Description": {
154+
"type": "string"
155+
}
156+
},
157+
"required": ["ID"]
158+
}
159+
}
160+
}
161+
},
162+
"technical_configuration" : {
163+
"type": "object",
164+
"properties": {
165+
"version": {
166+
"type": "string"
167+
},
168+
"allowedCustomerActions": {
169+
"type": "array",
170+
"items": {
171+
"type": "string"
172+
},
173+
"maxLength": 1
174+
},
175+
"allowedDataActions": {
176+
"type": "array",
177+
"items": {
178+
"type": "string"
179+
},
180+
"maxLength": 1
181+
},
182+
"tenant_id": {
183+
"type": "string"
184+
},
185+
"authorizations": {
186+
"type": "array",
187+
"items": {
188+
"type": "object",
189+
"properties": {
190+
"id": {
191+
"type": "string"
192+
},
193+
"role": {
194+
"type": "string",
195+
"enum": ["Owner", "Contributor"]
196+
}
197+
}
198+
},
199+
"minLength": 1,
200+
"maxLength": 10
201+
},
202+
"policy_settings": {
203+
"type": "array"
204+
}
205+
},
206+
"required": ["version"]
207+
}
208+
}
209+
}
210+
}
211+
},
212+
"co-sell" : {
213+
"description": "Azure Partner Center Submission Co-sell Settings",
214+
"type" : "object",
215+
"properties" : {}
216+
},
217+
"resell" : {
218+
"description": "Azure Partner Center Submission Resell Settings",
219+
"type" : "object",
220+
"properties" : {}
221+
}
222+
},
223+
"required" : [
224+
"offer_setup",
225+
"property_settings",
226+
"offer_listing",
227+
"preview_audience",
228+
"plan_overview"
229+
]
230+
}

0 commit comments

Comments
 (0)