@itentialopensource/adapter-azure_devops 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/CHANGELOG.md +9 -0
  5. package/CODE_OF_CONDUCT.md +48 -0
  6. package/CONTRIBUTING.md +158 -0
  7. package/LICENSE +201 -0
  8. package/README.md +687 -0
  9. package/adapter.js +1606 -0
  10. package/adapterBase.js +1028 -0
  11. package/entities/.generic/action.json +109 -0
  12. package/entities/.generic/schema.json +23 -0
  13. package/entities/.system/action.json +50 -0
  14. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  15. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  16. package/entities/.system/schema.json +19 -0
  17. package/entities/.system/schemaTokenReq.json +53 -0
  18. package/entities/.system/schemaTokenResp.json +53 -0
  19. package/entities/Artifacts/action.json +25 -0
  20. package/entities/Artifacts/mockdatafiles/artifactsGet-default.json +5 -0
  21. package/entities/Artifacts/schema.json +41 -0
  22. package/entities/Logs/action.json +46 -0
  23. package/entities/Logs/mockdatafiles/logsGet-default.json +11 -0
  24. package/entities/Logs/mockdatafiles/logsList-default.json +119 -0
  25. package/entities/Logs/schema.json +42 -0
  26. package/entities/Pipelines/action.json +66 -0
  27. package/entities/Pipelines/mockdatafiles/pipelinesCreate-default.json +6 -0
  28. package/entities/Pipelines/mockdatafiles/pipelinesGet-default.json +6 -0
  29. package/entities/Pipelines/mockdatafiles/pipelinesList-default.json +26 -0
  30. package/entities/Pipelines/schema.json +43 -0
  31. package/entities/Preview/action.json +24 -0
  32. package/entities/Preview/mockdatafiles/previewPreview-default.json +3 -0
  33. package/entities/Preview/schema.json +30 -0
  34. package/entities/Runs/action.json +66 -0
  35. package/entities/Runs/mockdatafiles/runsGet-default.json +4 -0
  36. package/entities/Runs/mockdatafiles/runsList-default.json +18 -0
  37. package/entities/Runs/mockdatafiles/runsRunPipeline-default.json +4 -0
  38. package/entities/Runs/schema.json +32 -0
  39. package/error.json +184 -0
  40. package/package.json +85 -0
  41. package/pronghorn.json +2488 -0
  42. package/propertiesSchema.json +840 -0
  43. package/refs?service=git-upload-pack +0 -0
  44. package/report/ado.json +1382 -0
  45. package/report/creationReport.json +228 -0
  46. package/report/updateReport1639421539710.json +95 -0
  47. package/sampleProperties.json +106 -0
  48. package/test/integration/adapterTestBasicGet.js +85 -0
  49. package/test/integration/adapterTestConnectivity.js +93 -0
  50. package/test/integration/adapterTestIntegration.js +751 -0
  51. package/test/unit/adapterBaseTestUnit.js +944 -0
  52. package/test/unit/adapterTestUnit.js +2192 -0
  53. package/utils/addAuth.js +94 -0
  54. package/utils/artifactize.js +146 -0
  55. package/utils/basicGet.js +50 -0
  56. package/utils/checkMigrate.js +63 -0
  57. package/utils/entitiesToDB.js +224 -0
  58. package/utils/findPath.js +74 -0
  59. package/utils/modify.js +154 -0
  60. package/utils/packModificationScript.js +35 -0
  61. package/utils/pre-commit.sh +27 -0
  62. package/utils/removeHooks.js +20 -0
  63. package/utils/setup.js +33 -0
  64. package/utils/tbScript.js +169 -0
  65. package/utils/tbUtils.js +445 -0
  66. package/utils/testRunner.js +298 -0
  67. package/utils/troubleshootingAdapter.js +190 -0
  68. package/workflows/README.md +3 -0
@@ -0,0 +1,1382 @@
1
+ {
2
+ "swagger": "2.0",
3
+ "info": {
4
+ "title": "Pipelines",
5
+ "description": "",
6
+ "termsOfService": "https://go.microsoft.com/fwlink/?LinkId=329770",
7
+ "contact": {
8
+ "name": "nugetvss",
9
+ "email": "nugetvss@microsoft.com"
10
+ },
11
+ "license": {
12
+ "name": "MICROSOFT SOFTWARE LICENSE TERMS",
13
+ "url": "https://go.microsoft.com/fwlink/?LinkId=329770"
14
+ },
15
+ "version": "6.1-preview"
16
+ },
17
+ "host": "dev.azure.com",
18
+ "x-ms-vss-area": "Pipelines",
19
+ "basePath": "/",
20
+ "tags": [
21
+ {
22
+ "name": "Artifacts"
23
+ },
24
+ {
25
+ "name": "Logs"
26
+ },
27
+ {
28
+ "name": "Pipelines"
29
+ },
30
+ {
31
+ "name": "Preview"
32
+ },
33
+ {
34
+ "name": "Runs"
35
+ }
36
+ ],
37
+ "schemes": [
38
+ "https"
39
+ ],
40
+ "paths": {
41
+ "/{organization}/{project}/_apis/pipelines": {
42
+ "post": {
43
+ "tags": [
44
+ "Pipelines"
45
+ ],
46
+ "x-ms-docs-override-version": "6.1-preview.1",
47
+ "x-ms-vss-resource": "pipelines",
48
+ "x-ms-vss-method": "CreatePipeline",
49
+ "x-ms-preview": true,
50
+ "description": "Create a pipeline.",
51
+ "operationId": "Pipelines_Create",
52
+ "consumes": [
53
+ "application/json"
54
+ ],
55
+ "produces": [
56
+ "application/json"
57
+ ],
58
+ "parameters": [
59
+ {
60
+ "in": "path",
61
+ "name": "organization",
62
+ "description": "The name of the Azure DevOps organization.",
63
+ "required": true,
64
+ "type": "string"
65
+ },
66
+ {
67
+ "in": "body",
68
+ "name": "body",
69
+ "description": "Input parameters.",
70
+ "required": true,
71
+ "schema": {
72
+ "$ref": "#/definitions/CreatePipelineParameters"
73
+ }
74
+ },
75
+ {
76
+ "in": "path",
77
+ "name": "project",
78
+ "description": "Project ID or project name",
79
+ "required": true,
80
+ "type": "string"
81
+ },
82
+ {
83
+ "$ref": "#/parameters/api-Version-preview.1"
84
+ }
85
+ ],
86
+ "responses": {
87
+ "200": {
88
+ "description": "successful operation",
89
+ "schema": {
90
+ "$ref": "#/definitions/Pipeline"
91
+ }
92
+ }
93
+ }
94
+ },
95
+ "get": {
96
+ "tags": [
97
+ "Pipelines"
98
+ ],
99
+ "x-ms-docs-override-version": "6.1-preview.1",
100
+ "x-ms-vss-resource": "pipelines",
101
+ "x-ms-vss-method": "ListPipelines",
102
+ "x-ms-preview": true,
103
+ "description": "Get a list of pipelines.",
104
+ "operationId": "Pipelines_List",
105
+ "produces": [
106
+ "application/json"
107
+ ],
108
+ "parameters": [
109
+ {
110
+ "in": "path",
111
+ "name": "organization",
112
+ "description": "The name of the Azure DevOps organization.",
113
+ "required": true,
114
+ "type": "string"
115
+ },
116
+ {
117
+ "in": "path",
118
+ "name": "project",
119
+ "description": "Project ID or project name",
120
+ "required": true,
121
+ "type": "string"
122
+ },
123
+ {
124
+ "in": "query",
125
+ "name": "orderBy",
126
+ "description": "A sort expression. Defaults to \"name asc\"",
127
+ "required": false,
128
+ "type": "string"
129
+ },
130
+ {
131
+ "in": "query",
132
+ "name": "$top",
133
+ "description": "The maximum number of pipelines to return",
134
+ "required": false,
135
+ "type": "integer",
136
+ "format": "int32"
137
+ },
138
+ {
139
+ "in": "query",
140
+ "name": "continuationToken",
141
+ "description": "A continuation token from a previous request, to retrieve the next page of results",
142
+ "required": false,
143
+ "type": "string"
144
+ },
145
+ {
146
+ "$ref": "#/parameters/api-Version-preview.1"
147
+ }
148
+ ],
149
+ "responses": {
150
+ "200": {
151
+ "description": "successful operation",
152
+ "schema": {
153
+ "type": "array",
154
+ "items": {
155
+ "$ref": "#/definitions/Pipeline"
156
+ }
157
+ }
158
+ }
159
+ }
160
+ }
161
+ },
162
+ "/{organization}/{project}/_apis/pipelines/{pipelineId}": {
163
+ "get": {
164
+ "tags": [
165
+ "Pipelines"
166
+ ],
167
+ "x-ms-docs-override-version": "6.1-preview.1",
168
+ "x-ms-vss-resource": "pipelines",
169
+ "x-ms-vss-method": "GetPipeline",
170
+ "x-ms-preview": true,
171
+ "description": "Gets a pipeline, optionally at the specified version",
172
+ "operationId": "Pipelines_Get",
173
+ "produces": [
174
+ "application/json"
175
+ ],
176
+ "parameters": [
177
+ {
178
+ "in": "path",
179
+ "name": "organization",
180
+ "description": "The name of the Azure DevOps organization.",
181
+ "required": true,
182
+ "type": "string"
183
+ },
184
+ {
185
+ "in": "path",
186
+ "name": "project",
187
+ "description": "Project ID or project name",
188
+ "required": true,
189
+ "type": "string"
190
+ },
191
+ {
192
+ "in": "path",
193
+ "name": "pipelineId",
194
+ "description": "The pipeline ID",
195
+ "required": true,
196
+ "type": "integer",
197
+ "format": "int32"
198
+ },
199
+ {
200
+ "in": "query",
201
+ "name": "pipelineVersion",
202
+ "description": "The pipeline version",
203
+ "required": false,
204
+ "type": "integer",
205
+ "format": "int32"
206
+ },
207
+ {
208
+ "$ref": "#/parameters/api-Version-preview.1"
209
+ }
210
+ ],
211
+ "responses": {
212
+ "200": {
213
+ "description": "successful operation",
214
+ "schema": {
215
+ "$ref": "#/definitions/Pipeline"
216
+ }
217
+ }
218
+ }
219
+ }
220
+ },
221
+ "/{organization}/{project}/_apis/pipelines/{pipelineId}/preview": {
222
+ "post": {
223
+ "tags": [
224
+ "Preview"
225
+ ],
226
+ "x-ms-docs-override-version": "6.1-preview.1",
227
+ "x-ms-vss-resource": "preview",
228
+ "x-ms-vss-method": "Preview",
229
+ "x-ms-preview": true,
230
+ "description": "Queues a dry run of the pipeline and returns an object containing the final yaml.",
231
+ "operationId": "Preview_Preview",
232
+ "consumes": [
233
+ "application/json"
234
+ ],
235
+ "produces": [
236
+ "application/json"
237
+ ],
238
+ "parameters": [
239
+ {
240
+ "in": "path",
241
+ "name": "organization",
242
+ "description": "The name of the Azure DevOps organization.",
243
+ "required": true,
244
+ "type": "string"
245
+ },
246
+ {
247
+ "in": "body",
248
+ "name": "body",
249
+ "description": "Optional additional parameters for this run.",
250
+ "required": true,
251
+ "schema": {
252
+ "$ref": "#/definitions/RunPipelineParameters"
253
+ }
254
+ },
255
+ {
256
+ "in": "path",
257
+ "name": "project",
258
+ "description": "Project ID or project name",
259
+ "required": true,
260
+ "type": "string"
261
+ },
262
+ {
263
+ "in": "path",
264
+ "name": "pipelineId",
265
+ "description": "The pipeline ID.",
266
+ "required": true,
267
+ "type": "integer",
268
+ "format": "int32"
269
+ },
270
+ {
271
+ "in": "query",
272
+ "name": "pipelineVersion",
273
+ "description": "The pipeline version.",
274
+ "required": false,
275
+ "type": "integer",
276
+ "format": "int32"
277
+ },
278
+ {
279
+ "$ref": "#/parameters/api-Version-preview.1"
280
+ }
281
+ ],
282
+ "responses": {
283
+ "200": {
284
+ "description": "successful operation",
285
+ "schema": {
286
+ "$ref": "#/definitions/PreviewRun"
287
+ }
288
+ }
289
+ }
290
+ }
291
+ },
292
+ "/{organization}/{project}/_apis/pipelines/{pipelineId}/runs": {
293
+ "get": {
294
+ "tags": [
295
+ "Runs"
296
+ ],
297
+ "x-ms-docs-override-version": "6.1-preview.1",
298
+ "x-ms-vss-resource": "runs",
299
+ "x-ms-vss-method": "ListRuns",
300
+ "x-ms-preview": true,
301
+ "description": "Gets top 10000 runs for a particular pipeline.",
302
+ "operationId": "Runs_List",
303
+ "produces": [
304
+ "application/json"
305
+ ],
306
+ "parameters": [
307
+ {
308
+ "in": "path",
309
+ "name": "organization",
310
+ "description": "The name of the Azure DevOps organization.",
311
+ "required": true,
312
+ "type": "string"
313
+ },
314
+ {
315
+ "in": "path",
316
+ "name": "project",
317
+ "description": "Project ID or project name",
318
+ "required": true,
319
+ "type": "string"
320
+ },
321
+ {
322
+ "in": "path",
323
+ "name": "pipelineId",
324
+ "description": "The pipeline id",
325
+ "required": true,
326
+ "type": "integer",
327
+ "format": "int32"
328
+ },
329
+ {
330
+ "$ref": "#/parameters/api-Version-preview.1"
331
+ }
332
+ ],
333
+ "responses": {
334
+ "200": {
335
+ "description": "successful operation",
336
+ "schema": {
337
+ "type": "array",
338
+ "items": {
339
+ "$ref": "#/definitions/Run"
340
+ }
341
+ }
342
+ }
343
+ }
344
+ },
345
+ "post": {
346
+ "tags": [
347
+ "Runs"
348
+ ],
349
+ "x-ms-docs-override-version": "6.1-preview.1",
350
+ "x-ms-vss-resource": "runs",
351
+ "x-ms-vss-method": "RunPipeline",
352
+ "x-ms-preview": true,
353
+ "description": "Runs a pipeline.",
354
+ "operationId": "Runs_Run Pipeline",
355
+ "consumes": [
356
+ "application/json"
357
+ ],
358
+ "produces": [
359
+ "application/json"
360
+ ],
361
+ "parameters": [
362
+ {
363
+ "in": "path",
364
+ "name": "organization",
365
+ "description": "The name of the Azure DevOps organization.",
366
+ "required": true,
367
+ "type": "string"
368
+ },
369
+ {
370
+ "in": "body",
371
+ "name": "body",
372
+ "description": "Optional additional parameters for this run.",
373
+ "required": true,
374
+ "schema": {
375
+ "$ref": "#/definitions/RunPipelineParameters"
376
+ }
377
+ },
378
+ {
379
+ "in": "path",
380
+ "name": "project",
381
+ "description": "Project ID or project name",
382
+ "required": true,
383
+ "type": "string"
384
+ },
385
+ {
386
+ "in": "path",
387
+ "name": "pipelineId",
388
+ "description": "The pipeline ID.",
389
+ "required": true,
390
+ "type": "integer",
391
+ "format": "int32"
392
+ },
393
+ {
394
+ "in": "query",
395
+ "name": "pipelineVersion",
396
+ "description": "The pipeline version.",
397
+ "required": false,
398
+ "type": "integer",
399
+ "format": "int32"
400
+ },
401
+ {
402
+ "$ref": "#/parameters/api-Version-preview.1"
403
+ }
404
+ ],
405
+ "responses": {
406
+ "200": {
407
+ "description": "successful operation",
408
+ "schema": {
409
+ "$ref": "#/definitions/Run"
410
+ }
411
+ }
412
+ }
413
+ }
414
+ },
415
+ "/{organization}/{project}/_apis/pipelines/{pipelineId}/runs/{runId}": {
416
+ "get": {
417
+ "tags": [
418
+ "Runs"
419
+ ],
420
+ "x-ms-docs-override-version": "6.1-preview.1",
421
+ "x-ms-vss-resource": "runs",
422
+ "x-ms-vss-method": "GetRun",
423
+ "x-ms-preview": true,
424
+ "description": "Gets a run for a particular pipeline.",
425
+ "operationId": "Runs_Get",
426
+ "produces": [
427
+ "application/json"
428
+ ],
429
+ "parameters": [
430
+ {
431
+ "in": "path",
432
+ "name": "organization",
433
+ "description": "The name of the Azure DevOps organization.",
434
+ "required": true,
435
+ "type": "string"
436
+ },
437
+ {
438
+ "in": "path",
439
+ "name": "project",
440
+ "description": "Project ID or project name",
441
+ "required": true,
442
+ "type": "string"
443
+ },
444
+ {
445
+ "in": "path",
446
+ "name": "pipelineId",
447
+ "description": "The pipeline id",
448
+ "required": true,
449
+ "type": "integer",
450
+ "format": "int32"
451
+ },
452
+ {
453
+ "in": "path",
454
+ "name": "runId",
455
+ "description": "The run id",
456
+ "required": true,
457
+ "type": "integer",
458
+ "format": "int32"
459
+ },
460
+ {
461
+ "$ref": "#/parameters/api-Version-preview.1"
462
+ }
463
+ ],
464
+ "responses": {
465
+ "200": {
466
+ "description": "successful operation",
467
+ "schema": {
468
+ "$ref": "#/definitions/Run"
469
+ }
470
+ }
471
+ }
472
+ }
473
+ },
474
+ "/{organization}/{project}/_apis/pipelines/{pipelineId}/runs/{runId}/artifacts": {
475
+ "get": {
476
+ "tags": [
477
+ "Artifacts"
478
+ ],
479
+ "x-ms-docs-override-version": "6.1-preview.1",
480
+ "x-ms-vss-resource": "artifacts",
481
+ "x-ms-vss-method": "GetArtifact",
482
+ "x-ms-preview": true,
483
+ "description": "Get a specific artifact from a pipeline run",
484
+ "operationId": "Artifacts_Get",
485
+ "produces": [
486
+ "application/json"
487
+ ],
488
+ "parameters": [
489
+ {
490
+ "in": "path",
491
+ "name": "organization",
492
+ "description": "The name of the Azure DevOps organization.",
493
+ "required": true,
494
+ "type": "string"
495
+ },
496
+ {
497
+ "in": "path",
498
+ "name": "project",
499
+ "description": "Project ID or project name",
500
+ "required": true,
501
+ "type": "string"
502
+ },
503
+ {
504
+ "in": "path",
505
+ "name": "pipelineId",
506
+ "description": "ID of the pipeline.",
507
+ "required": true,
508
+ "type": "integer",
509
+ "format": "int32"
510
+ },
511
+ {
512
+ "in": "path",
513
+ "name": "runId",
514
+ "description": "ID of the run of that pipeline.",
515
+ "required": true,
516
+ "type": "integer",
517
+ "format": "int32"
518
+ },
519
+ {
520
+ "in": "query",
521
+ "name": "artifactName",
522
+ "description": "Name of the artifact.",
523
+ "required": true,
524
+ "type": "string"
525
+ },
526
+ {
527
+ "in": "query",
528
+ "name": "$expand",
529
+ "description": "Expand options. Default is None.",
530
+ "required": false,
531
+ "type": "string",
532
+ "enum": [
533
+ "none",
534
+ "signedContent"
535
+ ],
536
+ "x-ms-enum": {
537
+ "name": "GetArtifactExpandOptions",
538
+ "values": [
539
+ {
540
+ "value": "none",
541
+ "description": "No expansion."
542
+ },
543
+ {
544
+ "value": "signedContent",
545
+ "description": "Include signed content."
546
+ }
547
+ ]
548
+ }
549
+ },
550
+ {
551
+ "$ref": "#/parameters/api-Version-preview.1"
552
+ }
553
+ ],
554
+ "responses": {
555
+ "200": {
556
+ "description": "successful operation",
557
+ "schema": {
558
+ "$ref": "#/definitions/Artifact"
559
+ }
560
+ }
561
+ }
562
+ }
563
+ },
564
+ "/{organization}/{project}/_apis/pipelines/{pipelineId}/runs/{runId}/logs": {
565
+ "get": {
566
+ "tags": [
567
+ "Logs"
568
+ ],
569
+ "x-ms-docs-override-version": "6.1-preview.1",
570
+ "x-ms-vss-resource": "logs",
571
+ "x-ms-vss-method": "ListLogs",
572
+ "x-ms-preview": true,
573
+ "description": "Get a list of logs from a pipeline run.",
574
+ "operationId": "Logs_List",
575
+ "produces": [
576
+ "application/json"
577
+ ],
578
+ "parameters": [
579
+ {
580
+ "in": "path",
581
+ "name": "organization",
582
+ "description": "The name of the Azure DevOps organization.",
583
+ "required": true,
584
+ "type": "string"
585
+ },
586
+ {
587
+ "in": "path",
588
+ "name": "project",
589
+ "description": "Project ID or project name",
590
+ "required": true,
591
+ "type": "string"
592
+ },
593
+ {
594
+ "in": "path",
595
+ "name": "pipelineId",
596
+ "description": "ID of the pipeline.",
597
+ "required": true,
598
+ "type": "integer",
599
+ "format": "int32"
600
+ },
601
+ {
602
+ "in": "path",
603
+ "name": "runId",
604
+ "description": "ID of the run of that pipeline.",
605
+ "required": true,
606
+ "type": "integer",
607
+ "format": "int32"
608
+ },
609
+ {
610
+ "in": "query",
611
+ "name": "$expand",
612
+ "description": "Expand options. Default is None.",
613
+ "required": false,
614
+ "type": "string",
615
+ "enum": [
616
+ "none",
617
+ "signedContent"
618
+ ],
619
+ "x-ms-enum": {
620
+ "name": "GetLogExpandOptions",
621
+ "values": [
622
+ {
623
+ "value": "none",
624
+ "description": ""
625
+ },
626
+ {
627
+ "value": "signedContent",
628
+ "description": ""
629
+ }
630
+ ]
631
+ }
632
+ },
633
+ {
634
+ "$ref": "#/parameters/api-Version-preview.1"
635
+ }
636
+ ],
637
+ "responses": {
638
+ "200": {
639
+ "description": "successful operation",
640
+ "schema": {
641
+ "$ref": "#/definitions/LogCollection"
642
+ }
643
+ }
644
+ }
645
+ }
646
+ },
647
+ "/{organization}/{project}/_apis/pipelines/{pipelineId}/runs/{runId}/logs/{logId}": {
648
+ "get": {
649
+ "tags": [
650
+ "Logs"
651
+ ],
652
+ "x-ms-docs-override-version": "6.1-preview.1",
653
+ "x-ms-vss-resource": "logs",
654
+ "x-ms-vss-method": "GetLog",
655
+ "x-ms-preview": true,
656
+ "description": "Get a specific log from a pipeline run",
657
+ "operationId": "Logs_Get",
658
+ "produces": [
659
+ "application/json"
660
+ ],
661
+ "parameters": [
662
+ {
663
+ "in": "path",
664
+ "name": "organization",
665
+ "description": "The name of the Azure DevOps organization.",
666
+ "required": true,
667
+ "type": "string"
668
+ },
669
+ {
670
+ "in": "path",
671
+ "name": "project",
672
+ "description": "Project ID or project name",
673
+ "required": true,
674
+ "type": "string"
675
+ },
676
+ {
677
+ "in": "path",
678
+ "name": "pipelineId",
679
+ "description": "ID of the pipeline.",
680
+ "required": true,
681
+ "type": "integer",
682
+ "format": "int32"
683
+ },
684
+ {
685
+ "in": "path",
686
+ "name": "runId",
687
+ "description": "ID of the run of that pipeline.",
688
+ "required": true,
689
+ "type": "integer",
690
+ "format": "int32"
691
+ },
692
+ {
693
+ "in": "path",
694
+ "name": "logId",
695
+ "description": "ID of the log.",
696
+ "required": true,
697
+ "type": "integer",
698
+ "format": "int32"
699
+ },
700
+ {
701
+ "in": "query",
702
+ "name": "$expand",
703
+ "description": "Expand options. Default is None.",
704
+ "required": false,
705
+ "type": "string",
706
+ "enum": [
707
+ "none",
708
+ "signedContent"
709
+ ],
710
+ "x-ms-enum": {
711
+ "name": "GetLogExpandOptions",
712
+ "values": [
713
+ {
714
+ "value": "none",
715
+ "description": ""
716
+ },
717
+ {
718
+ "value": "signedContent",
719
+ "description": ""
720
+ }
721
+ ]
722
+ }
723
+ },
724
+ {
725
+ "$ref": "#/parameters/api-Version-preview.1"
726
+ }
727
+ ],
728
+ "responses": {
729
+ "200": {
730
+ "description": "successful operation",
731
+ "schema": {
732
+ "$ref": "#/definitions/Log"
733
+ }
734
+ }
735
+ }
736
+ }
737
+ }
738
+ },
739
+ "definitions": {
740
+ "Artifact": {
741
+ "description": "Artifacts are collections of files produced by a pipeline. Use artifacts to share files between stages in a pipeline or between different pipelines.",
742
+ "type": "object",
743
+ "properties": {
744
+ "name": {
745
+ "description": "The name of the artifact.",
746
+ "type": "string"
747
+ },
748
+ "signedContent": {
749
+ "description": "Signed url for downloading this artifact",
750
+ "$ref": "#/definitions/SignedUrl"
751
+ },
752
+ "url": {
753
+ "description": "Self-referential url",
754
+ "type": "string"
755
+ }
756
+ }
757
+ },
758
+ "BuildResourceParameters": {
759
+ "description": "",
760
+ "type": "object",
761
+ "properties": {
762
+ "version": {
763
+ "type": "string"
764
+ }
765
+ }
766
+ },
767
+ "ContainerResourceParameters": {
768
+ "description": "",
769
+ "type": "object",
770
+ "properties": {
771
+ "version": {
772
+ "type": "string"
773
+ }
774
+ }
775
+ },
776
+ "CreatePipelineConfigurationParameters": {
777
+ "description": "Configuration parameters of the pipeline.",
778
+ "type": "object",
779
+ "properties": {
780
+ "type": {
781
+ "description": "Type of configuration.",
782
+ "enum": [
783
+ "unknown",
784
+ "yaml",
785
+ "designerJson",
786
+ "justInTime",
787
+ "designerHyphenJson"
788
+ ],
789
+ "x-ms-enum": {
790
+ "name": "ConfigurationType",
791
+ "values": [
792
+ {
793
+ "value": "unknown",
794
+ "description": "Unknown type."
795
+ },
796
+ {
797
+ "value": "yaml",
798
+ "description": "YAML."
799
+ },
800
+ {
801
+ "value": "designerJson",
802
+ "description": "Designer JSON."
803
+ },
804
+ {
805
+ "value": "justInTime",
806
+ "description": "Just-in-time."
807
+ },
808
+ {
809
+ "value": "designerHyphenJson",
810
+ "description": "Designer-JSON."
811
+ }
812
+ ]
813
+ }
814
+ }
815
+ }
816
+ },
817
+ "CreatePipelineParameters": {
818
+ "description": "Parameters to create a pipeline.",
819
+ "type": "object",
820
+ "properties": {
821
+ "configuration": {
822
+ "description": "Configuration parameters of the pipeline.",
823
+ "$ref": "#/definitions/CreatePipelineConfigurationParameters"
824
+ },
825
+ "folder": {
826
+ "description": "Folder of the pipeline.",
827
+ "type": "string"
828
+ },
829
+ "name": {
830
+ "description": "Name of the pipeline.",
831
+ "type": "string"
832
+ }
833
+ }
834
+ },
835
+ "Log": {
836
+ "description": "Log for a pipeline.",
837
+ "type": "object",
838
+ "properties": {
839
+ "createdOn": {
840
+ "description": "The date and time the log was created.",
841
+ "type": "string",
842
+ "format": "date-time"
843
+ },
844
+ "id": {
845
+ "description": "The ID of the log.",
846
+ "type": "integer",
847
+ "format": "int32"
848
+ },
849
+ "lastChangedOn": {
850
+ "description": "The date and time the log was last changed.",
851
+ "type": "string",
852
+ "format": "date-time"
853
+ },
854
+ "lineCount": {
855
+ "description": "The number of lines in the log.",
856
+ "type": "integer",
857
+ "format": "int64"
858
+ },
859
+ "signedContent": {
860
+ "$ref": "#/definitions/SignedUrl"
861
+ },
862
+ "url": {
863
+ "type": "string"
864
+ }
865
+ }
866
+ },
867
+ "LogCollection": {
868
+ "description": "A collection of logs.",
869
+ "type": "object",
870
+ "properties": {
871
+ "logs": {
872
+ "description": "The list of logs.",
873
+ "type": "array",
874
+ "items": {
875
+ "$ref": "#/definitions/Log"
876
+ }
877
+ },
878
+ "signedContent": {
879
+ "$ref": "#/definitions/SignedUrl"
880
+ },
881
+ "url": {
882
+ "description": "URL of the log.",
883
+ "type": "string"
884
+ }
885
+ }
886
+ },
887
+ "PackageResourceParameters": {
888
+ "description": "",
889
+ "type": "object",
890
+ "properties": {
891
+ "version": {
892
+ "type": "string"
893
+ }
894
+ }
895
+ },
896
+ "Pipeline": {
897
+ "description": "Definition of a pipeline.",
898
+ "type": "object",
899
+ "allOf": [
900
+ {
901
+ "$ref": "#/definitions/PipelineBase"
902
+ }
903
+ ],
904
+ "properties": {
905
+ "_links": {
906
+ "$ref": "#/definitions/ReferenceLinks"
907
+ },
908
+ "configuration": {
909
+ "$ref": "#/definitions/PipelineConfiguration"
910
+ },
911
+ "url": {
912
+ "description": "URL of the pipeline",
913
+ "type": "string"
914
+ }
915
+ }
916
+ },
917
+ "PipelineBase": {
918
+ "description": "",
919
+ "type": "object",
920
+ "properties": {
921
+ "folder": {
922
+ "description": "Pipeline folder",
923
+ "type": "string"
924
+ },
925
+ "id": {
926
+ "description": "Pipeline ID",
927
+ "type": "integer",
928
+ "format": "int32"
929
+ },
930
+ "name": {
931
+ "description": "Pipeline name",
932
+ "type": "string"
933
+ },
934
+ "revision": {
935
+ "description": "Revision number",
936
+ "type": "integer",
937
+ "format": "int32"
938
+ }
939
+ }
940
+ },
941
+ "PipelineConfiguration": {
942
+ "description": "",
943
+ "type": "object",
944
+ "properties": {
945
+ "type": {
946
+ "enum": [
947
+ "unknown",
948
+ "yaml",
949
+ "designerJson",
950
+ "justInTime",
951
+ "designerHyphenJson"
952
+ ],
953
+ "x-ms-enum": {
954
+ "name": "ConfigurationType",
955
+ "values": [
956
+ {
957
+ "value": "unknown",
958
+ "description": "Unknown type."
959
+ },
960
+ {
961
+ "value": "yaml",
962
+ "description": "YAML."
963
+ },
964
+ {
965
+ "value": "designerJson",
966
+ "description": "Designer JSON."
967
+ },
968
+ {
969
+ "value": "justInTime",
970
+ "description": "Just-in-time."
971
+ },
972
+ {
973
+ "value": "designerHyphenJson",
974
+ "description": "Designer-JSON."
975
+ }
976
+ ]
977
+ }
978
+ }
979
+ }
980
+ },
981
+ "PipelineReference": {
982
+ "description": "A reference to a Pipeline.",
983
+ "type": "object",
984
+ "allOf": [
985
+ {
986
+ "$ref": "#/definitions/PipelineBase"
987
+ }
988
+ ],
989
+ "properties": {
990
+ "url": {
991
+ "type": "string"
992
+ }
993
+ }
994
+ },
995
+ "PipelineResourceParameters": {
996
+ "description": "",
997
+ "type": "object",
998
+ "properties": {
999
+ "version": {
1000
+ "type": "string"
1001
+ }
1002
+ }
1003
+ },
1004
+ "PreviewRun": {
1005
+ "description": "",
1006
+ "type": "object",
1007
+ "properties": {
1008
+ "finalYaml": {
1009
+ "type": "string"
1010
+ }
1011
+ }
1012
+ },
1013
+ "ReferenceLinks": {
1014
+ "description": "The class to represent a collection of REST reference links.",
1015
+ "type": "object",
1016
+ "properties": {
1017
+ "links": {
1018
+ "description": "The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only.",
1019
+ "type": "object",
1020
+ "additionalProperties": {
1021
+ "type": "object"
1022
+ }
1023
+ }
1024
+ }
1025
+ },
1026
+ "Repository": {
1027
+ "description": "",
1028
+ "type": "object",
1029
+ "properties": {
1030
+ "type": {
1031
+ "enum": [
1032
+ "unknown",
1033
+ "gitHub",
1034
+ "azureReposGit",
1035
+ "gitHubEnterprise",
1036
+ "azureReposGitHyphenated"
1037
+ ],
1038
+ "x-ms-enum": {
1039
+ "name": "RepositoryType",
1040
+ "values": [
1041
+ {
1042
+ "value": "unknown",
1043
+ "description": ""
1044
+ },
1045
+ {
1046
+ "value": "gitHub",
1047
+ "description": ""
1048
+ },
1049
+ {
1050
+ "value": "azureReposGit",
1051
+ "description": ""
1052
+ },
1053
+ {
1054
+ "value": "gitHubEnterprise",
1055
+ "description": ""
1056
+ },
1057
+ {
1058
+ "value": "azureReposGitHyphenated",
1059
+ "description": ""
1060
+ }
1061
+ ]
1062
+ }
1063
+ }
1064
+ }
1065
+ },
1066
+ "RepositoryResource": {
1067
+ "description": "",
1068
+ "type": "object",
1069
+ "properties": {
1070
+ "refName": {
1071
+ "type": "string"
1072
+ },
1073
+ "repository": {
1074
+ "$ref": "#/definitions/Repository"
1075
+ },
1076
+ "version": {
1077
+ "type": "string"
1078
+ }
1079
+ }
1080
+ },
1081
+ "RepositoryResourceParameters": {
1082
+ "description": "",
1083
+ "type": "object",
1084
+ "properties": {
1085
+ "refName": {
1086
+ "type": "string"
1087
+ },
1088
+ "token": {
1089
+ "description": "This is the security token to use when connecting to the repository.",
1090
+ "type": "string"
1091
+ },
1092
+ "tokenType": {
1093
+ "description": "Optional. This is the type of the token given. If not provided, a type of \"Bearer\" is assumed. Note: Use \"Basic\" for a PAT token.",
1094
+ "type": "string"
1095
+ },
1096
+ "version": {
1097
+ "type": "string"
1098
+ }
1099
+ }
1100
+ },
1101
+ "Run": {
1102
+ "description": "",
1103
+ "type": "object",
1104
+ "allOf": [
1105
+ {
1106
+ "$ref": "#/definitions/RunReference"
1107
+ }
1108
+ ],
1109
+ "properties": {
1110
+ "_links": {
1111
+ "$ref": "#/definitions/ReferenceLinks"
1112
+ },
1113
+ "createdDate": {
1114
+ "type": "string",
1115
+ "format": "date-time"
1116
+ },
1117
+ "finalYaml": {
1118
+ "type": "string"
1119
+ },
1120
+ "finishedDate": {
1121
+ "type": "string",
1122
+ "format": "date-time"
1123
+ },
1124
+ "pipeline": {
1125
+ "$ref": "#/definitions/PipelineReference"
1126
+ },
1127
+ "resources": {
1128
+ "$ref": "#/definitions/RunResources"
1129
+ },
1130
+ "result": {
1131
+ "enum": [
1132
+ "unknown",
1133
+ "succeeded",
1134
+ "failed",
1135
+ "canceled"
1136
+ ],
1137
+ "x-ms-enum": {
1138
+ "name": "RunResult",
1139
+ "values": [
1140
+ {
1141
+ "value": "unknown",
1142
+ "description": ""
1143
+ },
1144
+ {
1145
+ "value": "succeeded",
1146
+ "description": ""
1147
+ },
1148
+ {
1149
+ "value": "failed",
1150
+ "description": ""
1151
+ },
1152
+ {
1153
+ "value": "canceled",
1154
+ "description": ""
1155
+ }
1156
+ ]
1157
+ }
1158
+ },
1159
+ "state": {
1160
+ "enum": [
1161
+ "unknown",
1162
+ "inProgress",
1163
+ "canceling",
1164
+ "completed"
1165
+ ],
1166
+ "x-ms-enum": {
1167
+ "name": "RunState",
1168
+ "values": [
1169
+ {
1170
+ "value": "unknown",
1171
+ "description": ""
1172
+ },
1173
+ {
1174
+ "value": "inProgress",
1175
+ "description": ""
1176
+ },
1177
+ {
1178
+ "value": "canceling",
1179
+ "description": ""
1180
+ },
1181
+ {
1182
+ "value": "completed",
1183
+ "description": ""
1184
+ }
1185
+ ]
1186
+ }
1187
+ },
1188
+ "url": {
1189
+ "type": "string"
1190
+ },
1191
+ "variables": {
1192
+ "type": "object",
1193
+ "additionalProperties": {
1194
+ "$ref": "#/definitions/Variable"
1195
+ }
1196
+ }
1197
+ }
1198
+ },
1199
+ "RunPipelineParameters": {
1200
+ "description": "Settings which influence pipeline runs.",
1201
+ "type": "object",
1202
+ "properties": {
1203
+ "previewRun": {
1204
+ "description": "If true, don't actually create a new run. Instead, return the final YAML document after parsing templates.",
1205
+ "type": "boolean"
1206
+ },
1207
+ "resources": {
1208
+ "description": "The resources the run requires.",
1209
+ "$ref": "#/definitions/RunResourcesParameters"
1210
+ },
1211
+ "stagesToSkip": {
1212
+ "type": "array",
1213
+ "items": {
1214
+ "type": "string"
1215
+ }
1216
+ },
1217
+ "templateParameters": {
1218
+ "type": "object",
1219
+ "additionalProperties": {
1220
+ "type": "string"
1221
+ }
1222
+ },
1223
+ "variables": {
1224
+ "type": "object",
1225
+ "additionalProperties": {
1226
+ "$ref": "#/definitions/Variable"
1227
+ }
1228
+ },
1229
+ "yamlOverride": {
1230
+ "description": "If you use the preview run option, you may optionally supply different YAML. This allows you to preview the final YAML document without committing a changed file.",
1231
+ "type": "string"
1232
+ }
1233
+ }
1234
+ },
1235
+ "RunReference": {
1236
+ "description": "",
1237
+ "type": "object",
1238
+ "properties": {
1239
+ "id": {
1240
+ "type": "integer",
1241
+ "format": "int32"
1242
+ },
1243
+ "name": {
1244
+ "type": "string"
1245
+ }
1246
+ }
1247
+ },
1248
+ "RunResources": {
1249
+ "description": "",
1250
+ "type": "object",
1251
+ "properties": {
1252
+ "repositories": {
1253
+ "type": "object",
1254
+ "additionalProperties": {
1255
+ "$ref": "#/definitions/RepositoryResource"
1256
+ }
1257
+ }
1258
+ }
1259
+ },
1260
+ "RunResourcesParameters": {
1261
+ "description": "",
1262
+ "type": "object",
1263
+ "properties": {
1264
+ "builds": {
1265
+ "type": "object",
1266
+ "additionalProperties": {
1267
+ "$ref": "#/definitions/BuildResourceParameters"
1268
+ }
1269
+ },
1270
+ "containers": {
1271
+ "type": "object",
1272
+ "additionalProperties": {
1273
+ "$ref": "#/definitions/ContainerResourceParameters"
1274
+ }
1275
+ },
1276
+ "packages": {
1277
+ "type": "object",
1278
+ "additionalProperties": {
1279
+ "$ref": "#/definitions/PackageResourceParameters"
1280
+ }
1281
+ },
1282
+ "pipelines": {
1283
+ "type": "object",
1284
+ "additionalProperties": {
1285
+ "$ref": "#/definitions/PipelineResourceParameters"
1286
+ }
1287
+ },
1288
+ "repositories": {
1289
+ "type": "object",
1290
+ "additionalProperties": {
1291
+ "$ref": "#/definitions/RepositoryResourceParameters"
1292
+ }
1293
+ }
1294
+ }
1295
+ },
1296
+ "SignalRConnection": {
1297
+ "description": "",
1298
+ "type": "object",
1299
+ "properties": {
1300
+ "signedContent": {
1301
+ "$ref": "#/definitions/SignedUrl"
1302
+ }
1303
+ }
1304
+ },
1305
+ "SignedUrl": {
1306
+ "description": "A signed url allowing limited-time anonymous access to private resources.",
1307
+ "type": "object",
1308
+ "properties": {
1309
+ "signatureExpires": {
1310
+ "description": "Timestamp when access expires.",
1311
+ "type": "string",
1312
+ "format": "date-time"
1313
+ },
1314
+ "url": {
1315
+ "description": "The URL to allow access to.",
1316
+ "type": "string"
1317
+ }
1318
+ }
1319
+ },
1320
+ "Variable": {
1321
+ "description": "",
1322
+ "type": "object",
1323
+ "properties": {
1324
+ "isSecret": {
1325
+ "type": "boolean"
1326
+ },
1327
+ "value": {
1328
+ "type": "string"
1329
+ }
1330
+ }
1331
+ },
1332
+ "VssJsonCollectionWrapper": {
1333
+ "description": "This class is used to serialized collections as a single JSON object on the wire, to avoid serializing JSON arrays directly to the client, which can be a security hole",
1334
+ "type": "object",
1335
+ "allOf": [
1336
+ {
1337
+ "$ref": "#/definitions/VssJsonCollectionWrapperBase"
1338
+ }
1339
+ ],
1340
+ "properties": {
1341
+ "value": {
1342
+ "type": "string",
1343
+ "format": "T"
1344
+ }
1345
+ }
1346
+ },
1347
+ "VssJsonCollectionWrapperBase": {
1348
+ "description": "",
1349
+ "type": "object",
1350
+ "properties": {
1351
+ "count": {
1352
+ "type": "integer",
1353
+ "format": "int32"
1354
+ }
1355
+ }
1356
+ }
1357
+ },
1358
+ "parameters": {
1359
+ "api-Version-preview.1": {
1360
+ "name": "api-version",
1361
+ "in": "query",
1362
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
1363
+ "required": true,
1364
+ "type": "string"
1365
+ }
1366
+ },
1367
+ "securityDefinitions": {
1368
+ "accessToken": {
1369
+ "type": "basic",
1370
+ "description": "Personal access token. Use any value for the user name and the token as the password."
1371
+ }
1372
+ },
1373
+ "security": [
1374
+ {
1375
+ "accessToken": []
1376
+ }
1377
+ ],
1378
+ "externalDocs": {
1379
+ "description": "Azure DevOps REST APIs",
1380
+ "url": "https://aka.ms/azure-devops-rest-apis"
1381
+ }
1382
+ }