Skip to content

Commit ec927e4

Browse files
author
msftbot[bot]
authored
2 parents 5ff75c5 + 6ec1969 commit ec927e4

File tree

2 files changed

+346
-1
lines changed

2 files changed

+346
-1
lines changed

schemas/2019-07-01-preview/Microsoft.DevOps.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,4 +292,4 @@
292292
"description": "Reference to an Azure DevOps Project."
293293
}
294294
}
295-
}
295+
}
Lines changed: 345 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,345 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2020-07-13-preview/Microsoft.DevOps.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.DevOps",
5+
"description": "Microsoft DevOps Resource Types",
6+
"resourceDefinitions": {
7+
"pipelines": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2020-07-13-preview"
14+
]
15+
},
16+
"location": {
17+
"type": "string",
18+
"description": "Resource Location"
19+
},
20+
"name": {
21+
"type": "string",
22+
"description": "The name of the Pipeline resource in ARM."
23+
},
24+
"properties": {
25+
"oneOf": [
26+
{
27+
"$ref": "#/definitions/PipelineProperties"
28+
},
29+
{
30+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
31+
}
32+
],
33+
"description": "Custom properties of a Pipeline."
34+
},
35+
"tags": {
36+
"oneOf": [
37+
{
38+
"type": "object",
39+
"additionalProperties": {
40+
"type": "string"
41+
},
42+
"properties": {}
43+
},
44+
{
45+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
46+
}
47+
],
48+
"description": "Resource Tags"
49+
},
50+
"type": {
51+
"type": "string",
52+
"enum": [
53+
"Microsoft.DevOps/pipelines"
54+
]
55+
}
56+
},
57+
"required": [
58+
"apiVersion",
59+
"name",
60+
"properties",
61+
"type"
62+
],
63+
"description": "Microsoft.DevOps/pipelines"
64+
}
65+
},
66+
"definitions": {
67+
"Authorization": {
68+
"type": "object",
69+
"properties": {
70+
"authorizationType": {
71+
"oneOf": [
72+
{
73+
"type": "string",
74+
"enum": [
75+
"personalAccessToken"
76+
]
77+
},
78+
{
79+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
80+
}
81+
],
82+
"description": "Type of authorization."
83+
},
84+
"parameters": {
85+
"oneOf": [
86+
{
87+
"type": "object",
88+
"additionalProperties": {
89+
"type": "string"
90+
},
91+
"properties": {}
92+
},
93+
{
94+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
95+
}
96+
],
97+
"description": "Authorization parameters corresponding to the authorization type."
98+
}
99+
},
100+
"required": [
101+
"authorizationType"
102+
],
103+
"description": "Authorization info used to access a resource (like code repository)."
104+
},
105+
"AzurePipelineProperties": {
106+
"type": "object",
107+
"properties": {
108+
"organization": {
109+
"oneOf": [
110+
{
111+
"$ref": "#/definitions/OrganizationReference"
112+
},
113+
{
114+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
115+
}
116+
],
117+
"description": "Reference to an Azure DevOps Organization."
118+
},
119+
"pipelineType": {
120+
"type": "string",
121+
"enum": [
122+
"azurePipeline"
123+
]
124+
},
125+
"project": {
126+
"oneOf": [
127+
{
128+
"$ref": "#/definitions/ProjectReference"
129+
},
130+
{
131+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
132+
}
133+
],
134+
"description": "Reference to an Azure DevOps Project."
135+
}
136+
},
137+
"required": [
138+
"organization",
139+
"pipelineType",
140+
"project"
141+
],
142+
"description": "Custom properties of a Azure Pipeline."
143+
},
144+
"BootstrapConfiguration": {
145+
"type": "object",
146+
"properties": {
147+
"sourceRepository": {
148+
"oneOf": [
149+
{
150+
"$ref": "#/definitions/CodeRepository"
151+
},
152+
{
153+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
154+
}
155+
],
156+
"description": "Repository containing the source code for a pipeline."
157+
},
158+
"template": {
159+
"oneOf": [
160+
{
161+
"$ref": "#/definitions/PipelineTemplate"
162+
},
163+
{
164+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
165+
}
166+
],
167+
"description": "Template used to bootstrap the pipeline."
168+
}
169+
},
170+
"required": [
171+
"template"
172+
],
173+
"description": "Configuration used to bootstrap a Pipeline."
174+
},
175+
"CodeRepository": {
176+
"type": "object",
177+
"properties": {
178+
"authorization": {
179+
"oneOf": [
180+
{
181+
"$ref": "#/definitions/Authorization"
182+
},
183+
{
184+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
185+
}
186+
],
187+
"description": "Authorization info used to access a resource (like code repository)."
188+
},
189+
"defaultBranch": {
190+
"type": "string",
191+
"description": "Default branch used to configure Continuous Integration (CI) in the pipeline."
192+
},
193+
"id": {
194+
"type": "string",
195+
"description": "Unique immutable identifier of the code repository."
196+
},
197+
"properties": {
198+
"oneOf": [
199+
{
200+
"type": "object",
201+
"additionalProperties": {
202+
"type": "string"
203+
},
204+
"properties": {}
205+
},
206+
{
207+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
208+
}
209+
],
210+
"description": "Repository-specific properties."
211+
},
212+
"repositoryType": {
213+
"oneOf": [
214+
{
215+
"type": "string",
216+
"enum": [
217+
"gitHub",
218+
"vstsGit"
219+
]
220+
},
221+
{
222+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
223+
}
224+
],
225+
"description": "Type of code repository."
226+
}
227+
},
228+
"required": [
229+
"defaultBranch",
230+
"id",
231+
"repositoryType"
232+
],
233+
"description": "Repository containing the source code for a pipeline."
234+
},
235+
"GithubWorkflowProperties": {
236+
"type": "object",
237+
"properties": {
238+
"pipelineType": {
239+
"type": "string",
240+
"enum": [
241+
"githubWorkflow"
242+
]
243+
},
244+
"repository": {
245+
"oneOf": [
246+
{
247+
"$ref": "#/definitions/CodeRepository"
248+
},
249+
{
250+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
251+
}
252+
],
253+
"description": "Repository containing the source code for a pipeline."
254+
}
255+
},
256+
"required": [
257+
"pipelineType",
258+
"repository"
259+
],
260+
"description": "Custom properties of an Github Pipeline."
261+
},
262+
"OrganizationReference": {
263+
"type": "object",
264+
"properties": {
265+
"name": {
266+
"type": "string",
267+
"description": "Name of the Azure DevOps Organization."
268+
}
269+
},
270+
"required": [
271+
"name"
272+
],
273+
"description": "Reference to an Azure DevOps Organization."
274+
},
275+
"PipelineProperties": {
276+
"type": "object",
277+
"oneOf": [
278+
{
279+
"$ref": "#/definitions/AzurePipelineProperties"
280+
},
281+
{
282+
"$ref": "#/definitions/GithubWorkflowProperties"
283+
}
284+
],
285+
"properties": {
286+
"bootstrapConfiguration": {
287+
"oneOf": [
288+
{
289+
"$ref": "#/definitions/BootstrapConfiguration"
290+
},
291+
{
292+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
293+
}
294+
],
295+
"description": "Configuration used to bootstrap a Pipeline."
296+
}
297+
},
298+
"required": [
299+
"bootstrapConfiguration"
300+
],
301+
"description": "Custom properties of a Pipeline."
302+
},
303+
"PipelineTemplate": {
304+
"type": "object",
305+
"properties": {
306+
"id": {
307+
"type": "string",
308+
"description": "Unique identifier of the pipeline template."
309+
},
310+
"parameters": {
311+
"oneOf": [
312+
{
313+
"type": "object",
314+
"additionalProperties": {
315+
"type": "string"
316+
},
317+
"properties": {}
318+
},
319+
{
320+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
321+
}
322+
],
323+
"description": "Dictionary of input parameters used in the pipeline template."
324+
}
325+
},
326+
"required": [
327+
"id"
328+
],
329+
"description": "Template used to bootstrap the pipeline."
330+
},
331+
"ProjectReference": {
332+
"type": "object",
333+
"properties": {
334+
"name": {
335+
"type": "string",
336+
"description": "Name of the Azure DevOps Project."
337+
}
338+
},
339+
"required": [
340+
"name"
341+
],
342+
"description": "Reference to an Azure DevOps Project."
343+
}
344+
}
345+
}

0 commit comments

Comments
 (0)