summaryrefslogtreecommitdiff
path: root/vendor/github.com/microsoft/azure-devops-go-api/azuredevops/taskagent/models.go
blob: edfa370aee87fee751b67f5009fd2ffb5ec72b50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
// --------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// --------------------------------------------------------------------------------------------
// Generated file, DO NOT EDIT
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// --------------------------------------------------------------------------------------------

package taskagent

import (
	"github.com/google/uuid"
	"github.com/microsoft/azure-devops-go-api/azuredevops"
	"github.com/microsoft/azure-devops-go-api/azuredevops/distributedtaskcommon"
	"github.com/microsoft/azure-devops-go-api/azuredevops/forminput"
	"github.com/microsoft/azure-devops-go-api/azuredevops/webapi"
)

type AadLoginPromptOption string

type aadLoginPromptOptionValuesType struct {
	NoOption          AadLoginPromptOption
	Login             AadLoginPromptOption
	SelectAccount     AadLoginPromptOption
	FreshLogin        AadLoginPromptOption
	FreshLoginWithMfa AadLoginPromptOption
}

var AadLoginPromptOptionValues = aadLoginPromptOptionValuesType{
	// Do not provide a prompt option
	NoOption: "noOption",
	// Force the user to login again.
	Login: "login",
	// Force the user to select which account they are logging in with instead of automatically picking the user up from the session state. NOTE: This does not work for switching between the variants of a dual-homed user.
	SelectAccount: "selectAccount",
	// Force the user to login again. <remarks> Ignore current authentication state and force the user to authenticate again. This option should be used instead of Login. </remarks>
	FreshLogin: "freshLogin",
	// Force the user to login again with mfa. <remarks> Ignore current authentication state and force the user to authenticate again. This option should be used instead of Login, if MFA is required. </remarks>
	FreshLoginWithMfa: "freshLoginWithMfa",
}

type AadOauthTokenRequest struct {
	Refresh  *bool   `json:"refresh,omitempty"`
	Resource *string `json:"resource,omitempty"`
	TenantId *string `json:"tenantId,omitempty"`
	Token    *string `json:"token,omitempty"`
}

type AadOauthTokenResult struct {
	AccessToken       *string `json:"accessToken,omitempty"`
	RefreshTokenCache *string `json:"refreshTokenCache,omitempty"`
}

type AgentChangeEvent struct {
	Agent     *TaskAgent              `json:"agent,omitempty"`
	EventType *string                 `json:"eventType,omitempty"`
	Pool      *TaskAgentPoolReference `json:"pool,omitempty"`
	// Deprecated:
	PoolId *int `json:"poolId,omitempty"`
	// Deprecated:
	TimeStamp *azuredevops.Time `json:"timeStamp,omitempty"`
}

type AgentJobRequestMessage struct {
	Environment *JobEnvironment                 `json:"environment,omitempty"`
	JobId       *uuid.UUID                      `json:"jobId,omitempty"`
	JobName     *string                         `json:"jobName,omitempty"`
	JobRefName  *string                         `json:"jobRefName,omitempty"`
	MessageType *string                         `json:"messageType,omitempty"`
	Plan        *TaskOrchestrationPlanReference `json:"plan,omitempty"`
	Timeline    *TimelineReference              `json:"timeline,omitempty"`
	LockedUntil *azuredevops.Time               `json:"lockedUntil,omitempty"`
	LockToken   *uuid.UUID                      `json:"lockToken,omitempty"`
	RequestId   *uint64                         `json:"requestId,omitempty"`
	Tasks       *[]TaskInstance                 `json:"tasks,omitempty"`
}

type AgentMigrationMessage struct {
	AccessToken *string `json:"accessToken,omitempty"`
}

type AgentPoolEvent struct {
	EventType *string        `json:"eventType,omitempty"`
	Pool      *TaskAgentPool `json:"pool,omitempty"`
}

type AgentQueueEvent struct {
	EventType *string         `json:"eventType,omitempty"`
	Queue     *TaskAgentQueue `json:"queue,omitempty"`
}

type AgentQueuesEvent struct {
	EventType *string           `json:"eventType,omitempty"`
	Queues    *[]TaskAgentQueue `json:"queues,omitempty"`
}

type AgentRefreshMessage struct {
	AgentId       *int        `json:"agentId,omitempty"`
	TargetVersion *string     `json:"targetVersion,omitempty"`
	Timeout       interface{} `json:"timeout,omitempty"`
}

type AuditAction string

type auditActionValuesType struct {
	Add      AuditAction
	Update   AuditAction
	Delete   AuditAction
	Undelete AuditAction
}

var AuditActionValues = auditActionValuesType{
	Add:      "add",
	Update:   "update",
	Delete:   "delete",
	Undelete: "undelete",
}

type AuthenticationSchemeReference struct {
	Inputs *map[string]string `json:"inputs,omitempty"`
	Type   *string            `json:"type,omitempty"`
}

type AuthorizationHeader struct {
	// Gets or sets the name of authorization header.
	Name *string `json:"name,omitempty"`
	// Gets or sets the value of authorization header.
	Value *string `json:"value,omitempty"`
}

type AzureKeyVaultPermission struct {
	Provisioned      *bool   `json:"provisioned,omitempty"`
	ResourceProvider *string `json:"resourceProvider,omitempty"`
	ResourceGroup    *string `json:"resourceGroup,omitempty"`
	Vault            *string `json:"vault,omitempty"`
}

type AzureKeyVaultVariableGroupProviderData struct {
	LastRefreshedOn   *azuredevops.Time `json:"lastRefreshedOn,omitempty"`
	ServiceEndpointId *uuid.UUID        `json:"serviceEndpointId,omitempty"`
	Vault             *string           `json:"vault,omitempty"`
}

type AzureKeyVaultVariableValue struct {
	IsSecret    *bool             `json:"isSecret,omitempty"`
	Value       *string           `json:"value,omitempty"`
	ContentType *string           `json:"contentType,omitempty"`
	Enabled     *bool             `json:"enabled,omitempty"`
	Expires     *azuredevops.Time `json:"expires,omitempty"`
}

// Azure Management Group
type AzureManagementGroup struct {
	// Display name of azure management group
	DisplayName *string `json:"displayName,omitempty"`
	// Id of azure management group
	Id *string `json:"id,omitempty"`
	// Azure management group name
	Name *string `json:"name,omitempty"`
	// Id of tenant from which azure management group belongs
	TenantId *string `json:"tenantId,omitempty"`
}

// Azure management group query result
type AzureManagementGroupQueryResult struct {
	// Error message in case of an exception
	ErrorMessage *string `json:"errorMessage,omitempty"`
	// List of azure management groups
	Value *[]AzureManagementGroup `json:"value,omitempty"`
}

type AzurePermission struct {
	Provisioned      *bool   `json:"provisioned,omitempty"`
	ResourceProvider *string `json:"resourceProvider,omitempty"`
}

type AzureResourcePermission struct {
	Provisioned      *bool   `json:"provisioned,omitempty"`
	ResourceProvider *string `json:"resourceProvider,omitempty"`
	ResourceGroup    *string `json:"resourceGroup,omitempty"`
}

type AzureRoleAssignmentPermission struct {
	Provisioned      *bool      `json:"provisioned,omitempty"`
	ResourceProvider *string    `json:"resourceProvider,omitempty"`
	RoleAssignmentId *uuid.UUID `json:"roleAssignmentId,omitempty"`
}

type AzureSpnOperationStatus struct {
	State         *string `json:"state,omitempty"`
	StatusMessage *string `json:"statusMessage,omitempty"`
}

type AzureSubscription struct {
	DisplayName            *string `json:"displayName,omitempty"`
	SubscriptionId         *string `json:"subscriptionId,omitempty"`
	SubscriptionTenantId   *string `json:"subscriptionTenantId,omitempty"`
	SubscriptionTenantName *string `json:"subscriptionTenantName,omitempty"`
}

type AzureSubscriptionQueryResult struct {
	ErrorMessage *string              `json:"errorMessage,omitempty"`
	Value        *[]AzureSubscription `json:"value,omitempty"`
}

type ClientCertificate struct {
	// Gets or sets the value of client certificate.
	Value *string `json:"value,omitempty"`
}

type CounterVariable struct {
	Prefix *string `json:"prefix,omitempty"`
	Seed   *int    `json:"seed,omitempty"`
	Value  *int    `json:"value,omitempty"`
}

type DataSource struct {
	AuthenticationScheme *AuthenticationSchemeReference `json:"authenticationScheme,omitempty"`
	EndpointUrl          *string                        `json:"endpointUrl,omitempty"`
	Headers              *[]AuthorizationHeader         `json:"headers,omitempty"`
	Name                 *string                        `json:"name,omitempty"`
	ResourceUrl          *string                        `json:"resourceUrl,omitempty"`
	ResultSelector       *string                        `json:"resultSelector,omitempty"`
}

type DataSourceBinding struct {
	// Pagination format supported by this data source(ContinuationToken/SkipTop).
	CallbackContextTemplate *string `json:"callbackContextTemplate,omitempty"`
	// Subsequent calls needed?
	CallbackRequiredTemplate *string `json:"callbackRequiredTemplate,omitempty"`
	// Gets or sets the name of the data source.
	DataSourceName *string `json:"dataSourceName,omitempty"`
	// Gets or sets the endpoint Id.
	EndpointId *string `json:"endpointId,omitempty"`
	// Gets or sets the url of the service endpoint.
	EndpointUrl *string `json:"endpointUrl,omitempty"`
	// Gets or sets the authorization headers.
	Headers *[]distributedtaskcommon.AuthorizationHeader `json:"headers,omitempty"`
	// Defines the initial value of the query params
	InitialContextTemplate *string `json:"initialContextTemplate,omitempty"`
	// Gets or sets the parameters for the data source.
	Parameters *map[string]string `json:"parameters,omitempty"`
	// Gets or sets http request body
	RequestContent *string `json:"requestContent,omitempty"`
	// Gets or sets http request verb
	RequestVerb *string `json:"requestVerb,omitempty"`
	// Gets or sets the result selector.
	ResultSelector *string `json:"resultSelector,omitempty"`
	// Gets or sets the result template.
	ResultTemplate *string `json:"resultTemplate,omitempty"`
	// Gets or sets the target of the data source.
	Target *string `json:"target,omitempty"`
}

type DataSourceDetails struct {
	DataSourceName *string                `json:"dataSourceName,omitempty"`
	DataSourceUrl  *string                `json:"dataSourceUrl,omitempty"`
	Headers        *[]AuthorizationHeader `json:"headers,omitempty"`
	Parameters     *map[string]string     `json:"parameters,omitempty"`
	ResourceUrl    *string                `json:"resourceUrl,omitempty"`
	ResultSelector *string                `json:"resultSelector,omitempty"`
}

type Demand struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type DemandEquals struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type DemandExists struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type DemandMinimumVersion struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type DependencyBinding struct {
	Key   *string `json:"key,omitempty"`
	Value *string `json:"value,omitempty"`
}

type DependencyData struct {
	Input *string                     `json:"input,omitempty"`
	Map   *[]azuredevops.KeyValuePair `json:"map,omitempty"`
}

type DependsOn struct {
	Input *string              `json:"input,omitempty"`
	Map   *[]DependencyBinding `json:"map,omitempty"`
}

type DeploymentGatesChangeEvent struct {
	GateNames *[]string `json:"gateNames,omitempty"`
}

// Deployment group.
type DeploymentGroup struct {
	// Deployment group identifier.
	Id *int `json:"id,omitempty"`
	// Name of the deployment group.
	Name *string `json:"name,omitempty"`
	// Deployment pool in which deployment agents are registered.
	Pool *TaskAgentPoolReference `json:"pool,omitempty"`
	// Project to which the deployment group belongs.
	Project *ProjectReference `json:"project,omitempty"`
	// Description of the deployment group.
	Description *string `json:"description,omitempty"`
	// Number of deployment targets in the deployment group.
	MachineCount *int `json:"machineCount,omitempty"`
	// List of deployment targets in the deployment group.
	Machines *[]DeploymentMachine `json:"machines,omitempty"`
	// List of unique tags across all deployment targets in the deployment group.
	MachineTags *[]string `json:"machineTags,omitempty"`
}

// [Flags] This is useful in getting a list of deployment groups, filtered for which caller has permissions to take a particular action.
type DeploymentGroupActionFilter string

type deploymentGroupActionFilterValuesType struct {
	None   DeploymentGroupActionFilter
	Manage DeploymentGroupActionFilter
	Use    DeploymentGroupActionFilter
}

var DeploymentGroupActionFilterValues = deploymentGroupActionFilterValuesType{
	// All deployment groups.
	None: "none",
	// Only deployment groups for which caller has **manage** permission.
	Manage: "manage",
	// Only deployment groups for which caller has **use** permission.
	Use: "use",
}

// Properties to create Deployment group.
type DeploymentGroupCreateParameter struct {
	// Description of the deployment group.
	Description *string `json:"description,omitempty"`
	// Name of the deployment group.
	Name *string `json:"name,omitempty"`
	// Identifier of the deployment pool in which deployment agents are registered.
	PoolId *int `json:"poolId,omitempty"`
}

// Properties of Deployment pool to create Deployment group.
type DeploymentGroupCreateParameterPoolProperty struct {
	// Deployment pool identifier.
	Id *int `json:"id,omitempty"`
}

// [Flags] Properties to be included or expanded in deployment group objects. This is useful when getting a single or list of deployment grouops.
type DeploymentGroupExpands string

type deploymentGroupExpandsValuesType struct {
	None     DeploymentGroupExpands
	Machines DeploymentGroupExpands
	Tags     DeploymentGroupExpands
}

var DeploymentGroupExpandsValues = deploymentGroupExpandsValuesType{
	// No additional properties.
	None: "none",
	// Deprecated: Include all the deployment targets.
	Machines: "machines",
	// Include unique list of tags across all deployment targets.
	Tags: "tags",
}

// Deployment group metrics.
type DeploymentGroupMetrics struct {
	// List of deployment group properties. And types of metrics provided for those properties.
	ColumnsHeader *MetricsColumnsHeader `json:"columnsHeader,omitempty"`
	// Deployment group.
	DeploymentGroup *DeploymentGroupReference `json:"deploymentGroup,omitempty"`
	// Values of properties and the metrics. E.g. 1: total count of deployment targets for which 'TargetState' is 'offline'. E.g. 2: Average time of deployment to the deployment targets for which 'LastJobStatus' is 'passed' and 'TargetState' is 'online'.
	Rows *[]MetricsRow `json:"rows,omitempty"`
}

// Deployment group reference. This is useful for referring a deployment group in another object.
type DeploymentGroupReference struct {
	// Deployment group identifier.
	Id *int `json:"id,omitempty"`
	// Name of the deployment group.
	Name *string `json:"name,omitempty"`
	// Deployment pool in which deployment agents are registered.
	Pool *TaskAgentPoolReference `json:"pool,omitempty"`
	// Project to which the deployment group belongs.
	Project *ProjectReference `json:"project,omitempty"`
}

// Deployment group update parameter.
type DeploymentGroupUpdateParameter struct {
	// Description of the deployment group.
	Description *string `json:"description,omitempty"`
	// Name of the deployment group.
	Name *string `json:"name,omitempty"`
}

// Deployment target.
type DeploymentMachine struct {
	// Deployment agent.
	Agent *TaskAgent `json:"agent,omitempty"`
	// Deployment target Identifier.
	Id *int `json:"id,omitempty"`
	// Properties of the deployment target.
	Properties interface{} `json:"properties,omitempty"`
	// Tags of the deployment target.
	Tags *[]string `json:"tags,omitempty"`
}

type DeploymentMachineChangedData struct {
	// Deployment agent.
	Agent *TaskAgent `json:"agent,omitempty"`
	// Deployment target Identifier.
	Id *int `json:"id,omitempty"`
	// Properties of the deployment target.
	Properties interface{} `json:"properties,omitempty"`
	// Tags of the deployment target.
	Tags        *[]string `json:"tags,omitempty"`
	AddedTags   *[]string `json:"addedTags,omitempty"`
	DeletedTags *[]string `json:"deletedTags,omitempty"`
}

// [Flags]
type DeploymentMachineExpands string

type deploymentMachineExpandsValuesType struct {
	None            DeploymentMachineExpands
	Capabilities    DeploymentMachineExpands
	AssignedRequest DeploymentMachineExpands
}

var DeploymentMachineExpandsValues = deploymentMachineExpandsValuesType{
	None:            "none",
	Capabilities:    "capabilities",
	AssignedRequest: "assignedRequest",
}

type DeploymentMachineGroup struct {
	Id       *int                    `json:"id,omitempty"`
	Name     *string                 `json:"name,omitempty"`
	Pool     *TaskAgentPoolReference `json:"pool,omitempty"`
	Project  *ProjectReference       `json:"project,omitempty"`
	Machines *[]DeploymentMachine    `json:"machines,omitempty"`
	Size     *int                    `json:"size,omitempty"`
}

type DeploymentMachineGroupReference struct {
	Id      *int                    `json:"id,omitempty"`
	Name    *string                 `json:"name,omitempty"`
	Pool    *TaskAgentPoolReference `json:"pool,omitempty"`
	Project *ProjectReference       `json:"project,omitempty"`
}

type DeploymentMachinesChangeEvent struct {
	MachineGroupReference *DeploymentGroupReference       `json:"machineGroupReference,omitempty"`
	Machines              *[]DeploymentMachineChangedData `json:"machines,omitempty"`
}

// Deployment pool summary.
type DeploymentPoolSummary struct {
	// List of deployment groups referring to the deployment pool.
	DeploymentGroups *[]DeploymentGroupReference `json:"deploymentGroups,omitempty"`
	// Number of deployment agents that are offline.
	OfflineAgentsCount *int `json:"offlineAgentsCount,omitempty"`
	// Number of deployment agents that are online.
	OnlineAgentsCount *int `json:"onlineAgentsCount,omitempty"`
	// Deployment pool.
	Pool *TaskAgentPoolReference `json:"pool,omitempty"`
	// Virtual machine Resource referring in pool.
	Resource *EnvironmentResourceReference `json:"resource,omitempty"`
}

// [Flags] Properties to be included or expanded in deployment pool summary objects. This is useful when getting a single or list of deployment pool summaries.
type DeploymentPoolSummaryExpands string

type deploymentPoolSummaryExpandsValuesType struct {
	None             DeploymentPoolSummaryExpands
	DeploymentGroups DeploymentPoolSummaryExpands
	Resource         DeploymentPoolSummaryExpands
}

var DeploymentPoolSummaryExpandsValues = deploymentPoolSummaryExpandsValuesType{
	// No additional properties
	None: "none",
	// Include deployment groups referring to the deployment pool.
	DeploymentGroups: "deploymentGroups",
	// Include Resource referring to the deployment pool.
	Resource: "resource",
}

// [Flags] Properties to be included or expanded in deployment target objects. This is useful when getting a single or list of deployment targets.
type DeploymentTargetExpands string

type deploymentTargetExpandsValuesType struct {
	None                 DeploymentTargetExpands
	Capabilities         DeploymentTargetExpands
	AssignedRequest      DeploymentTargetExpands
	LastCompletedRequest DeploymentTargetExpands
}

var DeploymentTargetExpandsValues = deploymentTargetExpandsValuesType{
	// No additional properties.
	None: "none",
	// Include capabilities of the deployment agent.
	Capabilities: "capabilities",
	// Include the job request assigned to the deployment agent.
	AssignedRequest: "assignedRequest",
	// Include the last completed job request of the deployment agent.
	LastCompletedRequest: "lastCompletedRequest",
}

// Deployment target update parameter.
type DeploymentTargetUpdateParameter struct {
	// Identifier of the deployment target.
	Id   *int      `json:"id,omitempty"`
	Tags *[]string `json:"tags,omitempty"`
}

type DiagnosticLogMetadata struct {
	AgentId     *int    `json:"agentId,omitempty"`
	AgentName   *string `json:"agentName,omitempty"`
	FileName    *string `json:"fileName,omitempty"`
	PhaseName   *string `json:"phaseName,omitempty"`
	PhaseResult *string `json:"phaseResult,omitempty"`
	PoolId      *int    `json:"poolId,omitempty"`
}

type EndpointAuthorization struct {
	// Gets or sets the parameters for the selected authorization scheme.
	Parameters *map[string]string `json:"parameters,omitempty"`
	// Gets or sets the scheme used for service endpoint authentication.
	Scheme *string `json:"scheme,omitempty"`
}

// Represents url of the service endpoint.
type EndpointUrl struct {
	// Gets or sets the dependency bindings.
	DependsOn *DependsOn `json:"dependsOn,omitempty"`
	// Gets or sets the display name of service endpoint url.
	DisplayName *string `json:"displayName,omitempty"`
	// Gets or sets the help text of service endpoint url.
	HelpText *string `json:"helpText,omitempty"`
	// Gets or sets the visibility of service endpoint url.
	IsVisible *string `json:"isVisible,omitempty"`
	// Gets or sets the value of service endpoint url.
	Value *string `json:"value,omitempty"`
}

// [Flags] This is useful in getting a list of Environments, filtered for which caller has permissions to take a particular action.
type EnvironmentActionFilter string

type environmentActionFilterValuesType struct {
	None   EnvironmentActionFilter
	Manage EnvironmentActionFilter
	Use    EnvironmentActionFilter
}

var EnvironmentActionFilterValues = environmentActionFilterValuesType{
	// All environments for which user has **view** permission.
	None: "none",
	// Only environments for which caller has **manage** permission.
	Manage: "manage",
	// Only environments for which caller has **use** permission.
	Use: "use",
}

// Properties to create Environment.
type EnvironmentCreateParameter struct {
	// Description of the environment.
	Description *string `json:"description,omitempty"`
	// Name of the environment.
	Name *string `json:"name,omitempty"`
}

// EnvironmentDeploymentExecutionRecord.
type EnvironmentDeploymentExecutionRecord struct {
	// Definition of the environment deployment execution owner
	Definition *TaskOrchestrationOwner `json:"definition,omitempty"`
	// Id of the Environment
	EnvironmentId *int `json:"environmentId,omitempty"`
	// Finish time of the environment deployment execution
	FinishTime *azuredevops.Time `json:"finishTime,omitempty"`
	// Id of the Environment deployment execution history record
	Id *uint64 `json:"id,omitempty"`
	// Job Attempt
	JobAttempt *int `json:"jobAttempt,omitempty"`
	// Job name
	JobName *string `json:"jobName,omitempty"`
	// Owner of the environment deployment execution record
	Owner *TaskOrchestrationOwner `json:"owner,omitempty"`
	// Plan Id
	PlanId *uuid.UUID `json:"planId,omitempty"`
	// Plan type of the environment deployment execution record
	PlanType *string `json:"planType,omitempty"`
	// Queue time of the environment deployment execution
	QueueTime *azuredevops.Time `json:"queueTime,omitempty"`
	// Request identifier of the Environment deployment execution history record
	RequestIdentifier *string `json:"requestIdentifier,omitempty"`
	// Resource Id
	ResourceId *int `json:"resourceId,omitempty"`
	// Result of the environment deployment execution
	Result *TaskResult `json:"result,omitempty"`
	// Project Id
	ScopeId *uuid.UUID `json:"scopeId,omitempty"`
	// Service owner Id
	ServiceOwner *uuid.UUID `json:"serviceOwner,omitempty"`
	// Stage Attempt
	StageAttempt *int `json:"stageAttempt,omitempty"`
	// Stage name
	StageName *string `json:"stageName,omitempty"`
	// Start time of the environment deployment execution
	StartTime *azuredevops.Time `json:"startTime,omitempty"`
}

// [Flags] Properties to be included or expanded in environment objects. This is useful when getting a single environment.
type EnvironmentExpands string

type environmentExpandsValuesType struct {
	None               EnvironmentExpands
	ResourceReferences EnvironmentExpands
}

var EnvironmentExpandsValues = environmentExpandsValuesType{
	// No additional properties
	None: "none",
	// Include resource references referring to the environment.
	ResourceReferences: "resourceReferences",
}

// Environment.
type EnvironmentInstance struct {
	// Identity reference of the user who created the Environment.
	CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
	// Creation time of the Environment
	CreatedOn *azuredevops.Time `json:"createdOn,omitempty"`
	// Description of the Environment.
	Description *string `json:"description,omitempty"`
	// Id of the Environment
	Id *int `json:"id,omitempty"`
	// Identity reference of the user who last modified the Environment.
	LastModifiedBy *webapi.IdentityRef `json:"lastModifiedBy,omitempty"`
	// Last modified time of the Environment
	LastModifiedOn *azuredevops.Time `json:"lastModifiedOn,omitempty"`
	// Name of the Environment.
	Name      *string                         `json:"name,omitempty"`
	Resources *[]EnvironmentResourceReference `json:"resources,omitempty"`
}

// EnvironmentLinkedResourceReference.
type EnvironmentLinkedResourceReference struct {
	// Id of the resource.
	Id *string `json:"id,omitempty"`
	// Type of resource.
	TypeName *string `json:"typeName,omitempty"`
}

type EnvironmentReference struct {
	Id   *int    `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

type EnvironmentResource struct {
	CreatedBy            *webapi.IdentityRef   `json:"createdBy,omitempty"`
	CreatedOn            *azuredevops.Time     `json:"createdOn,omitempty"`
	EnvironmentReference *EnvironmentReference `json:"environmentReference,omitempty"`
	Id                   *int                  `json:"id,omitempty"`
	LastModifiedBy       *webapi.IdentityRef   `json:"lastModifiedBy,omitempty"`
	LastModifiedOn       *azuredevops.Time     `json:"lastModifiedOn,omitempty"`
	Name                 *string               `json:"name,omitempty"`
	// Environment resource type
	Type *EnvironmentResourceType `json:"type,omitempty"`
}

// EnvironmentResourceReference.
type EnvironmentResourceReference struct {
	// Id of the resource.
	Id *int `json:"id,omitempty"`
	// Name of the resource.
	Name *string `json:"name,omitempty"`
	// Type of the resource.
	Type *EnvironmentResourceType `json:"type,omitempty"`
}

// [Flags] EnvironmentResourceType.
type EnvironmentResourceType string

type environmentResourceTypeValuesType struct {
	Undefined      EnvironmentResourceType
	Generic        EnvironmentResourceType
	VirtualMachine EnvironmentResourceType
	Kubernetes     EnvironmentResourceType
}

var EnvironmentResourceTypeValues = environmentResourceTypeValuesType{
	Undefined: "undefined",
	// Unknown resource type
	Generic: "generic",
	// Virtual machine resource type
	VirtualMachine: "virtualMachine",
	// Kubernetes resource type
	Kubernetes: "kubernetes",
}

// Properties to update Environment.
type EnvironmentUpdateParameter struct {
	// Description of the environment.
	Description *string `json:"description,omitempty"`
	// Name of the environment.
	Name *string `json:"name,omitempty"`
}

type EventsConfig struct {
}

type ExpressionValidationItem struct {
	// Tells whether the current input is valid or not
	IsValid *bool `json:"isValid,omitempty"`
	// Reason for input validation failure
	Reason *string `json:"reason,omitempty"`
	// Type of validation item
	Type *string `json:"type,omitempty"`
	// Value to validate. The conditional expression to validate for the input for "expression" type Eg:eq(variables['Build.SourceBranch'], 'refs/heads/master');eq(value, 'refs/heads/master')
	Value *string `json:"value,omitempty"`
}

type HelpLink struct {
	Text *string `json:"text,omitempty"`
	Url  *string `json:"url,omitempty"`
}

type InputBindingContext struct {
	// Value of the input
	Value *string `json:"value,omitempty"`
}

type InputValidationItem struct {
	// Tells whether the current input is valid or not
	IsValid *bool `json:"isValid,omitempty"`
	// Reason for input validation failure
	Reason *string `json:"reason,omitempty"`
	// Type of validation item
	Type *string `json:"type,omitempty"`
	// Value to validate. The conditional expression to validate for the input for "expression" type Eg:eq(variables['Build.SourceBranch'], 'refs/heads/master');eq(value, 'refs/heads/master')
	Value *string `json:"value,omitempty"`
	// Provides binding context for the expression to evaluate
	Context *InputBindingContext `json:"context,omitempty"`
}

type InputValidationRequest struct {
	Inputs *map[string]ValidationItem `json:"inputs,omitempty"`
}

type Issue struct {
	Category *string            `json:"category,omitempty"`
	Data     *map[string]string `json:"data,omitempty"`
	Message  *string            `json:"message,omitempty"`
	Type     *IssueType         `json:"type,omitempty"`
}

type IssueType string

type issueTypeValuesType struct {
	Error   IssueType
	Warning IssueType
}

var IssueTypeValues = issueTypeValuesType{
	Error:   "error",
	Warning: "warning",
}

type JobAssignedEvent struct {
	JobId   *uuid.UUID           `json:"jobId,omitempty"`
	Name    *string              `json:"name,omitempty"`
	Request *TaskAgentJobRequest `json:"request,omitempty"`
}

type JobCancelMessage struct {
	JobId   *uuid.UUID  `json:"jobId,omitempty"`
	Timeout interface{} `json:"timeout,omitempty"`
}

type JobCompletedEvent struct {
	JobId     *uuid.UUID  `json:"jobId,omitempty"`
	Name      *string     `json:"name,omitempty"`
	RequestId *uint64     `json:"requestId,omitempty"`
	Result    *TaskResult `json:"result,omitempty"`
}

// Represents the context of variables and vectors for a job request.
type JobEnvironment struct {
	Endpoints   *[]ServiceEndpoint       `json:"endpoints,omitempty"`
	Mask        *[]MaskHint              `json:"mask,omitempty"`
	Options     *map[uuid.UUID]JobOption `json:"options,omitempty"`
	SecureFiles *[]SecureFile            `json:"secureFiles,omitempty"`
	// Gets or sets the endpoint used for communicating back to the calling service.
	SystemConnection *ServiceEndpoint   `json:"systemConnection,omitempty"`
	Variables        *map[string]string `json:"variables,omitempty"`
}

type JobEvent struct {
	JobId *uuid.UUID `json:"jobId,omitempty"`
	Name  *string    `json:"name,omitempty"`
}

type JobEventConfig struct {
	Timeout *string `json:"timeout,omitempty"`
}

type JobEventsConfig struct {
	JobAssigned  *JobEventConfig `json:"jobAssigned,omitempty"`
	JobCompleted *JobEventConfig `json:"jobCompleted,omitempty"`
	JobStarted   *JobEventConfig `json:"jobStarted,omitempty"`
}

// Represents an option that may affect the way an agent runs the job.
type JobOption struct {
	Data *map[string]string `json:"data,omitempty"`
	// Gets the id of the option.
	Id *uuid.UUID `json:"id,omitempty"`
}

type JobRequestMessage struct {
	Environment *JobEnvironment                 `json:"environment,omitempty"`
	JobId       *uuid.UUID                      `json:"jobId,omitempty"`
	JobName     *string                         `json:"jobName,omitempty"`
	JobRefName  *string                         `json:"jobRefName,omitempty"`
	MessageType *string                         `json:"messageType,omitempty"`
	Plan        *TaskOrchestrationPlanReference `json:"plan,omitempty"`
	Timeline    *TimelineReference              `json:"timeline,omitempty"`
}

type JobStartedEvent struct {
	JobId *uuid.UUID `json:"jobId,omitempty"`
	Name  *string    `json:"name,omitempty"`
}

type KubernetesResource struct {
	CreatedBy            *webapi.IdentityRef   `json:"createdBy,omitempty"`
	CreatedOn            *azuredevops.Time     `json:"createdOn,omitempty"`
	EnvironmentReference *EnvironmentReference `json:"environmentReference,omitempty"`
	Id                   *int                  `json:"id,omitempty"`
	LastModifiedBy       *webapi.IdentityRef   `json:"lastModifiedBy,omitempty"`
	LastModifiedOn       *azuredevops.Time     `json:"lastModifiedOn,omitempty"`
	Name                 *string               `json:"name,omitempty"`
	// Environment resource type
	Type              *EnvironmentResourceType `json:"type,omitempty"`
	ClusterName       *string                  `json:"clusterName,omitempty"`
	Namespace         *string                  `json:"namespace,omitempty"`
	ServiceEndpointId *uuid.UUID               `json:"serviceEndpointId,omitempty"`
}

type KubernetesResourceCreateParameters struct {
	ClusterName       *string    `json:"clusterName,omitempty"`
	Name              *string    `json:"name,omitempty"`
	Namespace         *string    `json:"namespace,omitempty"`
	ServiceEndpointId *uuid.UUID `json:"serviceEndpointId,omitempty"`
}

// [Flags]
type MachineGroupActionFilter string

type machineGroupActionFilterValuesType struct {
	None   MachineGroupActionFilter
	Manage MachineGroupActionFilter
	Use    MachineGroupActionFilter
}

var MachineGroupActionFilterValues = machineGroupActionFilterValuesType{
	None:   "none",
	Manage: "manage",
	Use:    "use",
}

// Represents a purchase of resource units in a secondary marketplace.
type MarketplacePurchasedLicense struct {
	// The Marketplace display name.
	MarketplaceName *string `json:"marketplaceName,omitempty"`
	// The name of the identity making the purchase as seen by the marketplace
	PurchaserName *string `json:"purchaserName,omitempty"`
	// The quantity purchased.
	PurchaseUnitCount *int `json:"purchaseUnitCount,omitempty"`
}

type MaskHint struct {
	Type  *MaskType `json:"type,omitempty"`
	Value *string   `json:"value,omitempty"`
}

type MaskType string

type maskTypeValuesType struct {
	Variable MaskType
	Regex    MaskType
}

var MaskTypeValues = maskTypeValuesType{
	Variable: "variable",
	Regex:    "regex",
}

// Meta data for a metrics column.
type MetricsColumnMetaData struct {
	// Name.
	ColumnName *string `json:"columnName,omitempty"`
	// Data type.
	ColumnValueType *string `json:"columnValueType,omitempty"`
}

// Metrics columns header
type MetricsColumnsHeader struct {
	// Properties of deployment group for which metrics are provided. E.g. 1: LastJobStatus E.g. 2: TargetState
	Dimensions *[]MetricsColumnMetaData `json:"dimensions,omitempty"`
	// The types of metrics. E.g. 1: total count of deployment targets. E.g. 2: Average time of deployment to the deployment targets.
	Metrics *[]MetricsColumnMetaData `json:"metrics,omitempty"`
}

// Metrics row.
type MetricsRow struct {
	// The values of the properties mentioned as 'Dimensions' in column header. E.g. 1: For a property 'LastJobStatus' - metrics will be provided for 'passed', 'failed', etc. E.g. 2: For a property 'TargetState' - metrics will be provided for 'online', 'offline' targets.
	Dimensions *[]string `json:"dimensions,omitempty"`
	// Metrics in serialized format. Should be deserialized based on the data type provided in header.
	Metrics *[]string `json:"metrics,omitempty"`
}

// Represents a downloadable package.
type PackageMetadata struct {
	// The date the package was created
	CreatedOn *azuredevops.Time `json:"createdOn,omitempty"`
	// A direct link to download the package.
	DownloadUrl *string `json:"downloadUrl,omitempty"`
	// The UI uses this to display instructions, i.e. "unzip MyAgent.zip"
	Filename *string `json:"filename,omitempty"`
	// MD5 hash as a base64 string
	HashValue *string `json:"hashValue,omitempty"`
	// A link to documentation
	InfoUrl *string `json:"infoUrl,omitempty"`
	// The platform (win7, linux, etc.)
	Platform *string `json:"platform,omitempty"`
	// The type of package (e.g. "agent")
	Type *string `json:"type,omitempty"`
	// The package version.
	Version *PackageVersion `json:"version,omitempty"`
}

type PackageVersion struct {
	Major *int `json:"major,omitempty"`
	Minor *int `json:"minor,omitempty"`
	Patch *int `json:"patch,omitempty"`
}

type PlanEnvironment struct {
	Mask      *[]MaskHint              `json:"mask,omitempty"`
	Options   *map[uuid.UUID]JobOption `json:"options,omitempty"`
	Variables *map[string]string       `json:"variables,omitempty"`
}

// [Flags]
type PlanGroupStatus string

type planGroupStatusValuesType struct {
	Running PlanGroupStatus
	Queued  PlanGroupStatus
	All     PlanGroupStatus
}

var PlanGroupStatusValues = planGroupStatusValuesType{
	Running: "running",
	Queued:  "queued",
	All:     "all",
}

// [Flags]
type PlanGroupStatusFilter string

type planGroupStatusFilterValuesType struct {
	Running PlanGroupStatusFilter
	Queued  PlanGroupStatusFilter
	All     PlanGroupStatusFilter
}

var PlanGroupStatusFilterValues = planGroupStatusFilterValuesType{
	Running: "running",
	Queued:  "queued",
	All:     "all",
}

type ProjectReference struct {
	Id   *uuid.UUID `json:"id,omitempty"`
	Name *string    `json:"name,omitempty"`
}

type PublishTaskGroupMetadata struct {
	Comment                  *string    `json:"comment,omitempty"`
	ParentDefinitionRevision *int       `json:"parentDefinitionRevision,omitempty"`
	Preview                  *bool      `json:"preview,omitempty"`
	TaskGroupId              *uuid.UUID `json:"taskGroupId,omitempty"`
	TaskGroupRevision        *int       `json:"taskGroupRevision,omitempty"`
}

type ResourceFilterOptions struct {
	Identities    *[]webapi.IdentityRef `json:"identities,omitempty"`
	ResourceTypes *[]string             `json:"resourceTypes,omitempty"`
}

type ResourceFilters struct {
	CreatedBy    *[]uuid.UUID `json:"createdBy,omitempty"`
	ResourceType *[]string    `json:"resourceType,omitempty"`
	SearchText   *string      `json:"searchText,omitempty"`
}

// Resources include Service Connections, Variable Groups and Secure Files.
type ResourceItem struct {
	// Gets or sets the identity who created the resource.
	CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
	// Gets or sets description of the resource.
	Description *string `json:"description,omitempty"`
	// Gets or sets icon url of the resource.
	IconUrl *string `json:"iconUrl,omitempty"`
	// Gets or sets Id of the resource.
	Id *string `json:"id,omitempty"`
	// Indicates whether resource is shared with other projects or not.
	IsShared *bool `json:"isShared,omitempty"`
	// Gets or sets name of the resource.
	Name *string `json:"name,omitempty"`
	// Gets or sets internal properties of the resource.
	Properties *map[string]string `json:"properties,omitempty"`
	// Gets or sets resource type.
	ResourceType *string `json:"resourceType,omitempty"`
}

type ResourceLimit struct {
	FailedToReachAllProviders *bool              `json:"failedToReachAllProviders,omitempty"`
	HostId                    *uuid.UUID         `json:"hostId,omitempty"`
	IsHosted                  *bool              `json:"isHosted,omitempty"`
	IsPremium                 *bool              `json:"isPremium,omitempty"`
	ParallelismTag            *string            `json:"parallelismTag,omitempty"`
	ResourceLimitsData        *map[string]string `json:"resourceLimitsData,omitempty"`
	TotalCount                *int               `json:"totalCount,omitempty"`
	TotalMinutes              *int               `json:"totalMinutes,omitempty"`
}

type ResourcesHubData struct {
	ContinuationToken     *string                `json:"continuationToken,omitempty"`
	ResourceFilterOptions *ResourceFilterOptions `json:"resourceFilterOptions,omitempty"`
	ResourceFilters       *ResourceFilters       `json:"resourceFilters,omitempty"`
	ResourceItems         *[]ResourceItem        `json:"resourceItems,omitempty"`
}

type ResourceUsage struct {
	ResourceLimit   *ResourceLimit         `json:"resourceLimit,omitempty"`
	RunningRequests *[]TaskAgentJobRequest `json:"runningRequests,omitempty"`
	UsedCount       *int                   `json:"usedCount,omitempty"`
	UsedMinutes     *int                   `json:"usedMinutes,omitempty"`
}

type ResultTransformationDetails struct {
	ResultTemplate *string `json:"resultTemplate,omitempty"`
}

type SecureFile struct {
	CreatedBy  *webapi.IdentityRef `json:"createdBy,omitempty"`
	CreatedOn  *azuredevops.Time   `json:"createdOn,omitempty"`
	Id         *uuid.UUID          `json:"id,omitempty"`
	ModifiedBy *webapi.IdentityRef `json:"modifiedBy,omitempty"`
	ModifiedOn *azuredevops.Time   `json:"modifiedOn,omitempty"`
	Name       *string             `json:"name,omitempty"`
	Properties *map[string]string  `json:"properties,omitempty"`
	Ticket     *string             `json:"ticket,omitempty"`
}

// [Flags]
type SecureFileActionFilter string

type secureFileActionFilterValuesType struct {
	None   SecureFileActionFilter
	Manage SecureFileActionFilter
	Use    SecureFileActionFilter
}

var SecureFileActionFilterValues = secureFileActionFilterValuesType{
	None:   "none",
	Manage: "manage",
	Use:    "use",
}

type SecureFileEvent struct {
	EventType   *string       `json:"eventType,omitempty"`
	ProjectId   *uuid.UUID    `json:"projectId,omitempty"`
	SecureFiles *[]SecureFile `json:"secureFiles,omitempty"`
}

type SendJobResponse struct {
	Events    *JobEventsConfig   `json:"events,omitempty"`
	Variables *map[string]string `json:"variables,omitempty"`
}

type ServerExecutionDefinition struct {
	Events      *EventsConfig `json:"events,omitempty"`
	HandlerName *string       `json:"handlerName,omitempty"`
}

type ServerTaskRequestMessage struct {
	Environment    *JobEnvironment                 `json:"environment,omitempty"`
	JobId          *uuid.UUID                      `json:"jobId,omitempty"`
	JobName        *string                         `json:"jobName,omitempty"`
	JobRefName     *string                         `json:"jobRefName,omitempty"`
	MessageType    *string                         `json:"messageType,omitempty"`
	Plan           *TaskOrchestrationPlanReference `json:"plan,omitempty"`
	Timeline       *TimelineReference              `json:"timeline,omitempty"`
	TaskDefinition *TaskDefinition                 `json:"taskDefinition,omitempty"`
	TaskInstance   *TaskInstance                   `json:"taskInstance,omitempty"`
}

// Represents an endpoint which may be used by an orchestration job.
type ServiceEndpoint struct {
	// Gets or sets the identity reference for the administrators group of the service endpoint.
	AdministratorsGroup *webapi.IdentityRef `json:"administratorsGroup,omitempty"`
	// Gets or sets the authorization data for talking to the endpoint.
	Authorization *EndpointAuthorization `json:"authorization,omitempty"`
	// Gets or sets the identity reference for the user who created the Service endpoint.
	CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
	Data      *map[string]string  `json:"data,omitempty"`
	// Gets or sets the description of endpoint.
	Description  *string    `json:"description,omitempty"`
	GroupScopeId *uuid.UUID `json:"groupScopeId,omitempty"`
	// Gets or sets the identifier of this endpoint.
	Id *uuid.UUID `json:"id,omitempty"`
	// EndPoint state indicator
	IsReady *bool `json:"isReady,omitempty"`
	// Indicates whether service endpoint is shared with other projects or not.
	IsShared *bool `json:"isShared,omitempty"`
	// Gets or sets the friendly name of the endpoint.
	Name *string `json:"name,omitempty"`
	// Error message during creation/deletion of endpoint
	OperationStatus interface{} `json:"operationStatus,omitempty"`
	// Gets or sets the owner of the endpoint.
	Owner *string `json:"owner,omitempty"`
	// Gets or sets the identity reference for the readers group of the service endpoint.
	ReadersGroup *webapi.IdentityRef `json:"readersGroup,omitempty"`
	// Gets or sets the type of the endpoint.
	Type *string `json:"type,omitempty"`
	// Gets or sets the url of the endpoint.
	Url *string `json:"url,omitempty"`
}

type ServiceEndpointAuthenticationScheme struct {
	// Gets or sets the authorization headers of service endpoint authentication scheme.
	AuthorizationHeaders *[]AuthorizationHeader `json:"authorizationHeaders,omitempty"`
	// Gets or sets the certificates of service endpoint authentication scheme.
	ClientCertificates *[]ClientCertificate `json:"clientCertificates,omitempty"`
	// Gets or sets the display name for the service endpoint authentication scheme.
	DisplayName *string `json:"displayName,omitempty"`
	// Gets or sets the input descriptors for the service endpoint authentication scheme.
	InputDescriptors *[]forminput.InputDescriptor `json:"inputDescriptors,omitempty"`
	// Gets or sets the scheme for service endpoint authentication.
	Scheme *string `json:"scheme,omitempty"`
}

type ServiceEndpointDetails struct {
	Authorization *EndpointAuthorization `json:"authorization,omitempty"`
	Data          *map[string]string     `json:"data,omitempty"`
	Type          *string                `json:"type,omitempty"`
	Url           *string                `json:"url,omitempty"`
}

// Represents service endpoint execution data.
type ServiceEndpointExecutionData struct {
	// Gets the definition of service endpoint execution owner.
	Definition *TaskOrchestrationOwner `json:"definition,omitempty"`
	// Gets the finish time of service endpoint execution.
	FinishTime *azuredevops.Time `json:"finishTime,omitempty"`
	// Gets the Id of service endpoint execution data.
	Id *uint64 `json:"id,omitempty"`
	// Gets the owner of service endpoint execution data.
	Owner *TaskOrchestrationOwner `json:"owner,omitempty"`
	// Gets the plan type of service endpoint execution data.
	PlanType *string `json:"planType,omitempty"`
	// Gets the result of service endpoint execution.
	Result *TaskResult `json:"result,omitempty"`
	// Gets the start time of service endpoint execution.
	StartTime *azuredevops.Time `json:"startTime,omitempty"`
}

type ServiceEndpointExecutionRecord struct {
	// Gets the execution data of service endpoint execution.
	Data *ServiceEndpointExecutionData `json:"data,omitempty"`
	// Gets the Id of service endpoint.
	EndpointId *uuid.UUID `json:"endpointId,omitempty"`
}

type ServiceEndpointExecutionRecordsInput struct {
	Data        *ServiceEndpointExecutionData `json:"data,omitempty"`
	EndpointIds *[]uuid.UUID                  `json:"endpointIds,omitempty"`
}

type ServiceEndpointRequest struct {
	DataSourceDetails           *DataSourceDetails           `json:"dataSourceDetails,omitempty"`
	ResultTransformationDetails *ResultTransformationDetails `json:"resultTransformationDetails,omitempty"`
	ServiceEndpointDetails      *ServiceEndpointDetails      `json:"serviceEndpointDetails,omitempty"`
}

type ServiceEndpointRequestResult struct {
	ErrorMessage *string     `json:"errorMessage,omitempty"`
	Result       interface{} `json:"result,omitempty"`
	StatusCode   *string     `json:"statusCode,omitempty"`
}

// Represents type of the service endpoint.
type ServiceEndpointType struct {
	// Authentication scheme of service endpoint type.
	AuthenticationSchemes *[]ServiceEndpointAuthenticationScheme `json:"authenticationSchemes,omitempty"`
	// Data sources of service endpoint type.
	DataSources *[]DataSource `json:"dataSources,omitempty"`
	// Dependency data of service endpoint type.
	DependencyData *[]DependencyData `json:"dependencyData,omitempty"`
	// Gets or sets the description of service endpoint type.
	Description *string `json:"description,omitempty"`
	// Gets or sets the display name of service endpoint type.
	DisplayName *string `json:"displayName,omitempty"`
	// Gets or sets the endpoint url of service endpoint type.
	EndpointUrl *EndpointUrl `json:"endpointUrl,omitempty"`
	// Gets or sets the help link of service endpoint type.
	HelpLink     *HelpLink `json:"helpLink,omitempty"`
	HelpMarkDown *string   `json:"helpMarkDown,omitempty"`
	// Gets or sets the icon url of service endpoint type.
	IconUrl *string `json:"iconUrl,omitempty"`
	// Input descriptor of service endpoint type.
	InputDescriptors *[]forminput.InputDescriptor `json:"inputDescriptors,omitempty"`
	// Gets or sets the name of service endpoint type.
	Name *string `json:"name,omitempty"`
	// Trusted hosts of a service endpoint type.
	TrustedHosts *[]string `json:"trustedHosts,omitempty"`
	// Gets or sets the ui contribution id of service endpoint type.
	UiContributionId *string `json:"uiContributionId,omitempty"`
}

// A task agent.
type TaskAgent struct {
	Links interface{} `json:"_links,omitempty"`
	// This agent's access point.
	AccessPoint *string `json:"accessPoint,omitempty"`
	// Whether or not this agent should run jobs.
	Enabled *bool `json:"enabled,omitempty"`
	// Identifier of the agent.
	Id *int `json:"id,omitempty"`
	// Name of the agent.
	Name *string `json:"name,omitempty"`
	// Agent OS.
	OsDescription *string `json:"osDescription,omitempty"`
	// Provisioning state of this agent.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// Whether or not the agent is online.
	Status *TaskAgentStatus `json:"status,omitempty"`
	// Agent version.
	Version *string `json:"version,omitempty"`
	// The agent cloud request that's currently associated with this agent.
	AssignedAgentCloudRequest *TaskAgentCloudRequest `json:"assignedAgentCloudRequest,omitempty"`
	// The request which is currently assigned to this agent.
	AssignedRequest *TaskAgentJobRequest `json:"assignedRequest,omitempty"`
	// Authorization information for this agent.
	Authorization *TaskAgentAuthorization `json:"authorization,omitempty"`
	// Date on which this agent was created.
	CreatedOn *azuredevops.Time `json:"createdOn,omitempty"`
	// The last request which was completed by this agent.
	LastCompletedRequest *TaskAgentJobRequest `json:"lastCompletedRequest,omitempty"`
	// Maximum job parallelism allowed for this agent.
	MaxParallelism *int `json:"maxParallelism,omitempty"`
	// Pending update for this agent.
	PendingUpdate *TaskAgentUpdate `json:"pendingUpdate,omitempty"`
	Properties    interface{}      `json:"properties,omitempty"`
	// Date on which the last connectivity status change occurred.
	StatusChangedOn    *azuredevops.Time  `json:"statusChangedOn,omitempty"`
	SystemCapabilities *map[string]string `json:"systemCapabilities,omitempty"`
	UserCapabilities   *map[string]string `json:"userCapabilities,omitempty"`
}

// Provides data necessary for authorizing the agent using OAuth 2.0 authentication flows.
type TaskAgentAuthorization struct {
	// Endpoint used to obtain access tokens from the configured token service.
	AuthorizationUrl *string `json:"authorizationUrl,omitempty"`
	// Client identifier for this agent.
	ClientId *uuid.UUID `json:"clientId,omitempty"`
	// Public key used to verify the identity of this agent.
	PublicKey *TaskAgentPublicKey `json:"publicKey,omitempty"`
}

type TaskAgentCloud struct {
	// Gets or sets a AcquireAgentEndpoint using which a request can be made to acquire new agent
	AcquireAgentEndpoint          *string    `json:"acquireAgentEndpoint,omitempty"`
	AcquisitionTimeout            *int       `json:"acquisitionTimeout,omitempty"`
	AgentCloudId                  *int       `json:"agentCloudId,omitempty"`
	GetAccountParallelismEndpoint *string    `json:"getAccountParallelismEndpoint,omitempty"`
	GetAgentDefinitionEndpoint    *string    `json:"getAgentDefinitionEndpoint,omitempty"`
	GetAgentRequestStatusEndpoint *string    `json:"getAgentRequestStatusEndpoint,omitempty"`
	Id                            *uuid.UUID `json:"id,omitempty"`
	// Signifies that this Agent Cloud is internal and should not be user-manageable
	Internal             *bool   `json:"internal,omitempty"`
	MaxParallelism       *int    `json:"maxParallelism,omitempty"`
	Name                 *string `json:"name,omitempty"`
	ReleaseAgentEndpoint *string `json:"releaseAgentEndpoint,omitempty"`
	SharedSecret         *string `json:"sharedSecret,omitempty"`
	// Gets or sets the type of the endpoint.
	Type *string `json:"type,omitempty"`
}

type TaskAgentCloudRequest struct {
	Agent                *TaskAgentReference     `json:"agent,omitempty"`
	AgentCloudId         *int                    `json:"agentCloudId,omitempty"`
	AgentConnectedTime   *azuredevops.Time       `json:"agentConnectedTime,omitempty"`
	AgentData            interface{}             `json:"agentData,omitempty"`
	AgentSpecification   interface{}             `json:"agentSpecification,omitempty"`
	Pool                 *TaskAgentPoolReference `json:"pool,omitempty"`
	ProvisionedTime      *azuredevops.Time       `json:"provisionedTime,omitempty"`
	ProvisionRequestTime *azuredevops.Time       `json:"provisionRequestTime,omitempty"`
	ReleaseRequestTime   *azuredevops.Time       `json:"releaseRequestTime,omitempty"`
	RequestId            *uuid.UUID              `json:"requestId,omitempty"`
}

type TaskAgentCloudType struct {
	// Gets or sets the display name of agent cloud type.
	DisplayName *string `json:"displayName,omitempty"`
	// Gets or sets the input descriptors
	InputDescriptors *[]forminput.InputDescriptor `json:"inputDescriptors,omitempty"`
	// Gets or sets the name of agent cloud type.
	Name *string `json:"name,omitempty"`
}

type TaskAgentDelaySource struct {
	Delays    *[]interface{}      `json:"delays,omitempty"`
	TaskAgent *TaskAgentReference `json:"taskAgent,omitempty"`
}

type TaskAgentJob struct {
	Container         *string                 `json:"container,omitempty"`
	Id                *uuid.UUID              `json:"id,omitempty"`
	Name              *string                 `json:"name,omitempty"`
	SidecarContainers *map[string]string      `json:"sidecarContainers,omitempty"`
	Steps             *[]TaskAgentJobStep     `json:"steps,omitempty"`
	Variables         *[]TaskAgentJobVariable `json:"variables,omitempty"`
}

// A job request for an agent.
type TaskAgentJobRequest struct {
	AgentDelays        *[]TaskAgentDelaySource `json:"agentDelays,omitempty"`
	AgentSpecification interface{}             `json:"agentSpecification,omitempty"`
	// The date/time this request was assigned.
	AssignTime *azuredevops.Time `json:"assignTime,omitempty"`
	// Additional data about the request.
	Data *map[string]string `json:"data,omitempty"`
	// The pipeline definition associated with this request
	Definition *TaskOrchestrationOwner `json:"definition,omitempty"`
	// A list of demands required to fulfill this request.
	Demands          *[]interface{} `json:"demands,omitempty"`
	ExpectedDuration interface{}    `json:"expectedDuration,omitempty"`
	// The date/time this request was finished.
	FinishTime *azuredevops.Time `json:"finishTime,omitempty"`
	// The host which triggered this request.
	HostId *uuid.UUID `json:"hostId,omitempty"`
	// ID of the job resulting from this request.
	JobId *uuid.UUID `json:"jobId,omitempty"`
	// Name of the job resulting from this request.
	JobName *string `json:"jobName,omitempty"`
	// The deadline for the agent to renew the lock.
	LockedUntil            *azuredevops.Time     `json:"lockedUntil,omitempty"`
	MatchedAgents          *[]TaskAgentReference `json:"matchedAgents,omitempty"`
	MatchesAllAgentsInPool *bool                 `json:"matchesAllAgentsInPool,omitempty"`
	OrchestrationId        *string               `json:"orchestrationId,omitempty"`
	// The pipeline associated with this request
	Owner     *TaskOrchestrationOwner `json:"owner,omitempty"`
	PlanGroup *string                 `json:"planGroup,omitempty"`
	// Internal ID for the orchestration plan connected with this request.
	PlanId *uuid.UUID `json:"planId,omitempty"`
	// Internal detail representing the type of orchestration plan.
	PlanType *string `json:"planType,omitempty"`
	// The ID of the pool this request targets
	PoolId *int `json:"poolId,omitempty"`
	// The ID of the queue this request targets
	QueueId *int `json:"queueId,omitempty"`
	// The date/time this request was queued.
	QueueTime *azuredevops.Time `json:"queueTime,omitempty"`
	// The date/time this request was receieved by an agent.
	ReceiveTime *azuredevops.Time `json:"receiveTime,omitempty"`
	// ID of the request.
	RequestId *uint64 `json:"requestId,omitempty"`
	// The agent allocated for this request.
	ReservedAgent *TaskAgentReference `json:"reservedAgent,omitempty"`
	// The result of this request.
	Result *TaskResult `json:"result,omitempty"`
	// Scope of the pipeline; matches the project ID.
	ScopeId *uuid.UUID `json:"scopeId,omitempty"`
	// The service which owns this request.
	ServiceOwner  *uuid.UUID `json:"serviceOwner,omitempty"`
	StatusMessage *string    `json:"statusMessage,omitempty"`
	UserDelayed   *bool      `json:"userDelayed,omitempty"`
}

// [Flags] This is useful in getting a list of deployment targets, filtered by the result of their last job.
type TaskAgentJobResultFilter string

type taskAgentJobResultFilterValuesType struct {
	Failed        TaskAgentJobResultFilter
	Passed        TaskAgentJobResultFilter
	NeverDeployed TaskAgentJobResultFilter
	All           TaskAgentJobResultFilter
}

var TaskAgentJobResultFilterValues = taskAgentJobResultFilterValuesType{
	// Only those deployment targets on which last job failed (**Abandoned**, **Canceled**, **Failed**, **Skipped**).
	Failed: "failed",
	// Only those deployment targets on which last job Passed (**Succeeded**, **Succeeded with issues**).
	Passed: "passed",
	// Only those deployment targets that never executed a job.
	NeverDeployed: "neverDeployed",
	// All deployment targets.
	All: "all",
}

type TaskAgentJobStep struct {
	Condition        *string               `json:"condition,omitempty"`
	ContinueOnError  *bool                 `json:"continueOnError,omitempty"`
	Enabled          *bool                 `json:"enabled,omitempty"`
	Env              *map[string]string    `json:"env,omitempty"`
	Id               *uuid.UUID            `json:"id,omitempty"`
	Inputs           *map[string]string    `json:"inputs,omitempty"`
	Name             *string               `json:"name,omitempty"`
	Task             *TaskAgentJobTask     `json:"task,omitempty"`
	TimeoutInMinutes *int                  `json:"timeoutInMinutes,omitempty"`
	Type             *TaskAgentJobStepType `json:"type,omitempty"`
}

type TaskAgentJobStepType string

type taskAgentJobStepTypeValuesType struct {
	Task   TaskAgentJobStepType
	Action TaskAgentJobStepType
}

var TaskAgentJobStepTypeValues = taskAgentJobStepTypeValuesType{
	Task:   "task",
	Action: "action",
}

type TaskAgentJobTask struct {
	Id      *uuid.UUID `json:"id,omitempty"`
	Name    *string    `json:"name,omitempty"`
	Version *string    `json:"version,omitempty"`
}

type TaskAgentJobVariable struct {
	Name   *string `json:"name,omitempty"`
	Secret *bool   `json:"secret,omitempty"`
	Value  *string `json:"value,omitempty"`
}

type TaskAgentManualUpdate struct {
	Code *TaskAgentUpdateReasonType `json:"code,omitempty"`
}

// Provides a contract for receiving messages from the task orchestrator.
type TaskAgentMessage struct {
	// Gets or sets the body of the message. If the <c>IV</c> property is provided the body will need to be decrypted using the <c>TaskAgentSession.EncryptionKey</c> value in addition to the <c>IV</c>.
	Body *string `json:"body,omitempty"`
	// Gets or sets the initialization vector used to encrypt this message.
	Iv *[]byte `json:"iv,omitempty"`
	// Gets or sets the message identifier.
	MessageId *uint64 `json:"messageId,omitempty"`
	// Gets or sets the message type, describing the data contract found in <c>TaskAgentMessage.Body</c>.
	MessageType *string `json:"messageType,omitempty"`
}

type TaskAgentMinAgentVersionRequiredUpdate struct {
	Code            *TaskAgentUpdateReasonType `json:"code,omitempty"`
	JobDefinition   *TaskOrchestrationOwner    `json:"jobDefinition,omitempty"`
	JobOwner        *TaskOrchestrationOwner    `json:"jobOwner,omitempty"`
	MinAgentVersion interface{}                `json:"minAgentVersion,omitempty"`
}

// An organization-level grouping of agents.
type TaskAgentPool struct {
	Id *int `json:"id,omitempty"`
	// Gets or sets a value indicating whether or not this pool is managed by the service.
	IsHosted *bool `json:"isHosted,omitempty"`
	// Determines whether the pool is legacy.
	IsLegacy *bool   `json:"isLegacy,omitempty"`
	Name     *string `json:"name,omitempty"`
	// Gets or sets the type of the pool
	PoolType *TaskAgentPoolType `json:"poolType,omitempty"`
	Scope    *uuid.UUID         `json:"scope,omitempty"`
	// Gets the current size of the pool.
	Size *int `json:"size,omitempty"`
	// The ID of the associated agent cloud.
	AgentCloudId *int `json:"agentCloudId,omitempty"`
	// Whether or not a queue should be automatically provisioned for each project collection.
	AutoProvision *bool `json:"autoProvision,omitempty"`
	// Whether or not the pool should autosize itself based on the Agent Cloud Provider settings.
	AutoSize *bool `json:"autoSize,omitempty"`
	// Creator of the pool. The creator of the pool is automatically added into the administrators group for the pool on creation.
	CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
	// The date/time of the pool creation.
	CreatedOn *azuredevops.Time `json:"createdOn,omitempty"`
	// Owner or administrator of the pool.
	Owner      *webapi.IdentityRef `json:"owner,omitempty"`
	Properties interface{}         `json:"properties,omitempty"`
	// Target parallelism.
	TargetSize *int `json:"targetSize,omitempty"`
}

// [Flags] Filters pools based on whether the calling user has permission to use or manage the pool.
type TaskAgentPoolActionFilter string

type taskAgentPoolActionFilterValuesType struct {
	None   TaskAgentPoolActionFilter
	Manage TaskAgentPoolActionFilter
	Use    TaskAgentPoolActionFilter
}

var TaskAgentPoolActionFilterValues = taskAgentPoolActionFilterValuesType{
	None:   "none",
	Manage: "manage",
	Use:    "use",
}

type TaskAgentPoolMaintenanceDefinition struct {
	// Enable maintenance
	Enabled *bool `json:"enabled,omitempty"`
	// Id
	Id *int `json:"id,omitempty"`
	// Maintenance job timeout per agent
	JobTimeoutInMinutes *int `json:"jobTimeoutInMinutes,omitempty"`
	// Max percentage of agents within a pool running maintenance job at given time
	MaxConcurrentAgentsPercentage *int                             `json:"maxConcurrentAgentsPercentage,omitempty"`
	Options                       *TaskAgentPoolMaintenanceOptions `json:"options,omitempty"`
	// Pool reference for the maintenance definition
	Pool            *TaskAgentPoolReference                  `json:"pool,omitempty"`
	RetentionPolicy *TaskAgentPoolMaintenanceRetentionPolicy `json:"retentionPolicy,omitempty"`
	ScheduleSetting *TaskAgentPoolMaintenanceSchedule        `json:"scheduleSetting,omitempty"`
}

type TaskAgentPoolMaintenanceJob struct {
	// The maintenance definition for the maintenance job
	DefinitionId *int `json:"definitionId,omitempty"`
	// The total error counts during the maintenance job
	ErrorCount *int `json:"errorCount,omitempty"`
	// Time that the maintenance job was completed
	FinishTime *azuredevops.Time `json:"finishTime,omitempty"`
	// Id of the maintenance job
	JobId *int `json:"jobId,omitempty"`
	// The log download url for the maintenance job
	LogsDownloadUrl *string `json:"logsDownloadUrl,omitempty"`
	// Orchestration/Plan Id for the maintenance job
	OrchestrationId *uuid.UUID `json:"orchestrationId,omitempty"`
	// Pool reference for the maintenance job
	Pool *TaskAgentPoolReference `json:"pool,omitempty"`
	// Time that the maintenance job was queued
	QueueTime *azuredevops.Time `json:"queueTime,omitempty"`
	// The identity that queued the maintenance job
	RequestedBy *webapi.IdentityRef `json:"requestedBy,omitempty"`
	// The maintenance job result
	Result *TaskAgentPoolMaintenanceJobResult `json:"result,omitempty"`
	// Time that the maintenance job was started
	StartTime *azuredevops.Time `json:"startTime,omitempty"`
	// Status of the maintenance job
	Status       *TaskAgentPoolMaintenanceJobStatus        `json:"status,omitempty"`
	TargetAgents *[]TaskAgentPoolMaintenanceJobTargetAgent `json:"targetAgents,omitempty"`
	// The total warning counts during the maintenance job
	WarningCount *int `json:"warningCount,omitempty"`
}

type TaskAgentPoolMaintenanceJobResult string

type taskAgentPoolMaintenanceJobResultValuesType struct {
	Succeeded TaskAgentPoolMaintenanceJobResult
	Failed    TaskAgentPoolMaintenanceJobResult
	Canceled  TaskAgentPoolMaintenanceJobResult
}

var TaskAgentPoolMaintenanceJobResultValues = taskAgentPoolMaintenanceJobResultValuesType{
	Succeeded: "succeeded",
	Failed:    "failed",
	Canceled:  "canceled",
}

type TaskAgentPoolMaintenanceJobStatus string

type taskAgentPoolMaintenanceJobStatusValuesType struct {
	InProgress TaskAgentPoolMaintenanceJobStatus
	Completed  TaskAgentPoolMaintenanceJobStatus
	Cancelling TaskAgentPoolMaintenanceJobStatus
	Queued     TaskAgentPoolMaintenanceJobStatus
}

var TaskAgentPoolMaintenanceJobStatusValues = taskAgentPoolMaintenanceJobStatusValuesType{
	InProgress: "inProgress",
	Completed:  "completed",
	Cancelling: "cancelling",
	Queued:     "queued",
}

type TaskAgentPoolMaintenanceJobTargetAgent struct {
	Agent  *TaskAgentReference                `json:"agent,omitempty"`
	JobId  *int                               `json:"jobId,omitempty"`
	Result *TaskAgentPoolMaintenanceJobResult `json:"result,omitempty"`
	Status *TaskAgentPoolMaintenanceJobStatus `json:"status,omitempty"`
}

type TaskAgentPoolMaintenanceOptions struct {
	// time to consider a System.DefaultWorkingDirectory is stale
	WorkingDirectoryExpirationInDays *int `json:"workingDirectoryExpirationInDays,omitempty"`
}

type TaskAgentPoolMaintenanceRetentionPolicy struct {
	// Number of records to keep for maintenance job executed with this definition.
	NumberOfHistoryRecordsToKeep *int `json:"numberOfHistoryRecordsToKeep,omitempty"`
}

type TaskAgentPoolMaintenanceSchedule struct {
	// Days for a build (flags enum for days of the week)
	DaysToBuild *TaskAgentPoolMaintenanceScheduleDays `json:"daysToBuild,omitempty"`
	// The Job Id of the Scheduled job that will queue the pool maintenance job.
	ScheduleJobId *uuid.UUID `json:"scheduleJobId,omitempty"`
	// Local timezone hour to start
	StartHours *int `json:"startHours,omitempty"`
	// Local timezone minute to start
	StartMinutes *int `json:"startMinutes,omitempty"`
	// Time zone of the build schedule (string representation of the time zone id)
	TimeZoneId *string `json:"timeZoneId,omitempty"`
}

type TaskAgentPoolMaintenanceScheduleDays string

type taskAgentPoolMaintenanceScheduleDaysValuesType struct {
	None      TaskAgentPoolMaintenanceScheduleDays
	Monday    TaskAgentPoolMaintenanceScheduleDays
	Tuesday   TaskAgentPoolMaintenanceScheduleDays
	Wednesday TaskAgentPoolMaintenanceScheduleDays
	Thursday  TaskAgentPoolMaintenanceScheduleDays
	Friday    TaskAgentPoolMaintenanceScheduleDays
	Saturday  TaskAgentPoolMaintenanceScheduleDays
	Sunday    TaskAgentPoolMaintenanceScheduleDays
	All       TaskAgentPoolMaintenanceScheduleDays
}

var TaskAgentPoolMaintenanceScheduleDaysValues = taskAgentPoolMaintenanceScheduleDaysValuesType{
	// Do not run.
	None: "none",
	// Run on Monday.
	Monday: "monday",
	// Run on Tuesday.
	Tuesday: "tuesday",
	// Run on Wednesday.
	Wednesday: "wednesday",
	// Run on Thursday.
	Thursday: "thursday",
	// Run on Friday.
	Friday: "friday",
	// Run on Saturday.
	Saturday: "saturday",
	// Run on Sunday.
	Sunday: "sunday",
	// Run on all days of the week.
	All: "all",
}

type TaskAgentPoolReference struct {
	Id *int `json:"id,omitempty"`
	// Gets or sets a value indicating whether or not this pool is managed by the service.
	IsHosted *bool `json:"isHosted,omitempty"`
	// Determines whether the pool is legacy.
	IsLegacy *bool   `json:"isLegacy,omitempty"`
	Name     *string `json:"name,omitempty"`
	// Gets or sets the type of the pool
	PoolType *TaskAgentPoolType `json:"poolType,omitempty"`
	Scope    *uuid.UUID         `json:"scope,omitempty"`
	// Gets the current size of the pool.
	Size *int `json:"size,omitempty"`
}

type TaskAgentPoolStatus struct {
	Id *int `json:"id,omitempty"`
	// Gets or sets a value indicating whether or not this pool is managed by the service.
	IsHosted *bool `json:"isHosted,omitempty"`
	// Determines whether the pool is legacy.
	IsLegacy *bool   `json:"isLegacy,omitempty"`
	Name     *string `json:"name,omitempty"`
	// Gets or sets the type of the pool
	PoolType *TaskAgentPoolType `json:"poolType,omitempty"`
	Scope    *uuid.UUID         `json:"scope,omitempty"`
	// Gets the current size of the pool.
	Size *int `json:"size,omitempty"`
	// Number of requests queued and assigned to an agent. Not running yet.
	AssignedRequestCount *int `json:"assignedRequestCount,omitempty"`
	// Number of queued requests which are not assigned to any agents
	QueuedRequestCount *int `json:"queuedRequestCount,omitempty"`
	// Number of currently running requests
	RunningRequestCount *int `json:"runningRequestCount,omitempty"`
}

type TaskAgentPoolSummary struct {
	ColumnsHeader    *MetricsColumnsHeader       `json:"columnsHeader,omitempty"`
	DeploymentGroups *[]DeploymentGroupReference `json:"deploymentGroups,omitempty"`
	Pool             *TaskAgentPoolReference     `json:"pool,omitempty"`
	Queues           *[]TaskAgentQueue           `json:"queues,omitempty"`
	Rows             *[]MetricsRow               `json:"rows,omitempty"`
}

// The type of agent pool.
type TaskAgentPoolType string

type taskAgentPoolTypeValuesType struct {
	Automation TaskAgentPoolType
	Deployment TaskAgentPoolType
}

var TaskAgentPoolTypeValues = taskAgentPoolTypeValuesType{
	// A typical pool of task agents
	Automation: "automation",
	// A deployment pool
	Deployment: "deployment",
}

// Represents the public key portion of an RSA asymmetric key.
type TaskAgentPublicKey struct {
	// Gets or sets the exponent for the public key.
	Exponent *[]byte `json:"exponent,omitempty"`
	// Gets or sets the modulus for the public key.
	Modulus *[]byte `json:"modulus,omitempty"`
}

// An agent queue.
type TaskAgentQueue struct {
	// ID of the queue
	Id *int `json:"id,omitempty"`
	// Name of the queue
	Name *string `json:"name,omitempty"`
	// Pool reference for this queue
	Pool *TaskAgentPoolReference `json:"pool,omitempty"`
	// Project ID
	ProjectId *uuid.UUID `json:"projectId,omitempty"`
}

// [Flags] Filters queues based on whether the calling user has permission to use or manage the queue.
type TaskAgentQueueActionFilter string

type taskAgentQueueActionFilterValuesType struct {
	None   TaskAgentQueueActionFilter
	Manage TaskAgentQueueActionFilter
	Use    TaskAgentQueueActionFilter
}

var TaskAgentQueueActionFilterValues = taskAgentQueueActionFilterValuesType{
	None:   "none",
	Manage: "manage",
	Use:    "use",
}

// A reference to an agent.
type TaskAgentReference struct {
	Links interface{} `json:"_links,omitempty"`
	// This agent's access point.
	AccessPoint *string `json:"accessPoint,omitempty"`
	// Whether or not this agent should run jobs.
	Enabled *bool `json:"enabled,omitempty"`
	// Identifier of the agent.
	Id *int `json:"id,omitempty"`
	// Name of the agent.
	Name *string `json:"name,omitempty"`
	// Agent OS.
	OsDescription *string `json:"osDescription,omitempty"`
	// Provisioning state of this agent.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// Whether or not the agent is online.
	Status *TaskAgentStatus `json:"status,omitempty"`
	// Agent version.
	Version *string `json:"version,omitempty"`
}

// Represents a session for performing message exchanges from an agent.
type TaskAgentSession struct {
	// Gets or sets the agent which is the target of the session.
	Agent *TaskAgentReference `json:"agent,omitempty"`
	// Gets the key used to encrypt message traffic for this session.
	EncryptionKey *TaskAgentSessionKey `json:"encryptionKey,omitempty"`
	// Gets or sets the owner name of this session. Generally this will be the machine of origination.
	OwnerName *string `json:"ownerName,omitempty"`
	// Gets the unique identifier for this session.
	SessionId          *uuid.UUID         `json:"sessionId,omitempty"`
	SystemCapabilities *map[string]string `json:"systemCapabilities,omitempty"`
}

// Represents a symmetric key used for message-level encryption for communication sent to an agent.
type TaskAgentSessionKey struct {
	// Gets or sets a value indicating whether or not the key value is encrypted. If this value is true, the Value property should be decrypted using the <c>RSA</c> key exchanged with the server during registration.
	Encrypted *bool `json:"encrypted,omitempty"`
	// Gets or sets the symmetric key value.
	Value *[]byte `json:"value,omitempty"`
}

type TaskAgentStatus string

type taskAgentStatusValuesType struct {
	Offline TaskAgentStatus
	Online  TaskAgentStatus
}

var TaskAgentStatusValues = taskAgentStatusValuesType{
	Offline: "offline",
	Online:  "online",
}

// [Flags] This is useful in getting a list of deployment targets, filtered by the deployment agent status.
type TaskAgentStatusFilter string

type taskAgentStatusFilterValuesType struct {
	Offline TaskAgentStatusFilter
	Online  TaskAgentStatusFilter
	All     TaskAgentStatusFilter
}

var TaskAgentStatusFilterValues = taskAgentStatusFilterValuesType{
	// Only deployment targets that are offline.
	Offline: "offline",
	// Only deployment targets that are online.
	Online: "online",
	// All deployment targets.
	All: "all",
}

// Details about an agent update.
type TaskAgentUpdate struct {
	// Current state of this agent update.
	CurrentState *string `json:"currentState,omitempty"`
	// Reason for this update.
	Reason *TaskAgentUpdateReason `json:"reason,omitempty"`
	// Identity which requested this update.
	RequestedBy *webapi.IdentityRef `json:"requestedBy,omitempty"`
	// Date on which this update was requested.
	RequestTime *azuredevops.Time `json:"requestTime,omitempty"`
	// Source agent version of the update.
	SourceVersion *PackageVersion `json:"sourceVersion,omitempty"`
	// Target agent version of the update.
	TargetVersion *PackageVersion `json:"targetVersion,omitempty"`
}

type TaskAgentUpdateReason struct {
	Code *TaskAgentUpdateReasonType `json:"code,omitempty"`
}

type TaskAgentUpdateReasonType string

type taskAgentUpdateReasonTypeValuesType struct {
	Manual                  TaskAgentUpdateReasonType
	MinAgentVersionRequired TaskAgentUpdateReasonType
}

var TaskAgentUpdateReasonTypeValues = taskAgentUpdateReasonTypeValuesType{
	Manual:                  "manual",
	MinAgentVersionRequired: "minAgentVersionRequired",
}

type TaskAssignedEvent struct {
	JobId  *uuid.UUID `json:"jobId,omitempty"`
	Name   *string    `json:"name,omitempty"`
	TaskId *uuid.UUID `json:"taskId,omitempty"`
}

type TaskAttachment struct {
	Links         interface{}       `json:"_links,omitempty"`
	CreatedOn     *azuredevops.Time `json:"createdOn,omitempty"`
	LastChangedBy *uuid.UUID        `json:"lastChangedBy,omitempty"`
	LastChangedOn *azuredevops.Time `json:"lastChangedOn,omitempty"`
	Name          *string           `json:"name,omitempty"`
	RecordId      *uuid.UUID        `json:"recordId,omitempty"`
	TimelineId    *uuid.UUID        `json:"timelineId,omitempty"`
	Type          *string           `json:"type,omitempty"`
}

type TaskCompletedEvent struct {
	JobId  *uuid.UUID  `json:"jobId,omitempty"`
	Name   *string     `json:"name,omitempty"`
	TaskId *uuid.UUID  `json:"taskId,omitempty"`
	Result *TaskResult `json:"result,omitempty"`
}

type TaskDefinition struct {
	AgentExecution         *TaskExecution       `json:"agentExecution,omitempty"`
	Author                 *string              `json:"author,omitempty"`
	Category               *string              `json:"category,omitempty"`
	ContentsUploaded       *bool                `json:"contentsUploaded,omitempty"`
	ContributionIdentifier *string              `json:"contributionIdentifier,omitempty"`
	ContributionVersion    *string              `json:"contributionVersion,omitempty"`
	DataSourceBindings     *[]DataSourceBinding `json:"dataSourceBindings,omitempty"`
	DefinitionType         *string              `json:"definitionType,omitempty"`
	Demands                *[]interface{}       `json:"demands,omitempty"`
	Deprecated             *bool                `json:"deprecated,omitempty"`
	Description            *string              `json:"description,omitempty"`
	Disabled               *bool                `json:"disabled,omitempty"`
	// Deprecated: Ecosystem property is not currently supported.
	Ecosystem                *string                 `json:"ecosystem,omitempty"`
	Execution                *map[string]interface{} `json:"execution,omitempty"`
	FriendlyName             *string                 `json:"friendlyName,omitempty"`
	Groups                   *[]TaskGroupDefinition  `json:"groups,omitempty"`
	HelpMarkDown             *string                 `json:"helpMarkDown,omitempty"`
	HelpUrl                  *string                 `json:"helpUrl,omitempty"`
	HostType                 *string                 `json:"hostType,omitempty"`
	IconUrl                  *string                 `json:"iconUrl,omitempty"`
	Id                       *uuid.UUID              `json:"id,omitempty"`
	Inputs                   *[]TaskInputDefinition  `json:"inputs,omitempty"`
	InstanceNameFormat       *string                 `json:"instanceNameFormat,omitempty"`
	MinimumAgentVersion      *string                 `json:"minimumAgentVersion,omitempty"`
	Name                     *string                 `json:"name,omitempty"`
	OutputVariables          *[]TaskOutputVariable   `json:"outputVariables,omitempty"`
	PackageLocation          *string                 `json:"packageLocation,omitempty"`
	PackageType              *string                 `json:"packageType,omitempty"`
	PostJobExecution         *map[string]interface{} `json:"postJobExecution,omitempty"`
	PreJobExecution          *map[string]interface{} `json:"preJobExecution,omitempty"`
	Preview                  *bool                   `json:"preview,omitempty"`
	ReleaseNotes             *string                 `json:"releaseNotes,omitempty"`
	RunsOn                   *[]string               `json:"runsOn,omitempty"`
	Satisfies                *[]string               `json:"satisfies,omitempty"`
	ServerOwned              *bool                   `json:"serverOwned,omitempty"`
	ShowEnvironmentVariables *bool                   `json:"showEnvironmentVariables,omitempty"`
	SourceDefinitions        *[]TaskSourceDefinition `json:"sourceDefinitions,omitempty"`
	SourceLocation           *string                 `json:"sourceLocation,omitempty"`
	Version                  *TaskVersion            `json:"version,omitempty"`
	Visibility               *[]string               `json:"visibility,omitempty"`
}

type TaskDefinitionEndpoint struct {
	// An ID that identifies a service connection to be used for authenticating endpoint requests.
	ConnectionId *string `json:"connectionId,omitempty"`
	// An Json based keyselector to filter response returned by fetching the endpoint <c>Url</c>.A Json based keyselector must be prefixed with "jsonpath:". KeySelector can be used to specify the filter to get the keys for the values specified with Selector. <example> The following keyselector defines an Json for extracting nodes named 'ServiceName'. <code> endpoint.KeySelector = "jsonpath://ServiceName"; </code></example>
	KeySelector *string `json:"keySelector,omitempty"`
	// The scope as understood by Connected Services. Essentially, a project-id for now.
	Scope *string `json:"scope,omitempty"`
	// An XPath/Json based selector to filter response returned by fetching the endpoint <c>Url</c>. An XPath based selector must be prefixed with the string "xpath:". A Json based selector must be prefixed with "jsonpath:". <example> The following selector defines an XPath for extracting nodes named 'ServiceName'. <code> endpoint.Selector = "xpath://ServiceName"; </code></example>
	Selector *string `json:"selector,omitempty"`
	// TaskId that this endpoint belongs to.
	TaskId *string `json:"taskId,omitempty"`
	// URL to GET.
	Url *string `json:"url,omitempty"`
}

type TaskDefinitionReference struct {
	// Gets or sets the definition type. Values can be 'task' or 'metaTask'.
	DefinitionType *string `json:"definitionType,omitempty"`
	// Gets or sets the unique identifier of task.
	Id *uuid.UUID `json:"id,omitempty"`
	// Gets or sets the version specification of task.
	VersionSpec *string `json:"versionSpec,omitempty"`
}

type TaskDefinitionStatus string

type taskDefinitionStatusValuesType struct {
	Preinstalled            TaskDefinitionStatus
	ReceivedInstallOrUpdate TaskDefinitionStatus
	Installed               TaskDefinitionStatus
	ReceivedUninstall       TaskDefinitionStatus
	Uninstalled             TaskDefinitionStatus
	RequestedUpdate         TaskDefinitionStatus
	Updated                 TaskDefinitionStatus
	AlreadyUpToDate         TaskDefinitionStatus
	InlineUpdateReceived    TaskDefinitionStatus
}

var TaskDefinitionStatusValues = taskDefinitionStatusValuesType{
	Preinstalled:            "preinstalled",
	ReceivedInstallOrUpdate: "receivedInstallOrUpdate",
	Installed:               "installed",
	ReceivedUninstall:       "receivedUninstall",
	Uninstalled:             "uninstalled",
	RequestedUpdate:         "requestedUpdate",
	Updated:                 "updated",
	AlreadyUpToDate:         "alreadyUpToDate",
	InlineUpdateReceived:    "inlineUpdateReceived",
}

type TaskEvent struct {
	JobId  *uuid.UUID `json:"jobId,omitempty"`
	Name   *string    `json:"name,omitempty"`
	TaskId *uuid.UUID `json:"taskId,omitempty"`
}

type TaskExecution struct {
	// The utility task to run.  Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline
	ExecTask *TaskReference `json:"execTask,omitempty"`
	// If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", }
	PlatformInstructions *map[string]map[string]string `json:"platformInstructions,omitempty"`
}

type TaskGroup struct {
	AgentExecution           *TaskExecution          `json:"agentExecution,omitempty"`
	Author                   *string                 `json:"author,omitempty"`
	Category                 *string                 `json:"category,omitempty"`
	ContentsUploaded         *bool                   `json:"contentsUploaded,omitempty"`
	ContributionIdentifier   *string                 `json:"contributionIdentifier,omitempty"`
	ContributionVersion      *string                 `json:"contributionVersion,omitempty"`
	DataSourceBindings       *[]DataSourceBinding    `json:"dataSourceBindings,omitempty"`
	DefinitionType           *string                 `json:"definitionType,omitempty"`
	Demands                  *[]interface{}          `json:"demands,omitempty"`
	Deprecated               *bool                   `json:"deprecated,omitempty"`
	Description              *string                 `json:"description,omitempty"`
	Disabled                 *bool                   `json:"disabled,omitempty"`
	Ecosystem                *string                 `json:"ecosystem,omitempty"`
	Execution                *map[string]interface{} `json:"execution,omitempty"`
	FriendlyName             *string                 `json:"friendlyName,omitempty"`
	Groups                   *[]TaskGroupDefinition  `json:"groups,omitempty"`
	HelpMarkDown             *string                 `json:"helpMarkDown,omitempty"`
	HelpUrl                  *string                 `json:"helpUrl,omitempty"`
	HostType                 *string                 `json:"hostType,omitempty"`
	IconUrl                  *string                 `json:"iconUrl,omitempty"`
	Id                       *uuid.UUID              `json:"id,omitempty"`
	Inputs                   *[]TaskInputDefinition  `json:"inputs,omitempty"`
	InstanceNameFormat       *string                 `json:"instanceNameFormat,omitempty"`
	MinimumAgentVersion      *string                 `json:"minimumAgentVersion,omitempty"`
	Name                     *string                 `json:"name,omitempty"`
	OutputVariables          *[]TaskOutputVariable   `json:"outputVariables,omitempty"`
	PackageLocation          *string                 `json:"packageLocation,omitempty"`
	PackageType              *string                 `json:"packageType,omitempty"`
	PostJobExecution         *map[string]interface{} `json:"postJobExecution,omitempty"`
	PreJobExecution          *map[string]interface{} `json:"preJobExecution,omitempty"`
	Preview                  *bool                   `json:"preview,omitempty"`
	ReleaseNotes             *string                 `json:"releaseNotes,omitempty"`
	RunsOn                   *[]string               `json:"runsOn,omitempty"`
	Satisfies                *[]string               `json:"satisfies,omitempty"`
	ServerOwned              *bool                   `json:"serverOwned,omitempty"`
	ShowEnvironmentVariables *bool                   `json:"showEnvironmentVariables,omitempty"`
	SourceDefinitions        *[]TaskSourceDefinition `json:"sourceDefinitions,omitempty"`
	SourceLocation           *string                 `json:"sourceLocation,omitempty"`
	Version                  *TaskVersion            `json:"version,omitempty"`
	Visibility               *[]string               `json:"visibility,omitempty"`
	// Gets or sets comment.
	Comment *string `json:"comment,omitempty"`
	// Gets or sets the identity who created.
	CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
	// Gets or sets date on which it got created.
	CreatedOn *azuredevops.Time `json:"createdOn,omitempty"`
	// Gets or sets as 'true' to indicate as deleted, 'false' otherwise.
	Deleted *bool `json:"deleted,omitempty"`
	// Gets or sets the identity who modified.
	ModifiedBy *webapi.IdentityRef `json:"modifiedBy,omitempty"`
	// Gets or sets date on which it got modified.
	ModifiedOn *azuredevops.Time `json:"modifiedOn,omitempty"`
	// Gets or sets the owner.
	Owner *string `json:"owner,omitempty"`
	// Gets or sets parent task group Id. This is used while creating a draft task group.
	ParentDefinitionId *uuid.UUID `json:"parentDefinitionId,omitempty"`
	// Gets or sets revision.
	Revision *int `json:"revision,omitempty"`
	// Gets or sets the tasks.
	Tasks *[]TaskGroupStep `json:"tasks,omitempty"`
}

type TaskGroupCreateParameter struct {
	// Sets author name of the task group.
	Author *string `json:"author,omitempty"`
	// Sets category of the task group.
	Category *string `json:"category,omitempty"`
	// Sets description of the task group.
	Description *string `json:"description,omitempty"`
	// Sets friendly name of the task group.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// Sets url icon of the task group.
	IconUrl *string `json:"iconUrl,omitempty"`
	// Sets input for the task group.
	Inputs *[]TaskInputDefinition `json:"inputs,omitempty"`
	// Sets display name of the task group.
	InstanceNameFormat *string `json:"instanceNameFormat,omitempty"`
	// Sets name of the task group.
	Name *string `json:"name,omitempty"`
	// Sets parent task group Id. This is used while creating a draft task group.
	ParentDefinitionId *uuid.UUID `json:"parentDefinitionId,omitempty"`
	// Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'.
	RunsOn *[]string `json:"runsOn,omitempty"`
	// Sets tasks for the task group.
	Tasks *[]TaskGroupStep `json:"tasks,omitempty"`
	// Sets version of the task group.
	Version *TaskVersion `json:"version,omitempty"`
}

type TaskGroupDefinition struct {
	DisplayName *string   `json:"displayName,omitempty"`
	IsExpanded  *bool     `json:"isExpanded,omitempty"`
	Name        *string   `json:"name,omitempty"`
	Tags        *[]string `json:"tags,omitempty"`
	VisibleRule *string   `json:"visibleRule,omitempty"`
}

// [Flags]
type TaskGroupExpands string

type taskGroupExpandsValuesType struct {
	None  TaskGroupExpands
	Tasks TaskGroupExpands
}

var TaskGroupExpandsValues = taskGroupExpandsValuesType{
	None:  "none",
	Tasks: "tasks",
}

// Specifies the desired ordering of taskGroups.
type TaskGroupQueryOrder string

type taskGroupQueryOrderValuesType struct {
	CreatedOnAscending  TaskGroupQueryOrder
	CreatedOnDescending TaskGroupQueryOrder
}

var TaskGroupQueryOrderValues = taskGroupQueryOrderValuesType{
	// Order by createdon ascending.
	CreatedOnAscending: "createdOnAscending",
	// Order by createdon descending.
	CreatedOnDescending: "createdOnDescending",
}

type TaskGroupRevision struct {
	ChangedBy    *webapi.IdentityRef `json:"changedBy,omitempty"`
	ChangedDate  *azuredevops.Time   `json:"changedDate,omitempty"`
	ChangeType   *AuditAction        `json:"changeType,omitempty"`
	Comment      *string             `json:"comment,omitempty"`
	FileId       *int                `json:"fileId,omitempty"`
	MajorVersion *int                `json:"majorVersion,omitempty"`
	Revision     *int                `json:"revision,omitempty"`
	TaskGroupId  *uuid.UUID          `json:"taskGroupId,omitempty"`
}

// Represents tasks in the task group.
type TaskGroupStep struct {
	// Gets or sets as 'true' to run the task always, 'false' otherwise.
	AlwaysRun *bool `json:"alwaysRun,omitempty"`
	// Gets or sets condition for the task.
	Condition *string `json:"condition,omitempty"`
	// Gets or sets as 'true' to continue on error, 'false' otherwise.
	ContinueOnError *bool `json:"continueOnError,omitempty"`
	// Gets or sets the display name.
	DisplayName *string `json:"displayName,omitempty"`
	// Gets or sets as task is enabled or not.
	Enabled *bool `json:"enabled,omitempty"`
	// Gets dictionary of environment variables.
	Environment *map[string]string `json:"environment,omitempty"`
	// Gets or sets dictionary of inputs.
	Inputs *map[string]string `json:"inputs,omitempty"`
	// Gets or sets the reference of the task.
	Task *TaskDefinitionReference `json:"task,omitempty"`
	// Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout.
	TimeoutInMinutes *int `json:"timeoutInMinutes,omitempty"`
}

type TaskGroupUpdateParameter struct {
	// Sets author name of the task group.
	Author *string `json:"author,omitempty"`
	// Sets category of the task group.
	Category *string `json:"category,omitempty"`
	// Sets comment of the task group.
	Comment *string `json:"comment,omitempty"`
	// Sets description of the task group.
	Description *string `json:"description,omitempty"`
	// Sets friendly name of the task group.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// Sets url icon of the task group.
	IconUrl *string `json:"iconUrl,omitempty"`
	// Sets the unique identifier of this field.
	Id *uuid.UUID `json:"id,omitempty"`
	// Sets input for the task group.
	Inputs *[]TaskInputDefinition `json:"inputs,omitempty"`
	// Sets display name of the task group.
	InstanceNameFormat *string `json:"instanceNameFormat,omitempty"`
	// Sets name of the task group.
	Name *string `json:"name,omitempty"`
	// Gets or sets parent task group Id. This is used while creating a draft task group.
	ParentDefinitionId *uuid.UUID `json:"parentDefinitionId,omitempty"`
	// Sets revision of the task group.
	Revision *int `json:"revision,omitempty"`
	// Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'.
	RunsOn *[]string `json:"runsOn,omitempty"`
	// Sets tasks for the task group.
	Tasks *[]TaskGroupStep `json:"tasks,omitempty"`
	// Sets version of the task group.
	Version *TaskVersion `json:"version,omitempty"`
}

type TaskHubLicenseDetails struct {
	EnterpriseUsersCount               *int                           `json:"enterpriseUsersCount,omitempty"`
	FailedToReachAllProviders          *bool                          `json:"failedToReachAllProviders,omitempty"`
	FreeHostedLicenseCount             *int                           `json:"freeHostedLicenseCount,omitempty"`
	FreeLicenseCount                   *int                           `json:"freeLicenseCount,omitempty"`
	HasLicenseCountEverUpdated         *bool                          `json:"hasLicenseCountEverUpdated,omitempty"`
	HostedAgentMinutesFreeCount        *int                           `json:"hostedAgentMinutesFreeCount,omitempty"`
	HostedAgentMinutesUsedCount        *int                           `json:"hostedAgentMinutesUsedCount,omitempty"`
	HostedLicensesArePremium           *bool                          `json:"hostedLicensesArePremium,omitempty"`
	MarketplacePurchasedHostedLicenses *[]MarketplacePurchasedLicense `json:"marketplacePurchasedHostedLicenses,omitempty"`
	MsdnUsersCount                     *int                           `json:"msdnUsersCount,omitempty"`
	// Microsoft-hosted licenses purchased from VSTS directly.
	PurchasedHostedLicenseCount *int `json:"purchasedHostedLicenseCount,omitempty"`
	// Self-hosted licenses purchased from VSTS directly.
	PurchasedLicenseCount    *int `json:"purchasedLicenseCount,omitempty"`
	TotalHostedLicenseCount  *int `json:"totalHostedLicenseCount,omitempty"`
	TotalLicenseCount        *int `json:"totalLicenseCount,omitempty"`
	TotalPrivateLicenseCount *int `json:"totalPrivateLicenseCount,omitempty"`
}

type TaskInputDefinition struct {
	Aliases      *[]string                                  `json:"aliases,omitempty"`
	DefaultValue *string                                    `json:"defaultValue,omitempty"`
	GroupName    *string                                    `json:"groupName,omitempty"`
	HelpMarkDown *string                                    `json:"helpMarkDown,omitempty"`
	Label        *string                                    `json:"label,omitempty"`
	Name         *string                                    `json:"name,omitempty"`
	Options      *map[string]string                         `json:"options,omitempty"`
	Properties   *map[string]string                         `json:"properties,omitempty"`
	Required     *bool                                      `json:"required,omitempty"`
	Type         *string                                    `json:"type,omitempty"`
	Validation   *distributedtaskcommon.TaskInputValidation `json:"validation,omitempty"`
	VisibleRule  *string                                    `json:"visibleRule,omitempty"`
}

type TaskInstance struct {
	Id               *uuid.UUID         `json:"id,omitempty"`
	Inputs           *map[string]string `json:"inputs,omitempty"`
	Name             *string            `json:"name,omitempty"`
	Version          *string            `json:"version,omitempty"`
	AlwaysRun        *bool              `json:"alwaysRun,omitempty"`
	Condition        *string            `json:"condition,omitempty"`
	ContinueOnError  *bool              `json:"continueOnError,omitempty"`
	DisplayName      *string            `json:"displayName,omitempty"`
	Enabled          *bool              `json:"enabled,omitempty"`
	Environment      *map[string]string `json:"environment,omitempty"`
	InstanceId       *uuid.UUID         `json:"instanceId,omitempty"`
	RefName          *string            `json:"refName,omitempty"`
	TimeoutInMinutes *int               `json:"timeoutInMinutes,omitempty"`
}

type TaskLog struct {
	Id            *int              `json:"id,omitempty"`
	Location      *string           `json:"location,omitempty"`
	CreatedOn     *azuredevops.Time `json:"createdOn,omitempty"`
	IndexLocation *string           `json:"indexLocation,omitempty"`
	LastChangedOn *azuredevops.Time `json:"lastChangedOn,omitempty"`
	LineCount     *uint64           `json:"lineCount,omitempty"`
	Path          *string           `json:"path,omitempty"`
}

type TaskLogReference struct {
	Id       *int    `json:"id,omitempty"`
	Location *string `json:"location,omitempty"`
}

type TaskOrchestrationContainer struct {
	ItemType        *TaskOrchestrationItemType  `json:"itemType,omitempty"`
	Children        *[]TaskOrchestrationItem    `json:"children,omitempty"`
	ContinueOnError *bool                       `json:"continueOnError,omitempty"`
	Data            *map[string]string          `json:"data,omitempty"`
	MaxConcurrency  *int                        `json:"maxConcurrency,omitempty"`
	Parallel        *bool                       `json:"parallel,omitempty"`
	Rollback        *TaskOrchestrationContainer `json:"rollback,omitempty"`
}

type TaskOrchestrationItem struct {
	ItemType *TaskOrchestrationItemType `json:"itemType,omitempty"`
}

type TaskOrchestrationItemType string

type taskOrchestrationItemTypeValuesType struct {
	Container TaskOrchestrationItemType
	Job       TaskOrchestrationItemType
}

var TaskOrchestrationItemTypeValues = taskOrchestrationItemTypeValuesType{
	Container: "container",
	Job:       "job",
}

type TaskOrchestrationJob struct {
	ItemType         *TaskOrchestrationItemType `json:"itemType,omitempty"`
	Demands          *[]interface{}             `json:"demands,omitempty"`
	ExecuteAs        *webapi.IdentityRef        `json:"executeAs,omitempty"`
	ExecutionMode    *string                    `json:"executionMode,omitempty"`
	ExecutionTimeout interface{}                `json:"executionTimeout,omitempty"`
	InstanceId       *uuid.UUID                 `json:"instanceId,omitempty"`
	Name             *string                    `json:"name,omitempty"`
	RefName          *string                    `json:"refName,omitempty"`
	Tasks            *[]TaskInstance            `json:"tasks,omitempty"`
	Variables        *map[string]string         `json:"variables,omitempty"`
}

type TaskOrchestrationOwner struct {
	Links interface{} `json:"_links,omitempty"`
	Id    *int        `json:"id,omitempty"`
	Name  *string     `json:"name,omitempty"`
}

type TaskOrchestrationPlan struct {
	ArtifactLocation  *string                     `json:"artifactLocation,omitempty"`
	ArtifactUri       *string                     `json:"artifactUri,omitempty"`
	Definition        *TaskOrchestrationOwner     `json:"definition,omitempty"`
	Owner             *TaskOrchestrationOwner     `json:"owner,omitempty"`
	PlanGroup         *string                     `json:"planGroup,omitempty"`
	PlanId            *uuid.UUID                  `json:"planId,omitempty"`
	PlanType          *string                     `json:"planType,omitempty"`
	ScopeIdentifier   *uuid.UUID                  `json:"scopeIdentifier,omitempty"`
	Version           *int                        `json:"version,omitempty"`
	Environment       *PlanEnvironment            `json:"environment,omitempty"`
	FinishTime        *azuredevops.Time           `json:"finishTime,omitempty"`
	Implementation    *TaskOrchestrationContainer `json:"implementation,omitempty"`
	InitializationLog *TaskLogReference           `json:"initializationLog,omitempty"`
	RequestedById     *uuid.UUID                  `json:"requestedById,omitempty"`
	RequestedForId    *uuid.UUID                  `json:"requestedForId,omitempty"`
	Result            *TaskResult                 `json:"result,omitempty"`
	ResultCode        *string                     `json:"resultCode,omitempty"`
	StartTime         *azuredevops.Time           `json:"startTime,omitempty"`
	State             *TaskOrchestrationPlanState `json:"state,omitempty"`
	Timeline          *TimelineReference          `json:"timeline,omitempty"`
}

type TaskOrchestrationPlanGroup struct {
	PlanGroup       *string                `json:"planGroup,omitempty"`
	Project         *ProjectReference      `json:"project,omitempty"`
	RunningRequests *[]TaskAgentJobRequest `json:"runningRequests,omitempty"`
}

type TaskOrchestrationPlanGroupsQueueMetrics struct {
	Count  *int             `json:"count,omitempty"`
	Status *PlanGroupStatus `json:"status,omitempty"`
}

type TaskOrchestrationPlanReference struct {
	ArtifactLocation *string                 `json:"artifactLocation,omitempty"`
	ArtifactUri      *string                 `json:"artifactUri,omitempty"`
	Definition       *TaskOrchestrationOwner `json:"definition,omitempty"`
	Owner            *TaskOrchestrationOwner `json:"owner,omitempty"`
	PlanGroup        *string                 `json:"planGroup,omitempty"`
	PlanId           *uuid.UUID              `json:"planId,omitempty"`
	PlanType         *string                 `json:"planType,omitempty"`
	ScopeIdentifier  *uuid.UUID              `json:"scopeIdentifier,omitempty"`
	Version          *int                    `json:"version,omitempty"`
}

type TaskOrchestrationPlanState string

type taskOrchestrationPlanStateValuesType struct {
	InProgress TaskOrchestrationPlanState
	Queued     TaskOrchestrationPlanState
	Completed  TaskOrchestrationPlanState
	Throttled  TaskOrchestrationPlanState
}

var TaskOrchestrationPlanStateValues = taskOrchestrationPlanStateValuesType{
	InProgress: "inProgress",
	Queued:     "queued",
	Completed:  "completed",
	Throttled:  "throttled",
}

type TaskOrchestrationQueuedPlan struct {
	AssignTime      *azuredevops.Time       `json:"assignTime,omitempty"`
	Definition      *TaskOrchestrationOwner `json:"definition,omitempty"`
	Owner           *TaskOrchestrationOwner `json:"owner,omitempty"`
	PlanGroup       *string                 `json:"planGroup,omitempty"`
	PlanId          *uuid.UUID              `json:"planId,omitempty"`
	PoolId          *int                    `json:"poolId,omitempty"`
	QueuePosition   *int                    `json:"queuePosition,omitempty"`
	QueueTime       *azuredevops.Time       `json:"queueTime,omitempty"`
	ScopeIdentifier *uuid.UUID              `json:"scopeIdentifier,omitempty"`
}

type TaskOrchestrationQueuedPlanGroup struct {
	Definition    *TaskOrchestrationOwner        `json:"definition,omitempty"`
	Owner         *TaskOrchestrationOwner        `json:"owner,omitempty"`
	PlanGroup     *string                        `json:"planGroup,omitempty"`
	Plans         *[]TaskOrchestrationQueuedPlan `json:"plans,omitempty"`
	Project       *ProjectReference              `json:"project,omitempty"`
	QueuePosition *int                           `json:"queuePosition,omitempty"`
}

type TaskOutputVariable struct {
	Description *string `json:"description,omitempty"`
	Name        *string `json:"name,omitempty"`
}

type TaskPackageMetadata struct {
	// Gets the name of the package.
	Type *string `json:"type,omitempty"`
	// Gets the url of the package.
	Url *string `json:"url,omitempty"`
	// Gets the version of the package.
	Version *string `json:"version,omitempty"`
}

type TaskReference struct {
	Id      *uuid.UUID         `json:"id,omitempty"`
	Inputs  *map[string]string `json:"inputs,omitempty"`
	Name    *string            `json:"name,omitempty"`
	Version *string            `json:"version,omitempty"`
}

type TaskResult string

type taskResultValuesType struct {
	Succeeded           TaskResult
	SucceededWithIssues TaskResult
	Failed              TaskResult
	Canceled            TaskResult
	Skipped             TaskResult
	Abandoned           TaskResult
}

var TaskResultValues = taskResultValuesType{
	Succeeded:           "succeeded",
	SucceededWithIssues: "succeededWithIssues",
	Failed:              "failed",
	Canceled:            "canceled",
	Skipped:             "skipped",
	Abandoned:           "abandoned",
}

type TaskSourceDefinition struct {
	AuthKey     *string `json:"authKey,omitempty"`
	Endpoint    *string `json:"endpoint,omitempty"`
	KeySelector *string `json:"keySelector,omitempty"`
	Selector    *string `json:"selector,omitempty"`
	Target      *string `json:"target,omitempty"`
}

type TaskStartedEvent struct {
	JobId  *uuid.UUID `json:"jobId,omitempty"`
	Name   *string    `json:"name,omitempty"`
	TaskId *uuid.UUID `json:"taskId,omitempty"`
}

type TaskVersion struct {
	IsTest *bool `json:"isTest,omitempty"`
	Major  *int  `json:"major,omitempty"`
	Minor  *int  `json:"minor,omitempty"`
	Patch  *int  `json:"patch,omitempty"`
}

type Timeline struct {
	ChangeId      *int              `json:"changeId,omitempty"`
	Id            *uuid.UUID        `json:"id,omitempty"`
	Location      *string           `json:"location,omitempty"`
	LastChangedBy *uuid.UUID        `json:"lastChangedBy,omitempty"`
	LastChangedOn *azuredevops.Time `json:"lastChangedOn,omitempty"`
	Records       *[]TimelineRecord `json:"records,omitempty"`
}

type TimelineAttempt struct {
	// Gets or sets the attempt of the record.
	Attempt *int `json:"attempt,omitempty"`
	// Gets or sets the unique identifier for the record.
	Identifier *string `json:"identifier,omitempty"`
	// Gets or sets the record identifier located within the specified timeline.
	RecordId *uuid.UUID `json:"recordId,omitempty"`
	// Gets or sets the timeline identifier which owns the record representing this attempt.
	TimelineId *uuid.UUID `json:"timelineId,omitempty"`
}

type TimelineRecord struct {
	Attempt          *int                    `json:"attempt,omitempty"`
	ChangeId         *int                    `json:"changeId,omitempty"`
	CurrentOperation *string                 `json:"currentOperation,omitempty"`
	Details          *TimelineReference      `json:"details,omitempty"`
	ErrorCount       *int                    `json:"errorCount,omitempty"`
	FinishTime       *azuredevops.Time       `json:"finishTime,omitempty"`
	Id               *uuid.UUID              `json:"id,omitempty"`
	Identifier       *string                 `json:"identifier,omitempty"`
	Issues           *[]Issue                `json:"issues,omitempty"`
	LastModified     *azuredevops.Time       `json:"lastModified,omitempty"`
	Location         *string                 `json:"location,omitempty"`
	Log              *TaskLogReference       `json:"log,omitempty"`
	Name             *string                 `json:"name,omitempty"`
	Order            *int                    `json:"order,omitempty"`
	ParentId         *uuid.UUID              `json:"parentId,omitempty"`
	PercentComplete  *int                    `json:"percentComplete,omitempty"`
	PreviousAttempts *[]TimelineAttempt      `json:"previousAttempts,omitempty"`
	RefName          *string                 `json:"refName,omitempty"`
	Result           *TaskResult             `json:"result,omitempty"`
	ResultCode       *string                 `json:"resultCode,omitempty"`
	StartTime        *azuredevops.Time       `json:"startTime,omitempty"`
	State            *TimelineRecordState    `json:"state,omitempty"`
	Task             *TaskReference          `json:"task,omitempty"`
	Type             *string                 `json:"type,omitempty"`
	Variables        *map[string]interface{} `json:"variables,omitempty"`
	WarningCount     *int                    `json:"warningCount,omitempty"`
	WorkerName       *string                 `json:"workerName,omitempty"`
}

type TimelineRecordFeedLinesWrapper struct {
	Count  *int       `json:"count,omitempty"`
	StepId *uuid.UUID `json:"stepId,omitempty"`
	Value  *[]string  `json:"value,omitempty"`
}

type TimelineRecordState string

type timelineRecordStateValuesType struct {
	Pending    TimelineRecordState
	InProgress TimelineRecordState
	Completed  TimelineRecordState
}

var TimelineRecordStateValues = timelineRecordStateValuesType{
	Pending:    "pending",
	InProgress: "inProgress",
	Completed:  "completed",
}

type TimelineReference struct {
	ChangeId *int       `json:"changeId,omitempty"`
	Id       *uuid.UUID `json:"id,omitempty"`
	Location *string    `json:"location,omitempty"`
}

type ValidationItem struct {
	// Tells whether the current input is valid or not
	IsValid *bool `json:"isValid,omitempty"`
	// Reason for input validation failure
	Reason *string `json:"reason,omitempty"`
	// Type of validation item
	Type *string `json:"type,omitempty"`
	// Value to validate. The conditional expression to validate for the input for "expression" type Eg:eq(variables['Build.SourceBranch'], 'refs/heads/master');eq(value, 'refs/heads/master')
	Value *string `json:"value,omitempty"`
}

// A variable group is a collection of related variables.
type VariableGroup struct {
	// Gets or sets the identity who created the variable group.
	CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
	// Gets or sets the time when variable group was created.
	CreatedOn *azuredevops.Time `json:"createdOn,omitempty"`
	// Gets or sets description of the variable group.
	Description *string `json:"description,omitempty"`
	// Gets or sets id of the variable group.
	Id *int `json:"id,omitempty"`
	// Indicates whether variable group is shared with other projects or not.
	IsShared *bool `json:"isShared,omitempty"`
	// Gets or sets the identity who modified the variable group.
	ModifiedBy *webapi.IdentityRef `json:"modifiedBy,omitempty"`
	// Gets or sets the time when variable group was modified
	ModifiedOn *azuredevops.Time `json:"modifiedOn,omitempty"`
	// Gets or sets name of the variable group.
	Name *string `json:"name,omitempty"`
	// Gets or sets provider data.
	ProviderData interface{} `json:"providerData,omitempty"`
	// Gets or sets type of the variable group.
	Type *string `json:"type,omitempty"`
	// Gets or sets variables contained in the variable group.
	Variables *map[string]interface{} `json:"variables,omitempty"`
}

// [Flags]
type VariableGroupActionFilter string

type variableGroupActionFilterValuesType struct {
	None   VariableGroupActionFilter
	Manage VariableGroupActionFilter
	Use    VariableGroupActionFilter
}

var VariableGroupActionFilterValues = variableGroupActionFilterValuesType{
	None:   "none",
	Manage: "manage",
	Use:    "use",
}

type VariableGroupParameters struct {
	// Sets description of the variable group.
	Description *string `json:"description,omitempty"`
	// Sets name of the variable group.
	Name *string `json:"name,omitempty"`
	// Sets provider data.
	ProviderData interface{} `json:"providerData,omitempty"`
	// Sets type of the variable group.
	Type *string `json:"type,omitempty"`
	// Sets variables contained in the variable group.
	Variables *map[string]interface{} `json:"variables,omitempty"`
}

// Defines provider data of the variable group.
type VariableGroupProviderData struct {
}

// Specifies the desired ordering of variableGroups.
type VariableGroupQueryOrder string

type variableGroupQueryOrderValuesType struct {
	IdAscending  VariableGroupQueryOrder
	IdDescending VariableGroupQueryOrder
}

var VariableGroupQueryOrderValues = variableGroupQueryOrderValuesType{
	// Order by id ascending.
	IdAscending: "idAscending",
	// Order by id descending.
	IdDescending: "idDescending",
}

type VariableValue struct {
	IsSecret *bool   `json:"isSecret,omitempty"`
	Value    *string `json:"value,omitempty"`
}

type VirtualMachine struct {
	Agent *TaskAgent `json:"agent,omitempty"`
	Id    *int       `json:"id,omitempty"`
	Tags  *[]string  `json:"tags,omitempty"`
}

type VirtualMachineGroup struct {
	CreatedBy            *webapi.IdentityRef   `json:"createdBy,omitempty"`
	CreatedOn            *azuredevops.Time     `json:"createdOn,omitempty"`
	EnvironmentReference *EnvironmentReference `json:"environmentReference,omitempty"`
	Id                   *int                  `json:"id,omitempty"`
	LastModifiedBy       *webapi.IdentityRef   `json:"lastModifiedBy,omitempty"`
	LastModifiedOn       *azuredevops.Time     `json:"lastModifiedOn,omitempty"`
	Name                 *string               `json:"name,omitempty"`
	// Environment resource type
	Type   *EnvironmentResourceType `json:"type,omitempty"`
	PoolId *int                     `json:"poolId,omitempty"`
}

type VirtualMachineGroupCreateParameters struct {
	Name *string `json:"name,omitempty"`
}