argo-workflow 0.1.0

Argo Workflow Models
Documentation
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
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
#![allow(clippy::redundant_closure_call)]
#![allow(clippy::needless_lifetimes)]
#![allow(clippy::match_single_binding)]
#![allow(clippy::clone_on_copy)]

use derive_builder::Builder;
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct EventsourceCreateEventSourceRequest {
    #[serde(
        rename = "eventSource",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub event_source: Option<IoArgoprojEventsV1alpha1EventSource>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
}
impl From<&EventsourceCreateEventSourceRequest> for EventsourceCreateEventSourceRequest {
    fn from(value: &EventsourceCreateEventSourceRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct EventsourceEventSourceDeletedResponse(pub serde_json::Map<String, serde_json::Value>);
impl std::ops::Deref for EventsourceEventSourceDeletedResponse {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<EventsourceEventSourceDeletedResponse> for serde_json::Map<String, serde_json::Value> {
    fn from(value: EventsourceEventSourceDeletedResponse) -> Self {
        value.0
    }
}
impl From<&EventsourceEventSourceDeletedResponse> for EventsourceEventSourceDeletedResponse {
    fn from(value: &EventsourceEventSourceDeletedResponse) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>> for EventsourceEventSourceDeletedResponse {
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct EventsourceEventSourceWatchEvent {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub object: Option<IoArgoprojEventsV1alpha1EventSource>,
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl From<&EventsourceEventSourceWatchEvent> for EventsourceEventSourceWatchEvent {
    fn from(value: &EventsourceEventSourceWatchEvent) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct EventsourceLogEntry {
    #[serde(rename = "eventName", default, skip_serializing_if = "Option::is_none")]
    pub event_name: Option<String>,
    #[serde(
        rename = "eventSourceName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub event_source_name: Option<String>,
    #[serde(
        rename = "eventSourceType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub event_source_type: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub level: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub msg: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub time: Option<IoK8sApimachineryPkgApisMetaV1Time>,
}
impl From<&EventsourceLogEntry> for EventsourceLogEntry {
    fn from(value: &EventsourceLogEntry) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct EventsourceUpdateEventSourceRequest {
    #[serde(
        rename = "eventSource",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub event_source: Option<IoArgoprojEventsV1alpha1EventSource>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
}
impl From<&EventsourceUpdateEventSourceRequest> for EventsourceUpdateEventSourceRequest {
    fn from(value: &EventsourceUpdateEventSourceRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct GoogleProtobufAny {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub type_url: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}
impl From<&GoogleProtobufAny> for GoogleProtobufAny {
    fn from(value: &GoogleProtobufAny) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct GrpcGatewayRuntimeError {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub code: Option<i64>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub details: Vec<GoogleProtobufAny>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub error: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
}
impl From<&GrpcGatewayRuntimeError> for GrpcGatewayRuntimeError {
    fn from(value: &GrpcGatewayRuntimeError) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct GrpcGatewayRuntimeStreamError {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub details: Vec<GoogleProtobufAny>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub grpc_code: Option<i64>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub http_code: Option<i64>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub http_status: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
}
impl From<&GrpcGatewayRuntimeStreamError> for GrpcGatewayRuntimeStreamError {
    fn from(value: &GrpcGatewayRuntimeStreamError) -> Self {
        value.clone()
    }
}
#[doc = "Amount represent a numeric amount."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1Amount {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1Amount> for IoArgoprojEventsV1alpha1Amount {
    fn from(value: &IoArgoprojEventsV1alpha1Amount) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1AmqpConsumeConfig {
    #[serde(rename = "autoAck", default, skip_serializing_if = "Option::is_none")]
    pub auto_ack: Option<bool>,
    #[serde(
        rename = "consumerTag",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub consumer_tag: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub exclusive: Option<bool>,
    #[serde(rename = "noLocal", default, skip_serializing_if = "Option::is_none")]
    pub no_local: Option<bool>,
    #[serde(rename = "noWait", default, skip_serializing_if = "Option::is_none")]
    pub no_wait: Option<bool>,
}
impl From<&IoArgoprojEventsV1alpha1AmqpConsumeConfig>
    for IoArgoprojEventsV1alpha1AmqpConsumeConfig
{
    fn from(value: &IoArgoprojEventsV1alpha1AmqpConsumeConfig) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1AmqpEventSource {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auth: Option<IoArgoprojEventsV1alpha1BasicAuth>,
    #[serde(
        rename = "connectionBackoff",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub connection_backoff: Option<IoArgoprojEventsV1alpha1Backoff>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub consume: Option<IoArgoprojEventsV1alpha1AmqpConsumeConfig>,
    #[serde(
        rename = "exchangeDeclare",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub exchange_declare: Option<IoArgoprojEventsV1alpha1AmqpExchangeDeclareConfig>,
    #[serde(
        rename = "exchangeName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub exchange_name: Option<String>,
    #[serde(
        rename = "exchangeType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub exchange_type: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(rename = "jsonBody", default, skip_serializing_if = "Option::is_none")]
    pub json_body: Option<bool>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(rename = "queueBind", default, skip_serializing_if = "Option::is_none")]
    pub queue_bind: Option<IoArgoprojEventsV1alpha1AmqpQueueBindConfig>,
    #[serde(
        rename = "queueDeclare",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub queue_declare: Option<IoArgoprojEventsV1alpha1AmqpQueueDeclareConfig>,
    #[serde(
        rename = "routingKey",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub routing_key: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tls: Option<IoArgoprojEventsV1alpha1TlsConfig>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    #[serde(rename = "urlSecret", default, skip_serializing_if = "Option::is_none")]
    pub url_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1AmqpEventSource> for IoArgoprojEventsV1alpha1AmqpEventSource {
    fn from(value: &IoArgoprojEventsV1alpha1AmqpEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1AmqpExchangeDeclareConfig {
    #[serde(
        rename = "autoDelete",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub auto_delete: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub durable: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub internal: Option<bool>,
    #[serde(rename = "noWait", default, skip_serializing_if = "Option::is_none")]
    pub no_wait: Option<bool>,
}
impl From<&IoArgoprojEventsV1alpha1AmqpExchangeDeclareConfig>
    for IoArgoprojEventsV1alpha1AmqpExchangeDeclareConfig
{
    fn from(value: &IoArgoprojEventsV1alpha1AmqpExchangeDeclareConfig) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1AmqpQueueBindConfig {
    #[serde(rename = "noWait", default, skip_serializing_if = "Option::is_none")]
    pub no_wait: Option<bool>,
}
impl From<&IoArgoprojEventsV1alpha1AmqpQueueBindConfig>
    for IoArgoprojEventsV1alpha1AmqpQueueBindConfig
{
    fn from(value: &IoArgoprojEventsV1alpha1AmqpQueueBindConfig) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1AmqpQueueDeclareConfig {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub arguments: Option<String>,
    #[serde(
        rename = "autoDelete",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub auto_delete: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub durable: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub exclusive: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "noWait", default, skip_serializing_if = "Option::is_none")]
    pub no_wait: Option<bool>,
}
impl From<&IoArgoprojEventsV1alpha1AmqpQueueDeclareConfig>
    for IoArgoprojEventsV1alpha1AmqpQueueDeclareConfig
{
    fn from(value: &IoArgoprojEventsV1alpha1AmqpQueueDeclareConfig) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1ArgoWorkflowTrigger {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub args: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub operation: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source: Option<IoArgoprojEventsV1alpha1ArtifactLocation>,
}
impl From<&IoArgoprojEventsV1alpha1ArgoWorkflowTrigger>
    for IoArgoprojEventsV1alpha1ArgoWorkflowTrigger
{
    fn from(value: &IoArgoprojEventsV1alpha1ArgoWorkflowTrigger) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1ArtifactLocation {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configmap: Option<IoK8sApiCoreV1ConfigMapKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub file: Option<IoArgoprojEventsV1alpha1FileArtifact>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub git: Option<IoArgoprojEventsV1alpha1GitArtifact>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub inline: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resource: Option<IoArgoprojEventsV1alpha1Resource>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub s3: Option<IoArgoprojEventsV1alpha1S3Artifact>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<IoArgoprojEventsV1alpha1UrlArtifact>,
}
impl From<&IoArgoprojEventsV1alpha1ArtifactLocation> for IoArgoprojEventsV1alpha1ArtifactLocation {
    fn from(value: &IoArgoprojEventsV1alpha1ArtifactLocation) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1AwsLambdaTrigger {
    #[serde(rename = "accessKey", default, skip_serializing_if = "Option::is_none")]
    pub access_key: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "FunctionName refers to the name of the function to invoke."]
    #[serde(
        rename = "functionName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub function_name: Option<String>,
    #[doc = "Choose from the following options.\n\n   * RequestResponse (default) - Invoke the function synchronously. Keep\n   the connection open until the function returns a response or times out.\n   The API response includes the function response and additional data.\n\n   * Event - Invoke the function asynchronously. Send events that fail multiple\n   times to the function's dead-letter queue (if it's configured). The API\n   response only includes a status code.\n\n   * DryRun - Validate parameter values and verify that the user or role\n   has permission to invoke the function.\n+optional"]
    #[serde(
        rename = "invocationType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub invocation_type: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[doc = "Payload is the list of key-value extracted from an event payload to construct the request payload."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub payload: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub region: Option<String>,
    #[serde(rename = "roleARN", default, skip_serializing_if = "Option::is_none")]
    pub role_arn: Option<String>,
    #[serde(rename = "secretKey", default, skip_serializing_if = "Option::is_none")]
    pub secret_key: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1AwsLambdaTrigger> for IoArgoprojEventsV1alpha1AwsLambdaTrigger {
    fn from(value: &IoArgoprojEventsV1alpha1AwsLambdaTrigger) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1AzureEventHubsTrigger {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub fqdn: Option<String>,
    #[serde(rename = "hubName", default, skip_serializing_if = "Option::is_none")]
    pub hub_name: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[doc = "Payload is the list of key-value extracted from an event payload to construct the request payload."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub payload: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[serde(
        rename = "sharedAccessKey",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub shared_access_key: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "sharedAccessKeyName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub shared_access_key_name: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1AzureEventHubsTrigger>
    for IoArgoprojEventsV1alpha1AzureEventHubsTrigger
{
    fn from(value: &IoArgoprojEventsV1alpha1AzureEventHubsTrigger) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1AzureEventsHubEventSource {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub fqdn: Option<String>,
    #[serde(rename = "hubName", default, skip_serializing_if = "Option::is_none")]
    pub hub_name: Option<String>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(
        rename = "sharedAccessKey",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub shared_access_key: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "sharedAccessKeyName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub shared_access_key_name: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1AzureEventsHubEventSource>
    for IoArgoprojEventsV1alpha1AzureEventsHubEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1AzureEventsHubEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1Backoff {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration: Option<IoArgoprojEventsV1alpha1Int64OrString>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub factor: Option<IoArgoprojEventsV1alpha1Amount>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub jitter: Option<IoArgoprojEventsV1alpha1Amount>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub steps: Option<i64>,
}
impl From<&IoArgoprojEventsV1alpha1Backoff> for IoArgoprojEventsV1alpha1Backoff {
    fn from(value: &IoArgoprojEventsV1alpha1Backoff) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1BasicAuth {
    #[doc = "Password refers to the Kubernetes secret that holds the password required for basic auth."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "Username refers to the Kubernetes secret that holds the username required for basic auth."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub username: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1BasicAuth> for IoArgoprojEventsV1alpha1BasicAuth {
    fn from(value: &IoArgoprojEventsV1alpha1BasicAuth) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1BitbucketAuth {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub basic: Option<IoArgoprojEventsV1alpha1BitbucketBasicAuth>,
    #[serde(
        rename = "oauthToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub oauth_token: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1BitbucketAuth> for IoArgoprojEventsV1alpha1BitbucketAuth {
    fn from(value: &IoArgoprojEventsV1alpha1BitbucketAuth) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1BitbucketBasicAuth {
    #[doc = "Password refers to the K8s secret that holds the password."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "Username refers to the K8s secret that holds the username."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub username: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1BitbucketBasicAuth>
    for IoArgoprojEventsV1alpha1BitbucketBasicAuth
{
    fn from(value: &IoArgoprojEventsV1alpha1BitbucketBasicAuth) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1BitbucketEventSource {
    #[doc = "Auth information required to connect to Bitbucket."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auth: Option<IoArgoprojEventsV1alpha1BitbucketAuth>,
    #[serde(
        rename = "deleteHookOnFinish",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub delete_hook_on_finish: Option<bool>,
    #[doc = "Events this webhook is subscribed to."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub events: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
    #[serde(
        rename = "projectKey",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub project_key: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub repositories: Vec<IoArgoprojEventsV1alpha1BitbucketRepository>,
    #[serde(
        rename = "repositorySlug",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_slug: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub webhook: Option<IoArgoprojEventsV1alpha1WebhookContext>,
}
impl From<&IoArgoprojEventsV1alpha1BitbucketEventSource>
    for IoArgoprojEventsV1alpha1BitbucketEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1BitbucketEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1BitbucketRepository {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
    #[serde(
        rename = "repositorySlug",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_slug: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1BitbucketRepository>
    for IoArgoprojEventsV1alpha1BitbucketRepository
{
    fn from(value: &IoArgoprojEventsV1alpha1BitbucketRepository) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1BitbucketServerEventSource {
    #[serde(
        rename = "accessToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub access_token: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "bitbucketserverBaseURL",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub bitbucketserver_base_url: Option<String>,
    #[serde(
        rename = "deleteHookOnFinish",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub delete_hook_on_finish: Option<bool>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub events: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(
        rename = "projectKey",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub project_key: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub repositories: Vec<IoArgoprojEventsV1alpha1BitbucketServerRepository>,
    #[serde(
        rename = "repositorySlug",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_slug: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub webhook: Option<IoArgoprojEventsV1alpha1WebhookContext>,
    #[serde(
        rename = "webhookSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub webhook_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1BitbucketServerEventSource>
    for IoArgoprojEventsV1alpha1BitbucketServerEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1BitbucketServerEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1BitbucketServerRepository {
    #[serde(
        rename = "projectKey",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub project_key: Option<String>,
    #[serde(
        rename = "repositorySlug",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_slug: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1BitbucketServerRepository>
    for IoArgoprojEventsV1alpha1BitbucketServerRepository
{
    fn from(value: &IoArgoprojEventsV1alpha1BitbucketServerRepository) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1CalendarEventSource {
    #[doc = "ExclusionDates defines the list of DATE-TIME exceptions for recurring events."]
    #[serde(
        rename = "exclusionDates",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub exclusion_dates: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub interval: Option<String>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub persistence: Option<IoArgoprojEventsV1alpha1EventPersistence>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub schedule: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timezone: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1CalendarEventSource>
    for IoArgoprojEventsV1alpha1CalendarEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1CalendarEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1CatchupConfiguration {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    #[serde(
        rename = "maxDuration",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub max_duration: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1CatchupConfiguration>
    for IoArgoprojEventsV1alpha1CatchupConfiguration
{
    fn from(value: &IoArgoprojEventsV1alpha1CatchupConfiguration) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1Condition {
    #[serde(
        rename = "lastTransitionTime",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub last_transition_time: Option<IoK8sApimachineryPkgApisMetaV1Time>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub reason: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1Condition> for IoArgoprojEventsV1alpha1Condition {
    fn from(value: &IoArgoprojEventsV1alpha1Condition) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1ConditionsResetByTime {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cron: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timezone: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1ConditionsResetByTime>
    for IoArgoprojEventsV1alpha1ConditionsResetByTime
{
    fn from(value: &IoArgoprojEventsV1alpha1ConditionsResetByTime) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1ConditionsResetCriteria {
    #[serde(rename = "byTime", default, skip_serializing_if = "Option::is_none")]
    pub by_time: Option<IoArgoprojEventsV1alpha1ConditionsResetByTime>,
}
impl From<&IoArgoprojEventsV1alpha1ConditionsResetCriteria>
    for IoArgoprojEventsV1alpha1ConditionsResetCriteria
{
    fn from(value: &IoArgoprojEventsV1alpha1ConditionsResetCriteria) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1ConfigMapPersistence {
    #[serde(
        rename = "createIfNotExist",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub create_if_not_exist: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1ConfigMapPersistence>
    for IoArgoprojEventsV1alpha1ConfigMapPersistence
{
    fn from(value: &IoArgoprojEventsV1alpha1ConfigMapPersistence) -> Self {
        value.clone()
    }
}
#[doc = "CustomTrigger refers to the specification of the custom trigger."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1CustomTrigger {
    #[doc = "CertSecret refers to the secret that contains cert for secure connection between sensor and custom trigger gRPC server."]
    #[serde(
        rename = "certSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub cert_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "Parameters is the list of parameters that is applied to resolved custom trigger trigger object."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[doc = "Payload is the list of key-value extracted from an event payload to construct the request payload."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub payload: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub secure: Option<bool>,
    #[doc = "ServerNameOverride for the secure connection between sensor and custom trigger gRPC server."]
    #[serde(
        rename = "serverNameOverride",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub server_name_override: Option<String>,
    #[serde(rename = "serverURL", default, skip_serializing_if = "Option::is_none")]
    pub server_url: Option<String>,
    #[doc = "Spec is the custom trigger resource specification that custom trigger gRPC server knows how to interpret."]
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub spec: std::collections::HashMap<String, String>,
}
impl From<&IoArgoprojEventsV1alpha1CustomTrigger> for IoArgoprojEventsV1alpha1CustomTrigger {
    fn from(value: &IoArgoprojEventsV1alpha1CustomTrigger) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1DataFilter {
    #[doc = "Comparator compares the event data with a user given value.\nCan be \">=\", \">\", \"=\", \"!=\", \"<\", or \"<=\".\nIs optional, and if left blank treated as equality \"=\"."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comparator: Option<String>,
    #[doc = "Path is the JSONPath of the event's (JSON decoded) data key\nPath is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'.\nTo access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\\\'.\nSee https://github.com/tidwall/gjson#path-syntax for more information on how to use this."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<String>,
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<String>,
}
impl From<&IoArgoprojEventsV1alpha1DataFilter> for IoArgoprojEventsV1alpha1DataFilter {
    fn from(value: &IoArgoprojEventsV1alpha1DataFilter) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1EmitterEventSource {
    #[doc = "Broker URI to connect to."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub broker: Option<String>,
    #[serde(
        rename = "channelKey",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub channel_key: Option<String>,
    #[serde(
        rename = "channelName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub channel_name: Option<String>,
    #[serde(
        rename = "connectionBackoff",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub connection_backoff: Option<IoArgoprojEventsV1alpha1Backoff>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(rename = "jsonBody", default, skip_serializing_if = "Option::is_none")]
    pub json_body: Option<bool>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tls: Option<IoArgoprojEventsV1alpha1TlsConfig>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub username: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1EmitterEventSource>
    for IoArgoprojEventsV1alpha1EmitterEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1EmitterEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1EventContext {
    #[doc = "DataContentType - A MIME (RFC2046) string describing the media type of `data`."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub datacontenttype: Option<String>,
    #[doc = "ID of the event; must be non-empty and unique within the scope of the producer."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[doc = "Source - A URI describing the event producer."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source: Option<String>,
    #[doc = "SpecVersion - The version of the CloudEvents specification used by the io.argoproj.workflow.v1alpha1."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub specversion: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub subject: Option<String>,
    #[doc = "Time - A Timestamp when the event happened."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub time: Option<IoK8sApimachineryPkgApisMetaV1Time>,
    #[doc = "Type - The type of the occurrence which has happened."]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1EventContext> for IoArgoprojEventsV1alpha1EventContext {
    fn from(value: &IoArgoprojEventsV1alpha1EventContext) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1EventDependency {
    #[serde(rename = "eventName", default, skip_serializing_if = "Option::is_none")]
    pub event_name: Option<String>,
    #[serde(
        rename = "eventSourceName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub event_source_name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filters: Option<IoArgoprojEventsV1alpha1EventDependencyFilter>,
    #[doc = "FiltersLogicalOperator defines how different filters are evaluated together.\nAvailable values: and (&&), or (||)\nIs optional and if left blank treated as and (&&)."]
    #[serde(
        rename = "filtersLogicalOperator",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub filters_logical_operator: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub transform: Option<IoArgoprojEventsV1alpha1EventDependencyTransformer>,
}
impl From<&IoArgoprojEventsV1alpha1EventDependency> for IoArgoprojEventsV1alpha1EventDependency {
    fn from(value: &IoArgoprojEventsV1alpha1EventDependency) -> Self {
        value.clone()
    }
}
#[doc = "EventDependencyFilter defines filters and constraints for a io.argoproj.workflow.v1alpha1."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1EventDependencyFilter {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub context: Option<IoArgoprojEventsV1alpha1EventContext>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub data: Vec<IoArgoprojEventsV1alpha1DataFilter>,
    #[doc = "DataLogicalOperator defines how multiple Data filters (if defined) are evaluated together.\nAvailable values: and (&&), or (||)\nIs optional and if left blank treated as and (&&)."]
    #[serde(
        rename = "dataLogicalOperator",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub data_logical_operator: Option<String>,
    #[doc = "ExprLogicalOperator defines how multiple Exprs filters (if defined) are evaluated together.\nAvailable values: and (&&), or (||)\nIs optional and if left blank treated as and (&&)."]
    #[serde(
        rename = "exprLogicalOperator",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub expr_logical_operator: Option<String>,
    #[doc = "Exprs contains the list of expressions evaluated against the event payload."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub exprs: Vec<IoArgoprojEventsV1alpha1ExprFilter>,
    #[doc = "Script refers to a Lua script evaluated to determine the validity of an io.argoproj.workflow.v1alpha1."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub script: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub time: Option<IoArgoprojEventsV1alpha1TimeFilter>,
}
impl From<&IoArgoprojEventsV1alpha1EventDependencyFilter>
    for IoArgoprojEventsV1alpha1EventDependencyFilter
{
    fn from(value: &IoArgoprojEventsV1alpha1EventDependencyFilter) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1EventDependencyTransformer {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub jq: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub script: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1EventDependencyTransformer>
    for IoArgoprojEventsV1alpha1EventDependencyTransformer
{
    fn from(value: &IoArgoprojEventsV1alpha1EventDependencyTransformer) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1EventPersistence {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub catchup: Option<IoArgoprojEventsV1alpha1CatchupConfiguration>,
    #[serde(rename = "configMap", default, skip_serializing_if = "Option::is_none")]
    pub config_map: Option<IoArgoprojEventsV1alpha1ConfigMapPersistence>,
}
impl From<&IoArgoprojEventsV1alpha1EventPersistence> for IoArgoprojEventsV1alpha1EventPersistence {
    fn from(value: &IoArgoprojEventsV1alpha1EventPersistence) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1EventSource {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metadata: Option<IoK8sApimachineryPkgApisMetaV1ObjectMeta>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub spec: Option<IoArgoprojEventsV1alpha1EventSourceSpec>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<IoArgoprojEventsV1alpha1EventSourceStatus>,
}
impl From<&IoArgoprojEventsV1alpha1EventSource> for IoArgoprojEventsV1alpha1EventSource {
    fn from(value: &IoArgoprojEventsV1alpha1EventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1EventSourceFilter {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expression: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1EventSourceFilter>
    for IoArgoprojEventsV1alpha1EventSourceFilter
{
    fn from(value: &IoArgoprojEventsV1alpha1EventSourceFilter) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1EventSourceList {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub items: Vec<IoArgoprojEventsV1alpha1EventSource>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metadata: Option<IoK8sApimachineryPkgApisMetaV1ListMeta>,
}
impl From<&IoArgoprojEventsV1alpha1EventSourceList> for IoArgoprojEventsV1alpha1EventSourceList {
    fn from(value: &IoArgoprojEventsV1alpha1EventSourceList) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1EventSourceSpec {
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub amqp: std::collections::HashMap<String, IoArgoprojEventsV1alpha1AmqpEventSource>,
    #[serde(
        rename = "azureEventsHub",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub azure_events_hub:
        std::collections::HashMap<String, IoArgoprojEventsV1alpha1AzureEventsHubEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub bitbucket: std::collections::HashMap<String, IoArgoprojEventsV1alpha1BitbucketEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub bitbucketserver:
        std::collections::HashMap<String, IoArgoprojEventsV1alpha1BitbucketServerEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub calendar: std::collections::HashMap<String, IoArgoprojEventsV1alpha1CalendarEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub emitter: std::collections::HashMap<String, IoArgoprojEventsV1alpha1EmitterEventSource>,
    #[serde(
        rename = "eventBusName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub event_bus_name: Option<String>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub file: std::collections::HashMap<String, IoArgoprojEventsV1alpha1FileEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub generic: std::collections::HashMap<String, IoArgoprojEventsV1alpha1GenericEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub github: std::collections::HashMap<String, IoArgoprojEventsV1alpha1GithubEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub gitlab: std::collections::HashMap<String, IoArgoprojEventsV1alpha1GitlabEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub hdfs: std::collections::HashMap<String, IoArgoprojEventsV1alpha1HdfsEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub kafka: std::collections::HashMap<String, IoArgoprojEventsV1alpha1KafkaEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub minio: std::collections::HashMap<String, IoArgoprojEventsV1alpha1S3Artifact>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub mqtt: std::collections::HashMap<String, IoArgoprojEventsV1alpha1MqttEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub nats: std::collections::HashMap<String, IoArgoprojEventsV1alpha1NatsEventsSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub nsq: std::collections::HashMap<String, IoArgoprojEventsV1alpha1NsqEventSource>,
    #[serde(
        rename = "pubSub",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub pub_sub: std::collections::HashMap<String, IoArgoprojEventsV1alpha1PubSubEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub pulsar: std::collections::HashMap<String, IoArgoprojEventsV1alpha1PulsarEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub redis: std::collections::HashMap<String, IoArgoprojEventsV1alpha1RedisEventSource>,
    #[serde(
        rename = "redisStream",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub redis_stream:
        std::collections::HashMap<String, IoArgoprojEventsV1alpha1RedisStreamEventSource>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub replicas: Option<i64>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub resource: std::collections::HashMap<String, IoArgoprojEventsV1alpha1ResourceEventSource>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub service: Option<IoArgoprojEventsV1alpha1Service>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub slack: std::collections::HashMap<String, IoArgoprojEventsV1alpha1SlackEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub sns: std::collections::HashMap<String, IoArgoprojEventsV1alpha1SnsEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub sqs: std::collections::HashMap<String, IoArgoprojEventsV1alpha1SqsEventSource>,
    #[serde(
        rename = "storageGrid",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub storage_grid:
        std::collections::HashMap<String, IoArgoprojEventsV1alpha1StorageGridEventSource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub stripe: std::collections::HashMap<String, IoArgoprojEventsV1alpha1StripeEventSource>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<IoArgoprojEventsV1alpha1Template>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub webhook: std::collections::HashMap<String, IoArgoprojEventsV1alpha1WebhookEventSource>,
}
impl From<&IoArgoprojEventsV1alpha1EventSourceSpec> for IoArgoprojEventsV1alpha1EventSourceSpec {
    fn from(value: &IoArgoprojEventsV1alpha1EventSourceSpec) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1EventSourceStatus {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<IoArgoprojEventsV1alpha1Status>,
}
impl From<&IoArgoprojEventsV1alpha1EventSourceStatus>
    for IoArgoprojEventsV1alpha1EventSourceStatus
{
    fn from(value: &IoArgoprojEventsV1alpha1EventSourceStatus) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1ExprFilter {
    #[doc = "Expr refers to the expression that determines the outcome of the filter."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expr: Option<String>,
    #[doc = "Fields refers to set of keys that refer to the paths within event payload."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub fields: Vec<IoArgoprojEventsV1alpha1PayloadField>,
}
impl From<&IoArgoprojEventsV1alpha1ExprFilter> for IoArgoprojEventsV1alpha1ExprFilter {
    fn from(value: &IoArgoprojEventsV1alpha1ExprFilter) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1FileArtifact {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1FileArtifact> for IoArgoprojEventsV1alpha1FileArtifact {
    fn from(value: &IoArgoprojEventsV1alpha1FileArtifact) -> Self {
        value.clone()
    }
}
#[doc = "FileEventSource describes an event-source for file related events."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1FileEventSource {
    #[serde(rename = "eventType", default, skip_serializing_if = "Option::is_none")]
    pub event_type: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub polling: Option<bool>,
    #[serde(
        rename = "watchPathConfig",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub watch_path_config: Option<IoArgoprojEventsV1alpha1WatchPathConfig>,
}
impl From<&IoArgoprojEventsV1alpha1FileEventSource> for IoArgoprojEventsV1alpha1FileEventSource {
    fn from(value: &IoArgoprojEventsV1alpha1FileEventSource) -> Self {
        value.clone()
    }
}
#[doc = "GenericEventSource refers to a generic event source. It can be used to implement a custom event source."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1GenericEventSource {
    #[serde(
        rename = "authSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub auth_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub config: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[doc = "Insecure determines the type of connection."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub insecure: Option<bool>,
    #[serde(rename = "jsonBody", default, skip_serializing_if = "Option::is_none")]
    pub json_body: Option<bool>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[doc = "URL of the gRPC server that implements the event source."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1GenericEventSource>
    for IoArgoprojEventsV1alpha1GenericEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1GenericEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1GitArtifact {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub branch: Option<String>,
    #[doc = "Directory to clone the repository. We clone complete directory because GitArtifact is not limited to any specific Git service providers.\nHence we don't use any specific git provider client."]
    #[serde(
        rename = "cloneDirectory",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub clone_directory: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub creds: Option<IoArgoprojEventsV1alpha1GitCreds>,
    #[serde(rename = "filePath", default, skip_serializing_if = "Option::is_none")]
    pub file_path: Option<String>,
    #[serde(
        rename = "insecureIgnoreHostKey",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub insecure_ignore_host_key: Option<bool>,
    #[serde(rename = "ref", default, skip_serializing_if = "Option::is_none")]
    pub ref_: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub remote: Option<IoArgoprojEventsV1alpha1GitRemoteConfig>,
    #[serde(
        rename = "sshKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub ssh_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tag: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1GitArtifact> for IoArgoprojEventsV1alpha1GitArtifact {
    fn from(value: &IoArgoprojEventsV1alpha1GitArtifact) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1GitCreds {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub username: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1GitCreds> for IoArgoprojEventsV1alpha1GitCreds {
    fn from(value: &IoArgoprojEventsV1alpha1GitCreds) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1GitRemoteConfig {
    #[doc = "Name of the remote to fetch from."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "URLs the URLs of a remote repository. It must be non-empty. Fetch will\nalways use the first URL, while push will use all of them."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub urls: Vec<String>,
}
impl From<&IoArgoprojEventsV1alpha1GitRemoteConfig> for IoArgoprojEventsV1alpha1GitRemoteConfig {
    fn from(value: &IoArgoprojEventsV1alpha1GitRemoteConfig) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1GithubAppCreds {
    #[serde(rename = "appID", default, skip_serializing_if = "Option::is_none")]
    pub app_id: Option<String>,
    #[serde(
        rename = "installationID",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub installation_id: Option<String>,
    #[serde(
        rename = "privateKey",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub private_key: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1GithubAppCreds> for IoArgoprojEventsV1alpha1GithubAppCreds {
    fn from(value: &IoArgoprojEventsV1alpha1GithubAppCreds) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1GithubEventSource {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub active: Option<bool>,
    #[serde(rename = "apiToken", default, skip_serializing_if = "Option::is_none")]
    pub api_token: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "contentType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub content_type: Option<String>,
    #[serde(
        rename = "deleteHookOnFinish",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub delete_hook_on_finish: Option<bool>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub events: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(rename = "githubApp", default, skip_serializing_if = "Option::is_none")]
    pub github_app: Option<IoArgoprojEventsV1alpha1GithubAppCreds>,
    #[serde(
        rename = "githubBaseURL",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub github_base_url: Option<String>,
    #[serde(
        rename = "githubUploadURL",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub github_upload_url: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub insecure: Option<bool>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[doc = "Organizations holds the names of organizations (used for organization level webhooks). Not required if Repositories is set."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub organizations: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
    #[doc = "Repositories holds the information of repositories, which uses repo owner as the key,\nand list of repo names as the value. Not required if Organizations is set."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub repositories: Vec<IoArgoprojEventsV1alpha1OwnedRepositories>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub repository: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub webhook: Option<IoArgoprojEventsV1alpha1WebhookContext>,
    #[serde(
        rename = "webhookSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub webhook_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1GithubEventSource>
    for IoArgoprojEventsV1alpha1GithubEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1GithubEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1GitlabEventSource {
    #[serde(
        rename = "accessToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub access_token: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "deleteHookOnFinish",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub delete_hook_on_finish: Option<bool>,
    #[serde(
        rename = "enableSSLVerification",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub enable_ssl_verification: Option<bool>,
    #[doc = "Events are gitlab event to listen to.\nRefer https://github.com/xanzy/go-gitlab/blob/bf34eca5d13a9f4c3f501d8a97b8ac226d55e4d9/projects.go#L794."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub events: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(
        rename = "gitlabBaseURL",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub gitlab_base_url: Option<String>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(rename = "projectID", default, skip_serializing_if = "Option::is_none")]
    pub project_id: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub projects: Vec<String>,
    #[serde(
        rename = "secretToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub secret_token: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub webhook: Option<IoArgoprojEventsV1alpha1WebhookContext>,
}
impl From<&IoArgoprojEventsV1alpha1GitlabEventSource>
    for IoArgoprojEventsV1alpha1GitlabEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1GitlabEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1HdfsEventSource {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub addresses: Vec<String>,
    #[serde(
        rename = "checkInterval",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub check_interval: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[doc = "HDFSUser is the user to access HDFS file system.\nIt is ignored if either ccache or keytab is used."]
    #[serde(rename = "hdfsUser", default, skip_serializing_if = "Option::is_none")]
    pub hdfs_user: Option<String>,
    #[doc = "KrbCCacheSecret is the secret selector for Kerberos ccache\nEither ccache or keytab can be set to use Kerberos."]
    #[serde(
        rename = "krbCCacheSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_c_cache_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "KrbConfig is the configmap selector for Kerberos config as string\nIt must be set if either ccache or keytab is used."]
    #[serde(
        rename = "krbConfigConfigMap",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_config_config_map: Option<IoK8sApiCoreV1ConfigMapKeySelector>,
    #[doc = "KrbKeytabSecret is the secret selector for Kerberos keytab\nEither ccache or keytab can be set to use Kerberos."]
    #[serde(
        rename = "krbKeytabSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_keytab_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "KrbRealm is the Kerberos realm used with Kerberos keytab\nIt must be set if keytab is used."]
    #[serde(rename = "krbRealm", default, skip_serializing_if = "Option::is_none")]
    pub krb_realm: Option<String>,
    #[doc = "KrbServicePrincipalName is the principal name of Kerberos service\nIt must be set if either ccache or keytab is used."]
    #[serde(
        rename = "krbServicePrincipalName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_service_principal_name: Option<String>,
    #[doc = "KrbUsername is the Kerberos username used with Kerberos keytab\nIt must be set if keytab is used."]
    #[serde(
        rename = "krbUsername",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_username: Option<String>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
    #[serde(
        rename = "watchPathConfig",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub watch_path_config: Option<IoArgoprojEventsV1alpha1WatchPathConfig>,
}
impl From<&IoArgoprojEventsV1alpha1HdfsEventSource> for IoArgoprojEventsV1alpha1HdfsEventSource {
    fn from(value: &IoArgoprojEventsV1alpha1HdfsEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1HttpTrigger {
    #[serde(rename = "basicAuth", default, skip_serializing_if = "Option::is_none")]
    pub basic_auth: Option<IoArgoprojEventsV1alpha1BasicAuth>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub headers: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub method: Option<String>,
    #[doc = "Parameters is the list of key-value extracted from event's payload that are applied to\nthe HTTP trigger resource."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub payload: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[serde(
        rename = "secureHeaders",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub secure_headers: Vec<IoArgoprojEventsV1alpha1SecureHeader>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timeout: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tls: Option<IoArgoprojEventsV1alpha1TlsConfig>,
    #[doc = "URL refers to the URL to send HTTP request to."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1HttpTrigger> for IoArgoprojEventsV1alpha1HttpTrigger {
    fn from(value: &IoArgoprojEventsV1alpha1HttpTrigger) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1Int64OrString {
    #[serde(rename = "int64Val", default, skip_serializing_if = "Option::is_none")]
    pub int64_val: Option<String>,
    #[serde(rename = "strVal", default, skip_serializing_if = "Option::is_none")]
    pub str_val: Option<String>,
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1Int64OrString> for IoArgoprojEventsV1alpha1Int64OrString {
    fn from(value: &IoArgoprojEventsV1alpha1Int64OrString) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1K8sResourcePolicy {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub backoff: Option<IoArgoprojEventsV1alpha1Backoff>,
    #[serde(
        rename = "errorOnBackoffTimeout",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub error_on_backoff_timeout: Option<bool>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub labels: std::collections::HashMap<String, String>,
}
impl From<&IoArgoprojEventsV1alpha1K8sResourcePolicy>
    for IoArgoprojEventsV1alpha1K8sResourcePolicy
{
    fn from(value: &IoArgoprojEventsV1alpha1K8sResourcePolicy) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1KafkaConsumerGroup {
    #[serde(rename = "groupName", default, skip_serializing_if = "Option::is_none")]
    pub group_name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oldest: Option<bool>,
    #[serde(
        rename = "rebalanceStrategy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub rebalance_strategy: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1KafkaConsumerGroup>
    for IoArgoprojEventsV1alpha1KafkaConsumerGroup
{
    fn from(value: &IoArgoprojEventsV1alpha1KafkaConsumerGroup) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1KafkaEventSource {
    #[doc = "Yaml format Sarama config for Kafka connection.\nIt follows the struct of sarama.Config. See https://github.com/Shopify/sarama/blob/main/config.go\ne.g.\n\nconsumer:\n  fetch:\n    min: 1\nnet:\n  MaxOpenRequests: 5\n\n+optional"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub config: Option<String>,
    #[doc = "Backoff holds parameters applied to connection."]
    #[serde(
        rename = "connectionBackoff",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub connection_backoff: Option<IoArgoprojEventsV1alpha1Backoff>,
    #[serde(
        rename = "consumerGroup",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub consumer_group: Option<IoArgoprojEventsV1alpha1KafkaConsumerGroup>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(rename = "jsonBody", default, skip_serializing_if = "Option::is_none")]
    pub json_body: Option<bool>,
    #[serde(
        rename = "limitEventsPerSecond",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub limit_events_per_second: Option<String>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub partition: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sasl: Option<IoArgoprojEventsV1alpha1SaslConfig>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tls: Option<IoArgoprojEventsV1alpha1TlsConfig>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub topic: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1KafkaEventSource> for IoArgoprojEventsV1alpha1KafkaEventSource {
    fn from(value: &IoArgoprojEventsV1alpha1KafkaEventSource) -> Self {
        value.clone()
    }
}
#[doc = "KafkaTrigger refers to the specification of the Kafka trigger."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1KafkaTrigger {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub compress: Option<bool>,
    #[serde(
        rename = "flushFrequency",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub flush_frequency: Option<i64>,
    #[doc = "Parameters is the list of parameters that is applied to resolved Kafka trigger object."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[doc = "Partition to write data to."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub partition: Option<i64>,
    #[doc = "The partitioning key for the messages put on the Kafka topic.\nDefaults to broker url.\n+optional."]
    #[serde(
        rename = "partitioningKey",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub partitioning_key: Option<String>,
    #[doc = "Payload is the list of key-value extracted from an event payload to construct the request payload."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub payload: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[doc = "RequiredAcks used in producer to tell the broker how many replica acknowledgements\nDefaults to 1 (Only wait for the leader to ack).\n+optional."]
    #[serde(
        rename = "requiredAcks",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub required_acks: Option<i64>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sasl: Option<IoArgoprojEventsV1alpha1SaslConfig>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tls: Option<IoArgoprojEventsV1alpha1TlsConfig>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub topic: Option<String>,
    #[doc = "URL of the Kafka broker, multiple URLs separated by comma."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1KafkaTrigger> for IoArgoprojEventsV1alpha1KafkaTrigger {
    fn from(value: &IoArgoprojEventsV1alpha1KafkaTrigger) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1LogTrigger {
    #[serde(
        rename = "intervalSeconds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub interval_seconds: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1LogTrigger> for IoArgoprojEventsV1alpha1LogTrigger {
    fn from(value: &IoArgoprojEventsV1alpha1LogTrigger) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1Metadata {
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub annotations: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub labels: std::collections::HashMap<String, String>,
}
impl From<&IoArgoprojEventsV1alpha1Metadata> for IoArgoprojEventsV1alpha1Metadata {
    fn from(value: &IoArgoprojEventsV1alpha1Metadata) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1MqttEventSource {
    #[serde(rename = "clientId", default, skip_serializing_if = "Option::is_none")]
    pub client_id: Option<String>,
    #[doc = "ConnectionBackoff holds backoff applied to connection."]
    #[serde(
        rename = "connectionBackoff",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub connection_backoff: Option<IoArgoprojEventsV1alpha1Backoff>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(rename = "jsonBody", default, skip_serializing_if = "Option::is_none")]
    pub json_body: Option<bool>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tls: Option<IoArgoprojEventsV1alpha1TlsConfig>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub topic: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1MqttEventSource> for IoArgoprojEventsV1alpha1MqttEventSource {
    fn from(value: &IoArgoprojEventsV1alpha1MqttEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1NatsAuth {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub basic: Option<IoArgoprojEventsV1alpha1BasicAuth>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub credential: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub nkey: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub token: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1NatsAuth> for IoArgoprojEventsV1alpha1NatsAuth {
    fn from(value: &IoArgoprojEventsV1alpha1NatsAuth) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1NatsEventsSource {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auth: Option<IoArgoprojEventsV1alpha1NatsAuth>,
    #[doc = "ConnectionBackoff holds backoff applied to connection."]
    #[serde(
        rename = "connectionBackoff",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub connection_backoff: Option<IoArgoprojEventsV1alpha1Backoff>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(rename = "jsonBody", default, skip_serializing_if = "Option::is_none")]
    pub json_body: Option<bool>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub subject: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tls: Option<IoArgoprojEventsV1alpha1TlsConfig>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1NatsEventsSource> for IoArgoprojEventsV1alpha1NatsEventsSource {
    fn from(value: &IoArgoprojEventsV1alpha1NatsEventsSource) -> Self {
        value.clone()
    }
}
#[doc = "NATSTrigger refers to the specification of the NATS trigger."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1NatsTrigger {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub payload: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[doc = "Name of the subject to put message on."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub subject: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tls: Option<IoArgoprojEventsV1alpha1TlsConfig>,
    #[doc = "URL of the NATS cluster."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1NatsTrigger> for IoArgoprojEventsV1alpha1NatsTrigger {
    fn from(value: &IoArgoprojEventsV1alpha1NatsTrigger) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1NsqEventSource {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub channel: Option<String>,
    #[serde(
        rename = "connectionBackoff",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub connection_backoff: Option<IoArgoprojEventsV1alpha1Backoff>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(
        rename = "hostAddress",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub host_address: Option<String>,
    #[serde(rename = "jsonBody", default, skip_serializing_if = "Option::is_none")]
    pub json_body: Option<bool>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tls: Option<IoArgoprojEventsV1alpha1TlsConfig>,
    #[doc = "Topic to subscribe to."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub topic: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1NsqEventSource> for IoArgoprojEventsV1alpha1NsqEventSource {
    fn from(value: &IoArgoprojEventsV1alpha1NsqEventSource) -> Self {
        value.clone()
    }
}
#[doc = "OpenWhiskTrigger refers to the specification of the OpenWhisk trigger."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1OpenWhiskTrigger {
    #[doc = "Name of the action/function."]
    #[serde(
        rename = "actionName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub action_name: Option<String>,
    #[serde(rename = "authToken", default, skip_serializing_if = "Option::is_none")]
    pub auth_token: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "Host URL of the OpenWhisk."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host: Option<String>,
    #[doc = "Namespace for the action.\nDefaults to \"_\".\n+optional."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[doc = "Payload is the list of key-value extracted from an event payload to construct the request payload."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub payload: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1OpenWhiskTrigger> for IoArgoprojEventsV1alpha1OpenWhiskTrigger {
    fn from(value: &IoArgoprojEventsV1alpha1OpenWhiskTrigger) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1OwnedRepositories {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub names: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1OwnedRepositories>
    for IoArgoprojEventsV1alpha1OwnedRepositories
{
    fn from(value: &IoArgoprojEventsV1alpha1OwnedRepositories) -> Self {
        value.clone()
    }
}
#[doc = "PayloadField binds a value at path within the event payload against a name."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1PayloadField {
    #[doc = "Name acts as key that holds the value at the path."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Path is the JSONPath of the event's (JSON decoded) data key\nPath is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'.\nTo access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\\\'.\nSee https://github.com/tidwall/gjson#path-syntax for more information on how to use this."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1PayloadField> for IoArgoprojEventsV1alpha1PayloadField {
    fn from(value: &IoArgoprojEventsV1alpha1PayloadField) -> Self {
        value.clone()
    }
}
#[doc = "PubSubEventSource refers to event-source for GCP PubSub related events."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1PubSubEventSource {
    #[serde(
        rename = "credentialSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub credential_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "deleteSubscriptionOnFinish",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub delete_subscription_on_finish: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(rename = "jsonBody", default, skip_serializing_if = "Option::is_none")]
    pub json_body: Option<bool>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(rename = "projectID", default, skip_serializing_if = "Option::is_none")]
    pub project_id: Option<String>,
    #[serde(
        rename = "subscriptionID",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub subscription_id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub topic: Option<String>,
    #[serde(
        rename = "topicProjectID",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub topic_project_id: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1PubSubEventSource>
    for IoArgoprojEventsV1alpha1PubSubEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1PubSubEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1PulsarEventSource {
    #[serde(
        rename = "authTokenSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub auth_token_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "connectionBackoff",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub connection_backoff: Option<IoArgoprojEventsV1alpha1Backoff>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(rename = "jsonBody", default, skip_serializing_if = "Option::is_none")]
    pub json_body: Option<bool>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tls: Option<IoArgoprojEventsV1alpha1TlsConfig>,
    #[serde(
        rename = "tlsAllowInsecureConnection",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub tls_allow_insecure_connection: Option<bool>,
    #[serde(
        rename = "tlsTrustCertsSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub tls_trust_certs_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "tlsValidateHostname",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub tls_validate_hostname: Option<bool>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub topics: Vec<String>,
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1PulsarEventSource>
    for IoArgoprojEventsV1alpha1PulsarEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1PulsarEventSource) -> Self {
        value.clone()
    }
}
#[doc = "PulsarTrigger refers to the specification of the Pulsar trigger."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1PulsarTrigger {
    #[serde(
        rename = "authTokenSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub auth_token_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "connectionBackoff",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub connection_backoff: Option<IoArgoprojEventsV1alpha1Backoff>,
    #[doc = "Parameters is the list of parameters that is applied to resolved Kafka trigger object."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[doc = "Payload is the list of key-value extracted from an event payload to construct the request payload."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub payload: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tls: Option<IoArgoprojEventsV1alpha1TlsConfig>,
    #[serde(
        rename = "tlsAllowInsecureConnection",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub tls_allow_insecure_connection: Option<bool>,
    #[serde(
        rename = "tlsTrustCertsSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub tls_trust_certs_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "tlsValidateHostname",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub tls_validate_hostname: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub topic: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1PulsarTrigger> for IoArgoprojEventsV1alpha1PulsarTrigger {
    fn from(value: &IoArgoprojEventsV1alpha1PulsarTrigger) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1RateLimit {
    #[serde(
        rename = "requestsPerUnit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub requests_per_unit: Option<i64>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub unit: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1RateLimit> for IoArgoprojEventsV1alpha1RateLimit {
    fn from(value: &IoArgoprojEventsV1alpha1RateLimit) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1RedisEventSource {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub channels: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub db: Option<i64>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(
        rename = "hostAddress",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub host_address: Option<String>,
    #[serde(rename = "jsonBody", default, skip_serializing_if = "Option::is_none")]
    pub json_body: Option<bool>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tls: Option<IoArgoprojEventsV1alpha1TlsConfig>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub username: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1RedisEventSource> for IoArgoprojEventsV1alpha1RedisEventSource {
    fn from(value: &IoArgoprojEventsV1alpha1RedisEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1RedisStreamEventSource {
    #[serde(
        rename = "consumerGroup",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub consumer_group: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub db: Option<i64>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(
        rename = "hostAddress",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub host_address: Option<String>,
    #[serde(
        rename = "maxMsgCountPerRead",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub max_msg_count_per_read: Option<i64>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "Streams to look for entries. XREADGROUP is used on all streams using a single consumer group."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub streams: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tls: Option<IoArgoprojEventsV1alpha1TlsConfig>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub username: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1RedisStreamEventSource>
    for IoArgoprojEventsV1alpha1RedisStreamEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1RedisStreamEventSource) -> Self {
        value.clone()
    }
}
#[doc = "Resource represent arbitrary structured data."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1Resource {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1Resource> for IoArgoprojEventsV1alpha1Resource {
    fn from(value: &IoArgoprojEventsV1alpha1Resource) -> Self {
        value.clone()
    }
}
#[doc = "ResourceEventSource refers to a event-source for K8s resource related events."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1ResourceEventSource {
    #[doc = "EventTypes is the list of event type to watch.\nPossible values are - ADD, UPDATE and DELETE."]
    #[serde(rename = "eventTypes", default, skip_serializing_if = "Vec::is_empty")]
    pub event_types: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1ResourceFilter>,
    #[serde(
        rename = "groupVersionResource",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub group_version_resource: Option<IoK8sApimachineryPkgApisMetaV1GroupVersionResource>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1ResourceEventSource>
    for IoArgoprojEventsV1alpha1ResourceEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1ResourceEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1ResourceFilter {
    #[serde(
        rename = "afterStart",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub after_start: Option<bool>,
    #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")]
    pub created_by: Option<IoK8sApimachineryPkgApisMetaV1Time>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub fields: Vec<IoArgoprojEventsV1alpha1Selector>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub labels: Vec<IoArgoprojEventsV1alpha1Selector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub prefix: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1ResourceFilter> for IoArgoprojEventsV1alpha1ResourceFilter {
    fn from(value: &IoArgoprojEventsV1alpha1ResourceFilter) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1S3Artifact {
    #[serde(rename = "accessKey", default, skip_serializing_if = "Option::is_none")]
    pub access_key: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bucket: Option<IoArgoprojEventsV1alpha1S3Bucket>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoint: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub events: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1S3Filter>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub insecure: Option<bool>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub region: Option<String>,
    #[serde(rename = "secretKey", default, skip_serializing_if = "Option::is_none")]
    pub secret_key: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1S3Artifact> for IoArgoprojEventsV1alpha1S3Artifact {
    fn from(value: &IoArgoprojEventsV1alpha1S3Artifact) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1S3Bucket {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub key: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1S3Bucket> for IoArgoprojEventsV1alpha1S3Bucket {
    fn from(value: &IoArgoprojEventsV1alpha1S3Bucket) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1S3Filter {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub prefix: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub suffix: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1S3Filter> for IoArgoprojEventsV1alpha1S3Filter {
    fn from(value: &IoArgoprojEventsV1alpha1S3Filter) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1SaslConfig {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mechanism: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub user: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1SaslConfig> for IoArgoprojEventsV1alpha1SaslConfig {
    fn from(value: &IoArgoprojEventsV1alpha1SaslConfig) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1SecureHeader {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "valueFrom", default, skip_serializing_if = "Option::is_none")]
    pub value_from: Option<IoArgoprojEventsV1alpha1ValueFromSource>,
}
impl From<&IoArgoprojEventsV1alpha1SecureHeader> for IoArgoprojEventsV1alpha1SecureHeader {
    fn from(value: &IoArgoprojEventsV1alpha1SecureHeader) -> Self {
        value.clone()
    }
}
#[doc = "Selector represents conditional operation to select K8s objects."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1Selector {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub key: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub operation: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1Selector> for IoArgoprojEventsV1alpha1Selector {
    fn from(value: &IoArgoprojEventsV1alpha1Selector) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1Sensor {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metadata: Option<IoK8sApimachineryPkgApisMetaV1ObjectMeta>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub spec: Option<IoArgoprojEventsV1alpha1SensorSpec>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<IoArgoprojEventsV1alpha1SensorStatus>,
}
impl From<&IoArgoprojEventsV1alpha1Sensor> for IoArgoprojEventsV1alpha1Sensor {
    fn from(value: &IoArgoprojEventsV1alpha1Sensor) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1SensorList {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub items: Vec<IoArgoprojEventsV1alpha1Sensor>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metadata: Option<IoK8sApimachineryPkgApisMetaV1ListMeta>,
}
impl From<&IoArgoprojEventsV1alpha1SensorList> for IoArgoprojEventsV1alpha1SensorList {
    fn from(value: &IoArgoprojEventsV1alpha1SensorList) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1SensorSpec {
    #[doc = "Dependencies is a list of the events that this sensor is dependent on."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub dependencies: Vec<IoArgoprojEventsV1alpha1EventDependency>,
    #[doc = "ErrorOnFailedRound if set to true, marks sensor state as `error` if the previous trigger round fails.\nOnce sensor state is set to `error`, no further triggers will be processed."]
    #[serde(
        rename = "errorOnFailedRound",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub error_on_failed_round: Option<bool>,
    #[serde(
        rename = "eventBusName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub event_bus_name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub replicas: Option<i64>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<IoArgoprojEventsV1alpha1Template>,
    #[doc = "Triggers is a list of the things that this sensor evokes. These are the outputs from this sensor."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub triggers: Vec<IoArgoprojEventsV1alpha1Trigger>,
}
impl From<&IoArgoprojEventsV1alpha1SensorSpec> for IoArgoprojEventsV1alpha1SensorSpec {
    fn from(value: &IoArgoprojEventsV1alpha1SensorSpec) -> Self {
        value.clone()
    }
}
#[doc = "SensorStatus contains information about the status of a sensor."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1SensorStatus {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<IoArgoprojEventsV1alpha1Status>,
}
impl From<&IoArgoprojEventsV1alpha1SensorStatus> for IoArgoprojEventsV1alpha1SensorStatus {
    fn from(value: &IoArgoprojEventsV1alpha1SensorStatus) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1Service {
    #[serde(rename = "clusterIP", default, skip_serializing_if = "Option::is_none")]
    pub cluster_ip: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub ports: Vec<IoK8sApiCoreV1ServicePort>,
}
impl From<&IoArgoprojEventsV1alpha1Service> for IoArgoprojEventsV1alpha1Service {
    fn from(value: &IoArgoprojEventsV1alpha1Service) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1SlackEventSource {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(
        rename = "signingSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub signing_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub token: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub webhook: Option<IoArgoprojEventsV1alpha1WebhookContext>,
}
impl From<&IoArgoprojEventsV1alpha1SlackEventSource> for IoArgoprojEventsV1alpha1SlackEventSource {
    fn from(value: &IoArgoprojEventsV1alpha1SlackEventSource) -> Self {
        value.clone()
    }
}
#[doc = "SlackTrigger refers to the specification of the slack notification trigger."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1SlackTrigger {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub channel: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[doc = "SlackToken refers to the Kubernetes secret that holds the slack token required to send messages."]
    #[serde(
        rename = "slackToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub slack_token: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1SlackTrigger> for IoArgoprojEventsV1alpha1SlackTrigger {
    fn from(value: &IoArgoprojEventsV1alpha1SlackTrigger) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1SnsEventSource {
    #[serde(rename = "accessKey", default, skip_serializing_if = "Option::is_none")]
    pub access_key: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoint: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub region: Option<String>,
    #[serde(rename = "roleARN", default, skip_serializing_if = "Option::is_none")]
    pub role_arn: Option<String>,
    #[serde(rename = "secretKey", default, skip_serializing_if = "Option::is_none")]
    pub secret_key: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(rename = "topicArn", default, skip_serializing_if = "Option::is_none")]
    pub topic_arn: Option<String>,
    #[serde(
        rename = "validateSignature",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub validate_signature: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub webhook: Option<IoArgoprojEventsV1alpha1WebhookContext>,
}
impl From<&IoArgoprojEventsV1alpha1SnsEventSource> for IoArgoprojEventsV1alpha1SnsEventSource {
    fn from(value: &IoArgoprojEventsV1alpha1SnsEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1SqsEventSource {
    #[serde(rename = "accessKey", default, skip_serializing_if = "Option::is_none")]
    pub access_key: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub dlq: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoint: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(rename = "jsonBody", default, skip_serializing_if = "Option::is_none")]
    pub json_body: Option<bool>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub queue: Option<String>,
    #[serde(
        rename = "queueAccountId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub queue_account_id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub region: Option<String>,
    #[serde(rename = "roleARN", default, skip_serializing_if = "Option::is_none")]
    pub role_arn: Option<String>,
    #[serde(rename = "secretKey", default, skip_serializing_if = "Option::is_none")]
    pub secret_key: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "sessionToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub session_token: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "WaitTimeSeconds is The duration (in seconds) for which the call waits for a message to arrive\nin the queue before returning."]
    #[serde(
        rename = "waitTimeSeconds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub wait_time_seconds: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1SqsEventSource> for IoArgoprojEventsV1alpha1SqsEventSource {
    fn from(value: &IoArgoprojEventsV1alpha1SqsEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1StandardK8sTrigger {
    #[serde(
        rename = "liveObject",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub live_object: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub operation: Option<String>,
    #[doc = "Parameters is the list of parameters that is applied to resolved K8s trigger object."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[serde(
        rename = "patchStrategy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub patch_strategy: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source: Option<IoArgoprojEventsV1alpha1ArtifactLocation>,
}
impl From<&IoArgoprojEventsV1alpha1StandardK8sTrigger>
    for IoArgoprojEventsV1alpha1StandardK8sTrigger
{
    fn from(value: &IoArgoprojEventsV1alpha1StandardK8sTrigger) -> Self {
        value.clone()
    }
}
#[doc = "Status is a common structure which can be used for Status field."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1Status {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub conditions: Vec<IoArgoprojEventsV1alpha1Condition>,
}
impl From<&IoArgoprojEventsV1alpha1Status> for IoArgoprojEventsV1alpha1Status {
    fn from(value: &IoArgoprojEventsV1alpha1Status) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1StatusPolicy {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub allow: Vec<i32>,
}
impl From<&IoArgoprojEventsV1alpha1StatusPolicy> for IoArgoprojEventsV1alpha1StatusPolicy {
    fn from(value: &IoArgoprojEventsV1alpha1StatusPolicy) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1StorageGridEventSource {
    #[doc = "APIURL is the url of the storagegrid api."]
    #[serde(rename = "apiURL", default, skip_serializing_if = "Option::is_none")]
    pub api_url: Option<String>,
    #[serde(rename = "authToken", default, skip_serializing_if = "Option::is_none")]
    pub auth_token: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "Name of the bucket to register notifications for."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bucket: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub events: Vec<String>,
    #[doc = "Filter on object key which caused the notification."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1StorageGridFilter>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub region: Option<String>,
    #[serde(rename = "topicArn", default, skip_serializing_if = "Option::is_none")]
    pub topic_arn: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub webhook: Option<IoArgoprojEventsV1alpha1WebhookContext>,
}
impl From<&IoArgoprojEventsV1alpha1StorageGridEventSource>
    for IoArgoprojEventsV1alpha1StorageGridEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1StorageGridEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1StorageGridFilter {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub prefix: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub suffix: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1StorageGridFilter>
    for IoArgoprojEventsV1alpha1StorageGridFilter
{
    fn from(value: &IoArgoprojEventsV1alpha1StorageGridFilter) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1StripeEventSource {
    #[serde(rename = "apiKey", default, skip_serializing_if = "Option::is_none")]
    pub api_key: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "createWebhook",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub create_webhook: Option<bool>,
    #[serde(rename = "eventFilter", default, skip_serializing_if = "Vec::is_empty")]
    pub event_filter: Vec<String>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub webhook: Option<IoArgoprojEventsV1alpha1WebhookContext>,
}
impl From<&IoArgoprojEventsV1alpha1StripeEventSource>
    for IoArgoprojEventsV1alpha1StripeEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1StripeEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1Template {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub affinity: Option<IoK8sApiCoreV1Affinity>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub container: Option<IoK8sApiCoreV1Container>,
    #[serde(
        rename = "imagePullSecrets",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub image_pull_secrets: Vec<IoK8sApiCoreV1LocalObjectReference>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metadata: Option<IoArgoprojEventsV1alpha1Metadata>,
    #[serde(
        rename = "nodeSelector",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub node_selector: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub priority: Option<i64>,
    #[serde(
        rename = "priorityClassName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub priority_class_name: Option<String>,
    #[serde(
        rename = "securityContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub security_context: Option<IoK8sApiCoreV1PodSecurityContext>,
    #[serde(
        rename = "serviceAccountName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_account_name: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub tolerations: Vec<IoK8sApiCoreV1Toleration>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub volumes: Vec<IoK8sApiCoreV1Volume>,
}
impl From<&IoArgoprojEventsV1alpha1Template> for IoArgoprojEventsV1alpha1Template {
    fn from(value: &IoArgoprojEventsV1alpha1Template) -> Self {
        value.clone()
    }
}
#[doc = "TimeFilter describes a window in time.\nIt filters out events that occur outside the time limits.\nIn other words, only events that occur after Start and before Stop\nwill pass this filter."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1TimeFilter {
    #[doc = "Start is the beginning of a time window in UTC.\nBefore this time, events for this dependency are ignored.\nFormat is hh:mm:ss."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub start: Option<String>,
    #[doc = "Stop is the end of a time window in UTC.\nAfter or equal to this time, events for this dependency are ignored and\nFormat is hh:mm:ss.\nIf it is smaller than Start, it is treated as next day of Start\n(e.g.: 22:00:00-01:00:00 means 22:00:00-25:00:00)."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub stop: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1TimeFilter> for IoArgoprojEventsV1alpha1TimeFilter {
    fn from(value: &IoArgoprojEventsV1alpha1TimeFilter) -> Self {
        value.clone()
    }
}
#[doc = "TLSConfig refers to TLS configuration for a client."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1TlsConfig {
    #[serde(
        rename = "caCertSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub ca_cert_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "clientCertSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub client_cert_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "clientKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub client_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "insecureSkipVerify",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub insecure_skip_verify: Option<bool>,
}
impl From<&IoArgoprojEventsV1alpha1TlsConfig> for IoArgoprojEventsV1alpha1TlsConfig {
    fn from(value: &IoArgoprojEventsV1alpha1TlsConfig) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1Trigger {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojEventsV1alpha1TriggerParameter>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub policy: Option<IoArgoprojEventsV1alpha1TriggerPolicy>,
    #[serde(rename = "rateLimit", default, skip_serializing_if = "Option::is_none")]
    pub rate_limit: Option<IoArgoprojEventsV1alpha1RateLimit>,
    #[serde(
        rename = "retryStrategy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub retry_strategy: Option<IoArgoprojEventsV1alpha1Backoff>,
    #[doc = "Template describes the trigger specification."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<IoArgoprojEventsV1alpha1TriggerTemplate>,
}
impl From<&IoArgoprojEventsV1alpha1Trigger> for IoArgoprojEventsV1alpha1Trigger {
    fn from(value: &IoArgoprojEventsV1alpha1Trigger) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1TriggerParameter {
    #[doc = "Dest is the JSONPath of a resource key.\nA path is a series of keys separated by a dot. The colon character can be escaped with '.'\nThe -1 key can be used to append a value to an existing array.\nSee https://github.com/tidwall/sjson#path-syntax for more information about how this is used."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub dest: Option<String>,
    #[doc = "Operation is what to do with the existing value at Dest, whether to\n'prepend', 'overwrite', or 'append' it."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub operation: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub src: Option<IoArgoprojEventsV1alpha1TriggerParameterSource>,
}
impl From<&IoArgoprojEventsV1alpha1TriggerParameter> for IoArgoprojEventsV1alpha1TriggerParameter {
    fn from(value: &IoArgoprojEventsV1alpha1TriggerParameter) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1TriggerParameterSource {
    #[doc = "ContextKey is the JSONPath of the event's (JSON decoded) context key\nContextKey is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'.\nTo access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\\\'.\nSee https://github.com/tidwall/gjson#path-syntax for more information on how to use this."]
    #[serde(
        rename = "contextKey",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub context_key: Option<String>,
    #[serde(
        rename = "contextTemplate",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub context_template: Option<String>,
    #[doc = "DataKey is the JSONPath of the event's (JSON decoded) data key\nDataKey is a series of keys separated by a dot. A key may contain wildcard characters '*' and '?'.\nTo access an array value use the index as the key. The dot and wildcard characters can be escaped with '\\\\'.\nSee https://github.com/tidwall/gjson#path-syntax for more information on how to use this."]
    #[serde(rename = "dataKey", default, skip_serializing_if = "Option::is_none")]
    pub data_key: Option<String>,
    #[serde(
        rename = "dataTemplate",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub data_template: Option<String>,
    #[doc = "DependencyName refers to the name of the dependency. The event which is stored for this dependency is used as payload\nfor the parameterization. Make sure to refer to one of the dependencies you have defined under Dependencies list."]
    #[serde(
        rename = "dependencyName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub dependency_name: Option<String>,
    #[doc = "Value is the default literal value to use for this parameter source\nThis is only used if the DataKey is invalid.\nIf the DataKey is invalid and this is not defined, this param source will produce an error."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1TriggerParameterSource>
    for IoArgoprojEventsV1alpha1TriggerParameterSource
{
    fn from(value: &IoArgoprojEventsV1alpha1TriggerParameterSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1TriggerPolicy {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub k8s: Option<IoArgoprojEventsV1alpha1K8sResourcePolicy>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<IoArgoprojEventsV1alpha1StatusPolicy>,
}
impl From<&IoArgoprojEventsV1alpha1TriggerPolicy> for IoArgoprojEventsV1alpha1TriggerPolicy {
    fn from(value: &IoArgoprojEventsV1alpha1TriggerPolicy) -> Self {
        value.clone()
    }
}
#[doc = "TriggerTemplate is the template that describes trigger specification."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1TriggerTemplate {
    #[serde(
        rename = "argoWorkflow",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub argo_workflow: Option<IoArgoprojEventsV1alpha1ArgoWorkflowTrigger>,
    #[serde(rename = "awsLambda", default, skip_serializing_if = "Option::is_none")]
    pub aws_lambda: Option<IoArgoprojEventsV1alpha1AwsLambdaTrigger>,
    #[serde(
        rename = "azureEventHubs",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub azure_event_hubs: Option<IoArgoprojEventsV1alpha1AzureEventHubsTrigger>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub conditions: Option<String>,
    #[serde(
        rename = "conditionsReset",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub conditions_reset: Vec<IoArgoprojEventsV1alpha1ConditionsResetCriteria>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub custom: Option<IoArgoprojEventsV1alpha1CustomTrigger>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub http: Option<IoArgoprojEventsV1alpha1HttpTrigger>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub k8s: Option<IoArgoprojEventsV1alpha1StandardK8sTrigger>,
    #[doc = "Kafka refers to the trigger designed to place messages on Kafka topic.\n+optional."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kafka: Option<IoArgoprojEventsV1alpha1KafkaTrigger>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub log: Option<IoArgoprojEventsV1alpha1LogTrigger>,
    #[doc = "Name is a unique name of the action to take."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "NATS refers to the trigger designed to place message on NATS subject.\n+optional."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub nats: Option<IoArgoprojEventsV1alpha1NatsTrigger>,
    #[serde(rename = "openWhisk", default, skip_serializing_if = "Option::is_none")]
    pub open_whisk: Option<IoArgoprojEventsV1alpha1OpenWhiskTrigger>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pulsar: Option<IoArgoprojEventsV1alpha1PulsarTrigger>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub slack: Option<IoArgoprojEventsV1alpha1SlackTrigger>,
}
impl From<&IoArgoprojEventsV1alpha1TriggerTemplate> for IoArgoprojEventsV1alpha1TriggerTemplate {
    fn from(value: &IoArgoprojEventsV1alpha1TriggerTemplate) -> Self {
        value.clone()
    }
}
#[doc = "URLArtifact contains information about an artifact at an http endpoint."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1UrlArtifact {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[serde(
        rename = "verifyCert",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub verify_cert: Option<bool>,
}
impl From<&IoArgoprojEventsV1alpha1UrlArtifact> for IoArgoprojEventsV1alpha1UrlArtifact {
    fn from(value: &IoArgoprojEventsV1alpha1UrlArtifact) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1ValueFromSource {
    #[serde(
        rename = "configMapKeyRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub config_map_key_ref: Option<IoK8sApiCoreV1ConfigMapKeySelector>,
    #[serde(
        rename = "secretKeyRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub secret_key_ref: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojEventsV1alpha1ValueFromSource> for IoArgoprojEventsV1alpha1ValueFromSource {
    fn from(value: &IoArgoprojEventsV1alpha1ValueFromSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1WatchPathConfig {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub directory: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[serde(
        rename = "pathRegexp",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub path_regexp: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1WatchPathConfig> for IoArgoprojEventsV1alpha1WatchPathConfig {
    fn from(value: &IoArgoprojEventsV1alpha1WatchPathConfig) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1WebhookContext {
    #[serde(
        rename = "authSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub auth_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoint: Option<String>,
    #[serde(
        rename = "maxPayloadSize",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub max_payload_size: Option<String>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub metadata: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub method: Option<String>,
    #[doc = "Port on which HTTP server is listening for incoming events."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub port: Option<String>,
    #[doc = "ServerCertPath refers the file that contains the cert."]
    #[serde(
        rename = "serverCertSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub server_cert_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "serverKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub server_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "URL is the url of the server."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl From<&IoArgoprojEventsV1alpha1WebhookContext> for IoArgoprojEventsV1alpha1WebhookContext {
    fn from(value: &IoArgoprojEventsV1alpha1WebhookContext) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojEventsV1alpha1WebhookEventSource {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub filter: Option<IoArgoprojEventsV1alpha1EventSourceFilter>,
    #[serde(
        rename = "webhookContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub webhook_context: Option<IoArgoprojEventsV1alpha1WebhookContext>,
}
impl From<&IoArgoprojEventsV1alpha1WebhookEventSource>
    for IoArgoprojEventsV1alpha1WebhookEventSource
{
    fn from(value: &IoArgoprojEventsV1alpha1WebhookEventSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Amount(pub f64);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1Amount {
    type Target = f64;
    fn deref(&self) -> &f64 {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1Amount> for f64 {
    fn from(value: IoArgoprojWorkflowV1alpha1Amount) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1Amount> for IoArgoprojWorkflowV1alpha1Amount {
    fn from(value: &IoArgoprojWorkflowV1alpha1Amount) -> Self {
        value.clone()
    }
}
impl From<f64> for IoArgoprojWorkflowV1alpha1Amount {
    fn from(value: f64) -> Self {
        Self(value)
    }
}
impl std::str::FromStr for IoArgoprojWorkflowV1alpha1Amount {
    type Err = <f64 as std::str::FromStr>::Err;
    fn from_str(value: &str) -> Result<Self, Self::Err> {
        Ok(Self(value.parse()?))
    }
}
impl std::convert::TryFrom<&str> for IoArgoprojWorkflowV1alpha1Amount {
    type Error = <f64 as std::str::FromStr>::Err;
    fn try_from(value: &str) -> Result<Self, Self::Error> {
        value.parse()
    }
}
impl std::convert::TryFrom<&String> for IoArgoprojWorkflowV1alpha1Amount {
    type Error = <f64 as std::str::FromStr>::Err;
    fn try_from(value: &String) -> Result<Self, Self::Error> {
        value.parse()
    }
}
impl std::convert::TryFrom<String> for IoArgoprojWorkflowV1alpha1Amount {
    type Error = <f64 as std::str::FromStr>::Err;
    fn try_from(value: String) -> Result<Self, Self::Error> {
        value.parse()
    }
}
impl ToString for IoArgoprojWorkflowV1alpha1Amount {
    fn to_string(&self) -> String {
        self.0.to_string()
    }
}
#[doc = "ArchiveStrategy describes how to archive files/directory when saving artifacts"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArchiveStrategy {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub none: Option<IoArgoprojWorkflowV1alpha1NoneStrategy>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tar: Option<IoArgoprojWorkflowV1alpha1TarStrategy>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub zip: Option<IoArgoprojWorkflowV1alpha1ZipStrategy>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArchiveStrategy>
    for IoArgoprojWorkflowV1alpha1ArchiveStrategy
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ArchiveStrategy) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArchivedWorkflowDeletedResponse(
    pub serde_json::Map<String, serde_json::Value>,
);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1ArchivedWorkflowDeletedResponse {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1ArchivedWorkflowDeletedResponse>
    for serde_json::Map<String, serde_json::Value>
{
    fn from(value: IoArgoprojWorkflowV1alpha1ArchivedWorkflowDeletedResponse) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1ArchivedWorkflowDeletedResponse>
    for IoArgoprojWorkflowV1alpha1ArchivedWorkflowDeletedResponse
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ArchivedWorkflowDeletedResponse) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>>
    for IoArgoprojWorkflowV1alpha1ArchivedWorkflowDeletedResponse
{
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}

pub use IoArgoprojWorkflowV1alpha1ArgumentsBuilder as ArgumentsBuilder;
pub use IoArgoprojWorkflowV1alpha1ArgumentsBuilderError as ArgumentsBuilderError;

#[doc = "Arguments to a template"]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
pub struct IoArgoprojWorkflowV1alpha1Arguments {
    #[builder(default)]
    #[doc = "Artifacts is the list of artifacts to pass to the template or workflow"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub artifacts: Vec<IoArgoprojWorkflowV1alpha1Artifact>,
    #[doc = "Parameters is the list of parameters to pass to the template or workflow"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojWorkflowV1alpha1Parameter>,
}
impl From<&IoArgoprojWorkflowV1alpha1Arguments> for IoArgoprojWorkflowV1alpha1Arguments {
    fn from(value: &IoArgoprojWorkflowV1alpha1Arguments) -> Self {
        value.clone()
    }
}
#[doc = "ArtGCStatus maintains state related to ArtifactGC"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArtGcStatus {
    #[doc = "if this is true, we already checked to see if we need to do it and we don't"]
    #[serde(
        rename = "notSpecified",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub not_specified: Option<bool>,
    #[doc = "have completed Pods been processed? (mapped by Pod name) used to prevent re-processing the Status of a Pod more than once"]
    #[serde(
        rename = "podsRecouped",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub pods_recouped: std::collections::HashMap<String, bool>,
    #[doc = "have Pods been started to perform this strategy? (enables us not to re-process what we've already done)"]
    #[serde(
        rename = "strategiesProcessed",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub strategies_processed: std::collections::HashMap<String, bool>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArtGcStatus> for IoArgoprojWorkflowV1alpha1ArtGcStatus {
    fn from(value: &IoArgoprojWorkflowV1alpha1ArtGcStatus) -> Self {
        value.clone()
    }
}
#[doc = "Artifact indicates an artifact to place at a specified path"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Artifact {
    #[doc = "Archive controls how the artifact will be saved to the artifact repository."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub archive: Option<IoArgoprojWorkflowV1alpha1ArchiveStrategy>,
    #[doc = "ArchiveLogs indicates if the container logs should be archived"]
    #[serde(
        rename = "archiveLogs",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub archive_logs: Option<bool>,
    #[doc = "ArtifactGC describes the strategy to use when to deleting an artifact from completed or deleted workflows"]
    #[serde(
        rename = "artifactGC",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub artifact_gc: Option<IoArgoprojWorkflowV1alpha1ArtifactGc>,
    #[doc = "Artifactory contains artifactory artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub artifactory: Option<IoArgoprojWorkflowV1alpha1ArtifactoryArtifact>,
    #[doc = "Azure contains Azure Storage artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub azure: Option<IoArgoprojWorkflowV1alpha1AzureArtifact>,
    #[doc = "Has this been deleted?"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub deleted: Option<bool>,
    #[doc = "From allows an artifact to reference an artifact from a previous step"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub from: Option<String>,
    #[doc = "FromExpression, if defined, is evaluated to specify the value for the artifact"]
    #[serde(
        rename = "fromExpression",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub from_expression: Option<String>,
    #[doc = "GCS contains GCS artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gcs: Option<IoArgoprojWorkflowV1alpha1GcsArtifact>,
    #[doc = "Git contains git artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub git: Option<IoArgoprojWorkflowV1alpha1GitArtifact>,
    #[doc = "GlobalName exports an output artifact to the global scope, making it available as '{{io.argoproj.workflow.v1alpha1.outputs.artifacts.XXXX}} and in workflow.status.outputs.artifacts"]
    #[serde(
        rename = "globalName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub global_name: Option<String>,
    #[doc = "HDFS contains HDFS artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub hdfs: Option<IoArgoprojWorkflowV1alpha1HdfsArtifact>,
    #[doc = "HTTP contains HTTP artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub http: Option<IoArgoprojWorkflowV1alpha1HttpArtifact>,
    #[doc = "mode bits to use on this file, must be a value between 0 and 0777 set when loading input artifacts."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mode: Option<i64>,
    #[doc = "name of the artifact. must be unique within a template's inputs/outputs."]
    pub name: String,
    #[doc = "Make Artifacts optional, if Artifacts doesn't generate or exist"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
    #[doc = "OSS contains OSS artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oss: Option<IoArgoprojWorkflowV1alpha1OssArtifact>,
    #[doc = "Path is the container path to the artifact"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[doc = "Raw contains raw artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub raw: Option<IoArgoprojWorkflowV1alpha1RawArtifact>,
    #[doc = "If mode is set, apply the permission recursively into the artifact if it is a folder"]
    #[serde(
        rename = "recurseMode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub recurse_mode: Option<bool>,
    #[doc = "S3 contains S3 artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub s3: Option<IoArgoprojWorkflowV1alpha1S3Artifact>,
    #[doc = "SubPath allows an artifact to be sourced from a subpath within the specified source"]
    #[serde(rename = "subPath", default, skip_serializing_if = "Option::is_none")]
    pub sub_path: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1Artifact> for IoArgoprojWorkflowV1alpha1Artifact {
    fn from(value: &IoArgoprojWorkflowV1alpha1Artifact) -> Self {
        value.clone()
    }
}
#[doc = "ArtifactGC describes how to delete artifacts from completed Workflows - this is embedded into the WorkflowLevelArtifactGC, and also used for individual Artifacts to override that as needed"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArtifactGc {
    #[doc = "PodMetadata is an optional field for specifying the Labels and Annotations that should be assigned to the Pod doing the deletion"]
    #[serde(
        rename = "podMetadata",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pod_metadata: Option<IoArgoprojWorkflowV1alpha1Metadata>,
    #[doc = "ServiceAccountName is an optional field for specifying the Service Account that should be assigned to the Pod doing the deletion"]
    #[serde(
        rename = "serviceAccountName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_account_name: Option<String>,
    #[doc = "Strategy is the strategy to use."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub strategy: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArtifactGc> for IoArgoprojWorkflowV1alpha1ArtifactGc {
    fn from(value: &IoArgoprojWorkflowV1alpha1ArtifactGc) -> Self {
        value.clone()
    }
}
#[doc = "ArtifactGCSpec specifies the Artifacts that need to be deleted"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArtifactGcSpec {
    #[doc = "ArtifactsByNode maps Node name to information pertaining to Artifacts on that Node"]
    #[serde(
        rename = "artifactsByNode",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub artifacts_by_node:
        std::collections::HashMap<String, IoArgoprojWorkflowV1alpha1ArtifactNodeSpec>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArtifactGcSpec> for IoArgoprojWorkflowV1alpha1ArtifactGcSpec {
    fn from(value: &IoArgoprojWorkflowV1alpha1ArtifactGcSpec) -> Self {
        value.clone()
    }
}
#[doc = "ArtifactGCStatus describes the result of the deletion"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArtifactGcStatus {
    #[doc = "ArtifactResultsByNode maps Node name to result"]
    #[serde(
        rename = "artifactResultsByNode",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub artifact_results_by_node:
        std::collections::HashMap<String, IoArgoprojWorkflowV1alpha1ArtifactResultNodeStatus>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArtifactGcStatus>
    for IoArgoprojWorkflowV1alpha1ArtifactGcStatus
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ArtifactGcStatus) -> Self {
        value.clone()
    }
}
#[doc = "ArtifactLocation describes a location for a single or multiple artifacts. It is used as single artifact in the context of inputs/outputs (e.g. outputs.artifacts.artname). It is also used to describe the location of multiple artifacts such as the archive location of a single workflow step, which the executor will use as a default location to store its files."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArtifactLocation {
    #[doc = "ArchiveLogs indicates if the container logs should be archived"]
    #[serde(
        rename = "archiveLogs",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub archive_logs: Option<bool>,
    #[doc = "Artifactory contains artifactory artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub artifactory: Option<IoArgoprojWorkflowV1alpha1ArtifactoryArtifact>,
    #[doc = "Azure contains Azure Storage artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub azure: Option<IoArgoprojWorkflowV1alpha1AzureArtifact>,
    #[doc = "GCS contains GCS artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gcs: Option<IoArgoprojWorkflowV1alpha1GcsArtifact>,
    #[doc = "Git contains git artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub git: Option<IoArgoprojWorkflowV1alpha1GitArtifact>,
    #[doc = "HDFS contains HDFS artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub hdfs: Option<IoArgoprojWorkflowV1alpha1HdfsArtifact>,
    #[doc = "HTTP contains HTTP artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub http: Option<IoArgoprojWorkflowV1alpha1HttpArtifact>,
    #[doc = "OSS contains OSS artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oss: Option<IoArgoprojWorkflowV1alpha1OssArtifact>,
    #[doc = "Raw contains raw artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub raw: Option<IoArgoprojWorkflowV1alpha1RawArtifact>,
    #[doc = "S3 contains S3 artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub s3: Option<IoArgoprojWorkflowV1alpha1S3Artifact>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArtifactLocation>
    for IoArgoprojWorkflowV1alpha1ArtifactLocation
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ArtifactLocation) -> Self {
        value.clone()
    }
}
#[doc = "ArtifactNodeSpec specifies the Artifacts that need to be deleted for a given Node"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArtifactNodeSpec {
    #[doc = "ArchiveLocation is the template-level Artifact location specification"]
    #[serde(
        rename = "archiveLocation",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub archive_location: Option<IoArgoprojWorkflowV1alpha1ArtifactLocation>,
    #[doc = "Artifacts maps artifact name to Artifact description"]
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub artifacts: std::collections::HashMap<String, IoArgoprojWorkflowV1alpha1Artifact>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArtifactNodeSpec>
    for IoArgoprojWorkflowV1alpha1ArtifactNodeSpec
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ArtifactNodeSpec) -> Self {
        value.clone()
    }
}
#[doc = "ArtifactPaths expands a step from a collection of artifacts"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArtifactPaths {
    #[doc = "Archive controls how the artifact will be saved to the artifact repository."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub archive: Option<IoArgoprojWorkflowV1alpha1ArchiveStrategy>,
    #[doc = "ArchiveLogs indicates if the container logs should be archived"]
    #[serde(
        rename = "archiveLogs",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub archive_logs: Option<bool>,
    #[doc = "ArtifactGC describes the strategy to use when to deleting an artifact from completed or deleted workflows"]
    #[serde(
        rename = "artifactGC",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub artifact_gc: Option<IoArgoprojWorkflowV1alpha1ArtifactGc>,
    #[doc = "Artifactory contains artifactory artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub artifactory: Option<IoArgoprojWorkflowV1alpha1ArtifactoryArtifact>,
    #[doc = "Azure contains Azure Storage artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub azure: Option<IoArgoprojWorkflowV1alpha1AzureArtifact>,
    #[doc = "Has this been deleted?"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub deleted: Option<bool>,
    #[doc = "From allows an artifact to reference an artifact from a previous step"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub from: Option<String>,
    #[doc = "FromExpression, if defined, is evaluated to specify the value for the artifact"]
    #[serde(
        rename = "fromExpression",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub from_expression: Option<String>,
    #[doc = "GCS contains GCS artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gcs: Option<IoArgoprojWorkflowV1alpha1GcsArtifact>,
    #[doc = "Git contains git artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub git: Option<IoArgoprojWorkflowV1alpha1GitArtifact>,
    #[doc = "GlobalName exports an output artifact to the global scope, making it available as '{{io.argoproj.workflow.v1alpha1.outputs.artifacts.XXXX}} and in workflow.status.outputs.artifacts"]
    #[serde(
        rename = "globalName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub global_name: Option<String>,
    #[doc = "HDFS contains HDFS artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub hdfs: Option<IoArgoprojWorkflowV1alpha1HdfsArtifact>,
    #[doc = "HTTP contains HTTP artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub http: Option<IoArgoprojWorkflowV1alpha1HttpArtifact>,
    #[doc = "mode bits to use on this file, must be a value between 0 and 0777 set when loading input artifacts."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mode: Option<i64>,
    #[doc = "name of the artifact. must be unique within a template's inputs/outputs."]
    pub name: String,
    #[doc = "Make Artifacts optional, if Artifacts doesn't generate or exist"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
    #[doc = "OSS contains OSS artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oss: Option<IoArgoprojWorkflowV1alpha1OssArtifact>,
    #[doc = "Path is the container path to the artifact"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[doc = "Raw contains raw artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub raw: Option<IoArgoprojWorkflowV1alpha1RawArtifact>,
    #[doc = "If mode is set, apply the permission recursively into the artifact if it is a folder"]
    #[serde(
        rename = "recurseMode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub recurse_mode: Option<bool>,
    #[doc = "S3 contains S3 artifact location details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub s3: Option<IoArgoprojWorkflowV1alpha1S3Artifact>,
    #[doc = "SubPath allows an artifact to be sourced from a subpath within the specified source"]
    #[serde(rename = "subPath", default, skip_serializing_if = "Option::is_none")]
    pub sub_path: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArtifactPaths> for IoArgoprojWorkflowV1alpha1ArtifactPaths {
    fn from(value: &IoArgoprojWorkflowV1alpha1ArtifactPaths) -> Self {
        value.clone()
    }
}
#[doc = "ArtifactRepository represents an artifact repository in which a controller will store its artifacts"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArtifactRepository {
    #[doc = "ArchiveLogs enables log archiving"]
    #[serde(
        rename = "archiveLogs",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub archive_logs: Option<bool>,
    #[doc = "Artifactory stores artifacts to JFrog Artifactory"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub artifactory: Option<IoArgoprojWorkflowV1alpha1ArtifactoryArtifactRepository>,
    #[doc = "Azure stores artifact in an Azure Storage account"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub azure: Option<IoArgoprojWorkflowV1alpha1AzureArtifactRepository>,
    #[doc = "GCS stores artifact in a GCS object store"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gcs: Option<IoArgoprojWorkflowV1alpha1GcsArtifactRepository>,
    #[doc = "HDFS stores artifacts in HDFS"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub hdfs: Option<IoArgoprojWorkflowV1alpha1HdfsArtifactRepository>,
    #[doc = "OSS stores artifact in a OSS-compliant object store"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oss: Option<IoArgoprojWorkflowV1alpha1OssArtifactRepository>,
    #[doc = "S3 stores artifact in a S3-compliant object store"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub s3: Option<IoArgoprojWorkflowV1alpha1S3ArtifactRepository>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArtifactRepository>
    for IoArgoprojWorkflowV1alpha1ArtifactRepository
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ArtifactRepository) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArtifactRepositoryRef {
    #[doc = "The name of the config map. Defaults to \"artifact-repositories\"."]
    #[serde(rename = "configMap", default, skip_serializing_if = "Option::is_none")]
    pub config_map: Option<String>,
    #[doc = "The config map key. Defaults to the value of the \"workflows.argoproj.io/default-artifact-repository\" annotation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub key: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArtifactRepositoryRef>
    for IoArgoprojWorkflowV1alpha1ArtifactRepositoryRef
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ArtifactRepositoryRef) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArtifactRepositoryRefStatus {
    #[doc = "The repository the workflow will use. This maybe empty before v3.1."]
    #[serde(
        rename = "artifactRepository",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub artifact_repository: Option<IoArgoprojWorkflowV1alpha1ArtifactRepository>,
    #[doc = "The name of the config map. Defaults to \"artifact-repositories\"."]
    #[serde(rename = "configMap", default, skip_serializing_if = "Option::is_none")]
    pub config_map: Option<String>,
    #[doc = "If this ref represents the default artifact repository, rather than a config map."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub default: Option<bool>,
    #[doc = "The config map key. Defaults to the value of the \"workflows.argoproj.io/default-artifact-repository\" annotation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub key: Option<String>,
    #[doc = "The namespace of the config map. Defaults to the workflow's namespace, or the controller's namespace (if found)."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArtifactRepositoryRefStatus>
    for IoArgoprojWorkflowV1alpha1ArtifactRepositoryRefStatus
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ArtifactRepositoryRefStatus) -> Self {
        value.clone()
    }
}
#[doc = "ArtifactResult describes the result of attempting to delete a given Artifact"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArtifactResult {
    #[doc = "Error is an optional error message which should be set if Success==false"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub error: Option<String>,
    #[doc = "Name is the name of the Artifact"]
    pub name: String,
    #[doc = "Success describes whether the deletion succeeded"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub success: Option<bool>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArtifactResult> for IoArgoprojWorkflowV1alpha1ArtifactResult {
    fn from(value: &IoArgoprojWorkflowV1alpha1ArtifactResult) -> Self {
        value.clone()
    }
}
#[doc = "ArtifactResultNodeStatus describes the result of the deletion on a given node"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArtifactResultNodeStatus {
    #[doc = "ArtifactResults maps Artifact name to result of the deletion"]
    #[serde(
        rename = "artifactResults",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub artifact_results:
        std::collections::HashMap<String, IoArgoprojWorkflowV1alpha1ArtifactResult>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArtifactResultNodeStatus>
    for IoArgoprojWorkflowV1alpha1ArtifactResultNodeStatus
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ArtifactResultNodeStatus) -> Self {
        value.clone()
    }
}
#[doc = "ArtifactoryArtifact is the location of an artifactory artifact"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArtifactoryArtifact {
    #[doc = "PasswordSecret is the secret selector to the repository password"]
    #[serde(
        rename = "passwordSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub password_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "URL of the artifact"]
    pub url: String,
    #[doc = "UsernameSecret is the secret selector to the repository username"]
    #[serde(
        rename = "usernameSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub username_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArtifactoryArtifact>
    for IoArgoprojWorkflowV1alpha1ArtifactoryArtifact
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ArtifactoryArtifact) -> Self {
        value.clone()
    }
}
#[doc = "ArtifactoryArtifactRepository defines the controller configuration for an artifactory artifact repository"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ArtifactoryArtifactRepository {
    #[doc = "KeyFormat defines the format of how to store keys and can reference workflow variables."]
    #[serde(rename = "keyFormat", default, skip_serializing_if = "Option::is_none")]
    pub key_format: Option<String>,
    #[doc = "PasswordSecret is the secret selector to the repository password"]
    #[serde(
        rename = "passwordSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub password_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "RepoURL is the url for artifactory repo."]
    #[serde(rename = "repoURL", default, skip_serializing_if = "Option::is_none")]
    pub repo_url: Option<String>,
    #[doc = "UsernameSecret is the secret selector to the repository username"]
    #[serde(
        rename = "usernameSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub username_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojWorkflowV1alpha1ArtifactoryArtifactRepository>
    for IoArgoprojWorkflowV1alpha1ArtifactoryArtifactRepository
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ArtifactoryArtifactRepository) -> Self {
        value.clone()
    }
}
#[doc = "AzureArtifact is the location of a an Azure Storage artifact"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1AzureArtifact {
    #[doc = "AccountKeySecret is the secret selector to the Azure Blob Storage account access key"]
    #[serde(
        rename = "accountKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub account_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "Blob is the blob name (i.e., path) in the container where the artifact resides"]
    pub blob: String,
    #[doc = "Container is the container where resources will be stored"]
    pub container: String,
    #[doc = "Endpoint is the service url associated with an account. It is most likely \"https://<ACCOUNT_NAME>.blob.core.windows.net\""]
    pub endpoint: String,
    #[doc = "UseSDKCreds tells the driver to figure out credentials based on sdk defaults."]
    #[serde(
        rename = "useSDKCreds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub use_sdk_creds: Option<bool>,
}
impl From<&IoArgoprojWorkflowV1alpha1AzureArtifact> for IoArgoprojWorkflowV1alpha1AzureArtifact {
    fn from(value: &IoArgoprojWorkflowV1alpha1AzureArtifact) -> Self {
        value.clone()
    }
}
#[doc = "AzureArtifactRepository defines the controller configuration for an Azure Blob Storage artifact repository"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1AzureArtifactRepository {
    #[doc = "AccountKeySecret is the secret selector to the Azure Blob Storage account access key"]
    #[serde(
        rename = "accountKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub account_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "BlobNameFormat is defines the format of how to store blob names. Can reference workflow variables"]
    #[serde(
        rename = "blobNameFormat",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub blob_name_format: Option<String>,
    #[doc = "Container is the container where resources will be stored"]
    pub container: String,
    #[doc = "Endpoint is the service url associated with an account. It is most likely \"https://<ACCOUNT_NAME>.blob.core.windows.net\""]
    pub endpoint: String,
    #[doc = "UseSDKCreds tells the driver to figure out credentials based on sdk defaults."]
    #[serde(
        rename = "useSDKCreds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub use_sdk_creds: Option<bool>,
}
impl From<&IoArgoprojWorkflowV1alpha1AzureArtifactRepository>
    for IoArgoprojWorkflowV1alpha1AzureArtifactRepository
{
    fn from(value: &IoArgoprojWorkflowV1alpha1AzureArtifactRepository) -> Self {
        value.clone()
    }
}
#[doc = "Backoff is a backoff strategy to use within retryStrategy"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Backoff {
    #[doc = "Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. \"2m\", \"1h\")"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration: Option<String>,
    #[doc = "Factor is a factor to multiply the base duration after each failed retry"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub factor: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>,
    #[doc = "MaxDuration is the maximum amount of time allowed for a workflow in the backoff strategy"]
    #[serde(
        rename = "maxDuration",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub max_duration: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1Backoff> for IoArgoprojWorkflowV1alpha1Backoff {
    fn from(value: &IoArgoprojWorkflowV1alpha1Backoff) -> Self {
        value.clone()
    }
}
#[doc = "BasicAuth describes the secret selectors required for basic authentication"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1BasicAuth {
    #[doc = "PasswordSecret is the secret selector to the repository password"]
    #[serde(
        rename = "passwordSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub password_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "UsernameSecret is the secret selector to the repository username"]
    #[serde(
        rename = "usernameSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub username_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojWorkflowV1alpha1BasicAuth> for IoArgoprojWorkflowV1alpha1BasicAuth {
    fn from(value: &IoArgoprojWorkflowV1alpha1BasicAuth) -> Self {
        value.clone()
    }
}
#[doc = "Cache is the configuration for the type of cache to be used"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Cache {
    #[doc = "ConfigMap sets a ConfigMap-based cache"]
    #[serde(rename = "configMap")]
    pub config_map: IoK8sApiCoreV1ConfigMapKeySelector,
}
impl From<&IoArgoprojWorkflowV1alpha1Cache> for IoArgoprojWorkflowV1alpha1Cache {
    fn from(value: &IoArgoprojWorkflowV1alpha1Cache) -> Self {
        value.clone()
    }
}
#[doc = "ClientCertAuth holds necessary information for client authentication via certificates"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ClientCertAuth {
    #[serde(
        rename = "clientCertSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub client_cert_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "clientKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub client_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojWorkflowV1alpha1ClientCertAuth> for IoArgoprojWorkflowV1alpha1ClientCertAuth {
    fn from(value: &IoArgoprojWorkflowV1alpha1ClientCertAuth) -> Self {
        value.clone()
    }
}
#[doc = "ClusterWorkflowTemplate is the definition of a workflow template resource in cluster scope"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate {
    #[doc = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#resources"]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    #[doc = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    pub metadata: IoK8sApimachineryPkgApisMetaV1ObjectMeta,
    pub spec: IoArgoprojWorkflowV1alpha1WorkflowSpec,
}
impl From<&IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate>
    for IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateCreateRequest {
    #[serde(
        rename = "createOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub create_options: Option<IoK8sApimachineryPkgApisMetaV1CreateOptions>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate>,
}
impl From<&IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateCreateRequest>
    for IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateCreateRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateCreateRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateDeleteResponse(
    pub serde_json::Map<String, serde_json::Value>,
);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateDeleteResponse {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateDeleteResponse>
    for serde_json::Map<String, serde_json::Value>
{
    fn from(value: IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateDeleteResponse) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateDeleteResponse>
    for IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateDeleteResponse
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateDeleteResponse) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>>
    for IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateDeleteResponse
{
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateLintRequest {
    #[serde(
        rename = "createOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub create_options: Option<IoK8sApimachineryPkgApisMetaV1CreateOptions>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate>,
}
impl From<&IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateLintRequest>
    for IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateLintRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateLintRequest) -> Self {
        value.clone()
    }
}
#[doc = "ClusterWorkflowTemplateList is list of ClusterWorkflowTemplate resources"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList {
    #[doc = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#resources"]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    pub items: Vec<IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate>,
    #[doc = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    pub metadata: IoK8sApimachineryPkgApisMetaV1ListMeta,
}
impl From<&IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList>
    for IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateList) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest {
    #[doc = "DEPRECATED: This field is ignored."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplate>,
}
impl From<&IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest>
    for IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ClusterWorkflowTemplateUpdateRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1CollectEventRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1CollectEventRequest>
    for IoArgoprojWorkflowV1alpha1CollectEventRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1CollectEventRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1CollectEventResponse(
    pub serde_json::Map<String, serde_json::Value>,
);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1CollectEventResponse {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1CollectEventResponse>
    for serde_json::Map<String, serde_json::Value>
{
    fn from(value: IoArgoprojWorkflowV1alpha1CollectEventResponse) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1CollectEventResponse>
    for IoArgoprojWorkflowV1alpha1CollectEventResponse
{
    fn from(value: &IoArgoprojWorkflowV1alpha1CollectEventResponse) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>>
    for IoArgoprojWorkflowV1alpha1CollectEventResponse
{
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}
#[doc = "Column is a custom column that will be exposed in the Workflow List View."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Column {
    #[doc = "The key of the label or annotation, e.g., \"workflows.argoproj.io/completed\"."]
    pub key: String,
    #[doc = "The name of this column, e.g., \"Workflow Completed\"."]
    pub name: String,
    #[doc = "The type of this column, \"label\" or \"annotation\"."]
    #[serde(rename = "type")]
    pub type_: String,
}
impl From<&IoArgoprojWorkflowV1alpha1Column> for IoArgoprojWorkflowV1alpha1Column {
    fn from(value: &IoArgoprojWorkflowV1alpha1Column) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Condition {
    #[doc = "Message is the condition message"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[doc = "Status is the status of the condition"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    #[doc = "Type is the type of condition"]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1Condition> for IoArgoprojWorkflowV1alpha1Condition {
    fn from(value: &IoArgoprojWorkflowV1alpha1Condition) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ContainerNode {
    #[doc = "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub args: Vec<String>,
    #[doc = "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub command: Vec<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub dependencies: Vec<String>,
    #[doc = "List of environment variables to set in the container. Cannot be updated."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub env: Vec<IoK8sApiCoreV1EnvVar>,
    #[doc = "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated."]
    #[serde(rename = "envFrom", default, skip_serializing_if = "Vec::is_empty")]
    pub env_from: Vec<IoK8sApiCoreV1EnvFromSource>,
    #[doc = "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub image: Option<String>,
    #[doc = "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images"]
    #[serde(
        rename = "imagePullPolicy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub image_pull_policy: Option<String>,
    #[doc = "Actions that the management system should take in response to container lifecycle events. Cannot be updated."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub lifecycle: Option<IoK8sApiCoreV1Lifecycle>,
    #[doc = "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"]
    #[serde(
        rename = "livenessProbe",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub liveness_probe: Option<IoK8sApiCoreV1Probe>,
    #[doc = "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated."]
    pub name: String,
    #[doc = "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub ports: Vec<IoK8sApiCoreV1ContainerPort>,
    #[doc = "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"]
    #[serde(
        rename = "readinessProbe",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub readiness_probe: Option<IoK8sApiCoreV1Probe>,
    #[doc = "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resources: Option<IoK8sApiCoreV1ResourceRequirements>,
    #[doc = "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/"]
    #[serde(
        rename = "securityContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub security_context: Option<IoK8sApiCoreV1SecurityContext>,
    #[doc = "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"]
    #[serde(
        rename = "startupProbe",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub startup_probe: Option<IoK8sApiCoreV1Probe>,
    #[doc = "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub stdin: Option<bool>,
    #[doc = "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false"]
    #[serde(rename = "stdinOnce", default, skip_serializing_if = "Option::is_none")]
    pub stdin_once: Option<bool>,
    #[doc = "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated."]
    #[serde(
        rename = "terminationMessagePath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub termination_message_path: Option<String>,
    #[doc = "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated."]
    #[serde(
        rename = "terminationMessagePolicy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub termination_message_policy: Option<String>,
    #[doc = "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tty: Option<bool>,
    #[doc = "volumeDevices is the list of block devices to be used by the container."]
    #[serde(
        rename = "volumeDevices",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub volume_devices: Vec<IoK8sApiCoreV1VolumeDevice>,
    #[doc = "Pod volumes to mount into the container's filesystem. Cannot be updated."]
    #[serde(
        rename = "volumeMounts",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub volume_mounts: Vec<IoK8sApiCoreV1VolumeMount>,
    #[doc = "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated."]
    #[serde(
        rename = "workingDir",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub working_dir: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1ContainerNode> for IoArgoprojWorkflowV1alpha1ContainerNode {
    fn from(value: &IoArgoprojWorkflowV1alpha1ContainerNode) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ContainerSetRetryStrategy {
    #[doc = "Duration is the time between each retry, examples values are \"300ms\", \"1s\" or \"5m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\"."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration: Option<String>,
    #[doc = "Nbr of retries"]
    pub retries: IoK8sApimachineryPkgUtilIntstrIntOrString,
}
impl From<&IoArgoprojWorkflowV1alpha1ContainerSetRetryStrategy>
    for IoArgoprojWorkflowV1alpha1ContainerSetRetryStrategy
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ContainerSetRetryStrategy) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ContainerSetTemplate {
    pub containers: Vec<IoArgoprojWorkflowV1alpha1ContainerNode>,
    #[doc = "RetryStrategy describes how to retry a container nodes in the container set if it fails. Nbr of retries(default 0) and sleep duration between retries(default 0s, instant retry) can be set."]
    #[serde(
        rename = "retryStrategy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub retry_strategy: Option<IoArgoprojWorkflowV1alpha1ContainerSetRetryStrategy>,
    #[serde(
        rename = "volumeMounts",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub volume_mounts: Vec<IoK8sApiCoreV1VolumeMount>,
}
impl From<&IoArgoprojWorkflowV1alpha1ContainerSetTemplate>
    for IoArgoprojWorkflowV1alpha1ContainerSetTemplate
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ContainerSetTemplate) -> Self {
        value.clone()
    }
}
#[doc = "ContinueOn defines if a workflow should continue even if a task or step fails/errors. It can be specified if the workflow should continue when the pod errors, fails or both."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ContinueOn {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub error: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub failed: Option<bool>,
}
impl From<&IoArgoprojWorkflowV1alpha1ContinueOn> for IoArgoprojWorkflowV1alpha1ContinueOn {
    fn from(value: &IoArgoprojWorkflowV1alpha1ContinueOn) -> Self {
        value.clone()
    }
}
#[doc = "Counter is a Counter prometheus metric"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Counter {
    #[doc = "Value is the value of the metric"]
    pub value: String,
}
impl From<&IoArgoprojWorkflowV1alpha1Counter> for IoArgoprojWorkflowV1alpha1Counter {
    fn from(value: &IoArgoprojWorkflowV1alpha1Counter) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest {
    #[serde(
        rename = "createOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub create_options: Option<IoK8sApimachineryPkgApisMetaV1CreateOptions>,
    #[serde(
        rename = "cronWorkflow",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub cron_workflow: Option<IoArgoprojWorkflowV1alpha1CronWorkflow>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest>
    for IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1CreateCronWorkflowRequest) -> Self {
        value.clone()
    }
}
#[doc = "CreateS3BucketOptions options used to determine automatic automatic bucket-creation process"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1CreateS3BucketOptions {
    #[doc = "ObjectLocking Enable object locking"]
    #[serde(
        rename = "objectLocking",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub object_locking: Option<bool>,
}
impl From<&IoArgoprojWorkflowV1alpha1CreateS3BucketOptions>
    for IoArgoprojWorkflowV1alpha1CreateS3BucketOptions
{
    fn from(value: &IoArgoprojWorkflowV1alpha1CreateS3BucketOptions) -> Self {
        value.clone()
    }
}

pub use IoArgoprojWorkflowV1alpha1CronWorkflowBuilder as CronWorkflowBuilder;
pub use IoArgoprojWorkflowV1alpha1CronWorkflowBuilderError as CronWorkflowBuilderError;

#[doc = "CronWorkflow is the definition of a scheduled workflow resource"]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
#[builder(default)]
pub struct IoArgoprojWorkflowV1alpha1CronWorkflow {
    #[doc = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#resources"]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    #[doc = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    pub metadata: IoK8sApimachineryPkgApisMetaV1ObjectMeta,
    pub spec: IoArgoprojWorkflowV1alpha1CronWorkflowSpec,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<IoArgoprojWorkflowV1alpha1CronWorkflowStatus>,
}
impl From<&IoArgoprojWorkflowV1alpha1CronWorkflow> for IoArgoprojWorkflowV1alpha1CronWorkflow {
    fn from(value: &IoArgoprojWorkflowV1alpha1CronWorkflow) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1CronWorkflowDeletedResponse(
    pub serde_json::Map<String, serde_json::Value>,
);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1CronWorkflowDeletedResponse {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1CronWorkflowDeletedResponse>
    for serde_json::Map<String, serde_json::Value>
{
    fn from(value: IoArgoprojWorkflowV1alpha1CronWorkflowDeletedResponse) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1CronWorkflowDeletedResponse>
    for IoArgoprojWorkflowV1alpha1CronWorkflowDeletedResponse
{
    fn from(value: &IoArgoprojWorkflowV1alpha1CronWorkflowDeletedResponse) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>>
    for IoArgoprojWorkflowV1alpha1CronWorkflowDeletedResponse
{
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}
#[doc = "CronWorkflowList is list of CronWorkflow resources"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1CronWorkflowList {
    #[doc = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#resources"]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    pub items: Vec<IoArgoprojWorkflowV1alpha1CronWorkflow>,
    #[doc = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    pub metadata: IoK8sApimachineryPkgApisMetaV1ListMeta,
}
impl From<&IoArgoprojWorkflowV1alpha1CronWorkflowList>
    for IoArgoprojWorkflowV1alpha1CronWorkflowList
{
    fn from(value: &IoArgoprojWorkflowV1alpha1CronWorkflowList) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest>
    for IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1CronWorkflowResumeRequest) -> Self {
        value.clone()
    }
}

pub use IoArgoprojWorkflowV1alpha1CronWorkflowSpecBuilder as CronWorkflowSpecBuilder;
pub use IoArgoprojWorkflowV1alpha1CronWorkflowSpecBuilderError as CronWorkflowSpecBuilderError;

#[doc = "CronWorkflowSpec is the specification of a CronWorkflow"]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
#[builder(default)]
pub struct IoArgoprojWorkflowV1alpha1CronWorkflowSpec {
    #[doc = "ConcurrencyPolicy is the K8s-style concurrency policy that will be used"]
    #[serde(
        rename = "concurrencyPolicy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub concurrency_policy: Option<String>,
    #[doc = "FailedJobsHistoryLimit is the number of failed jobs to be kept at a time"]
    #[serde(
        rename = "failedJobsHistoryLimit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub failed_jobs_history_limit: Option<i64>,
    #[doc = "Schedule is a schedule to run the Workflow in Cron format"]
    pub schedule: String,
    #[doc = "StartingDeadlineSeconds is the K8s-style deadline that will limit the time a CronWorkflow will be run after its original scheduled time if it is missed."]
    #[serde(
        rename = "startingDeadlineSeconds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub starting_deadline_seconds: Option<i64>,
    #[doc = "SuccessfulJobsHistoryLimit is the number of successful jobs to be kept at a time"]
    #[serde(
        rename = "successfulJobsHistoryLimit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub successful_jobs_history_limit: Option<i64>,
    #[doc = "Suspend is a flag that will stop new CronWorkflows from running if set to true"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub suspend: Option<bool>,
    #[doc = "Timezone is the timezone against which the cron schedule will be calculated, e.g. \"Asia/Tokyo\". Default is machine's local time."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timezone: Option<String>,
    #[doc = "WorkflowMetadata contains some metadata of the workflow to be run"]
    #[serde(
        rename = "workflowMetadata",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub workflow_metadata: Option<IoK8sApimachineryPkgApisMetaV1ObjectMeta>,
    #[doc = "WorkflowSpec is the spec of the workflow to be run"]
    #[serde(rename = "workflowSpec")]
    pub workflow_spec: IoArgoprojWorkflowV1alpha1WorkflowSpec,
}
impl From<&IoArgoprojWorkflowV1alpha1CronWorkflowSpec>
    for IoArgoprojWorkflowV1alpha1CronWorkflowSpec
{
    fn from(value: &IoArgoprojWorkflowV1alpha1CronWorkflowSpec) -> Self {
        value.clone()
    }
}
#[doc = "CronWorkflowStatus is the status of a CronWorkflow"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1CronWorkflowStatus {
    #[doc = "Active is a list of active workflows stemming from this CronWorkflow"]
    pub active: Vec<IoK8sApiCoreV1ObjectReference>,
    #[doc = "Conditions is a list of conditions the CronWorkflow may have"]
    pub conditions: Vec<IoArgoprojWorkflowV1alpha1Condition>,
    #[doc = "LastScheduleTime is the last time the CronWorkflow was scheduled"]
    #[serde(rename = "lastScheduledTime")]
    pub last_scheduled_time: IoK8sApimachineryPkgApisMetaV1Time,
}
impl From<&IoArgoprojWorkflowV1alpha1CronWorkflowStatus>
    for IoArgoprojWorkflowV1alpha1CronWorkflowStatus
{
    fn from(value: &IoArgoprojWorkflowV1alpha1CronWorkflowStatus) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest>
    for IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1CronWorkflowSuspendRequest) -> Self {
        value.clone()
    }
}
pub use IoArgoprojWorkflowV1alpha1DagTaskBuilder as DagTaskBuilder;
pub use IoArgoprojWorkflowV1alpha1DagTaskBuilderError as DagTaskBuilderError;

#[doc = "DAGTask represents a node in the graph during DAG execution"]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
#[builder(default)]
pub struct IoArgoprojWorkflowV1alpha1DagTask {
    #[doc = "Arguments are the parameter and artifact arguments to the template"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub arguments: Option<IoArgoprojWorkflowV1alpha1Arguments>,
    #[doc = "ContinueOn makes argo to proceed with the following step even if this step fails. Errors and Failed states can be specified"]
    #[serde(
        rename = "continueOn",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub continue_on: Option<IoArgoprojWorkflowV1alpha1ContinueOn>,
    #[doc = "Dependencies are name of other targets which this depends on"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub dependencies: Vec<String>,
    #[doc = "Depends are name of other targets which this depends on"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub depends: Option<String>,
    #[doc = "Hooks hold the lifecycle hook which is invoked at lifecycle of task, irrespective of the success, failure, or error status of the primary task"]
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub hooks: std::collections::HashMap<String, IoArgoprojWorkflowV1alpha1LifecycleHook>,
    #[doc = "Inline is the template. Template must be empty if this is declared (and vice-versa)."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub inline: Option<IoArgoprojWorkflowV1alpha1Template>,
    #[doc = "Name is the name of the target"]
    pub name: String,
    #[doc = "OnExit is a template reference which is invoked at the end of the template, irrespective of the success, failure, or error of the primary template. DEPRECATED: Use Hooks[exit].Template instead."]
    #[serde(rename = "onExit", default, skip_serializing_if = "Option::is_none")]
    pub on_exit: Option<String>,
    #[doc = "Name of template to execute"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<String>,
    #[doc = "TemplateRef is the reference to the template resource to execute."]
    #[serde(
        rename = "templateRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub template_ref: Option<IoArgoprojWorkflowV1alpha1TemplateRef>,
    #[doc = "When is an expression in which the task should conditionally execute"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub when: Option<String>,
    #[doc = "WithItems expands a task into multiple parallel tasks from the items in the list"]
    #[serde(rename = "withItems", default, skip_serializing_if = "Vec::is_empty")]
    pub with_items: Vec<IoArgoprojWorkflowV1alpha1Item>,
    #[doc = "WithParam expands a task into multiple parallel tasks from the value in the parameter, which is expected to be a JSON list."]
    #[serde(rename = "withParam", default, skip_serializing_if = "Option::is_none")]
    pub with_param: Option<String>,
    #[doc = "WithSequence expands a task into a numeric sequence"]
    #[serde(
        rename = "withSequence",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub with_sequence: Option<IoArgoprojWorkflowV1alpha1Sequence>,
}
impl From<&IoArgoprojWorkflowV1alpha1DagTask> for IoArgoprojWorkflowV1alpha1DagTask {
    fn from(value: &IoArgoprojWorkflowV1alpha1DagTask) -> Self {
        value.clone()
    }
}

pub use IoArgoprojWorkflowV1alpha1DagTemplateBuilder as DagTemplateBuilder;
pub use IoArgoprojWorkflowV1alpha1DagTemplateBuilderError as DagTemplateBuilderError;

#[doc = "DAGTemplate is a template subtype for directed acyclic graph templates"]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
#[builder(default)]
pub struct IoArgoprojWorkflowV1alpha1DagTemplate {
    #[doc = "This flag is for DAG logic. The DAG logic has a built-in \"fail fast\" feature to stop scheduling new steps, as soon as it detects that one of the DAG nodes is failed. Then it waits until all DAG nodes are completed before failing the DAG itself. The FailFast flag default is true,  if set to false, it will allow a DAG to run all branches of the DAG to completion (either success or failure), regardless of the failed outcomes of branches in the DAG. More info and example about this feature at https://github.com/argoproj/argo-workflows/issues/1442"]
    #[serde(rename = "failFast", default, skip_serializing_if = "Option::is_none")]
    pub fail_fast: Option<bool>,
    #[doc = "Target are one or more names of targets to execute in a DAG"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub target: Option<String>,
    #[doc = "Tasks are a list of DAG tasks"]
    pub tasks: Vec<IoArgoprojWorkflowV1alpha1DagTask>,
}
impl From<&IoArgoprojWorkflowV1alpha1DagTemplate> for IoArgoprojWorkflowV1alpha1DagTemplate {
    fn from(value: &IoArgoprojWorkflowV1alpha1DagTemplate) -> Self {
        value.clone()
    }
}
#[doc = "Data is a data template"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Data {
    #[doc = "Source sources external data into a data template"]
    pub source: IoArgoprojWorkflowV1alpha1DataSource,
    #[doc = "Transformation applies a set of transformations"]
    pub transformation: Vec<IoArgoprojWorkflowV1alpha1TransformationStep>,
}
impl From<&IoArgoprojWorkflowV1alpha1Data> for IoArgoprojWorkflowV1alpha1Data {
    fn from(value: &IoArgoprojWorkflowV1alpha1Data) -> Self {
        value.clone()
    }
}
#[doc = "DataSource sources external data into a data template"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1DataSource {
    #[doc = "ArtifactPaths is a data transformation that collects a list of artifact paths"]
    #[serde(
        rename = "artifactPaths",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub artifact_paths: Option<IoArgoprojWorkflowV1alpha1ArtifactPaths>,
}
impl From<&IoArgoprojWorkflowV1alpha1DataSource> for IoArgoprojWorkflowV1alpha1DataSource {
    fn from(value: &IoArgoprojWorkflowV1alpha1DataSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Event {
    #[doc = "Selector (https://github.com/antonmedv/expr) that we must must match the io.argoproj.workflow.v1alpha1. E.g. `payload.message == \"test\"`"]
    pub selector: String,
}
impl From<&IoArgoprojWorkflowV1alpha1Event> for IoArgoprojWorkflowV1alpha1Event {
    fn from(value: &IoArgoprojWorkflowV1alpha1Event) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1EventResponse(pub serde_json::Map<String, serde_json::Value>);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1EventResponse {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1EventResponse> for serde_json::Map<String, serde_json::Value> {
    fn from(value: IoArgoprojWorkflowV1alpha1EventResponse) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1EventResponse> for IoArgoprojWorkflowV1alpha1EventResponse {
    fn from(value: &IoArgoprojWorkflowV1alpha1EventResponse) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>> for IoArgoprojWorkflowV1alpha1EventResponse {
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}
#[doc = "ExecutorConfig holds configurations of an executor container."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ExecutorConfig {
    #[doc = "ServiceAccountName specifies the service account name of the executor container."]
    #[serde(
        rename = "serviceAccountName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_account_name: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1ExecutorConfig> for IoArgoprojWorkflowV1alpha1ExecutorConfig {
    fn from(value: &IoArgoprojWorkflowV1alpha1ExecutorConfig) -> Self {
        value.clone()
    }
}
#[doc = "Gauge is a Gauge prometheus metric"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Gauge {
    #[doc = "Operation defines the operation to apply with value and the metrics' current value"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub operation: Option<String>,
    #[doc = "Realtime emits this metric in real time if applicable"]
    pub realtime: bool,
    #[doc = "Value is the value to be used in the operation with the metric's current value. If no operation is set, value is the value of the metric"]
    pub value: String,
}
impl From<&IoArgoprojWorkflowV1alpha1Gauge> for IoArgoprojWorkflowV1alpha1Gauge {
    fn from(value: &IoArgoprojWorkflowV1alpha1Gauge) -> Self {
        value.clone()
    }
}
#[doc = "GCSArtifact is the location of a GCS artifact"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1GcsArtifact {
    #[doc = "Bucket is the name of the bucket"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bucket: Option<String>,
    #[doc = "Key is the path in the bucket where the artifact resides"]
    pub key: String,
    #[doc = "ServiceAccountKeySecret is the secret selector to the bucket's service account key"]
    #[serde(
        rename = "serviceAccountKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_account_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojWorkflowV1alpha1GcsArtifact> for IoArgoprojWorkflowV1alpha1GcsArtifact {
    fn from(value: &IoArgoprojWorkflowV1alpha1GcsArtifact) -> Self {
        value.clone()
    }
}
#[doc = "GCSArtifactRepository defines the controller configuration for a GCS artifact repository"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1GcsArtifactRepository {
    #[doc = "Bucket is the name of the bucket"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bucket: Option<String>,
    #[doc = "KeyFormat defines the format of how to store keys and can reference workflow variables."]
    #[serde(rename = "keyFormat", default, skip_serializing_if = "Option::is_none")]
    pub key_format: Option<String>,
    #[doc = "ServiceAccountKeySecret is the secret selector to the bucket's service account key"]
    #[serde(
        rename = "serviceAccountKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_account_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojWorkflowV1alpha1GcsArtifactRepository>
    for IoArgoprojWorkflowV1alpha1GcsArtifactRepository
{
    fn from(value: &IoArgoprojWorkflowV1alpha1GcsArtifactRepository) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1GetUserInfoResponse {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    #[serde(
        rename = "emailVerified",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub email_verified: Option<bool>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub groups: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub issuer: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(
        rename = "serviceAccountName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_account_name: Option<String>,
    #[serde(
        rename = "serviceAccountNamespace",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_account_namespace: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub subject: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1GetUserInfoResponse>
    for IoArgoprojWorkflowV1alpha1GetUserInfoResponse
{
    fn from(value: &IoArgoprojWorkflowV1alpha1GetUserInfoResponse) -> Self {
        value.clone()
    }
}
#[doc = "GitArtifact is the location of an git artifact"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1GitArtifact {
    #[doc = "Branch is the branch to fetch when `SingleBranch` is enabled"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub branch: Option<String>,
    #[doc = "Depth specifies clones/fetches should be shallow and include the given number of commits from the branch tip"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub depth: Option<i64>,
    #[doc = "DisableSubmodules disables submodules during git clone"]
    #[serde(
        rename = "disableSubmodules",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub disable_submodules: Option<bool>,
    #[doc = "Fetch specifies a number of refs that should be fetched before checkout"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub fetch: Vec<String>,
    #[doc = "InsecureIgnoreHostKey disables SSH strict host key checking during git clone"]
    #[serde(
        rename = "insecureIgnoreHostKey",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub insecure_ignore_host_key: Option<bool>,
    #[doc = "PasswordSecret is the secret selector to the repository password"]
    #[serde(
        rename = "passwordSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub password_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "Repo is the git repository"]
    pub repo: String,
    #[doc = "Revision is the git commit, tag, branch to checkout"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub revision: Option<String>,
    #[doc = "SingleBranch enables single branch clone, using the `branch` parameter"]
    #[serde(
        rename = "singleBranch",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub single_branch: Option<bool>,
    #[doc = "SSHPrivateKeySecret is the secret selector to the repository ssh private key"]
    #[serde(
        rename = "sshPrivateKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub ssh_private_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "UsernameSecret is the secret selector to the repository username"]
    #[serde(
        rename = "usernameSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub username_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojWorkflowV1alpha1GitArtifact> for IoArgoprojWorkflowV1alpha1GitArtifact {
    fn from(value: &IoArgoprojWorkflowV1alpha1GitArtifact) -> Self {
        value.clone()
    }
}
#[doc = "HDFSArtifact is the location of an HDFS artifact"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1HdfsArtifact {
    #[doc = "Addresses is accessible addresses of HDFS name nodes"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub addresses: Vec<String>,
    #[doc = "Force copies a file forcibly even if it exists"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub force: Option<bool>,
    #[doc = "HDFSUser is the user to access HDFS file system. It is ignored if either ccache or keytab is used."]
    #[serde(rename = "hdfsUser", default, skip_serializing_if = "Option::is_none")]
    pub hdfs_user: Option<String>,
    #[doc = "KrbCCacheSecret is the secret selector for Kerberos ccache Either ccache or keytab can be set to use Kerberos."]
    #[serde(
        rename = "krbCCacheSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_c_cache_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "KrbConfig is the configmap selector for Kerberos config as string It must be set if either ccache or keytab is used."]
    #[serde(
        rename = "krbConfigConfigMap",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_config_config_map: Option<IoK8sApiCoreV1ConfigMapKeySelector>,
    #[doc = "KrbKeytabSecret is the secret selector for Kerberos keytab Either ccache or keytab can be set to use Kerberos."]
    #[serde(
        rename = "krbKeytabSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_keytab_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "KrbRealm is the Kerberos realm used with Kerberos keytab It must be set if keytab is used."]
    #[serde(rename = "krbRealm", default, skip_serializing_if = "Option::is_none")]
    pub krb_realm: Option<String>,
    #[doc = "KrbServicePrincipalName is the principal name of Kerberos service It must be set if either ccache or keytab is used."]
    #[serde(
        rename = "krbServicePrincipalName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_service_principal_name: Option<String>,
    #[doc = "KrbUsername is the Kerberos username used with Kerberos keytab It must be set if keytab is used."]
    #[serde(
        rename = "krbUsername",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_username: Option<String>,
    #[doc = "Path is a file path in HDFS"]
    pub path: String,
}
impl From<&IoArgoprojWorkflowV1alpha1HdfsArtifact> for IoArgoprojWorkflowV1alpha1HdfsArtifact {
    fn from(value: &IoArgoprojWorkflowV1alpha1HdfsArtifact) -> Self {
        value.clone()
    }
}
#[doc = "HDFSArtifactRepository defines the controller configuration for an HDFS artifact repository"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1HdfsArtifactRepository {
    #[doc = "Addresses is accessible addresses of HDFS name nodes"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub addresses: Vec<String>,
    #[doc = "Force copies a file forcibly even if it exists"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub force: Option<bool>,
    #[doc = "HDFSUser is the user to access HDFS file system. It is ignored if either ccache or keytab is used."]
    #[serde(rename = "hdfsUser", default, skip_serializing_if = "Option::is_none")]
    pub hdfs_user: Option<String>,
    #[doc = "KrbCCacheSecret is the secret selector for Kerberos ccache Either ccache or keytab can be set to use Kerberos."]
    #[serde(
        rename = "krbCCacheSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_c_cache_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "KrbConfig is the configmap selector for Kerberos config as string It must be set if either ccache or keytab is used."]
    #[serde(
        rename = "krbConfigConfigMap",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_config_config_map: Option<IoK8sApiCoreV1ConfigMapKeySelector>,
    #[doc = "KrbKeytabSecret is the secret selector for Kerberos keytab Either ccache or keytab can be set to use Kerberos."]
    #[serde(
        rename = "krbKeytabSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_keytab_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "KrbRealm is the Kerberos realm used with Kerberos keytab It must be set if keytab is used."]
    #[serde(rename = "krbRealm", default, skip_serializing_if = "Option::is_none")]
    pub krb_realm: Option<String>,
    #[doc = "KrbServicePrincipalName is the principal name of Kerberos service It must be set if either ccache or keytab is used."]
    #[serde(
        rename = "krbServicePrincipalName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_service_principal_name: Option<String>,
    #[doc = "KrbUsername is the Kerberos username used with Kerberos keytab It must be set if keytab is used."]
    #[serde(
        rename = "krbUsername",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub krb_username: Option<String>,
    #[doc = "PathFormat is defines the format of path to store a file. Can reference workflow variables"]
    #[serde(
        rename = "pathFormat",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub path_format: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1HdfsArtifactRepository>
    for IoArgoprojWorkflowV1alpha1HdfsArtifactRepository
{
    fn from(value: &IoArgoprojWorkflowV1alpha1HdfsArtifactRepository) -> Self {
        value.clone()
    }
}
#[doc = "Header indicate a key-value request header to be used when fetching artifacts over HTTP"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Header {
    #[doc = "Name is the header name"]
    pub name: String,
    #[doc = "Value is the literal value to use for the header"]
    pub value: String,
}
impl From<&IoArgoprojWorkflowV1alpha1Header> for IoArgoprojWorkflowV1alpha1Header {
    fn from(value: &IoArgoprojWorkflowV1alpha1Header) -> Self {
        value.clone()
    }
}
#[doc = "Histogram is a Histogram prometheus metric"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Histogram {
    #[doc = "Buckets is a list of bucket divisors for the histogram"]
    pub buckets: Vec<IoArgoprojWorkflowV1alpha1Amount>,
    #[doc = "Value is the value of the metric"]
    pub value: String,
}
impl From<&IoArgoprojWorkflowV1alpha1Histogram> for IoArgoprojWorkflowV1alpha1Histogram {
    fn from(value: &IoArgoprojWorkflowV1alpha1Histogram) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Http {
    #[doc = "Body is content of the HTTP Request"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub body: Option<String>,
    #[doc = "BodyFrom is  content of the HTTP Request as Bytes"]
    #[serde(rename = "bodyFrom", default, skip_serializing_if = "Option::is_none")]
    pub body_from: Option<IoArgoprojWorkflowV1alpha1HttpBodySource>,
    #[doc = "Headers are an optional list of headers to send with HTTP requests"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub headers: Vec<IoArgoprojWorkflowV1alpha1HttpHeader>,
    #[doc = "InsecureSkipVerify is a bool when if set to true will skip TLS verification for the HTTP client"]
    #[serde(
        rename = "insecureSkipVerify",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub insecure_skip_verify: Option<bool>,
    #[doc = "Method is HTTP methods for HTTP Request"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub method: Option<String>,
    #[doc = "SuccessCondition is an expression if evaluated to true is considered successful"]
    #[serde(
        rename = "successCondition",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub success_condition: Option<String>,
    #[doc = "TimeoutSeconds is request timeout for HTTP Request. Default is 30 seconds"]
    #[serde(
        rename = "timeoutSeconds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub timeout_seconds: Option<i64>,
    #[doc = "URL of the HTTP Request"]
    pub url: String,
}
impl From<&IoArgoprojWorkflowV1alpha1Http> for IoArgoprojWorkflowV1alpha1Http {
    fn from(value: &IoArgoprojWorkflowV1alpha1Http) -> Self {
        value.clone()
    }
}
#[doc = "HTTPArtifact allows a file served on HTTP to be placed as an input artifact in a container"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1HttpArtifact {
    #[doc = "Auth contains information for client authentication"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auth: Option<IoArgoprojWorkflowV1alpha1HttpAuth>,
    #[doc = "Headers are an optional list of headers to send with HTTP requests for artifacts"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub headers: Vec<IoArgoprojWorkflowV1alpha1Header>,
    #[doc = "URL of the artifact"]
    pub url: String,
}
impl From<&IoArgoprojWorkflowV1alpha1HttpArtifact> for IoArgoprojWorkflowV1alpha1HttpArtifact {
    fn from(value: &IoArgoprojWorkflowV1alpha1HttpArtifact) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1HttpAuth {
    #[serde(rename = "basicAuth", default, skip_serializing_if = "Option::is_none")]
    pub basic_auth: Option<IoArgoprojWorkflowV1alpha1BasicAuth>,
    #[serde(
        rename = "clientCert",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub client_cert: Option<IoArgoprojWorkflowV1alpha1ClientCertAuth>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oauth2: Option<IoArgoprojWorkflowV1alpha1OAuth2Auth>,
}
impl From<&IoArgoprojWorkflowV1alpha1HttpAuth> for IoArgoprojWorkflowV1alpha1HttpAuth {
    fn from(value: &IoArgoprojWorkflowV1alpha1HttpAuth) -> Self {
        value.clone()
    }
}
#[doc = "HTTPBodySource contains the source of the HTTP body."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1HttpBodySource {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bytes: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1HttpBodySource> for IoArgoprojWorkflowV1alpha1HttpBodySource {
    fn from(value: &IoArgoprojWorkflowV1alpha1HttpBodySource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1HttpHeader {
    pub name: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
    #[serde(rename = "valueFrom", default, skip_serializing_if = "Option::is_none")]
    pub value_from: Option<IoArgoprojWorkflowV1alpha1HttpHeaderSource>,
}
impl From<&IoArgoprojWorkflowV1alpha1HttpHeader> for IoArgoprojWorkflowV1alpha1HttpHeader {
    fn from(value: &IoArgoprojWorkflowV1alpha1HttpHeader) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1HttpHeaderSource {
    #[serde(
        rename = "secretKeyRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub secret_key_ref: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojWorkflowV1alpha1HttpHeaderSource>
    for IoArgoprojWorkflowV1alpha1HttpHeaderSource
{
    fn from(value: &IoArgoprojWorkflowV1alpha1HttpHeaderSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1InfoResponse {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub columns: Vec<IoArgoprojWorkflowV1alpha1Column>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub links: Vec<IoArgoprojWorkflowV1alpha1Link>,
    #[serde(
        rename = "managedNamespace",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub managed_namespace: Option<String>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub modals: std::collections::HashMap<String, bool>,
    #[serde(rename = "navColor", default, skip_serializing_if = "Option::is_none")]
    pub nav_color: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1InfoResponse> for IoArgoprojWorkflowV1alpha1InfoResponse {
    fn from(value: &IoArgoprojWorkflowV1alpha1InfoResponse) -> Self {
        value.clone()
    }
}

pub use IoArgoprojWorkflowV1alpha1InputsBuilder as InputsBuilder;
pub use IoArgoprojWorkflowV1alpha1InputsBuilderError as InputsBuilderError;
#[doc = "Inputs are the mechanism for passing parameters, artifacts, volumes from one template to another"]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
pub struct IoArgoprojWorkflowV1alpha1Inputs {
    #[builder(default)]
    #[doc = "Artifact are a list of artifacts passed as inputs"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub artifacts: Vec<IoArgoprojWorkflowV1alpha1Artifact>,
    #[doc = "Parameters are a list of parameters passed as inputs"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojWorkflowV1alpha1Parameter>,
}
impl From<&IoArgoprojWorkflowV1alpha1Inputs> for IoArgoprojWorkflowV1alpha1Inputs {
    fn from(value: &IoArgoprojWorkflowV1alpha1Inputs) -> Self {
        value.clone()
    }
}
#[doc = "Item expands a single workflow step into multiple parallel steps The value of Item can be a map, string, bool, or number"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Item(pub serde_json::Value);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1Item {
    type Target = serde_json::Value;
    fn deref(&self) -> &serde_json::Value {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1Item> for serde_json::Value {
    fn from(value: IoArgoprojWorkflowV1alpha1Item) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1Item> for IoArgoprojWorkflowV1alpha1Item {
    fn from(value: &IoArgoprojWorkflowV1alpha1Item) -> Self {
        value.clone()
    }
}
impl From<serde_json::Value> for IoArgoprojWorkflowV1alpha1Item {
    fn from(value: serde_json::Value) -> Self {
        Self(value)
    }
}
#[doc = "LabelKeys is list of keys"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1LabelKeys {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub items: Vec<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1LabelKeys> for IoArgoprojWorkflowV1alpha1LabelKeys {
    fn from(value: &IoArgoprojWorkflowV1alpha1LabelKeys) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1LabelValueFrom {
    pub expression: String,
}
impl From<&IoArgoprojWorkflowV1alpha1LabelValueFrom> for IoArgoprojWorkflowV1alpha1LabelValueFrom {
    fn from(value: &IoArgoprojWorkflowV1alpha1LabelValueFrom) -> Self {
        value.clone()
    }
}
#[doc = "Labels is list of workflow labels"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1LabelValues {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub items: Vec<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1LabelValues> for IoArgoprojWorkflowV1alpha1LabelValues {
    fn from(value: &IoArgoprojWorkflowV1alpha1LabelValues) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1LifecycleHook {
    #[doc = "Arguments hold arguments to the template"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub arguments: Option<IoArgoprojWorkflowV1alpha1Arguments>,
    #[doc = "Expression is a condition expression for when a node will be retried. If it evaluates to false, the node will not be retried and the retry strategy will be ignored"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expression: Option<String>,
    #[doc = "Template is the name of the template to execute by the hook"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<String>,
    #[doc = "TemplateRef is the reference to the template resource to execute by the hook"]
    #[serde(
        rename = "templateRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub template_ref: Option<IoArgoprojWorkflowV1alpha1TemplateRef>,
}
impl From<&IoArgoprojWorkflowV1alpha1LifecycleHook> for IoArgoprojWorkflowV1alpha1LifecycleHook {
    fn from(value: &IoArgoprojWorkflowV1alpha1LifecycleHook) -> Self {
        value.clone()
    }
}
#[doc = "A link to another app."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Link {
    #[doc = "The name of the link, E.g. \"Workflow Logs\" or \"Pod Logs\""]
    pub name: String,
    #[doc = "\"workflow\", \"pod\", \"pod-logs\", \"event-source-logs\", \"sensor-logs\", \"workflow-list\" or \"chat\""]
    pub scope: String,
    #[doc = "The URL. Can contain \"${metadata.namespace}\", \"${metadata.name}\", \"${status.startedAt}\", \"${status.finishedAt}\" or any other element in workflow yaml, e.g. \"${io.argoproj.workflow.v1alpha1.metadata.annotations.userDefinedKey}\""]
    pub url: String,
}
impl From<&IoArgoprojWorkflowV1alpha1Link> for IoArgoprojWorkflowV1alpha1Link {
    fn from(value: &IoArgoprojWorkflowV1alpha1Link) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest {
    #[serde(
        rename = "cronWorkflow",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub cron_workflow: Option<IoArgoprojWorkflowV1alpha1CronWorkflow>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest>
    for IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1LintCronWorkflowRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1LogEntry {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub content: Option<String>,
    #[serde(rename = "podName", default, skip_serializing_if = "Option::is_none")]
    pub pod_name: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1LogEntry> for IoArgoprojWorkflowV1alpha1LogEntry {
    fn from(value: &IoArgoprojWorkflowV1alpha1LogEntry) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ManifestFrom {
    #[doc = "Artifact contains the artifact to use"]
    pub artifact: IoArgoprojWorkflowV1alpha1Artifact,
}
impl From<&IoArgoprojWorkflowV1alpha1ManifestFrom> for IoArgoprojWorkflowV1alpha1ManifestFrom {
    fn from(value: &IoArgoprojWorkflowV1alpha1ManifestFrom) -> Self {
        value.clone()
    }
}
#[doc = "MemoizationStatus is the status of this memoized node"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1MemoizationStatus {
    #[doc = "Cache is the name of the cache that was used"]
    #[serde(rename = "cacheName")]
    pub cache_name: String,
    #[doc = "Hit indicates whether this node was created from a cache entry"]
    pub hit: bool,
    #[doc = "Key is the name of the key used for this node's cache"]
    pub key: String,
}
impl From<&IoArgoprojWorkflowV1alpha1MemoizationStatus>
    for IoArgoprojWorkflowV1alpha1MemoizationStatus
{
    fn from(value: &IoArgoprojWorkflowV1alpha1MemoizationStatus) -> Self {
        value.clone()
    }
}
#[doc = "Memoization enables caching for the Outputs of the template"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Memoize {
    #[doc = "Cache sets and configures the kind of cache"]
    pub cache: IoArgoprojWorkflowV1alpha1Cache,
    #[doc = "Key is the key to use as the caching key"]
    pub key: String,
    #[doc = "MaxAge is the maximum age (e.g. \"180s\", \"24h\") of an entry that is still considered valid. If an entry is older than the MaxAge, it will be ignored."]
    #[serde(rename = "maxAge")]
    pub max_age: String,
}
impl From<&IoArgoprojWorkflowV1alpha1Memoize> for IoArgoprojWorkflowV1alpha1Memoize {
    fn from(value: &IoArgoprojWorkflowV1alpha1Memoize) -> Self {
        value.clone()
    }
}
#[doc = "Pod metdata"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Metadata {
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub annotations: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub labels: std::collections::HashMap<String, String>,
}
impl From<&IoArgoprojWorkflowV1alpha1Metadata> for IoArgoprojWorkflowV1alpha1Metadata {
    fn from(value: &IoArgoprojWorkflowV1alpha1Metadata) -> Self {
        value.clone()
    }
}
#[doc = "MetricLabel is a single label for a prometheus metric"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1MetricLabel {
    pub key: String,
    pub value: String,
}
impl From<&IoArgoprojWorkflowV1alpha1MetricLabel> for IoArgoprojWorkflowV1alpha1MetricLabel {
    fn from(value: &IoArgoprojWorkflowV1alpha1MetricLabel) -> Self {
        value.clone()
    }
}
#[doc = "Metrics are a list of metrics emitted from a Workflow/Template"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Metrics {
    #[doc = "Prometheus is a list of prometheus metrics to be emitted"]
    pub prometheus: Vec<IoArgoprojWorkflowV1alpha1Prometheus>,
}
impl From<&IoArgoprojWorkflowV1alpha1Metrics> for IoArgoprojWorkflowV1alpha1Metrics {
    fn from(value: &IoArgoprojWorkflowV1alpha1Metrics) -> Self {
        value.clone()
    }
}
#[doc = "Mutex holds Mutex configuration"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Mutex {
    #[doc = "name of the mutex"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Namespace is the namespace of the mutex, default: [namespace of workflow]"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1Mutex> for IoArgoprojWorkflowV1alpha1Mutex {
    fn from(value: &IoArgoprojWorkflowV1alpha1Mutex) -> Self {
        value.clone()
    }
}
#[doc = "MutexHolding describes the mutex and the object which is holding it."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1MutexHolding {
    #[doc = "Holder is a reference to the object which holds the Mutex. Holding Scenario:\n  1. Current workflow's NodeID which is holding the lock.\n     e.g: ${NodeID}\nWaiting Scenario:\n  1. Current workflow or other workflow NodeID which is holding the lock.\n     e.g: ${WorkflowName}/${NodeID}"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub holder: Option<String>,
    #[doc = "Reference for the mutex e.g: ${namespace}/mutex/${mutexName}"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mutex: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1MutexHolding> for IoArgoprojWorkflowV1alpha1MutexHolding {
    fn from(value: &IoArgoprojWorkflowV1alpha1MutexHolding) -> Self {
        value.clone()
    }
}
#[doc = "MutexStatus contains which objects hold  mutex locks, and which objects this workflow is waiting on to release locks."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1MutexStatus {
    #[doc = "Holding is a list of mutexes and their respective objects that are held by mutex lock for this io.argoproj.workflow.v1alpha1."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub holding: Vec<IoArgoprojWorkflowV1alpha1MutexHolding>,
    #[doc = "Waiting is a list of mutexes and their respective objects this workflow is waiting for."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub waiting: Vec<IoArgoprojWorkflowV1alpha1MutexHolding>,
}
impl From<&IoArgoprojWorkflowV1alpha1MutexStatus> for IoArgoprojWorkflowV1alpha1MutexStatus {
    fn from(value: &IoArgoprojWorkflowV1alpha1MutexStatus) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1NodeResult {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outputs: Option<IoArgoprojWorkflowV1alpha1Outputs>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub phase: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub progress: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1NodeResult> for IoArgoprojWorkflowV1alpha1NodeResult {
    fn from(value: &IoArgoprojWorkflowV1alpha1NodeResult) -> Self {
        value.clone()
    }
}
#[doc = "NodeStatus contains status information about an individual node in the workflow"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1NodeStatus {
    #[doc = "BoundaryID indicates the node ID of the associated template root node in which this node belongs to"]
    #[serde(
        rename = "boundaryID",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub boundary_id: Option<String>,
    #[doc = "Children is a list of child node IDs"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub children: Vec<String>,
    #[doc = "Daemoned tracks whether or not this node was daemoned and need to be terminated"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub daemoned: Option<bool>,
    #[doc = "DisplayName is a human readable representation of the node. Unique within a template boundary"]
    #[serde(
        rename = "displayName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub display_name: Option<String>,
    #[doc = "EstimatedDuration in seconds."]
    #[serde(
        rename = "estimatedDuration",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub estimated_duration: Option<i64>,
    #[doc = "Time at which this node completed"]
    #[serde(
        rename = "finishedAt",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub finished_at: Option<IoK8sApimachineryPkgApisMetaV1Time>,
    #[doc = "HostNodeName name of the Kubernetes node on which the Pod is running, if applicable"]
    #[serde(
        rename = "hostNodeName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub host_node_name: Option<String>,
    #[doc = "ID is a unique identifier of a node within the worklow It is implemented as a hash of the node name, which makes the ID deterministic"]
    pub id: String,
    #[doc = "Inputs captures input parameter values and artifact locations supplied to this template invocation"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub inputs: Option<IoArgoprojWorkflowV1alpha1Inputs>,
    #[doc = "MemoizationStatus holds information about cached nodes"]
    #[serde(
        rename = "memoizationStatus",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub memoization_status: Option<IoArgoprojWorkflowV1alpha1MemoizationStatus>,
    #[doc = "A human readable message indicating details about why the node is in this condition."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[doc = "Name is unique name in the node tree used to generate the node ID"]
    pub name: String,
    #[doc = "OutboundNodes tracks the node IDs which are considered \"outbound\" nodes to a template invocation. For every invocation of a template, there are nodes which we considered as \"outbound\". Essentially, these are last nodes in the execution sequence to run, before the template is considered completed. These nodes are then connected as parents to a following step.\n\nIn the case of single pod steps (i.e. container, script, resource templates), this list will be nil since the pod itself is already considered the \"outbound\" node. In the case of DAGs, outbound nodes are the \"target\" tasks (tasks with no children). In the case of steps, outbound nodes are all the containers involved in the last step group. NOTE: since templates are composable, the list of outbound nodes are carried upwards when a DAG/steps template invokes another DAG/steps template. In other words, the outbound nodes of a template, will be a superset of the outbound nodes of its last children."]
    #[serde(
        rename = "outboundNodes",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub outbound_nodes: Vec<String>,
    #[doc = "Outputs captures output parameter values and artifact locations produced by this template invocation"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outputs: Option<IoArgoprojWorkflowV1alpha1Outputs>,
    #[doc = "Phase a simple, high-level summary of where the node is in its lifecycle. Can be used as a state machine. Will be one of these values \"Pending\", \"Running\" before the node is completed, or \"Succeeded\", \"Skipped\", \"Failed\", \"Error\", or \"Omitted\" as a final state."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub phase: Option<String>,
    #[doc = "PodIP captures the IP of the pod for daemoned steps"]
    #[serde(rename = "podIP", default, skip_serializing_if = "Option::is_none")]
    pub pod_ip: Option<String>,
    #[doc = "Progress to completion"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub progress: Option<String>,
    #[doc = "ResourcesDuration is indicative, but not accurate, resource duration. This is populated when the nodes completes."]
    #[serde(
        rename = "resourcesDuration",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub resources_duration: std::collections::HashMap<String, i64>,
    #[doc = "Time at which this node started"]
    #[serde(rename = "startedAt", default, skip_serializing_if = "Option::is_none")]
    pub started_at: Option<IoK8sApimachineryPkgApisMetaV1Time>,
    #[doc = "SynchronizationStatus is the synchronization status of the node"]
    #[serde(
        rename = "synchronizationStatus",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub synchronization_status: Option<IoArgoprojWorkflowV1alpha1NodeSynchronizationStatus>,
    #[doc = "TemplateName is the template name which this node corresponds to. Not applicable to virtual nodes (e.g. Retry, StepGroup)"]
    #[serde(
        rename = "templateName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub template_name: Option<String>,
    #[doc = "TemplateRef is the reference to the template resource which this node corresponds to. Not applicable to virtual nodes (e.g. Retry, StepGroup)"]
    #[serde(
        rename = "templateRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub template_ref: Option<IoArgoprojWorkflowV1alpha1TemplateRef>,
    #[doc = "TemplateScope is the template scope in which the template of this node was retrieved."]
    #[serde(
        rename = "templateScope",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub template_scope: Option<String>,
    #[doc = "Type indicates type of node"]
    #[serde(rename = "type")]
    pub type_: String,
}
impl From<&IoArgoprojWorkflowV1alpha1NodeStatus> for IoArgoprojWorkflowV1alpha1NodeStatus {
    fn from(value: &IoArgoprojWorkflowV1alpha1NodeStatus) -> Self {
        value.clone()
    }
}
#[doc = "NodeSynchronizationStatus stores the status of a node"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1NodeSynchronizationStatus {
    #[doc = "Waiting is the name of the lock that this node is waiting for"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub waiting: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1NodeSynchronizationStatus>
    for IoArgoprojWorkflowV1alpha1NodeSynchronizationStatus
{
    fn from(value: &IoArgoprojWorkflowV1alpha1NodeSynchronizationStatus) -> Self {
        value.clone()
    }
}
#[doc = "NoneStrategy indicates to skip tar process and upload the files or directory tree as independent files. Note that if the artifact is a directory, the artifact driver must support the ability to save/load the directory appropriately."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1NoneStrategy(pub serde_json::Map<String, serde_json::Value>);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1NoneStrategy {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1NoneStrategy> for serde_json::Map<String, serde_json::Value> {
    fn from(value: IoArgoprojWorkflowV1alpha1NoneStrategy) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1NoneStrategy> for IoArgoprojWorkflowV1alpha1NoneStrategy {
    fn from(value: &IoArgoprojWorkflowV1alpha1NoneStrategy) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>> for IoArgoprojWorkflowV1alpha1NoneStrategy {
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}
#[doc = "OAuth2Auth holds all information for client authentication via OAuth2 tokens"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1OAuth2Auth {
    #[serde(
        rename = "clientIDSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub client_id_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "clientSecretSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub client_secret_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[serde(
        rename = "endpointParams",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub endpoint_params: Vec<IoArgoprojWorkflowV1alpha1OAuth2EndpointParam>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub scopes: Vec<String>,
    #[serde(
        rename = "tokenURLSecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub token_url_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojWorkflowV1alpha1OAuth2Auth> for IoArgoprojWorkflowV1alpha1OAuth2Auth {
    fn from(value: &IoArgoprojWorkflowV1alpha1OAuth2Auth) -> Self {
        value.clone()
    }
}
#[doc = "EndpointParam is for requesting optional fields that should be sent in the oauth request"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1OAuth2EndpointParam {
    #[doc = "Name is the header name"]
    pub key: String,
    #[doc = "Value is the literal value to use for the header"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1OAuth2EndpointParam>
    for IoArgoprojWorkflowV1alpha1OAuth2EndpointParam
{
    fn from(value: &IoArgoprojWorkflowV1alpha1OAuth2EndpointParam) -> Self {
        value.clone()
    }
}
#[doc = "OSSArtifact is the location of an Alibaba Cloud OSS artifact"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1OssArtifact {
    #[doc = "AccessKeySecret is the secret selector to the bucket's access key"]
    #[serde(
        rename = "accessKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub access_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "Bucket is the name of the bucket"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bucket: Option<String>,
    #[doc = "CreateBucketIfNotPresent tells the driver to attempt to create the OSS bucket for output artifacts, if it doesn't exist"]
    #[serde(
        rename = "createBucketIfNotPresent",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub create_bucket_if_not_present: Option<bool>,
    #[doc = "Endpoint is the hostname of the bucket endpoint"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoint: Option<String>,
    #[doc = "Key is the path in the bucket where the artifact resides"]
    pub key: String,
    #[doc = "LifecycleRule specifies how to manage bucket's lifecycle"]
    #[serde(
        rename = "lifecycleRule",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub lifecycle_rule: Option<IoArgoprojWorkflowV1alpha1OssLifecycleRule>,
    #[doc = "SecretKeySecret is the secret selector to the bucket's secret key"]
    #[serde(
        rename = "secretKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub secret_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "SecurityToken is the user's temporary security token. For more details, check out: https://www.alibabacloud.com/help/doc-detail/100624.htm"]
    #[serde(
        rename = "securityToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub security_token: Option<String>,
    #[doc = "UseSDKCreds tells the driver to figure out credentials based on sdk defaults."]
    #[serde(
        rename = "useSDKCreds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub use_sdk_creds: Option<bool>,
}
impl From<&IoArgoprojWorkflowV1alpha1OssArtifact> for IoArgoprojWorkflowV1alpha1OssArtifact {
    fn from(value: &IoArgoprojWorkflowV1alpha1OssArtifact) -> Self {
        value.clone()
    }
}
#[doc = "OSSArtifactRepository defines the controller configuration for an OSS artifact repository"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1OssArtifactRepository {
    #[doc = "AccessKeySecret is the secret selector to the bucket's access key"]
    #[serde(
        rename = "accessKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub access_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "Bucket is the name of the bucket"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bucket: Option<String>,
    #[doc = "CreateBucketIfNotPresent tells the driver to attempt to create the OSS bucket for output artifacts, if it doesn't exist"]
    #[serde(
        rename = "createBucketIfNotPresent",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub create_bucket_if_not_present: Option<bool>,
    #[doc = "Endpoint is the hostname of the bucket endpoint"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoint: Option<String>,
    #[doc = "KeyFormat defines the format of how to store keys and can reference workflow variables."]
    #[serde(rename = "keyFormat", default, skip_serializing_if = "Option::is_none")]
    pub key_format: Option<String>,
    #[doc = "LifecycleRule specifies how to manage bucket's lifecycle"]
    #[serde(
        rename = "lifecycleRule",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub lifecycle_rule: Option<IoArgoprojWorkflowV1alpha1OssLifecycleRule>,
    #[doc = "SecretKeySecret is the secret selector to the bucket's secret key"]
    #[serde(
        rename = "secretKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub secret_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "SecurityToken is the user's temporary security token. For more details, check out: https://www.alibabacloud.com/help/doc-detail/100624.htm"]
    #[serde(
        rename = "securityToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub security_token: Option<String>,
    #[doc = "UseSDKCreds tells the driver to figure out credentials based on sdk defaults."]
    #[serde(
        rename = "useSDKCreds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub use_sdk_creds: Option<bool>,
}
impl From<&IoArgoprojWorkflowV1alpha1OssArtifactRepository>
    for IoArgoprojWorkflowV1alpha1OssArtifactRepository
{
    fn from(value: &IoArgoprojWorkflowV1alpha1OssArtifactRepository) -> Self {
        value.clone()
    }
}
#[doc = "OSSLifecycleRule specifies how to manage bucket's lifecycle"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1OssLifecycleRule {
    #[doc = "MarkDeletionAfterDays is the number of days before we delete objects in the bucket"]
    #[serde(
        rename = "markDeletionAfterDays",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub mark_deletion_after_days: Option<i64>,
    #[doc = "MarkInfrequentAccessAfterDays is the number of days before we convert the objects in the bucket to Infrequent Access (IA) storage type"]
    #[serde(
        rename = "markInfrequentAccessAfterDays",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub mark_infrequent_access_after_days: Option<i64>,
}
impl From<&IoArgoprojWorkflowV1alpha1OssLifecycleRule>
    for IoArgoprojWorkflowV1alpha1OssLifecycleRule
{
    fn from(value: &IoArgoprojWorkflowV1alpha1OssLifecycleRule) -> Self {
        value.clone()
    }
}
#[doc = "Outputs hold parameters, artifacts, and results from a step"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Outputs {
    #[doc = "Artifacts holds the list of output artifacts produced by a step"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub artifacts: Vec<IoArgoprojWorkflowV1alpha1Artifact>,
    #[doc = "ExitCode holds the exit code of a script template"]
    #[serde(rename = "exitCode", default, skip_serializing_if = "Option::is_none")]
    pub exit_code: Option<String>,
    #[doc = "Parameters holds the list of output parameters produced by a step"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<IoArgoprojWorkflowV1alpha1Parameter>,
    #[doc = "Result holds the result (stdout) of a script template"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub result: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1Outputs> for IoArgoprojWorkflowV1alpha1Outputs {
    fn from(value: &IoArgoprojWorkflowV1alpha1Outputs) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ParallelSteps(pub Vec<IoArgoprojWorkflowV1alpha1WorkflowStep>);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1ParallelSteps {
    type Target = Vec<IoArgoprojWorkflowV1alpha1WorkflowStep>;
    fn deref(&self) -> &Vec<IoArgoprojWorkflowV1alpha1WorkflowStep> {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1ParallelSteps> for Vec<IoArgoprojWorkflowV1alpha1WorkflowStep> {
    fn from(value: IoArgoprojWorkflowV1alpha1ParallelSteps) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1ParallelSteps> for IoArgoprojWorkflowV1alpha1ParallelSteps {
    fn from(value: &IoArgoprojWorkflowV1alpha1ParallelSteps) -> Self {
        value.clone()
    }
}
impl From<Vec<IoArgoprojWorkflowV1alpha1WorkflowStep>> for IoArgoprojWorkflowV1alpha1ParallelSteps {
    fn from(value: Vec<IoArgoprojWorkflowV1alpha1WorkflowStep>) -> Self {
        Self(value)
    }
}

pub use IoArgoprojWorkflowV1alpha1ParameterBuilder as ParameterBuilder;
pub use IoArgoprojWorkflowV1alpha1ParameterBuilderError as ParameterBuilderError;
#[doc = "Parameter indicate a passed string parameter to a service template with an optional default value"]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
pub struct IoArgoprojWorkflowV1alpha1Parameter {
    #[builder(default)]
    #[doc = "Default is the default value to use for an input parameter if a value was not supplied"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub default: Option<String>,
    #[builder(default)]
    #[doc = "Description is the parameter description"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[builder(default)]
    #[doc = "Enum holds a list of string values to choose from, for the actual value of the parameter"]
    #[serde(rename = "enum", default, skip_serializing_if = "Vec::is_empty")]
    pub enum_: Vec<String>,
    #[builder(default)]
    #[doc = "GlobalName exports an output parameter to the global scope, making it available as '{{io.argoproj.workflow.v1alpha1.outputs.parameters.XXXX}} and in workflow.status.outputs.parameters"]
    #[serde(
        rename = "globalName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub global_name: Option<String>,
    #[doc = "Name is the parameter name"]
    pub name: String,
    #[builder(default)]
    #[doc = "Value is the literal value to use for the parameter. If specified in the context of an input parameter, the value takes precedence over any passed values"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
    #[builder(default)]
    #[doc = "ValueFrom is the source for the output parameter's value"]
    #[serde(rename = "valueFrom", default, skip_serializing_if = "Option::is_none")]
    pub value_from: Option<IoArgoprojWorkflowV1alpha1ValueFrom>,
}
impl From<&IoArgoprojWorkflowV1alpha1Parameter> for IoArgoprojWorkflowV1alpha1Parameter {
    fn from(value: &IoArgoprojWorkflowV1alpha1Parameter) -> Self {
        value.clone()
    }
}
#[doc = "Plugin is an Object with exactly one key"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Plugin(pub serde_json::Map<String, serde_json::Value>);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1Plugin {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1Plugin> for serde_json::Map<String, serde_json::Value> {
    fn from(value: IoArgoprojWorkflowV1alpha1Plugin) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1Plugin> for IoArgoprojWorkflowV1alpha1Plugin {
    fn from(value: &IoArgoprojWorkflowV1alpha1Plugin) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>> for IoArgoprojWorkflowV1alpha1Plugin {
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}
#[doc = "PodGC describes how to delete completed pods as they complete"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1PodGc {
    #[doc = "DeleteDelayDuration specifies the duration before pods in the GC queue get deleted."]
    #[serde(
        rename = "deleteDelayDuration",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub delete_delay_duration: Option<IoK8sApimachineryPkgApisMetaV1Duration>,
    #[doc = "LabelSelector is the label selector to check if the pods match the labels before being added to the pod GC queue."]
    #[serde(
        rename = "labelSelector",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub label_selector: Option<IoK8sApimachineryPkgApisMetaV1LabelSelector>,
    #[doc = "Strategy is the strategy to use. One of \"OnPodCompletion\", \"OnPodSuccess\", \"OnWorkflowCompletion\", \"OnWorkflowSuccess\". If unset, does not delete Pods"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub strategy: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1PodGc> for IoArgoprojWorkflowV1alpha1PodGc {
    fn from(value: &IoArgoprojWorkflowV1alpha1PodGc) -> Self {
        value.clone()
    }
}
#[doc = "Prometheus is a prometheus metric to be emitted"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Prometheus {
    #[doc = "Counter is a counter metric"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub counter: Option<IoArgoprojWorkflowV1alpha1Counter>,
    #[doc = "Gauge is a gauge metric"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gauge: Option<IoArgoprojWorkflowV1alpha1Gauge>,
    #[doc = "Help is a string that describes the metric"]
    pub help: String,
    #[doc = "Histogram is a histogram metric"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub histogram: Option<IoArgoprojWorkflowV1alpha1Histogram>,
    #[doc = "Labels is a list of metric labels"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub labels: Vec<IoArgoprojWorkflowV1alpha1MetricLabel>,
    #[doc = "Name is the name of the metric"]
    pub name: String,
    #[doc = "When is a conditional statement that decides when to emit the metric"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub when: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1Prometheus> for IoArgoprojWorkflowV1alpha1Prometheus {
    fn from(value: &IoArgoprojWorkflowV1alpha1Prometheus) -> Self {
        value.clone()
    }
}
#[doc = "RawArtifact allows raw string content to be placed as an artifact in a container"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1RawArtifact {
    #[doc = "Data is the string contents of the artifact"]
    pub data: String,
}
impl From<&IoArgoprojWorkflowV1alpha1RawArtifact> for IoArgoprojWorkflowV1alpha1RawArtifact {
    fn from(value: &IoArgoprojWorkflowV1alpha1RawArtifact) -> Self {
        value.clone()
    }
}
#[doc = "ResourceTemplate is a template subtype to manipulate kubernetes resources"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ResourceTemplate {
    #[doc = "Action is the action to perform to the resource. Must be one of: get, create, apply, delete, replace, patch"]
    pub action: String,
    #[doc = "FailureCondition is a label selector expression which describes the conditions of the k8s resource in which the step was considered failed"]
    #[serde(
        rename = "failureCondition",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub failure_condition: Option<String>,
    #[doc = "Flags is a set of additional options passed to kubectl before submitting a resource I.e. to disable resource validation: flags: [\n\t\"--validate=false\"  # disable resource validation\n]"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub flags: Vec<String>,
    #[doc = "Manifest contains the kubernetes manifest"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub manifest: Option<String>,
    #[doc = "ManifestFrom is the source for a single kubernetes manifest"]
    #[serde(
        rename = "manifestFrom",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub manifest_from: Option<IoArgoprojWorkflowV1alpha1ManifestFrom>,
    #[doc = "MergeStrategy is the strategy used to merge a patch. It defaults to \"strategic\" Must be one of: strategic, merge, json"]
    #[serde(
        rename = "mergeStrategy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub merge_strategy: Option<String>,
    #[doc = "SetOwnerReference sets the reference to the workflow on the OwnerReference of generated resource."]
    #[serde(
        rename = "setOwnerReference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub set_owner_reference: Option<bool>,
    #[doc = "SuccessCondition is a label selector expression which describes the conditions of the k8s resource in which it is acceptable to proceed to the following step"]
    #[serde(
        rename = "successCondition",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub success_condition: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1ResourceTemplate>
    for IoArgoprojWorkflowV1alpha1ResourceTemplate
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ResourceTemplate) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memoized: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uid: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest>
    for IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1ResubmitArchivedWorkflowRequest) -> Self {
        value.clone()
    }
}
#[doc = "RetryAffinity prevents running steps on the same host."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1RetryAffinity {
    #[serde(
        rename = "nodeAntiAffinity",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub node_anti_affinity: Option<IoArgoprojWorkflowV1alpha1RetryNodeAntiAffinity>,
}
impl From<&IoArgoprojWorkflowV1alpha1RetryAffinity> for IoArgoprojWorkflowV1alpha1RetryAffinity {
    fn from(value: &IoArgoprojWorkflowV1alpha1RetryAffinity) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(
        rename = "nodeFieldSelector",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub node_field_selector: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<String>,
    #[serde(
        rename = "restartSuccessful",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub restart_successful: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uid: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest>
    for IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1RetryArchivedWorkflowRequest) -> Self {
        value.clone()
    }
}
#[doc = "RetryNodeAntiAffinity is a placeholder for future expansion, only empty nodeAntiAffinity is allowed. In order to prevent running steps on the same host, it uses \"kubernetes.io/hostname\"."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1RetryNodeAntiAffinity(
    pub serde_json::Map<String, serde_json::Value>,
);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1RetryNodeAntiAffinity {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1RetryNodeAntiAffinity>
    for serde_json::Map<String, serde_json::Value>
{
    fn from(value: IoArgoprojWorkflowV1alpha1RetryNodeAntiAffinity) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1RetryNodeAntiAffinity>
    for IoArgoprojWorkflowV1alpha1RetryNodeAntiAffinity
{
    fn from(value: &IoArgoprojWorkflowV1alpha1RetryNodeAntiAffinity) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>>
    for IoArgoprojWorkflowV1alpha1RetryNodeAntiAffinity
{
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}
#[doc = "RetryStrategy provides controls on how to retry a workflow step"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1RetryStrategy {
    #[doc = "Affinity prevents running workflow's step on the same host"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub affinity: Option<IoArgoprojWorkflowV1alpha1RetryAffinity>,
    #[doc = "Backoff is a backoff strategy"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub backoff: Option<IoArgoprojWorkflowV1alpha1Backoff>,
    #[doc = "Expression is a condition expression for when a node will be retried. If it evaluates to false, the node will not be retried and the retry strategy will be ignored"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expression: Option<String>,
    #[doc = "Limit is the maximum number of retry attempts when retrying a container. It does not include the original container; the maximum number of total attempts will be `limit + 1`."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub limit: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>,
    #[doc = "RetryPolicy is a policy of NodePhase statuses that will be retried"]
    #[serde(
        rename = "retryPolicy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub retry_policy: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1RetryStrategy> for IoArgoprojWorkflowV1alpha1RetryStrategy {
    fn from(value: &IoArgoprojWorkflowV1alpha1RetryStrategy) -> Self {
        value.clone()
    }
}
#[doc = "S3Artifact is the location of an S3 artifact"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1S3Artifact {
    #[doc = "AccessKeySecret is the secret selector to the bucket's access key"]
    #[serde(
        rename = "accessKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub access_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "Bucket is the name of the bucket"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bucket: Option<String>,
    #[doc = "CASecret specifies the secret that contains the CA, used to verify the TLS connection"]
    #[serde(rename = "caSecret", default, skip_serializing_if = "Option::is_none")]
    pub ca_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "CreateBucketIfNotPresent tells the driver to attempt to create the S3 bucket for output artifacts, if it doesn't exist. Setting Enabled Encryption will apply either SSE-S3 to the bucket if KmsKeyId is not set or SSE-KMS if it is."]
    #[serde(
        rename = "createBucketIfNotPresent",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub create_bucket_if_not_present: Option<IoArgoprojWorkflowV1alpha1CreateS3BucketOptions>,
    #[serde(
        rename = "encryptionOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub encryption_options: Option<IoArgoprojWorkflowV1alpha1S3EncryptionOptions>,
    #[doc = "Endpoint is the hostname of the bucket endpoint"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoint: Option<String>,
    #[doc = "Insecure will connect to the service with TLS"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub insecure: Option<bool>,
    #[doc = "Key is the key in the bucket where the artifact resides"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub key: Option<String>,
    #[doc = "Region contains the optional bucket region"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub region: Option<String>,
    #[doc = "RoleARN is the Amazon Resource Name (ARN) of the role to assume."]
    #[serde(rename = "roleARN", default, skip_serializing_if = "Option::is_none")]
    pub role_arn: Option<String>,
    #[doc = "SecretKeySecret is the secret selector to the bucket's secret key"]
    #[serde(
        rename = "secretKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub secret_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "UseSDKCreds tells the driver to figure out credentials based on sdk defaults."]
    #[serde(
        rename = "useSDKCreds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub use_sdk_creds: Option<bool>,
}
impl From<&IoArgoprojWorkflowV1alpha1S3Artifact> for IoArgoprojWorkflowV1alpha1S3Artifact {
    fn from(value: &IoArgoprojWorkflowV1alpha1S3Artifact) -> Self {
        value.clone()
    }
}
#[doc = "S3ArtifactRepository defines the controller configuration for an S3 artifact repository"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1S3ArtifactRepository {
    #[doc = "AccessKeySecret is the secret selector to the bucket's access key"]
    #[serde(
        rename = "accessKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub access_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "Bucket is the name of the bucket"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bucket: Option<String>,
    #[doc = "CASecret specifies the secret that contains the CA, used to verify the TLS connection"]
    #[serde(rename = "caSecret", default, skip_serializing_if = "Option::is_none")]
    pub ca_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "CreateBucketIfNotPresent tells the driver to attempt to create the S3 bucket for output artifacts, if it doesn't exist. Setting Enabled Encryption will apply either SSE-S3 to the bucket if KmsKeyId is not set or SSE-KMS if it is."]
    #[serde(
        rename = "createBucketIfNotPresent",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub create_bucket_if_not_present: Option<IoArgoprojWorkflowV1alpha1CreateS3BucketOptions>,
    #[serde(
        rename = "encryptionOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub encryption_options: Option<IoArgoprojWorkflowV1alpha1S3EncryptionOptions>,
    #[doc = "Endpoint is the hostname of the bucket endpoint"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoint: Option<String>,
    #[doc = "Insecure will connect to the service with TLS"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub insecure: Option<bool>,
    #[doc = "KeyFormat defines the format of how to store keys and can reference workflow variables."]
    #[serde(rename = "keyFormat", default, skip_serializing_if = "Option::is_none")]
    pub key_format: Option<String>,
    #[doc = "KeyPrefix is prefix used as part of the bucket key in which the controller will store artifacts. DEPRECATED. Use KeyFormat instead"]
    #[serde(rename = "keyPrefix", default, skip_serializing_if = "Option::is_none")]
    pub key_prefix: Option<String>,
    #[doc = "Region contains the optional bucket region"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub region: Option<String>,
    #[doc = "RoleARN is the Amazon Resource Name (ARN) of the role to assume."]
    #[serde(rename = "roleARN", default, skip_serializing_if = "Option::is_none")]
    pub role_arn: Option<String>,
    #[doc = "SecretKeySecret is the secret selector to the bucket's secret key"]
    #[serde(
        rename = "secretKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub secret_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
    #[doc = "UseSDKCreds tells the driver to figure out credentials based on sdk defaults."]
    #[serde(
        rename = "useSDKCreds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub use_sdk_creds: Option<bool>,
}
impl From<&IoArgoprojWorkflowV1alpha1S3ArtifactRepository>
    for IoArgoprojWorkflowV1alpha1S3ArtifactRepository
{
    fn from(value: &IoArgoprojWorkflowV1alpha1S3ArtifactRepository) -> Self {
        value.clone()
    }
}
#[doc = "S3EncryptionOptions used to determine encryption options during s3 operations"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1S3EncryptionOptions {
    #[doc = "EnableEncryption tells the driver to encrypt objects if set to true. If kmsKeyId and serverSideCustomerKeySecret are not set, SSE-S3 will be used"]
    #[serde(
        rename = "enableEncryption",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub enable_encryption: Option<bool>,
    #[doc = "KmsEncryptionContext is a json blob that contains an encryption context. See https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context for more information"]
    #[serde(
        rename = "kmsEncryptionContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub kms_encryption_context: Option<String>,
    #[doc = "KMSKeyId tells the driver to encrypt the object using the specified KMS Key."]
    #[serde(rename = "kmsKeyId", default, skip_serializing_if = "Option::is_none")]
    pub kms_key_id: Option<String>,
    #[doc = "ServerSideCustomerKeySecret tells the driver to encrypt the output artifacts using SSE-C with the specified secret."]
    #[serde(
        rename = "serverSideCustomerKeySecret",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub server_side_customer_key_secret: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoArgoprojWorkflowV1alpha1S3EncryptionOptions>
    for IoArgoprojWorkflowV1alpha1S3EncryptionOptions
{
    fn from(value: &IoArgoprojWorkflowV1alpha1S3EncryptionOptions) -> Self {
        value.clone()
    }
}
#[doc = "ScriptTemplate is a template subtype to enable scripting through code steps"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ScriptTemplate {
    #[doc = "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub args: Vec<String>,
    #[doc = "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub command: Vec<String>,
    #[doc = "List of environment variables to set in the container. Cannot be updated."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub env: Vec<IoK8sApiCoreV1EnvVar>,
    #[doc = "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated."]
    #[serde(rename = "envFrom", default, skip_serializing_if = "Vec::is_empty")]
    pub env_from: Vec<IoK8sApiCoreV1EnvFromSource>,
    #[doc = "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets."]
    pub image: String,
    #[doc = "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images"]
    #[serde(
        rename = "imagePullPolicy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub image_pull_policy: Option<String>,
    #[doc = "Actions that the management system should take in response to container lifecycle events. Cannot be updated."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub lifecycle: Option<IoK8sApiCoreV1Lifecycle>,
    #[doc = "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"]
    #[serde(
        rename = "livenessProbe",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub liveness_probe: Option<IoK8sApiCoreV1Probe>,
    #[doc = "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub ports: Vec<IoK8sApiCoreV1ContainerPort>,
    #[doc = "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"]
    #[serde(
        rename = "readinessProbe",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub readiness_probe: Option<IoK8sApiCoreV1Probe>,
    #[doc = "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resources: Option<IoK8sApiCoreV1ResourceRequirements>,
    #[doc = "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/"]
    #[serde(
        rename = "securityContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub security_context: Option<IoK8sApiCoreV1SecurityContext>,
    #[doc = "Source contains the source code of the script to execute"]
    pub source: String,
    #[doc = "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"]
    #[serde(
        rename = "startupProbe",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub startup_probe: Option<IoK8sApiCoreV1Probe>,
    #[doc = "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub stdin: Option<bool>,
    #[doc = "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false"]
    #[serde(rename = "stdinOnce", default, skip_serializing_if = "Option::is_none")]
    pub stdin_once: Option<bool>,
    #[doc = "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated."]
    #[serde(
        rename = "terminationMessagePath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub termination_message_path: Option<String>,
    #[doc = "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated."]
    #[serde(
        rename = "terminationMessagePolicy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub termination_message_policy: Option<String>,
    #[doc = "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tty: Option<bool>,
    #[doc = "volumeDevices is the list of block devices to be used by the container."]
    #[serde(
        rename = "volumeDevices",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub volume_devices: Vec<IoK8sApiCoreV1VolumeDevice>,
    #[doc = "Pod volumes to mount into the container's filesystem. Cannot be updated."]
    #[serde(
        rename = "volumeMounts",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub volume_mounts: Vec<IoK8sApiCoreV1VolumeMount>,
    #[doc = "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated."]
    #[serde(
        rename = "workingDir",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub working_dir: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1ScriptTemplate> for IoArgoprojWorkflowV1alpha1ScriptTemplate {
    fn from(value: &IoArgoprojWorkflowV1alpha1ScriptTemplate) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1SemaphoreHolding {
    #[doc = "Holders stores the list of current holder names in the io.argoproj.workflow.v1alpha1."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub holders: Vec<String>,
    #[doc = "Semaphore stores the semaphore name."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub semaphore: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1SemaphoreHolding>
    for IoArgoprojWorkflowV1alpha1SemaphoreHolding
{
    fn from(value: &IoArgoprojWorkflowV1alpha1SemaphoreHolding) -> Self {
        value.clone()
    }
}
#[doc = "SemaphoreRef is a reference of Semaphore"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1SemaphoreRef {
    #[doc = "ConfigMapKeyRef is configmap selector for Semaphore configuration"]
    #[serde(
        rename = "configMapKeyRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub config_map_key_ref: Option<IoK8sApiCoreV1ConfigMapKeySelector>,
    #[doc = "Namespace is the namespace of the configmap, default: [namespace of workflow]"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1SemaphoreRef> for IoArgoprojWorkflowV1alpha1SemaphoreRef {
    fn from(value: &IoArgoprojWorkflowV1alpha1SemaphoreRef) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1SemaphoreStatus {
    #[doc = "Holding stores the list of resource acquired synchronization lock for workflows."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub holding: Vec<IoArgoprojWorkflowV1alpha1SemaphoreHolding>,
    #[doc = "Waiting indicates the list of current synchronization lock holders."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub waiting: Vec<IoArgoprojWorkflowV1alpha1SemaphoreHolding>,
}
impl From<&IoArgoprojWorkflowV1alpha1SemaphoreStatus>
    for IoArgoprojWorkflowV1alpha1SemaphoreStatus
{
    fn from(value: &IoArgoprojWorkflowV1alpha1SemaphoreStatus) -> Self {
        value.clone()
    }
}
#[doc = "Sequence expands a workflow step into numeric range"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Sequence {
    #[doc = "Count is number of elements in the sequence (default: 0). Not to be used with end"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>,
    #[doc = "Number at which to end the sequence (default: 0). Not to be used with Count"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub end: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>,
    #[doc = "Format is a printf format string to format the value in the sequence"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub format: Option<String>,
    #[doc = "Number at which to start the sequence (default: 0)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub start: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>,
}
impl From<&IoArgoprojWorkflowV1alpha1Sequence> for IoArgoprojWorkflowV1alpha1Sequence {
    fn from(value: &IoArgoprojWorkflowV1alpha1Sequence) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Submit {
    #[doc = "Arguments extracted from the event and then set as arguments to the workflow created."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub arguments: Option<IoArgoprojWorkflowV1alpha1Arguments>,
    #[doc = "Metadata optional means to customize select fields of the workflow metadata"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metadata: Option<IoK8sApimachineryPkgApisMetaV1ObjectMeta>,
    #[doc = "WorkflowTemplateRef the workflow template to submit"]
    #[serde(rename = "workflowTemplateRef")]
    pub workflow_template_ref: IoArgoprojWorkflowV1alpha1WorkflowTemplateRef,
}
impl From<&IoArgoprojWorkflowV1alpha1Submit> for IoArgoprojWorkflowV1alpha1Submit {
    fn from(value: &IoArgoprojWorkflowV1alpha1Submit) -> Self {
        value.clone()
    }
}
#[doc = "SubmitOpts are workflow submission options"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1SubmitOpts {
    #[doc = "Annotations adds to metadata.labels"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub annotations: Option<String>,
    #[doc = "DryRun validates the workflow on the client-side without creating it. This option is not supported in API"]
    #[serde(rename = "dryRun", default, skip_serializing_if = "Option::is_none")]
    pub dry_run: Option<bool>,
    #[doc = "Entrypoint overrides spec.entrypoint"]
    #[serde(
        rename = "entryPoint",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub entry_point: Option<String>,
    #[doc = "GenerateName overrides metadata.generateName"]
    #[serde(
        rename = "generateName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub generate_name: Option<String>,
    #[doc = "Labels adds to metadata.labels"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub labels: Option<String>,
    #[doc = "Name overrides metadata.name"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "OwnerReference creates a metadata.ownerReference"]
    #[serde(
        rename = "ownerReference",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub owner_reference: Option<IoK8sApimachineryPkgApisMetaV1OwnerReference>,
    #[doc = "Parameters passes input parameters to workflow"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<String>,
    #[doc = "Set the podPriorityClassName of the workflow"]
    #[serde(
        rename = "podPriorityClassName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pod_priority_class_name: Option<String>,
    #[doc = "Priority is used if controller is configured to process limited number of workflows in parallel, higher priority workflows are processed first."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub priority: Option<i64>,
    #[doc = "ServerDryRun validates the workflow on the server-side without creating it"]
    #[serde(
        rename = "serverDryRun",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub server_dry_run: Option<bool>,
    #[doc = "ServiceAccount runs all pods in the workflow using specified ServiceAccount."]
    #[serde(
        rename = "serviceAccount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_account: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1SubmitOpts> for IoArgoprojWorkflowV1alpha1SubmitOpts {
    fn from(value: &IoArgoprojWorkflowV1alpha1SubmitOpts) -> Self {
        value.clone()
    }
}
#[doc = "SuppliedValueFrom is a placeholder for a value to be filled in directly, either through the CLI, API, etc."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1SuppliedValueFrom(
    pub serde_json::Map<String, serde_json::Value>,
);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1SuppliedValueFrom {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1SuppliedValueFrom>
    for serde_json::Map<String, serde_json::Value>
{
    fn from(value: IoArgoprojWorkflowV1alpha1SuppliedValueFrom) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1SuppliedValueFrom>
    for IoArgoprojWorkflowV1alpha1SuppliedValueFrom
{
    fn from(value: &IoArgoprojWorkflowV1alpha1SuppliedValueFrom) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>>
    for IoArgoprojWorkflowV1alpha1SuppliedValueFrom
{
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}
#[doc = "SuspendTemplate is a template subtype to suspend a workflow at a predetermined point in time"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1SuspendTemplate {
    #[doc = "Duration is the seconds to wait before automatically resuming a template. Must be a string. Default unit is seconds. Could also be a Duration, e.g.: \"2m\", \"6h\""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1SuspendTemplate>
    for IoArgoprojWorkflowV1alpha1SuspendTemplate
{
    fn from(value: &IoArgoprojWorkflowV1alpha1SuspendTemplate) -> Self {
        value.clone()
    }
}
#[doc = "Synchronization holds synchronization lock configuration"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Synchronization {
    #[doc = "Mutex holds the Mutex lock details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mutex: Option<IoArgoprojWorkflowV1alpha1Mutex>,
    #[doc = "Semaphore holds the Semaphore configuration"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub semaphore: Option<IoArgoprojWorkflowV1alpha1SemaphoreRef>,
}
impl From<&IoArgoprojWorkflowV1alpha1Synchronization>
    for IoArgoprojWorkflowV1alpha1Synchronization
{
    fn from(value: &IoArgoprojWorkflowV1alpha1Synchronization) -> Self {
        value.clone()
    }
}
#[doc = "SynchronizationStatus stores the status of semaphore and mutex."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1SynchronizationStatus {
    #[doc = "Mutex stores this workflow's mutex holder details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mutex: Option<IoArgoprojWorkflowV1alpha1MutexStatus>,
    #[doc = "Semaphore stores this workflow's Semaphore holder details"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub semaphore: Option<IoArgoprojWorkflowV1alpha1SemaphoreStatus>,
}
impl From<&IoArgoprojWorkflowV1alpha1SynchronizationStatus>
    for IoArgoprojWorkflowV1alpha1SynchronizationStatus
{
    fn from(value: &IoArgoprojWorkflowV1alpha1SynchronizationStatus) -> Self {
        value.clone()
    }
}
#[doc = "TarStrategy will tar and gzip the file or directory when saving"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1TarStrategy {
    #[doc = "CompressionLevel specifies the gzip compression level to use for the artifact. Defaults to gzip.DefaultCompression."]
    #[serde(
        rename = "compressionLevel",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub compression_level: Option<i64>,
}
impl From<&IoArgoprojWorkflowV1alpha1TarStrategy> for IoArgoprojWorkflowV1alpha1TarStrategy {
    fn from(value: &IoArgoprojWorkflowV1alpha1TarStrategy) -> Self {
        value.clone()
    }
}

pub use IoArgoprojWorkflowV1alpha1TemplateBuilder as TemplateBuilder;
pub use IoArgoprojWorkflowV1alpha1TemplateBuilderError as TemplateBuilderError;

#[doc = "Template is a reusable and composable unit of execution in a workflow"]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
#[builder(default)]
pub struct IoArgoprojWorkflowV1alpha1Template {
    #[doc = "Optional duration in seconds relative to the StartTime that the pod may be active on a node before the system actively tries to terminate the pod; value must be positive integer This field is only applicable to container and script templates."]
    #[serde(
        rename = "activeDeadlineSeconds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub active_deadline_seconds: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>,
    #[doc = "Affinity sets the pod's scheduling constraints Overrides the affinity set at the workflow level (if any)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub affinity: Option<IoK8sApiCoreV1Affinity>,
    #[doc = "Location in which all files related to the step will be stored (logs, artifacts, etc...). Can be overridden by individual items in Outputs. If omitted, will use the default artifact repository location configured in the controller, appended with the <workflowname>/<nodename> in the key."]
    #[serde(
        rename = "archiveLocation",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub archive_location: Option<IoArgoprojWorkflowV1alpha1ArtifactLocation>,
    #[doc = "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in pods. ServiceAccountName of ExecutorConfig must be specified if this value is false."]
    #[serde(
        rename = "automountServiceAccountToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub automount_service_account_token: Option<bool>,
    #[doc = "Container is the main container image to run in the pod"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub container: Option<IoK8sApiCoreV1Container>,
    #[doc = "ContainerSet groups multiple containers within a single pod."]
    #[serde(
        rename = "containerSet",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub container_set: Option<IoArgoprojWorkflowV1alpha1ContainerSetTemplate>,
    #[doc = "Daemon will allow a workflow to proceed to the next step so long as the container reaches readiness"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub daemon: Option<bool>,
    #[doc = "DAG template subtype which runs a DAG"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub dag: Option<IoArgoprojWorkflowV1alpha1DagTemplate>,
    #[doc = "Data is a data template"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub data: Option<IoArgoprojWorkflowV1alpha1Data>,
    #[doc = "Executor holds configurations of the executor container."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub executor: Option<IoArgoprojWorkflowV1alpha1ExecutorConfig>,
    #[doc = "FailFast, if specified, will fail this template if any of its child pods has failed. This is useful for when this template is expanded with `withItems`, etc."]
    #[serde(rename = "failFast", default, skip_serializing_if = "Option::is_none")]
    pub fail_fast: Option<bool>,
    #[doc = "HostAliases is an optional list of hosts and IPs that will be injected into the pod spec"]
    #[serde(rename = "hostAliases", default, skip_serializing_if = "Vec::is_empty")]
    pub host_aliases: Vec<IoK8sApiCoreV1HostAlias>,
    #[doc = "HTTP makes a HTTP request"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub http: Option<IoArgoprojWorkflowV1alpha1Http>,
    #[doc = "InitContainers is a list of containers which run before the main container."]
    #[serde(
        rename = "initContainers",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub init_containers: Vec<IoArgoprojWorkflowV1alpha1UserContainer>,
    #[doc = "Inputs describe what inputs parameters and artifacts are supplied to this template"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub inputs: Option<IoArgoprojWorkflowV1alpha1Inputs>,
    #[doc = "Memoize allows templates to use outputs generated from already executed templates"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memoize: Option<IoArgoprojWorkflowV1alpha1Memoize>,
    #[doc = "Metdata sets the pods's metadata, i.e. annotations and labels"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metadata: Option<IoArgoprojWorkflowV1alpha1Metadata>,
    #[doc = "Metrics are a list of metrics emitted from this template"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metrics: Option<IoArgoprojWorkflowV1alpha1Metrics>,
    #[doc = "Name is the name of the template"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "NodeSelector is a selector to schedule this step of the workflow to be run on the selected node(s). Overrides the selector set at the workflow level."]
    #[serde(
        rename = "nodeSelector",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub node_selector: std::collections::HashMap<String, String>,
    #[doc = "Outputs describe the parameters and artifacts that this template produces"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outputs: Option<IoArgoprojWorkflowV1alpha1Outputs>,
    #[doc = "Parallelism limits the max total parallel pods that can execute at the same time within the boundaries of this template invocation. If additional steps/dag templates are invoked, the pods created by those templates will not be counted towards this total."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub parallelism: Option<i64>,
    #[doc = "Plugin is a plugin template"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub plugin: Option<IoArgoprojWorkflowV1alpha1Plugin>,
    #[doc = "PodSpecPatch holds strategic merge patch to apply against the pod spec. Allows parameterization of container fields which are not strings (e.g. resource limits)."]
    #[serde(
        rename = "podSpecPatch",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pod_spec_patch: Option<String>,
    #[doc = "Priority to apply to workflow pods."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub priority: Option<i64>,
    #[doc = "PriorityClassName to apply to workflow pods."]
    #[serde(
        rename = "priorityClassName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub priority_class_name: Option<String>,
    #[doc = "Resource template subtype which can run k8s resources"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resource: Option<IoArgoprojWorkflowV1alpha1ResourceTemplate>,
    #[doc = "RetryStrategy describes how to retry a template when it fails"]
    #[serde(
        rename = "retryStrategy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub retry_strategy: Option<IoArgoprojWorkflowV1alpha1RetryStrategy>,
    #[doc = "If specified, the pod will be dispatched by specified scheduler. Or it will be dispatched by workflow scope scheduler if specified. If neither specified, the pod will be dispatched by default scheduler."]
    #[serde(
        rename = "schedulerName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub scheduler_name: Option<String>,
    #[doc = "Script runs a portion of code against an interpreter"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub script: Option<IoArgoprojWorkflowV1alpha1ScriptTemplate>,
    #[doc = "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty.  See type description for default values of each field."]
    #[serde(
        rename = "securityContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub security_context: Option<IoK8sApiCoreV1PodSecurityContext>,
    #[doc = "ServiceAccountName to apply to workflow pods"]
    #[serde(
        rename = "serviceAccountName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_account_name: Option<String>,
    #[doc = "Sidecars is a list of containers which run alongside the main container Sidecars are automatically killed when the main container completes"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub sidecars: Vec<IoArgoprojWorkflowV1alpha1UserContainer>,
    #[doc = "Steps define a series of sequential/parallel workflow steps"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub steps: Vec<IoArgoprojWorkflowV1alpha1ParallelSteps>,
    #[doc = "Suspend template subtype which can suspend a workflow when reaching the step"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub suspend: Option<IoArgoprojWorkflowV1alpha1SuspendTemplate>,
    #[doc = "Synchronization holds synchronization lock configuration for this template"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub synchronization: Option<IoArgoprojWorkflowV1alpha1Synchronization>,
    #[doc = "Timeout allows to set the total node execution timeout duration counting from the node's start time. This duration also includes time in which the node spends in Pending state. This duration may not be applied to Step or DAG templates."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timeout: Option<String>,
    #[doc = "Tolerations to apply to workflow pods."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub tolerations: Vec<IoK8sApiCoreV1Toleration>,
    #[doc = "Volumes is a list of volumes that can be mounted by containers in a template."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub volumes: Vec<IoK8sApiCoreV1Volume>,
}
impl From<&IoArgoprojWorkflowV1alpha1Template> for IoArgoprojWorkflowV1alpha1Template {
    fn from(value: &IoArgoprojWorkflowV1alpha1Template) -> Self {
        value.clone()
    }
}
#[doc = "TemplateRef is a reference of template resource."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1TemplateRef {
    #[doc = "ClusterScope indicates the referred template is cluster scoped (i.e. a ClusterWorkflowTemplate)."]
    #[serde(
        rename = "clusterScope",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub cluster_scope: Option<bool>,
    #[doc = "Name is the resource name of the template."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Template is the name of referred template in the resource."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1TemplateRef> for IoArgoprojWorkflowV1alpha1TemplateRef {
    fn from(value: &IoArgoprojWorkflowV1alpha1TemplateRef) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1TransformationStep {
    #[doc = "Expression defines an expr expression to apply"]
    pub expression: String,
}
impl From<&IoArgoprojWorkflowV1alpha1TransformationStep>
    for IoArgoprojWorkflowV1alpha1TransformationStep
{
    fn from(value: &IoArgoprojWorkflowV1alpha1TransformationStep) -> Self {
        value.clone()
    }
}
#[doc = "TTLStrategy is the strategy for the time to live depending on if the workflow succeeded or failed"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1TtlStrategy {
    #[doc = "SecondsAfterCompletion is the number of seconds to live after completion"]
    #[serde(
        rename = "secondsAfterCompletion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub seconds_after_completion: Option<i64>,
    #[doc = "SecondsAfterFailure is the number of seconds to live after failure"]
    #[serde(
        rename = "secondsAfterFailure",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub seconds_after_failure: Option<i64>,
    #[doc = "SecondsAfterSuccess is the number of seconds to live after success"]
    #[serde(
        rename = "secondsAfterSuccess",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub seconds_after_success: Option<i64>,
}
impl From<&IoArgoprojWorkflowV1alpha1TtlStrategy> for IoArgoprojWorkflowV1alpha1TtlStrategy {
    fn from(value: &IoArgoprojWorkflowV1alpha1TtlStrategy) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest {
    #[serde(
        rename = "cronWorkflow",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub cron_workflow: Option<IoArgoprojWorkflowV1alpha1CronWorkflow>,
    #[doc = "DEPRECATED: This field is ignored."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest>
    for IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1UpdateCronWorkflowRequest) -> Self {
        value.clone()
    }
}

pub use IoArgoprojWorkflowV1alpha1UserContainerBuilder as UserContainerBuilder;
pub use IoArgoprojWorkflowV1alpha1UserContainerBuilderError as UserContainerBuilderError;

#[doc = "UserContainer is a container specified by a user."]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
#[builder(default)]
pub struct IoArgoprojWorkflowV1alpha1UserContainer {
    #[doc = "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub args: Vec<String>,
    #[doc = "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub command: Vec<String>,
    #[doc = "List of environment variables to set in the container. Cannot be updated."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub env: Vec<IoK8sApiCoreV1EnvVar>,
    #[doc = "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated."]
    #[serde(rename = "envFrom", default, skip_serializing_if = "Vec::is_empty")]
    pub env_from: Vec<IoK8sApiCoreV1EnvFromSource>,
    #[doc = "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub image: Option<String>,
    #[doc = "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images"]
    #[serde(
        rename = "imagePullPolicy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub image_pull_policy: Option<String>,
    #[doc = "Actions that the management system should take in response to container lifecycle events. Cannot be updated."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub lifecycle: Option<IoK8sApiCoreV1Lifecycle>,
    #[doc = "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"]
    #[serde(
        rename = "livenessProbe",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub liveness_probe: Option<IoK8sApiCoreV1Probe>,
    #[doc = "MirrorVolumeMounts will mount the same volumes specified in the main container to the container (including artifacts), at the same mountPaths. This enables dind daemon to partially see the same filesystem as the main container in order to use features such as docker volume binding"]
    #[serde(
        rename = "mirrorVolumeMounts",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub mirror_volume_mounts: Option<bool>,
    #[doc = "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated."]
    pub name: String,
    #[doc = "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub ports: Vec<IoK8sApiCoreV1ContainerPort>,
    #[doc = "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"]
    #[serde(
        rename = "readinessProbe",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub readiness_probe: Option<IoK8sApiCoreV1Probe>,
    #[doc = "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resources: Option<IoK8sApiCoreV1ResourceRequirements>,
    #[doc = "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/"]
    #[serde(
        rename = "securityContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub security_context: Option<IoK8sApiCoreV1SecurityContext>,
    #[doc = "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"]
    #[serde(
        rename = "startupProbe",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub startup_probe: Option<IoK8sApiCoreV1Probe>,
    #[doc = "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub stdin: Option<bool>,
    #[doc = "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false"]
    #[serde(rename = "stdinOnce", default, skip_serializing_if = "Option::is_none")]
    pub stdin_once: Option<bool>,
    #[doc = "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated."]
    #[serde(
        rename = "terminationMessagePath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub termination_message_path: Option<String>,
    #[doc = "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated."]
    #[serde(
        rename = "terminationMessagePolicy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub termination_message_policy: Option<String>,
    #[doc = "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tty: Option<bool>,
    #[doc = "volumeDevices is the list of block devices to be used by the container."]
    #[serde(
        rename = "volumeDevices",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub volume_devices: Vec<IoK8sApiCoreV1VolumeDevice>,
    #[doc = "Pod volumes to mount into the container's filesystem. Cannot be updated."]
    #[serde(
        rename = "volumeMounts",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub volume_mounts: Vec<IoK8sApiCoreV1VolumeMount>,
    #[doc = "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated."]
    #[serde(
        rename = "workingDir",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub working_dir: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1UserContainer> for IoArgoprojWorkflowV1alpha1UserContainer {
    fn from(value: &IoArgoprojWorkflowV1alpha1UserContainer) -> Self {
        value.clone()
    }
}
#[doc = "ValueFrom describes a location in which to obtain the value to a parameter"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ValueFrom {
    #[doc = "ConfigMapKeyRef is configmap selector for input parameter configuration"]
    #[serde(
        rename = "configMapKeyRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub config_map_key_ref: Option<IoK8sApiCoreV1ConfigMapKeySelector>,
    #[doc = "Default specifies a value to be used if retrieving the value from the specified source fails"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub default: Option<String>,
    #[doc = "Selector (https://github.com/antonmedv/expr) that is evaluated against the event to get the value of the parameter. E.g. `payload.message`"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub event: Option<String>,
    #[doc = "Expression, if defined, is evaluated to specify the value for the parameter"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expression: Option<String>,
    #[doc = "JQFilter expression against the resource object in resource templates"]
    #[serde(rename = "jqFilter", default, skip_serializing_if = "Option::is_none")]
    pub jq_filter: Option<String>,
    #[doc = "JSONPath of a resource to retrieve an output parameter value from in resource templates"]
    #[serde(rename = "jsonPath", default, skip_serializing_if = "Option::is_none")]
    pub json_path: Option<String>,
    #[doc = "Parameter reference to a step or dag task in which to retrieve an output parameter value from (e.g. '{{steps.mystep.outputs.myparam}}')"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub parameter: Option<String>,
    #[doc = "Path in the container to retrieve an output parameter value from in container templates"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[doc = "Supplied value to be filled in directly, either through the CLI, API, etc."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub supplied: Option<IoArgoprojWorkflowV1alpha1SuppliedValueFrom>,
}
impl From<&IoArgoprojWorkflowV1alpha1ValueFrom> for IoArgoprojWorkflowV1alpha1ValueFrom {
    fn from(value: &IoArgoprojWorkflowV1alpha1ValueFrom) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Version {
    #[serde(rename = "buildDate")]
    pub build_date: String,
    pub compiler: String,
    #[serde(rename = "gitCommit")]
    pub git_commit: String,
    #[serde(rename = "gitTag")]
    pub git_tag: String,
    #[serde(rename = "gitTreeState")]
    pub git_tree_state: String,
    #[serde(rename = "goVersion")]
    pub go_version: String,
    pub platform: String,
    pub version: String,
}
impl From<&IoArgoprojWorkflowV1alpha1Version> for IoArgoprojWorkflowV1alpha1Version {
    fn from(value: &IoArgoprojWorkflowV1alpha1Version) -> Self {
        value.clone()
    }
}
#[doc = "VolumeClaimGC describes how to delete volumes from completed Workflows"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1VolumeClaimGc {
    #[doc = "Strategy is the strategy to use. One of \"OnWorkflowCompletion\", \"OnWorkflowSuccess\". Defaults to \"OnWorkflowSuccess\""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub strategy: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1VolumeClaimGc> for IoArgoprojWorkflowV1alpha1VolumeClaimGc {
    fn from(value: &IoArgoprojWorkflowV1alpha1VolumeClaimGc) -> Self {
        value.clone()
    }
}
#[doc = "Workflow is the definition of a workflow resource"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1Workflow {
    #[doc = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#resources"]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    #[doc = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    pub metadata: IoK8sApimachineryPkgApisMetaV1ObjectMeta,
    pub spec: IoArgoprojWorkflowV1alpha1WorkflowSpec,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<IoArgoprojWorkflowV1alpha1WorkflowStatus>,
}
impl From<&IoArgoprojWorkflowV1alpha1Workflow> for IoArgoprojWorkflowV1alpha1Workflow {
    fn from(value: &IoArgoprojWorkflowV1alpha1Workflow) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowCreateRequest {
    #[serde(
        rename = "createOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub create_options: Option<IoK8sApimachineryPkgApisMetaV1CreateOptions>,
    #[doc = "This field is no longer used."]
    #[serde(
        rename = "instanceID",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub instance_id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(
        rename = "serverDryRun",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub server_dry_run: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub workflow: Option<IoArgoprojWorkflowV1alpha1Workflow>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowCreateRequest>
    for IoArgoprojWorkflowV1alpha1WorkflowCreateRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowCreateRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowDeleteResponse(
    pub serde_json::Map<String, serde_json::Value>,
);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1WorkflowDeleteResponse {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1WorkflowDeleteResponse>
    for serde_json::Map<String, serde_json::Value>
{
    fn from(value: IoArgoprojWorkflowV1alpha1WorkflowDeleteResponse) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowDeleteResponse>
    for IoArgoprojWorkflowV1alpha1WorkflowDeleteResponse
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowDeleteResponse) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>>
    for IoArgoprojWorkflowV1alpha1WorkflowDeleteResponse
{
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}
#[doc = "WorkflowEventBinding is the definition of an event resource"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowEventBinding {
    #[doc = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#resources"]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    #[doc = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    pub metadata: IoK8sApimachineryPkgApisMetaV1ObjectMeta,
    pub spec: IoArgoprojWorkflowV1alpha1WorkflowEventBindingSpec,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowEventBinding>
    for IoArgoprojWorkflowV1alpha1WorkflowEventBinding
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowEventBinding) -> Self {
        value.clone()
    }
}
#[doc = "WorkflowEventBindingList is list of event resources"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowEventBindingList {
    #[doc = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#resources"]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    pub items: Vec<IoArgoprojWorkflowV1alpha1WorkflowEventBinding>,
    #[doc = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    pub metadata: IoK8sApimachineryPkgApisMetaV1ListMeta,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowEventBindingList>
    for IoArgoprojWorkflowV1alpha1WorkflowEventBindingList
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowEventBindingList) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowEventBindingSpec {
    #[doc = "Event is the event to bind to"]
    pub event: IoArgoprojWorkflowV1alpha1Event,
    #[doc = "Submit is the workflow template to submit"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub submit: Option<IoArgoprojWorkflowV1alpha1Submit>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowEventBindingSpec>
    for IoArgoprojWorkflowV1alpha1WorkflowEventBindingSpec
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowEventBindingSpec) -> Self {
        value.clone()
    }
}
#[doc = "WorkflowLevelArtifactGC describes how to delete artifacts from completed Workflows - this spec is used on the Workflow level"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowLevelArtifactGc {
    #[doc = "ForceFinalizerRemoval: if set to true, the finalizer will be removed in the case that Artifact GC fails"]
    #[serde(
        rename = "forceFinalizerRemoval",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub force_finalizer_removal: Option<bool>,
    #[doc = "PodMetadata is an optional field for specifying the Labels and Annotations that should be assigned to the Pod doing the deletion"]
    #[serde(
        rename = "podMetadata",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pod_metadata: Option<IoArgoprojWorkflowV1alpha1Metadata>,
    #[doc = "PodSpecPatch holds strategic merge patch to apply against the artgc pod spec."]
    #[serde(
        rename = "podSpecPatch",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pod_spec_patch: Option<String>,
    #[doc = "ServiceAccountName is an optional field for specifying the Service Account that should be assigned to the Pod doing the deletion"]
    #[serde(
        rename = "serviceAccountName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_account_name: Option<String>,
    #[doc = "Strategy is the strategy to use."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub strategy: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowLevelArtifactGc>
    for IoArgoprojWorkflowV1alpha1WorkflowLevelArtifactGc
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowLevelArtifactGc) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowLintRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub workflow: Option<IoArgoprojWorkflowV1alpha1Workflow>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowLintRequest>
    for IoArgoprojWorkflowV1alpha1WorkflowLintRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowLintRequest) -> Self {
        value.clone()
    }
}
#[doc = "WorkflowList is list of Workflow resources"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowList {
    #[doc = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#resources"]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    pub items: Vec<IoArgoprojWorkflowV1alpha1Workflow>,
    #[doc = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    pub metadata: IoK8sApimachineryPkgApisMetaV1ListMeta,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowList> for IoArgoprojWorkflowV1alpha1WorkflowList {
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowList) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowMetadata {
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub annotations: std::collections::HashMap<String, String>,
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub labels: std::collections::HashMap<String, String>,
    #[serde(
        rename = "labelsFrom",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub labels_from: std::collections::HashMap<String, IoArgoprojWorkflowV1alpha1LabelValueFrom>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowMetadata>
    for IoArgoprojWorkflowV1alpha1WorkflowMetadata
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowMetadata) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memoized: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest>
    for IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowResubmitRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowResumeRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(
        rename = "nodeFieldSelector",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub node_field_selector: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowResumeRequest>
    for IoArgoprojWorkflowV1alpha1WorkflowResumeRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowResumeRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowRetryRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(
        rename = "nodeFieldSelector",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub node_field_selector: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parameters: Vec<String>,
    #[serde(
        rename = "restartSuccessful",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub restart_successful: Option<bool>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowRetryRequest>
    for IoArgoprojWorkflowV1alpha1WorkflowRetryRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowRetryRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowSetRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(
        rename = "nodeFieldSelector",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub node_field_selector: Option<String>,
    #[serde(
        rename = "outputParameters",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub output_parameters: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub phase: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowSetRequest>
    for IoArgoprojWorkflowV1alpha1WorkflowSetRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowSetRequest) -> Self {
        value.clone()
    }
}

pub use IoArgoprojWorkflowV1alpha1WorkflowSpecBuilder as WorkflowSpecBuilder;
pub use IoArgoprojWorkflowV1alpha1WorkflowSpecBuilderError as WorkflowSpecBuilderError;

#[doc = "WorkflowSpec is the specification of a Workflow."]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
#[builder(default)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowSpec {
    #[doc = "Optional duration in seconds relative to the workflow start time which the workflow is allowed to run before the controller terminates the io.argoproj.workflow.v1alpha1. A value of zero is used to terminate a Running workflow"]
    #[serde(
        rename = "activeDeadlineSeconds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub active_deadline_seconds: Option<i64>,
    #[doc = "Affinity sets the scheduling constraints for all pods in the io.argoproj.workflow.v1alpha1. Can be overridden by an affinity specified in the template"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub affinity: Option<IoK8sApiCoreV1Affinity>,
    #[doc = "ArchiveLogs indicates if the container logs should be archived"]
    #[serde(
        rename = "archiveLogs",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub archive_logs: Option<bool>,
    #[doc = "Arguments contain the parameters and artifacts sent to the workflow entrypoint Parameters are referencable globally using the 'workflow' variable prefix. e.g. {{io.argoproj.workflow.v1alpha1.parameters.myparam}}"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub arguments: Option<IoArgoprojWorkflowV1alpha1Arguments>,
    #[doc = "ArtifactGC describes the strategy to use when deleting artifacts from completed or deleted workflows (applies to all output Artifacts unless Artifact.ArtifactGC is specified, which overrides this)"]
    #[serde(
        rename = "artifactGC",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub artifact_gc: Option<IoArgoprojWorkflowV1alpha1WorkflowLevelArtifactGc>,
    #[doc = "ArtifactRepositoryRef specifies the configMap name and key containing the artifact repository config."]
    #[serde(
        rename = "artifactRepositoryRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub artifact_repository_ref: Option<IoArgoprojWorkflowV1alpha1ArtifactRepositoryRef>,
    #[doc = "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in pods. ServiceAccountName of ExecutorConfig must be specified if this value is false."]
    #[serde(
        rename = "automountServiceAccountToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub automount_service_account_token: Option<bool>,
    #[doc = "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."]
    #[serde(rename = "dnsConfig", default, skip_serializing_if = "Option::is_none")]
    pub dns_config: Option<IoK8sApiCoreV1PodDnsConfig>,
    #[doc = "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'."]
    #[serde(rename = "dnsPolicy", default, skip_serializing_if = "Option::is_none")]
    pub dns_policy: Option<String>,
    #[doc = "Entrypoint is a template reference to the starting point of the io.argoproj.workflow.v1alpha1."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub entrypoint: Option<String>,
    #[doc = "Executor holds configurations of executor containers of the io.argoproj.workflow.v1alpha1."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub executor: Option<IoArgoprojWorkflowV1alpha1ExecutorConfig>,
    #[doc = "Hooks holds the lifecycle hook which is invoked at lifecycle of step, irrespective of the success, failure, or error status of the primary step"]
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub hooks: std::collections::HashMap<String, IoArgoprojWorkflowV1alpha1LifecycleHook>,
    #[serde(rename = "hostAliases", default, skip_serializing_if = "Vec::is_empty")]
    pub host_aliases: Vec<IoK8sApiCoreV1HostAlias>,
    #[doc = "Host networking requested for this workflow pod. Default to false."]
    #[serde(
        rename = "hostNetwork",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub host_network: Option<bool>,
    #[doc = "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod"]
    #[serde(
        rename = "imagePullSecrets",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub image_pull_secrets: Vec<IoK8sApiCoreV1LocalObjectReference>,
    #[doc = "Metrics are a list of metrics emitted from this Workflow"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metrics: Option<IoArgoprojWorkflowV1alpha1Metrics>,
    #[doc = "NodeSelector is a selector which will result in all pods of the workflow to be scheduled on the selected node(s). This is able to be overridden by a nodeSelector specified in the template."]
    #[serde(
        rename = "nodeSelector",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub node_selector: std::collections::HashMap<String, String>,
    #[doc = "OnExit is a template reference which is invoked at the end of the workflow, irrespective of the success, failure, or error of the primary io.argoproj.workflow.v1alpha1."]
    #[serde(rename = "onExit", default, skip_serializing_if = "Option::is_none")]
    pub on_exit: Option<String>,
    #[doc = "Parallelism limits the max total parallel pods that can execute at the same time in a workflow"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub parallelism: Option<i64>,
    #[doc = "PodDisruptionBudget holds the number of concurrent disruptions that you allow for Workflow's Pods. Controller will automatically add the selector with workflow name, if selector is empty. Optional: Defaults to empty."]
    #[serde(
        rename = "podDisruptionBudget",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pod_disruption_budget: Option<IoK8sApiPolicyV1PodDisruptionBudgetSpec>,
    #[doc = "PodGC describes the strategy to use when deleting completed pods"]
    #[serde(rename = "podGC", default, skip_serializing_if = "Option::is_none")]
    pub pod_gc: Option<IoArgoprojWorkflowV1alpha1PodGc>,
    #[doc = "PodMetadata defines additional metadata that should be applied to workflow pods"]
    #[serde(
        rename = "podMetadata",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pod_metadata: Option<IoArgoprojWorkflowV1alpha1Metadata>,
    #[doc = "Priority to apply to workflow pods. DEPRECATED: Use PodPriorityClassName instead."]
    #[serde(
        rename = "podPriority",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pod_priority: Option<i64>,
    #[doc = "PriorityClassName to apply to workflow pods."]
    #[serde(
        rename = "podPriorityClassName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pod_priority_class_name: Option<String>,
    #[doc = "PodSpecPatch holds strategic merge patch to apply against the pod spec. Allows parameterization of container fields which are not strings (e.g. resource limits)."]
    #[serde(
        rename = "podSpecPatch",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pod_spec_patch: Option<String>,
    #[doc = "Priority is used if controller is configured to process limited number of workflows in parallel. Workflows with higher priority are processed first."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub priority: Option<i64>,
    #[doc = "RetryStrategy for all templates in the io.argoproj.workflow.v1alpha1."]
    #[serde(
        rename = "retryStrategy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub retry_strategy: Option<IoArgoprojWorkflowV1alpha1RetryStrategy>,
    #[doc = "Set scheduler name for all pods. Will be overridden if container/script template's scheduler name is set. Default scheduler will be used if neither specified."]
    #[serde(
        rename = "schedulerName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub scheduler_name: Option<String>,
    #[doc = "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty.  See type description for default values of each field."]
    #[serde(
        rename = "securityContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub security_context: Option<IoK8sApiCoreV1PodSecurityContext>,
    #[doc = "ServiceAccountName is the name of the ServiceAccount to run all pods of the workflow as."]
    #[serde(
        rename = "serviceAccountName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_account_name: Option<String>,
    #[doc = "Shutdown will shutdown the workflow according to its ShutdownStrategy"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub shutdown: Option<String>,
    #[doc = "Suspend will suspend the workflow and prevent execution of any future steps in the workflow"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub suspend: Option<bool>,
    #[doc = "Synchronization holds synchronization lock configuration for this Workflow"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub synchronization: Option<IoArgoprojWorkflowV1alpha1Synchronization>,
    #[doc = "TemplateDefaults holds default template values that will apply to all templates in the Workflow, unless overridden on the template-level"]
    #[serde(
        rename = "templateDefaults",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub template_defaults: Option<IoArgoprojWorkflowV1alpha1Template>,
    #[doc = "Templates is a list of workflow templates used in a workflow"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub templates: Vec<IoArgoprojWorkflowV1alpha1Template>,
    #[doc = "Tolerations to apply to workflow pods."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub tolerations: Vec<IoK8sApiCoreV1Toleration>,
    #[doc = "TTLStrategy limits the lifetime of a Workflow that has finished execution depending on if it Succeeded or Failed. If this struct is set, once the Workflow finishes, it will be deleted after the time to live expires. If this field is unset, the controller config map will hold the default values."]
    #[serde(
        rename = "ttlStrategy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub ttl_strategy: Option<IoArgoprojWorkflowV1alpha1TtlStrategy>,
    #[doc = "VolumeClaimGC describes the strategy to use when deleting volumes from completed workflows"]
    #[serde(
        rename = "volumeClaimGC",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub volume_claim_gc: Option<IoArgoprojWorkflowV1alpha1VolumeClaimGc>,
    #[doc = "VolumeClaimTemplates is a list of claims that containers are allowed to reference. The Workflow controller will create the claims at the beginning of the workflow and delete the claims upon completion of the workflow"]
    #[serde(
        rename = "volumeClaimTemplates",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub volume_claim_templates: Vec<IoK8sApiCoreV1PersistentVolumeClaim>,
    #[doc = "Volumes is a list of volumes that can be mounted by containers in a io.argoproj.workflow.v1alpha1."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub volumes: Vec<IoK8sApiCoreV1Volume>,
    #[doc = "WorkflowMetadata contains some metadata of the workflow to refer to"]
    #[serde(
        rename = "workflowMetadata",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub workflow_metadata: Option<IoArgoprojWorkflowV1alpha1WorkflowMetadata>,
    #[doc = "WorkflowTemplateRef holds a reference to a WorkflowTemplate for execution"]
    #[serde(
        rename = "workflowTemplateRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub workflow_template_ref: Option<IoArgoprojWorkflowV1alpha1WorkflowTemplateRef>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowSpec> for IoArgoprojWorkflowV1alpha1WorkflowSpec {
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowSpec) -> Self {
        value.clone()
    }
}
#[doc = "WorkflowStatus contains overall status information about a workflow"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowStatus {
    #[doc = "ArtifactGCStatus maintains the status of Artifact Garbage Collection"]
    #[serde(
        rename = "artifactGCStatus",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub artifact_gc_status: Option<IoArgoprojWorkflowV1alpha1ArtGcStatus>,
    #[doc = "ArtifactRepositoryRef is used to cache the repository to use so we do not need to determine it everytime we reconcile."]
    #[serde(
        rename = "artifactRepositoryRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub artifact_repository_ref: Option<IoArgoprojWorkflowV1alpha1ArtifactRepositoryRefStatus>,
    #[doc = "Compressed and base64 decoded Nodes map"]
    #[serde(
        rename = "compressedNodes",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub compressed_nodes: Option<String>,
    #[doc = "Conditions is a list of conditions the Workflow may have"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub conditions: Vec<IoArgoprojWorkflowV1alpha1Condition>,
    #[doc = "EstimatedDuration in seconds."]
    #[serde(
        rename = "estimatedDuration",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub estimated_duration: Option<i64>,
    #[doc = "Time at which this workflow completed"]
    #[serde(
        rename = "finishedAt",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub finished_at: Option<IoK8sApimachineryPkgApisMetaV1Time>,
    #[doc = "A human readable message indicating details about why the workflow is in this condition."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[doc = "Nodes is a mapping between a node ID and the node's status."]
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub nodes: std::collections::HashMap<String, IoArgoprojWorkflowV1alpha1NodeStatus>,
    #[doc = "Whether on not node status has been offloaded to a database. If exists, then Nodes and CompressedNodes will be empty. This will actually be populated with a hash of the offloaded data."]
    #[serde(
        rename = "offloadNodeStatusVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub offload_node_status_version: Option<String>,
    #[doc = "Outputs captures output values and artifact locations produced by the workflow via global outputs"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outputs: Option<IoArgoprojWorkflowV1alpha1Outputs>,
    #[doc = "PersistentVolumeClaims tracks all PVCs that were created as part of the io.argoproj.workflow.v1alpha1. The contents of this list are drained at the end of the workflow."]
    #[serde(
        rename = "persistentVolumeClaims",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub persistent_volume_claims: Vec<IoK8sApiCoreV1Volume>,
    #[doc = "Phase a simple, high-level summary of where the workflow is in its lifecycle. Will be \"\" (Unknown), \"Pending\", or \"Running\" before the workflow is completed, and \"Succeeded\", \"Failed\" or \"Error\" once the workflow has completed."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub phase: Option<String>,
    #[doc = "Progress to completion"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub progress: Option<String>,
    #[doc = "ResourcesDuration is the total for the workflow"]
    #[serde(
        rename = "resourcesDuration",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub resources_duration: std::collections::HashMap<String, i64>,
    #[doc = "Time at which this workflow started"]
    #[serde(rename = "startedAt", default, skip_serializing_if = "Option::is_none")]
    pub started_at: Option<IoK8sApimachineryPkgApisMetaV1Time>,
    #[doc = "StoredTemplates is a mapping between a template ref and the node's status."]
    #[serde(
        rename = "storedTemplates",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub stored_templates: std::collections::HashMap<String, IoArgoprojWorkflowV1alpha1Template>,
    #[doc = "StoredWorkflowSpec stores the WorkflowTemplate spec for future execution."]
    #[serde(
        rename = "storedWorkflowTemplateSpec",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub stored_workflow_template_spec: Option<IoArgoprojWorkflowV1alpha1WorkflowSpec>,
    #[doc = "Synchronization stores the status of synchronization locks"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub synchronization: Option<IoArgoprojWorkflowV1alpha1SynchronizationStatus>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowStatus> for IoArgoprojWorkflowV1alpha1WorkflowStatus {
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowStatus) -> Self {
        value.clone()
    }
}
#[doc = "WorkflowStep is a reference to a template to execute in a series of step"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowStep {
    #[doc = "Arguments hold arguments to the template"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub arguments: Option<IoArgoprojWorkflowV1alpha1Arguments>,
    #[doc = "ContinueOn makes argo to proceed with the following step even if this step fails. Errors and Failed states can be specified"]
    #[serde(
        rename = "continueOn",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub continue_on: Option<IoArgoprojWorkflowV1alpha1ContinueOn>,
    #[doc = "Hooks holds the lifecycle hook which is invoked at lifecycle of step, irrespective of the success, failure, or error status of the primary step"]
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub hooks: std::collections::HashMap<String, IoArgoprojWorkflowV1alpha1LifecycleHook>,
    #[doc = "Inline is the template. Template must be empty if this is declared (and vice-versa)."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub inline: Option<IoArgoprojWorkflowV1alpha1Template>,
    #[doc = "Name of the step"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "OnExit is a template reference which is invoked at the end of the template, irrespective of the success, failure, or error of the primary template. DEPRECATED: Use Hooks[exit].Template instead."]
    #[serde(rename = "onExit", default, skip_serializing_if = "Option::is_none")]
    pub on_exit: Option<String>,
    #[doc = "Template is the name of the template to execute as the step"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<String>,
    #[doc = "TemplateRef is the reference to the template resource to execute as the step."]
    #[serde(
        rename = "templateRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub template_ref: Option<IoArgoprojWorkflowV1alpha1TemplateRef>,
    #[doc = "When is an expression in which the step should conditionally execute"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub when: Option<String>,
    #[doc = "WithItems expands a step into multiple parallel steps from the items in the list"]
    #[serde(rename = "withItems", default, skip_serializing_if = "Vec::is_empty")]
    pub with_items: Vec<IoArgoprojWorkflowV1alpha1Item>,
    #[doc = "WithParam expands a step into multiple parallel steps from the value in the parameter, which is expected to be a JSON list."]
    #[serde(rename = "withParam", default, skip_serializing_if = "Option::is_none")]
    pub with_param: Option<String>,
    #[doc = "WithSequence expands a step into a numeric sequence"]
    #[serde(
        rename = "withSequence",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub with_sequence: Option<IoArgoprojWorkflowV1alpha1Sequence>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowStep> for IoArgoprojWorkflowV1alpha1WorkflowStep {
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowStep) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowStopRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(
        rename = "nodeFieldSelector",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub node_field_selector: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowStopRequest>
    for IoArgoprojWorkflowV1alpha1WorkflowStopRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowStopRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(
        rename = "resourceKind",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub resource_kind: Option<String>,
    #[serde(
        rename = "resourceName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub resource_name: Option<String>,
    #[serde(
        rename = "submitOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub submit_options: Option<IoArgoprojWorkflowV1alpha1SubmitOpts>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest>
    for IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowSubmitRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest>
    for IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowSuspendRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowTaskSetSpec {
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub tasks: std::collections::HashMap<String, IoArgoprojWorkflowV1alpha1Template>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowTaskSetSpec>
    for IoArgoprojWorkflowV1alpha1WorkflowTaskSetSpec
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowTaskSetSpec) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowTaskSetStatus {
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub nodes: std::collections::HashMap<String, IoArgoprojWorkflowV1alpha1NodeResult>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowTaskSetStatus>
    for IoArgoprojWorkflowV1alpha1WorkflowTaskSetStatus
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowTaskSetStatus) -> Self {
        value.clone()
    }
}
#[doc = "WorkflowTemplate is the definition of a workflow template resource"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowTemplate {
    #[doc = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#resources"]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    #[doc = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    pub metadata: IoK8sApimachineryPkgApisMetaV1ObjectMeta,
    pub spec: IoArgoprojWorkflowV1alpha1WorkflowSpec,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowTemplate>
    for IoArgoprojWorkflowV1alpha1WorkflowTemplate
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowTemplate) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest {
    #[serde(
        rename = "createOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub create_options: Option<IoK8sApimachineryPkgApisMetaV1CreateOptions>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<IoArgoprojWorkflowV1alpha1WorkflowTemplate>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest>
    for IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowTemplateCreateRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowTemplateDeleteResponse(
    pub serde_json::Map<String, serde_json::Value>,
);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1WorkflowTemplateDeleteResponse {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1WorkflowTemplateDeleteResponse>
    for serde_json::Map<String, serde_json::Value>
{
    fn from(value: IoArgoprojWorkflowV1alpha1WorkflowTemplateDeleteResponse) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowTemplateDeleteResponse>
    for IoArgoprojWorkflowV1alpha1WorkflowTemplateDeleteResponse
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowTemplateDeleteResponse) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>>
    for IoArgoprojWorkflowV1alpha1WorkflowTemplateDeleteResponse
{
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest {
    #[serde(
        rename = "createOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub create_options: Option<IoK8sApimachineryPkgApisMetaV1CreateOptions>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<IoArgoprojWorkflowV1alpha1WorkflowTemplate>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest>
    for IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowTemplateLintRequest) -> Self {
        value.clone()
    }
}
#[doc = "WorkflowTemplateList is list of WorkflowTemplate resources"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowTemplateList {
    #[doc = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#resources"]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    pub items: Vec<IoArgoprojWorkflowV1alpha1WorkflowTemplate>,
    #[doc = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.io.k8s.community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    pub metadata: IoK8sApimachineryPkgApisMetaV1ListMeta,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowTemplateList>
    for IoArgoprojWorkflowV1alpha1WorkflowTemplateList
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowTemplateList) -> Self {
        value.clone()
    }
}
#[doc = "WorkflowTemplateRef is a reference to a WorkflowTemplate resource."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowTemplateRef {
    #[doc = "ClusterScope indicates the referred template is cluster scoped (i.e. a ClusterWorkflowTemplate)."]
    #[serde(
        rename = "clusterScope",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub cluster_scope: Option<bool>,
    #[doc = "Name is the resource name of the workflow template."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowTemplateRef>
    for IoArgoprojWorkflowV1alpha1WorkflowTemplateRef
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowTemplateRef) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest {
    #[doc = "DEPRECATED: This field is ignored."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<IoArgoprojWorkflowV1alpha1WorkflowTemplate>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest>
    for IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowTemplateUpdateRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest>
    for IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowTerminateRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1WorkflowWatchEvent {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub object: Option<IoArgoprojWorkflowV1alpha1Workflow>,
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl From<&IoArgoprojWorkflowV1alpha1WorkflowWatchEvent>
    for IoArgoprojWorkflowV1alpha1WorkflowWatchEvent
{
    fn from(value: &IoArgoprojWorkflowV1alpha1WorkflowWatchEvent) -> Self {
        value.clone()
    }
}
#[doc = "ZipStrategy will unzip zipped input artifacts"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoArgoprojWorkflowV1alpha1ZipStrategy(pub serde_json::Map<String, serde_json::Value>);
impl std::ops::Deref for IoArgoprojWorkflowV1alpha1ZipStrategy {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<IoArgoprojWorkflowV1alpha1ZipStrategy> for serde_json::Map<String, serde_json::Value> {
    fn from(value: IoArgoprojWorkflowV1alpha1ZipStrategy) -> Self {
        value.0
    }
}
impl From<&IoArgoprojWorkflowV1alpha1ZipStrategy> for IoArgoprojWorkflowV1alpha1ZipStrategy {
    fn from(value: &IoArgoprojWorkflowV1alpha1ZipStrategy) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>> for IoArgoprojWorkflowV1alpha1ZipStrategy {
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}
#[doc = "Affinity is a group of affinity scheduling rules."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1Affinity {
    #[doc = "Describes node affinity scheduling rules for the pod."]
    #[serde(
        rename = "nodeAffinity",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub node_affinity: Option<IoK8sApiCoreV1NodeAffinity>,
    #[doc = "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))."]
    #[serde(
        rename = "podAffinity",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pod_affinity: Option<IoK8sApiCoreV1PodAffinity>,
    #[doc = "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))."]
    #[serde(
        rename = "podAntiAffinity",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pod_anti_affinity: Option<IoK8sApiCoreV1PodAntiAffinity>,
}
impl From<&IoK8sApiCoreV1Affinity> for IoK8sApiCoreV1Affinity {
    fn from(value: &IoK8sApiCoreV1Affinity) -> Self {
        value.clone()
    }
}
#[doc = "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1AwsElasticBlockStoreVolumeSource {
    #[doc = "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"]
    #[serde(rename = "fsType", default, skip_serializing_if = "Option::is_none")]
    pub fs_type: Option<String>,
    #[doc = "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty)."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub partition: Option<i64>,
    #[doc = "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"]
    #[serde(rename = "volumeID")]
    pub volume_id: String,
}
impl From<&IoK8sApiCoreV1AwsElasticBlockStoreVolumeSource>
    for IoK8sApiCoreV1AwsElasticBlockStoreVolumeSource
{
    fn from(value: &IoK8sApiCoreV1AwsElasticBlockStoreVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1AzureDiskVolumeSource {
    #[doc = "Host Caching mode: None, Read Only, Read Write."]
    #[serde(
        rename = "cachingMode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub caching_mode: Option<String>,
    #[doc = "The Name of the data disk in the blob storage"]
    #[serde(rename = "diskName")]
    pub disk_name: String,
    #[doc = "The URI the data disk in the blob storage"]
    #[serde(rename = "diskURI")]
    pub disk_uri: String,
    #[doc = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."]
    #[serde(rename = "fsType", default, skip_serializing_if = "Option::is_none")]
    pub fs_type: Option<String>,
    #[doc = "Expected values Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    #[doc = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
}
impl From<&IoK8sApiCoreV1AzureDiskVolumeSource> for IoK8sApiCoreV1AzureDiskVolumeSource {
    fn from(value: &IoK8sApiCoreV1AzureDiskVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1AzureFileVolumeSource {
    #[doc = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "the name of secret that contains Azure Storage Account Name and Key"]
    #[serde(rename = "secretName")]
    pub secret_name: String,
    #[doc = "Share Name"]
    #[serde(rename = "shareName")]
    pub share_name: String,
}
impl From<&IoK8sApiCoreV1AzureFileVolumeSource> for IoK8sApiCoreV1AzureFileVolumeSource {
    fn from(value: &IoK8sApiCoreV1AzureFileVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Adds and removes POSIX capabilities from running containers."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1Capabilities {
    #[doc = "Added capabilities"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub add: Vec<String>,
    #[doc = "Removed capabilities"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub drop: Vec<String>,
}
impl From<&IoK8sApiCoreV1Capabilities> for IoK8sApiCoreV1Capabilities {
    fn from(value: &IoK8sApiCoreV1Capabilities) -> Self {
        value.clone()
    }
}
#[doc = "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1CephFsVolumeSource {
    #[doc = "Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"]
    pub monitors: Vec<String>,
    #[doc = "Optional: Used as the mounted root, rather than the full Ceph tree, default is /"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[doc = "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"]
    #[serde(
        rename = "secretFile",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub secret_file: Option<String>,
    #[doc = "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"]
    #[serde(rename = "secretRef", default, skip_serializing_if = "Option::is_none")]
    pub secret_ref: Option<IoK8sApiCoreV1LocalObjectReference>,
    #[doc = "Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub user: Option<String>,
}
impl From<&IoK8sApiCoreV1CephFsVolumeSource> for IoK8sApiCoreV1CephFsVolumeSource {
    fn from(value: &IoK8sApiCoreV1CephFsVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1CinderVolumeSource {
    #[doc = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"]
    #[serde(rename = "fsType", default, skip_serializing_if = "Option::is_none")]
    pub fs_type: Option<String>,
    #[doc = "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "Optional: points to a secret object containing parameters used to connect to OpenStack."]
    #[serde(rename = "secretRef", default, skip_serializing_if = "Option::is_none")]
    pub secret_ref: Option<IoK8sApiCoreV1LocalObjectReference>,
    #[doc = "volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"]
    #[serde(rename = "volumeID")]
    pub volume_id: String,
}
impl From<&IoK8sApiCoreV1CinderVolumeSource> for IoK8sApiCoreV1CinderVolumeSource {
    fn from(value: &IoK8sApiCoreV1CinderVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1ConfigMapEnvSource {
    #[doc = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Specify whether the ConfigMap must be defined"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}
impl From<&IoK8sApiCoreV1ConfigMapEnvSource> for IoK8sApiCoreV1ConfigMapEnvSource {
    fn from(value: &IoK8sApiCoreV1ConfigMapEnvSource) -> Self {
        value.clone()
    }
}
#[doc = "Selects a key from a ConfigMap."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1ConfigMapKeySelector {
    #[doc = "The key to select."]
    pub key: String,
    #[doc = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Specify whether the ConfigMap or its key must be defined"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}
impl From<&IoK8sApiCoreV1ConfigMapKeySelector> for IoK8sApiCoreV1ConfigMapKeySelector {
    fn from(value: &IoK8sApiCoreV1ConfigMapKeySelector) -> Self {
        value.clone()
    }
}
#[doc = "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1ConfigMapProjection {
    #[doc = "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub items: Vec<IoK8sApiCoreV1KeyToPath>,
    #[doc = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Specify whether the ConfigMap or its keys must be defined"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}
impl From<&IoK8sApiCoreV1ConfigMapProjection> for IoK8sApiCoreV1ConfigMapProjection {
    fn from(value: &IoK8sApiCoreV1ConfigMapProjection) -> Self {
        value.clone()
    }
}

pub use IoK8sApiCoreV1ConfigMapVolumeSourceBuilder as ConfigMapVolumeSourceBuilder;
pub use IoK8sApiCoreV1ConfigMapVolumeSourceBuilderError as ConfigMapVolumeSourceBuilderError;

#[doc = "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
#[builder(default)]
pub struct IoK8sApiCoreV1ConfigMapVolumeSource {
    #[doc = "Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."]
    #[serde(
        rename = "defaultMode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub default_mode: Option<i64>,
    #[doc = "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub items: Vec<IoK8sApiCoreV1KeyToPath>,
    #[doc = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Specify whether the ConfigMap or its keys must be defined"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}
impl From<&IoK8sApiCoreV1ConfigMapVolumeSource> for IoK8sApiCoreV1ConfigMapVolumeSource {
    fn from(value: &IoK8sApiCoreV1ConfigMapVolumeSource) -> Self {
        value.clone()
    }
}

pub use IoK8sApiCoreV1ContainerBuilder as ContainerBuilder;
pub use IoK8sApiCoreV1ContainerBuilderError as ContainerBuilderError;

#[doc = "A single application container that you want to run within a pod."]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
#[builder(default)]
pub struct IoK8sApiCoreV1Container {
    #[doc = "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub args: Vec<String>,
    #[doc = "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub command: Vec<String>,
    #[doc = "List of environment variables to set in the container. Cannot be updated."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub env: Vec<IoK8sApiCoreV1EnvVar>,
    #[doc = "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated."]
    #[serde(rename = "envFrom", default, skip_serializing_if = "Vec::is_empty")]
    pub env_from: Vec<IoK8sApiCoreV1EnvFromSource>,
    #[doc = "Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets."]
    pub image: String,
    #[doc = "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present"]
    #[serde(
        rename = "imagePullPolicy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub image_pull_policy: Option<IoK8sApiCoreV1ContainerImagePullPolicy>,
    #[doc = "Actions that the management system should take in response to container lifecycle events. Cannot be updated."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub lifecycle: Option<IoK8sApiCoreV1Lifecycle>,
    #[doc = "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"]
    #[serde(
        rename = "livenessProbe",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub liveness_probe: Option<IoK8sApiCoreV1Probe>,
    #[doc = "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub ports: Vec<IoK8sApiCoreV1ContainerPort>,
    #[doc = "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"]
    #[serde(
        rename = "readinessProbe",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub readiness_probe: Option<IoK8sApiCoreV1Probe>,
    #[doc = "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resources: Option<IoK8sApiCoreV1ResourceRequirements>,
    #[doc = "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/"]
    #[serde(
        rename = "securityContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub security_context: Option<IoK8sApiCoreV1SecurityContext>,
    #[doc = "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"]
    #[serde(
        rename = "startupProbe",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub startup_probe: Option<IoK8sApiCoreV1Probe>,
    #[doc = "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub stdin: Option<bool>,
    #[doc = "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false"]
    #[serde(rename = "stdinOnce", default, skip_serializing_if = "Option::is_none")]
    pub stdin_once: Option<bool>,
    #[doc = "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated."]
    #[serde(
        rename = "terminationMessagePath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub termination_message_path: Option<String>,
    #[doc = "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.\n\nPossible enum values:\n - `\"FallbackToLogsOnError\"` will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents.\n - `\"File\"` is the default behavior and will set the container status message to the contents of the container's terminationMessagePath when the container exits."]
    #[serde(
        rename = "terminationMessagePolicy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub termination_message_policy: Option<IoK8sApiCoreV1ContainerTerminationMessagePolicy>,
    #[doc = "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tty: Option<bool>,
    #[doc = "volumeDevices is the list of block devices to be used by the container."]
    #[serde(
        rename = "volumeDevices",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub volume_devices: Vec<IoK8sApiCoreV1VolumeDevice>,
    #[doc = "Pod volumes to mount into the container's filesystem. Cannot be updated."]
    #[serde(
        rename = "volumeMounts",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub volume_mounts: Vec<IoK8sApiCoreV1VolumeMount>,
    #[doc = "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated."]
    #[serde(
        rename = "workingDir",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub working_dir: Option<String>,
}
impl From<&IoK8sApiCoreV1Container> for IoK8sApiCoreV1Container {
    fn from(value: &IoK8sApiCoreV1Container) -> Self {
        value.clone()
    }
}
#[doc = "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present"]
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub enum IoK8sApiCoreV1ContainerImagePullPolicy {
    Always,
    IfNotPresent,
    Never,
}
impl From<&IoK8sApiCoreV1ContainerImagePullPolicy> for IoK8sApiCoreV1ContainerImagePullPolicy {
    fn from(value: &IoK8sApiCoreV1ContainerImagePullPolicy) -> Self {
        value.clone()
    }
}
impl ToString for IoK8sApiCoreV1ContainerImagePullPolicy {
    fn to_string(&self) -> String {
        match *self {
            Self::Always => "Always".to_string(),
            Self::IfNotPresent => "IfNotPresent".to_string(),
            Self::Never => "Never".to_string(),
        }
    }
}
impl std::str::FromStr for IoK8sApiCoreV1ContainerImagePullPolicy {
    type Err = &'static str;
    fn from_str(value: &str) -> Result<Self, &'static str> {
        match value {
            "Always" => Ok(Self::Always),
            "IfNotPresent" => Ok(Self::IfNotPresent),
            "Never" => Ok(Self::Never),
            _ => Err("invalid value"),
        }
    }
}
impl std::convert::TryFrom<&str> for IoK8sApiCoreV1ContainerImagePullPolicy {
    type Error = &'static str;
    fn try_from(value: &str) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<&String> for IoK8sApiCoreV1ContainerImagePullPolicy {
    type Error = &'static str;
    fn try_from(value: &String) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<String> for IoK8sApiCoreV1ContainerImagePullPolicy {
    type Error = &'static str;
    fn try_from(value: String) -> Result<Self, &'static str> {
        value.parse()
    }
}
#[doc = "ContainerPort represents a network port in a single container."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1ContainerPort {
    #[doc = "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536."]
    #[serde(rename = "containerPort")]
    pub container_port: i64,
    #[doc = "What host IP to bind the external port to."]
    #[serde(rename = "hostIP", default, skip_serializing_if = "Option::is_none")]
    pub host_ip: Option<String>,
    #[doc = "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this."]
    #[serde(rename = "hostPort", default, skip_serializing_if = "Option::is_none")]
    pub host_port: Option<i64>,
    #[doc = "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".\n\nPossible enum values:\n - `\"SCTP\"` is the SCTP protocol.\n - `\"TCP\"` is the TCP protocol.\n - `\"UDP\"` is the UDP protocol."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub protocol: Option<IoK8sApiCoreV1ContainerPortProtocol>,
}
impl From<&IoK8sApiCoreV1ContainerPort> for IoK8sApiCoreV1ContainerPort {
    fn from(value: &IoK8sApiCoreV1ContainerPort) -> Self {
        value.clone()
    }
}
#[doc = "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".\n\nPossible enum values:\n - `\"SCTP\"` is the SCTP protocol.\n - `\"TCP\"` is the TCP protocol.\n - `\"UDP\"` is the UDP protocol."]
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub enum IoK8sApiCoreV1ContainerPortProtocol {
    #[serde(rename = "SCTP")]
    Sctp,
    #[serde(rename = "TCP")]
    Tcp,
    #[serde(rename = "UDP")]
    Udp,
}
impl From<&IoK8sApiCoreV1ContainerPortProtocol> for IoK8sApiCoreV1ContainerPortProtocol {
    fn from(value: &IoK8sApiCoreV1ContainerPortProtocol) -> Self {
        value.clone()
    }
}
impl ToString for IoK8sApiCoreV1ContainerPortProtocol {
    fn to_string(&self) -> String {
        match *self {
            Self::Sctp => "SCTP".to_string(),
            Self::Tcp => "TCP".to_string(),
            Self::Udp => "UDP".to_string(),
        }
    }
}
impl std::str::FromStr for IoK8sApiCoreV1ContainerPortProtocol {
    type Err = &'static str;
    fn from_str(value: &str) -> Result<Self, &'static str> {
        match value {
            "SCTP" => Ok(Self::Sctp),
            "TCP" => Ok(Self::Tcp),
            "UDP" => Ok(Self::Udp),
            _ => Err("invalid value"),
        }
    }
}
impl std::convert::TryFrom<&str> for IoK8sApiCoreV1ContainerPortProtocol {
    type Error = &'static str;
    fn try_from(value: &str) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<&String> for IoK8sApiCoreV1ContainerPortProtocol {
    type Error = &'static str;
    fn try_from(value: &String) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<String> for IoK8sApiCoreV1ContainerPortProtocol {
    type Error = &'static str;
    fn try_from(value: String) -> Result<Self, &'static str> {
        value.parse()
    }
}
#[doc = "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.\n\nPossible enum values:\n - `\"FallbackToLogsOnError\"` will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents.\n - `\"File\"` is the default behavior and will set the container status message to the contents of the container's terminationMessagePath when the container exits."]
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub enum IoK8sApiCoreV1ContainerTerminationMessagePolicy {
    FallbackToLogsOnError,
    File,
}
impl From<&IoK8sApiCoreV1ContainerTerminationMessagePolicy>
    for IoK8sApiCoreV1ContainerTerminationMessagePolicy
{
    fn from(value: &IoK8sApiCoreV1ContainerTerminationMessagePolicy) -> Self {
        value.clone()
    }
}
impl ToString for IoK8sApiCoreV1ContainerTerminationMessagePolicy {
    fn to_string(&self) -> String {
        match *self {
            Self::FallbackToLogsOnError => "FallbackToLogsOnError".to_string(),
            Self::File => "File".to_string(),
        }
    }
}
impl std::str::FromStr for IoK8sApiCoreV1ContainerTerminationMessagePolicy {
    type Err = &'static str;
    fn from_str(value: &str) -> Result<Self, &'static str> {
        match value {
            "FallbackToLogsOnError" => Ok(Self::FallbackToLogsOnError),
            "File" => Ok(Self::File),
            _ => Err("invalid value"),
        }
    }
}
impl std::convert::TryFrom<&str> for IoK8sApiCoreV1ContainerTerminationMessagePolicy {
    type Error = &'static str;
    fn try_from(value: &str) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<&String> for IoK8sApiCoreV1ContainerTerminationMessagePolicy {
    type Error = &'static str;
    fn try_from(value: &String) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<String> for IoK8sApiCoreV1ContainerTerminationMessagePolicy {
    type Error = &'static str;
    fn try_from(value: String) -> Result<Self, &'static str> {
        value.parse()
    }
}
#[doc = "Represents a source location of a volume to mount, managed by an external CSI driver"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1CsiVolumeSource {
    #[doc = "Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster."]
    pub driver: String,
    #[doc = "Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply."]
    #[serde(rename = "fsType", default, skip_serializing_if = "Option::is_none")]
    pub fs_type: Option<String>,
    #[doc = "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and  may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed."]
    #[serde(
        rename = "nodePublishSecretRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub node_publish_secret_ref: Option<IoK8sApiCoreV1LocalObjectReference>,
    #[doc = "Specifies a read-only configuration for the volume. Defaults to false (read/write)."]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values."]
    #[serde(
        rename = "volumeAttributes",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub volume_attributes: std::collections::HashMap<String, String>,
}
impl From<&IoK8sApiCoreV1CsiVolumeSource> for IoK8sApiCoreV1CsiVolumeSource {
    fn from(value: &IoK8sApiCoreV1CsiVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1DownwardApiProjection {
    #[doc = "Items is a list of DownwardAPIVolume file"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub items: Vec<IoK8sApiCoreV1DownwardApiVolumeFile>,
}
impl From<&IoK8sApiCoreV1DownwardApiProjection> for IoK8sApiCoreV1DownwardApiProjection {
    fn from(value: &IoK8sApiCoreV1DownwardApiProjection) -> Self {
        value.clone()
    }
}
#[doc = "DownwardAPIVolumeFile represents information to create the file containing the pod field"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1DownwardApiVolumeFile {
    #[doc = "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported."]
    #[serde(rename = "fieldRef", default, skip_serializing_if = "Option::is_none")]
    pub field_ref: Option<IoK8sApiCoreV1ObjectFieldSelector>,
    #[doc = "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mode: Option<i64>,
    #[doc = "Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'"]
    pub path: String,
    #[doc = "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported."]
    #[serde(
        rename = "resourceFieldRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub resource_field_ref: Option<IoK8sApiCoreV1ResourceFieldSelector>,
}
impl From<&IoK8sApiCoreV1DownwardApiVolumeFile> for IoK8sApiCoreV1DownwardApiVolumeFile {
    fn from(value: &IoK8sApiCoreV1DownwardApiVolumeFile) -> Self {
        value.clone()
    }
}
#[doc = "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1DownwardApiVolumeSource {
    #[doc = "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."]
    #[serde(
        rename = "defaultMode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub default_mode: Option<i64>,
    #[doc = "Items is a list of downward API volume file"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub items: Vec<IoK8sApiCoreV1DownwardApiVolumeFile>,
}
impl From<&IoK8sApiCoreV1DownwardApiVolumeSource> for IoK8sApiCoreV1DownwardApiVolumeSource {
    fn from(value: &IoK8sApiCoreV1DownwardApiVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize, Default)]
pub struct IoK8sApiCoreV1EmptyDirVolumeSource {
    #[doc = "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub medium: Option<String>,
    #[doc = "Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir"]
    #[serde(rename = "sizeLimit", default, skip_serializing_if = "Option::is_none")]
    pub size_limit: Option<IoK8sApimachineryPkgApiResourceQuantity>,
}
impl From<&IoK8sApiCoreV1EmptyDirVolumeSource> for IoK8sApiCoreV1EmptyDirVolumeSource {
    fn from(value: &IoK8sApiCoreV1EmptyDirVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "EnvFromSource represents the source of a set of ConfigMaps"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1EnvFromSource {
    #[doc = "The ConfigMap to select from"]
    #[serde(
        rename = "configMapRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub config_map_ref: Option<IoK8sApiCoreV1ConfigMapEnvSource>,
    #[doc = "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub prefix: Option<String>,
    #[doc = "The Secret to select from"]
    #[serde(rename = "secretRef", default, skip_serializing_if = "Option::is_none")]
    pub secret_ref: Option<IoK8sApiCoreV1SecretEnvSource>,
}
impl From<&IoK8sApiCoreV1EnvFromSource> for IoK8sApiCoreV1EnvFromSource {
    fn from(value: &IoK8sApiCoreV1EnvFromSource) -> Self {
        value.clone()
    }
}

pub use IoK8sApiCoreV1EnvVarBuilder as EnvVarBuilder;
pub use IoK8sApiCoreV1EnvVarBuilderError as EnvVarBuilderError;

#[doc = "EnvVar represents an environment variable present in a Container."]
#[derive(Clone, Debug, Deserialize, Serialize, Builder, Default)]
pub struct IoK8sApiCoreV1EnvVar {
    #[doc = "Name of the environment variable. Must be a C_IDENTIFIER."]
    pub name: String,
    #[doc = "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\"."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
    #[doc = "Source for the environment variable's value. Cannot be used if value is not empty."]
    #[serde(rename = "valueFrom", default, skip_serializing_if = "Option::is_none")]
    pub value_from: Option<IoK8sApiCoreV1EnvVarSource>,
}
impl From<&IoK8sApiCoreV1EnvVar> for IoK8sApiCoreV1EnvVar {
    fn from(value: &IoK8sApiCoreV1EnvVar) -> Self {
        value.clone()
    }
}
pub use IoK8sApiCoreV1EnvVarSourceBuilder as EnvVarSourceBuilder;
pub use IoK8sApiCoreV1EnvVarSourceBuilderError as EnvVarSourceBuilderError;

#[doc = "EnvVarSource represents a source for the value of an EnvVar."]
#[derive(Clone, Debug, Deserialize, Serialize, Builder, Default)]
pub struct IoK8sApiCoreV1EnvVarSource {
    #[doc = "Selects a key of a ConfigMap."]
    #[serde(
        rename = "configMapKeyRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub config_map_key_ref: Option<IoK8sApiCoreV1ConfigMapKeySelector>,
    #[doc = "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs."]
    #[serde(rename = "fieldRef", default, skip_serializing_if = "Option::is_none")]
    pub field_ref: Option<IoK8sApiCoreV1ObjectFieldSelector>,
    #[doc = "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported."]
    #[serde(
        rename = "resourceFieldRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub resource_field_ref: Option<IoK8sApiCoreV1ResourceFieldSelector>,
    #[doc = "Selects a key of a secret in the pod's namespace"]
    #[serde(
        rename = "secretKeyRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub secret_key_ref: Option<IoK8sApiCoreV1SecretKeySelector>,
}
impl From<&IoK8sApiCoreV1EnvVarSource> for IoK8sApiCoreV1EnvVarSource {
    fn from(value: &IoK8sApiCoreV1EnvVarSource) -> Self {
        value.clone()
    }
}
#[doc = "Represents an ephemeral volume that is handled by a normal storage driver."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1EphemeralVolumeSource {
    #[doc = "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod.  The name of the PVC will be `<pod name>-<volume name>` where `<volume name>` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil."]
    #[serde(
        rename = "volumeClaimTemplate",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub volume_claim_template: Option<IoK8sApiCoreV1PersistentVolumeClaimTemplate>,
}
impl From<&IoK8sApiCoreV1EphemeralVolumeSource> for IoK8sApiCoreV1EphemeralVolumeSource {
    fn from(value: &IoK8sApiCoreV1EphemeralVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Event is a report of an event somewhere in the cluster.  Events have a limited retention time and triggers and messages may evolve with time.  Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason.  Events should be treated as informative, best-effort, supplemental data."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1Event {
    #[doc = "What action was taken/failed regarding to the Regarding object."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub action: Option<String>,
    #[doc = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    #[doc = "The number of times this event has occurred."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i64>,
    #[doc = "Time when this Event was first observed."]
    #[serde(rename = "eventTime", default, skip_serializing_if = "Option::is_none")]
    pub event_time: Option<IoK8sApimachineryPkgApisMetaV1MicroTime>,
    #[doc = "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)"]
    #[serde(
        rename = "firstTimestamp",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub first_timestamp: Option<IoK8sApimachineryPkgApisMetaV1Time>,
    #[doc = "The object that this event is about."]
    #[serde(rename = "involvedObject")]
    pub involved_object: IoK8sApiCoreV1ObjectReference,
    #[doc = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    #[doc = "The time at which the most recent occurrence of this event was recorded."]
    #[serde(
        rename = "lastTimestamp",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub last_timestamp: Option<IoK8sApimachineryPkgApisMetaV1Time>,
    #[doc = "A human-readable description of the status of this operation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[doc = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"]
    pub metadata: IoK8sApimachineryPkgApisMetaV1ObjectMeta,
    #[doc = "This should be a short, machine understandable string that gives the reason for the transition into the object's current status."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub reason: Option<String>,
    #[doc = "Optional secondary object for more complex actions."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub related: Option<IoK8sApiCoreV1ObjectReference>,
    #[doc = "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`."]
    #[serde(
        rename = "reportingComponent",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub reporting_component: Option<String>,
    #[doc = "ID of the controller instance, e.g. `kubelet-xyzf`."]
    #[serde(
        rename = "reportingInstance",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub reporting_instance: Option<String>,
    #[doc = "Data about the Event series this event represents or nil if it's a singleton Event."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub series: Option<IoK8sApiCoreV1EventSeries>,
    #[doc = "The component reporting this event. Should be a short machine understandable string."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source: Option<IoK8sApiCoreV1EventSource>,
    #[doc = "Type of this event (Normal, Warning), new types could be added in the future"]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl From<&IoK8sApiCoreV1Event> for IoK8sApiCoreV1Event {
    fn from(value: &IoK8sApiCoreV1Event) -> Self {
        value.clone()
    }
}
#[doc = "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1EventSeries {
    #[doc = "Number of occurrences in this series up to the last heartbeat time"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i64>,
    #[doc = "Time of the last occurrence observed"]
    #[serde(
        rename = "lastObservedTime",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub last_observed_time: Option<IoK8sApimachineryPkgApisMetaV1MicroTime>,
}
impl From<&IoK8sApiCoreV1EventSeries> for IoK8sApiCoreV1EventSeries {
    fn from(value: &IoK8sApiCoreV1EventSeries) -> Self {
        value.clone()
    }
}
#[doc = "EventSource contains information for an event."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1EventSource {
    #[doc = "Component from which the event is generated."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub component: Option<String>,
    #[doc = "Node name on which the event is generated."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host: Option<String>,
}
impl From<&IoK8sApiCoreV1EventSource> for IoK8sApiCoreV1EventSource {
    fn from(value: &IoK8sApiCoreV1EventSource) -> Self {
        value.clone()
    }
}
#[doc = "ExecAction describes a \"run in container\" action."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1ExecAction {
    #[doc = "Command is the command line to execute inside the container, the working directory for the command  is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub command: Vec<String>,
}
impl From<&IoK8sApiCoreV1ExecAction> for IoK8sApiCoreV1ExecAction {
    fn from(value: &IoK8sApiCoreV1ExecAction) -> Self {
        value.clone()
    }
}
#[doc = "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1FcVolumeSource {
    #[doc = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."]
    #[serde(rename = "fsType", default, skip_serializing_if = "Option::is_none")]
    pub fs_type: Option<String>,
    #[doc = "Optional: FC target lun number"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub lun: Option<i64>,
    #[doc = "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "Optional: FC target worldwide names (WWNs)"]
    #[serde(rename = "targetWWNs", default, skip_serializing_if = "Vec::is_empty")]
    pub target_ww_ns: Vec<String>,
    #[doc = "Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub wwids: Vec<String>,
}
impl From<&IoK8sApiCoreV1FcVolumeSource> for IoK8sApiCoreV1FcVolumeSource {
    fn from(value: &IoK8sApiCoreV1FcVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1FlexVolumeSource {
    #[doc = "Driver is the name of the driver to use for this volume."]
    pub driver: String,
    #[doc = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script."]
    #[serde(rename = "fsType", default, skip_serializing_if = "Option::is_none")]
    pub fs_type: Option<String>,
    #[doc = "Optional: Extra command options if any."]
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub options: std::collections::HashMap<String, String>,
    #[doc = "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts."]
    #[serde(rename = "secretRef", default, skip_serializing_if = "Option::is_none")]
    pub secret_ref: Option<IoK8sApiCoreV1LocalObjectReference>,
}
impl From<&IoK8sApiCoreV1FlexVolumeSource> for IoK8sApiCoreV1FlexVolumeSource {
    fn from(value: &IoK8sApiCoreV1FlexVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1FlockerVolumeSource {
    #[doc = "Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated"]
    #[serde(
        rename = "datasetName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub dataset_name: Option<String>,
    #[doc = "UUID of the dataset. This is unique identifier of a Flocker dataset"]
    #[serde(
        rename = "datasetUUID",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub dataset_uuid: Option<String>,
}
impl From<&IoK8sApiCoreV1FlockerVolumeSource> for IoK8sApiCoreV1FlockerVolumeSource {
    fn from(value: &IoK8sApiCoreV1FlockerVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1GcePersistentDiskVolumeSource {
    #[doc = "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"]
    #[serde(rename = "fsType", default, skip_serializing_if = "Option::is_none")]
    pub fs_type: Option<String>,
    #[doc = "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub partition: Option<i64>,
    #[doc = "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"]
    #[serde(rename = "pdName")]
    pub pd_name: String,
    #[doc = "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
}
impl From<&IoK8sApiCoreV1GcePersistentDiskVolumeSource>
    for IoK8sApiCoreV1GcePersistentDiskVolumeSource
{
    fn from(value: &IoK8sApiCoreV1GcePersistentDiskVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1GitRepoVolumeSource {
    #[doc = "Target directory name. Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the git repository.  Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub directory: Option<String>,
    #[doc = "Repository URL"]
    pub repository: String,
    #[doc = "Commit hash for the specified revision."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub revision: Option<String>,
}
impl From<&IoK8sApiCoreV1GitRepoVolumeSource> for IoK8sApiCoreV1GitRepoVolumeSource {
    fn from(value: &IoK8sApiCoreV1GitRepoVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1GlusterfsVolumeSource {
    #[doc = "EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"]
    pub endpoints: String,
    #[doc = "Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"]
    pub path: String,
    #[doc = "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
}
impl From<&IoK8sApiCoreV1GlusterfsVolumeSource> for IoK8sApiCoreV1GlusterfsVolumeSource {
    fn from(value: &IoK8sApiCoreV1GlusterfsVolumeSource) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1GrpcAction {
    #[doc = "Port number of the gRPC service. Number must be in the range 1 to 65535."]
    pub port: i64,
    #[doc = "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub service: Option<String>,
}
impl From<&IoK8sApiCoreV1GrpcAction> for IoK8sApiCoreV1GrpcAction {
    fn from(value: &IoK8sApiCoreV1GrpcAction) -> Self {
        value.clone()
    }
}
#[doc = "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1HostAlias {
    #[doc = "Hostnames for the above IP address."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub hostnames: Vec<String>,
    #[doc = "IP address of the host file entry."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ip: Option<String>,
}
impl From<&IoK8sApiCoreV1HostAlias> for IoK8sApiCoreV1HostAlias {
    fn from(value: &IoK8sApiCoreV1HostAlias) -> Self {
        value.clone()
    }
}
#[doc = "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1HostPathVolumeSource {
    #[doc = "Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"]
    pub path: String,
    #[doc = "Type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl From<&IoK8sApiCoreV1HostPathVolumeSource> for IoK8sApiCoreV1HostPathVolumeSource {
    fn from(value: &IoK8sApiCoreV1HostPathVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "HTTPGetAction describes an action based on HTTP Get requests."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1HttpGetAction {
    #[doc = "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host: Option<String>,
    #[doc = "Custom headers to set in the request. HTTP allows repeated headers."]
    #[serde(rename = "httpHeaders", default, skip_serializing_if = "Vec::is_empty")]
    pub http_headers: Vec<IoK8sApiCoreV1HttpHeader>,
    #[doc = "Path to access on the HTTP server."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[doc = "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME."]
    pub port: IoK8sApimachineryPkgUtilIntstrIntOrString,
    #[doc = "Scheme to use for connecting to the host. Defaults to HTTP.\n\nPossible enum values:\n - `\"HTTP\"` means that the scheme used will be http://\n - `\"HTTPS\"` means that the scheme used will be https://"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub scheme: Option<IoK8sApiCoreV1HttpGetActionScheme>,
}
impl From<&IoK8sApiCoreV1HttpGetAction> for IoK8sApiCoreV1HttpGetAction {
    fn from(value: &IoK8sApiCoreV1HttpGetAction) -> Self {
        value.clone()
    }
}
#[doc = "Scheme to use for connecting to the host. Defaults to HTTP.\n\nPossible enum values:\n - `\"HTTP\"` means that the scheme used will be http://\n - `\"HTTPS\"` means that the scheme used will be https://"]
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub enum IoK8sApiCoreV1HttpGetActionScheme {
    #[serde(rename = "HTTP")]
    Http,
    #[serde(rename = "HTTPS")]
    Https,
}
impl From<&IoK8sApiCoreV1HttpGetActionScheme> for IoK8sApiCoreV1HttpGetActionScheme {
    fn from(value: &IoK8sApiCoreV1HttpGetActionScheme) -> Self {
        value.clone()
    }
}
impl ToString for IoK8sApiCoreV1HttpGetActionScheme {
    fn to_string(&self) -> String {
        match *self {
            Self::Http => "HTTP".to_string(),
            Self::Https => "HTTPS".to_string(),
        }
    }
}
impl std::str::FromStr for IoK8sApiCoreV1HttpGetActionScheme {
    type Err = &'static str;
    fn from_str(value: &str) -> Result<Self, &'static str> {
        match value {
            "HTTP" => Ok(Self::Http),
            "HTTPS" => Ok(Self::Https),
            _ => Err("invalid value"),
        }
    }
}
impl std::convert::TryFrom<&str> for IoK8sApiCoreV1HttpGetActionScheme {
    type Error = &'static str;
    fn try_from(value: &str) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<&String> for IoK8sApiCoreV1HttpGetActionScheme {
    type Error = &'static str;
    fn try_from(value: &String) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<String> for IoK8sApiCoreV1HttpGetActionScheme {
    type Error = &'static str;
    fn try_from(value: String) -> Result<Self, &'static str> {
        value.parse()
    }
}
#[doc = "HTTPHeader describes a custom header to be used in HTTP probes"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1HttpHeader {
    #[doc = "The header field name"]
    pub name: String,
    #[doc = "The header field value"]
    pub value: String,
}
impl From<&IoK8sApiCoreV1HttpHeader> for IoK8sApiCoreV1HttpHeader {
    fn from(value: &IoK8sApiCoreV1HttpHeader) -> Self {
        value.clone()
    }
}
#[doc = "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1IscsiVolumeSource {
    #[doc = "whether support iSCSI Discovery CHAP authentication"]
    #[serde(
        rename = "chapAuthDiscovery",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub chap_auth_discovery: Option<bool>,
    #[doc = "whether support iSCSI Session CHAP authentication"]
    #[serde(
        rename = "chapAuthSession",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub chap_auth_session: Option<bool>,
    #[doc = "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi"]
    #[serde(rename = "fsType", default, skip_serializing_if = "Option::is_none")]
    pub fs_type: Option<String>,
    #[doc = "Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection."]
    #[serde(
        rename = "initiatorName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub initiator_name: Option<String>,
    #[doc = "Target iSCSI Qualified Name."]
    pub iqn: String,
    #[doc = "iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp)."]
    #[serde(
        rename = "iscsiInterface",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub iscsi_interface: Option<String>,
    #[doc = "iSCSI Target Lun number."]
    pub lun: i64,
    #[doc = "iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub portals: Vec<String>,
    #[doc = "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false."]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "CHAP Secret for iSCSI target and initiator authentication"]
    #[serde(rename = "secretRef", default, skip_serializing_if = "Option::is_none")]
    pub secret_ref: Option<IoK8sApiCoreV1LocalObjectReference>,
    #[doc = "iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."]
    #[serde(rename = "targetPortal")]
    pub target_portal: String,
}
impl From<&IoK8sApiCoreV1IscsiVolumeSource> for IoK8sApiCoreV1IscsiVolumeSource {
    fn from(value: &IoK8sApiCoreV1IscsiVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Maps a string key to a path within a volume."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1KeyToPath {
    #[doc = "The key to project."]
    pub key: String,
    #[doc = "Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mode: Option<i64>,
    #[doc = "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'."]
    pub path: String,
}
impl From<&IoK8sApiCoreV1KeyToPath> for IoK8sApiCoreV1KeyToPath {
    fn from(value: &IoK8sApiCoreV1KeyToPath) -> Self {
        value.clone()
    }
}
#[doc = "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1Lifecycle {
    #[doc = "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks"]
    #[serde(rename = "postStart", default, skip_serializing_if = "Option::is_none")]
    pub post_start: Option<IoK8sApiCoreV1LifecycleHandler>,
    #[doc = "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks"]
    #[serde(rename = "preStop", default, skip_serializing_if = "Option::is_none")]
    pub pre_stop: Option<IoK8sApiCoreV1LifecycleHandler>,
}
impl From<&IoK8sApiCoreV1Lifecycle> for IoK8sApiCoreV1Lifecycle {
    fn from(value: &IoK8sApiCoreV1Lifecycle) -> Self {
        value.clone()
    }
}
#[doc = "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1LifecycleHandler {
    #[doc = "Exec specifies the action to take."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub exec: Option<IoK8sApiCoreV1ExecAction>,
    #[doc = "HTTPGet specifies the http request to perform."]
    #[serde(rename = "httpGet", default, skip_serializing_if = "Option::is_none")]
    pub http_get: Option<IoK8sApiCoreV1HttpGetAction>,
    #[doc = "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified."]
    #[serde(rename = "tcpSocket", default, skip_serializing_if = "Option::is_none")]
    pub tcp_socket: Option<IoK8sApiCoreV1TcpSocketAction>,
}
impl From<&IoK8sApiCoreV1LifecycleHandler> for IoK8sApiCoreV1LifecycleHandler {
    fn from(value: &IoK8sApiCoreV1LifecycleHandler) -> Self {
        value.clone()
    }
}
#[doc = "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1LocalObjectReference {
    #[doc = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl From<&IoK8sApiCoreV1LocalObjectReference> for IoK8sApiCoreV1LocalObjectReference {
    fn from(value: &IoK8sApiCoreV1LocalObjectReference) -> Self {
        value.clone()
    }
}
#[doc = "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1NfsVolumeSource {
    #[doc = "Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"]
    pub path: String,
    #[doc = "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"]
    pub server: String,
}
impl From<&IoK8sApiCoreV1NfsVolumeSource> for IoK8sApiCoreV1NfsVolumeSource {
    fn from(value: &IoK8sApiCoreV1NfsVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Node affinity is a group of node affinity scheduling rules."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1NodeAffinity {
    #[doc = "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."]
    #[serde(
        rename = "preferredDuringSchedulingIgnoredDuringExecution",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub preferred_during_scheduling_ignored_during_execution:
        Vec<IoK8sApiCoreV1PreferredSchedulingTerm>,
    #[doc = "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node."]
    #[serde(
        rename = "requiredDuringSchedulingIgnoredDuringExecution",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub required_during_scheduling_ignored_during_execution: Option<IoK8sApiCoreV1NodeSelector>,
}
impl From<&IoK8sApiCoreV1NodeAffinity> for IoK8sApiCoreV1NodeAffinity {
    fn from(value: &IoK8sApiCoreV1NodeAffinity) -> Self {
        value.clone()
    }
}
#[doc = "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1NodeSelector {
    #[doc = "Required. A list of node selector terms. The terms are ORed."]
    #[serde(rename = "nodeSelectorTerms")]
    pub node_selector_terms: Vec<IoK8sApiCoreV1NodeSelectorTerm>,
}
impl From<&IoK8sApiCoreV1NodeSelector> for IoK8sApiCoreV1NodeSelector {
    fn from(value: &IoK8sApiCoreV1NodeSelector) -> Self {
        value.clone()
    }
}
#[doc = "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1NodeSelectorRequirement {
    #[doc = "The label key that the selector applies to."]
    pub key: String,
    #[doc = "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.\n\nPossible enum values:\n - `\"DoesNotExist\"`\n - `\"Exists\"`\n - `\"Gt\"`\n - `\"In\"`\n - `\"Lt\"`\n - `\"NotIn\"`"]
    pub operator: IoK8sApiCoreV1NodeSelectorRequirementOperator,
    #[doc = "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub values: Vec<String>,
}
impl From<&IoK8sApiCoreV1NodeSelectorRequirement> for IoK8sApiCoreV1NodeSelectorRequirement {
    fn from(value: &IoK8sApiCoreV1NodeSelectorRequirement) -> Self {
        value.clone()
    }
}
#[doc = "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.\n\nPossible enum values:\n - `\"DoesNotExist\"`\n - `\"Exists\"`\n - `\"Gt\"`\n - `\"In\"`\n - `\"Lt\"`\n - `\"NotIn\"`"]
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub enum IoK8sApiCoreV1NodeSelectorRequirementOperator {
    DoesNotExist,
    Exists,
    Gt,
    In,
    Lt,
    NotIn,
}
impl From<&IoK8sApiCoreV1NodeSelectorRequirementOperator>
    for IoK8sApiCoreV1NodeSelectorRequirementOperator
{
    fn from(value: &IoK8sApiCoreV1NodeSelectorRequirementOperator) -> Self {
        value.clone()
    }
}
impl ToString for IoK8sApiCoreV1NodeSelectorRequirementOperator {
    fn to_string(&self) -> String {
        match *self {
            Self::DoesNotExist => "DoesNotExist".to_string(),
            Self::Exists => "Exists".to_string(),
            Self::Gt => "Gt".to_string(),
            Self::In => "In".to_string(),
            Self::Lt => "Lt".to_string(),
            Self::NotIn => "NotIn".to_string(),
        }
    }
}
impl std::str::FromStr for IoK8sApiCoreV1NodeSelectorRequirementOperator {
    type Err = &'static str;
    fn from_str(value: &str) -> Result<Self, &'static str> {
        match value {
            "DoesNotExist" => Ok(Self::DoesNotExist),
            "Exists" => Ok(Self::Exists),
            "Gt" => Ok(Self::Gt),
            "In" => Ok(Self::In),
            "Lt" => Ok(Self::Lt),
            "NotIn" => Ok(Self::NotIn),
            _ => Err("invalid value"),
        }
    }
}
impl std::convert::TryFrom<&str> for IoK8sApiCoreV1NodeSelectorRequirementOperator {
    type Error = &'static str;
    fn try_from(value: &str) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<&String> for IoK8sApiCoreV1NodeSelectorRequirementOperator {
    type Error = &'static str;
    fn try_from(value: &String) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<String> for IoK8sApiCoreV1NodeSelectorRequirementOperator {
    type Error = &'static str;
    fn try_from(value: String) -> Result<Self, &'static str> {
        value.parse()
    }
}
#[doc = "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1NodeSelectorTerm {
    #[doc = "A list of node selector requirements by node's labels."]
    #[serde(
        rename = "matchExpressions",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub match_expressions: Vec<IoK8sApiCoreV1NodeSelectorRequirement>,
    #[doc = "A list of node selector requirements by node's fields."]
    #[serde(rename = "matchFields", default, skip_serializing_if = "Vec::is_empty")]
    pub match_fields: Vec<IoK8sApiCoreV1NodeSelectorRequirement>,
}
impl From<&IoK8sApiCoreV1NodeSelectorTerm> for IoK8sApiCoreV1NodeSelectorTerm {
    fn from(value: &IoK8sApiCoreV1NodeSelectorTerm) -> Self {
        value.clone()
    }
}
#[doc = "ObjectFieldSelector selects an APIVersioned field of an object."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1ObjectFieldSelector {
    #[doc = "Version of the schema the FieldPath is written in terms of, defaults to \"v1\"."]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    #[doc = "Path of the field to select in the specified API version."]
    #[serde(rename = "fieldPath")]
    pub field_path: String,
}
impl From<&IoK8sApiCoreV1ObjectFieldSelector> for IoK8sApiCoreV1ObjectFieldSelector {
    fn from(value: &IoK8sApiCoreV1ObjectFieldSelector) -> Self {
        value.clone()
    }
}
#[doc = "ObjectReference contains enough information to let you inspect or modify the referred object."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1ObjectReference {
    #[doc = "API version of the referent."]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    #[doc = "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."]
    #[serde(rename = "fieldPath", default, skip_serializing_if = "Option::is_none")]
    pub field_path: Option<String>,
    #[doc = "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    #[doc = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[doc = "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"]
    #[serde(
        rename = "resourceVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub resource_version: Option<String>,
    #[doc = "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uid: Option<String>,
}
impl From<&IoK8sApiCoreV1ObjectReference> for IoK8sApiCoreV1ObjectReference {
    fn from(value: &IoK8sApiCoreV1ObjectReference) -> Self {
        value.clone()
    }
}
#[doc = "PersistentVolumeClaim is a user's request for and claim to a persistent volume"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PersistentVolumeClaim {
    #[doc = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    #[doc = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    #[doc = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metadata: Option<IoK8sApimachineryPkgApisMetaV1ObjectMeta>,
    #[doc = "Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub spec: Option<IoK8sApiCoreV1PersistentVolumeClaimSpec>,
    #[doc = "Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<IoK8sApiCoreV1PersistentVolumeClaimStatus>,
}
impl From<&IoK8sApiCoreV1PersistentVolumeClaim> for IoK8sApiCoreV1PersistentVolumeClaim {
    fn from(value: &IoK8sApiCoreV1PersistentVolumeClaim) -> Self {
        value.clone()
    }
}
#[doc = "PersistentVolumeClaimCondition contails details about state of pvc"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PersistentVolumeClaimCondition {
    #[doc = "Last time we probed the condition."]
    #[serde(
        rename = "lastProbeTime",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub last_probe_time: Option<IoK8sApimachineryPkgApisMetaV1Time>,
    #[doc = "Last time the condition transitioned from one status to another."]
    #[serde(
        rename = "lastTransitionTime",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub last_transition_time: Option<IoK8sApimachineryPkgApisMetaV1Time>,
    #[doc = "Human-readable message indicating details about last transition."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[doc = "Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub reason: Option<String>,
    pub status: String,
    #[doc = "\n\n\nPossible enum values:\n - `\"FileSystemResizePending\"` - controller resize is finished and a file system resize is pending on node\n - `\"Resizing\"` - a user trigger resize of pvc has been started"]
    #[serde(rename = "type")]
    pub type_: IoK8sApiCoreV1PersistentVolumeClaimConditionType,
}
impl From<&IoK8sApiCoreV1PersistentVolumeClaimCondition>
    for IoK8sApiCoreV1PersistentVolumeClaimCondition
{
    fn from(value: &IoK8sApiCoreV1PersistentVolumeClaimCondition) -> Self {
        value.clone()
    }
}
#[doc = "\n\n\nPossible enum values:\n - `\"FileSystemResizePending\"` - controller resize is finished and a file system resize is pending on node\n - `\"Resizing\"` - a user trigger resize of pvc has been started"]
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub enum IoK8sApiCoreV1PersistentVolumeClaimConditionType {
    FileSystemResizePending,
    Resizing,
}
impl From<&IoK8sApiCoreV1PersistentVolumeClaimConditionType>
    for IoK8sApiCoreV1PersistentVolumeClaimConditionType
{
    fn from(value: &IoK8sApiCoreV1PersistentVolumeClaimConditionType) -> Self {
        value.clone()
    }
}
impl ToString for IoK8sApiCoreV1PersistentVolumeClaimConditionType {
    fn to_string(&self) -> String {
        match *self {
            Self::FileSystemResizePending => "FileSystemResizePending".to_string(),
            Self::Resizing => "Resizing".to_string(),
        }
    }
}
impl std::str::FromStr for IoK8sApiCoreV1PersistentVolumeClaimConditionType {
    type Err = &'static str;
    fn from_str(value: &str) -> Result<Self, &'static str> {
        match value {
            "FileSystemResizePending" => Ok(Self::FileSystemResizePending),
            "Resizing" => Ok(Self::Resizing),
            _ => Err("invalid value"),
        }
    }
}
impl std::convert::TryFrom<&str> for IoK8sApiCoreV1PersistentVolumeClaimConditionType {
    type Error = &'static str;
    fn try_from(value: &str) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<&String> for IoK8sApiCoreV1PersistentVolumeClaimConditionType {
    type Error = &'static str;
    fn try_from(value: &String) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<String> for IoK8sApiCoreV1PersistentVolumeClaimConditionType {
    type Error = &'static str;
    fn try_from(value: String) -> Result<Self, &'static str> {
        value.parse()
    }
}
#[doc = "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PersistentVolumeClaimSpec {
    #[doc = "AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"]
    #[serde(rename = "accessModes", default, skip_serializing_if = "Vec::is_empty")]
    pub access_modes: Vec<String>,
    #[doc = "This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field."]
    #[serde(
        rename = "dataSource",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub data_source: Option<IoK8sApiCoreV1TypedLocalObjectReference>,
    #[doc = "Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n  allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n  preserves all values, and generates an error if a disallowed value is\n  specified.\n(Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled."]
    #[serde(
        rename = "dataSourceRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub data_source_ref: Option<IoK8sApiCoreV1TypedLocalObjectReference>,
    #[doc = "Resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resources: Option<IoK8sApiCoreV1ResourceRequirements>,
    #[doc = "A label query over volumes to consider for binding."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub selector: Option<IoK8sApimachineryPkgApisMetaV1LabelSelector>,
    #[doc = "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1"]
    #[serde(
        rename = "storageClassName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub storage_class_name: Option<String>,
    #[doc = "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec."]
    #[serde(
        rename = "volumeMode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub volume_mode: Option<String>,
    #[doc = "VolumeName is the binding reference to the PersistentVolume backing this claim."]
    #[serde(
        rename = "volumeName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub volume_name: Option<String>,
}
impl From<&IoK8sApiCoreV1PersistentVolumeClaimSpec> for IoK8sApiCoreV1PersistentVolumeClaimSpec {
    fn from(value: &IoK8sApiCoreV1PersistentVolumeClaimSpec) -> Self {
        value.clone()
    }
}
#[doc = "PersistentVolumeClaimStatus is the current status of a persistent volume claim."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PersistentVolumeClaimStatus {
    #[doc = "AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"]
    #[serde(rename = "accessModes", default, skip_serializing_if = "Vec::is_empty")]
    pub access_modes: Vec<String>,
    #[doc = "The storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature."]
    #[serde(
        rename = "allocatedResources",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub allocated_resources:
        std::collections::HashMap<String, IoK8sApimachineryPkgApiResourceQuantity>,
    #[doc = "Represents the actual resources of the underlying volume."]
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub capacity: std::collections::HashMap<String, IoK8sApimachineryPkgApiResourceQuantity>,
    #[doc = "Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub conditions: Vec<IoK8sApiCoreV1PersistentVolumeClaimCondition>,
    #[doc = "Phase represents the current phase of PersistentVolumeClaim.\n\nPossible enum values:\n - `\"Bound\"` used for PersistentVolumeClaims that are bound\n - `\"Lost\"` used for PersistentVolumeClaims that lost their underlying PersistentVolume. The claim was bound to a PersistentVolume and this volume does not exist any longer and all data on it was lost.\n - `\"Pending\"` used for PersistentVolumeClaims that are not yet bound"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub phase: Option<IoK8sApiCoreV1PersistentVolumeClaimStatusPhase>,
    #[doc = "ResizeStatus stores status of resize operation. ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty string by resize controller or kubelet. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature."]
    #[serde(
        rename = "resizeStatus",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub resize_status: Option<String>,
}
impl From<&IoK8sApiCoreV1PersistentVolumeClaimStatus>
    for IoK8sApiCoreV1PersistentVolumeClaimStatus
{
    fn from(value: &IoK8sApiCoreV1PersistentVolumeClaimStatus) -> Self {
        value.clone()
    }
}
#[doc = "Phase represents the current phase of PersistentVolumeClaim.\n\nPossible enum values:\n - `\"Bound\"` used for PersistentVolumeClaims that are bound\n - `\"Lost\"` used for PersistentVolumeClaims that lost their underlying PersistentVolume. The claim was bound to a PersistentVolume and this volume does not exist any longer and all data on it was lost.\n - `\"Pending\"` used for PersistentVolumeClaims that are not yet bound"]
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub enum IoK8sApiCoreV1PersistentVolumeClaimStatusPhase {
    Bound,
    Lost,
    Pending,
}
impl From<&IoK8sApiCoreV1PersistentVolumeClaimStatusPhase>
    for IoK8sApiCoreV1PersistentVolumeClaimStatusPhase
{
    fn from(value: &IoK8sApiCoreV1PersistentVolumeClaimStatusPhase) -> Self {
        value.clone()
    }
}
impl ToString for IoK8sApiCoreV1PersistentVolumeClaimStatusPhase {
    fn to_string(&self) -> String {
        match *self {
            Self::Bound => "Bound".to_string(),
            Self::Lost => "Lost".to_string(),
            Self::Pending => "Pending".to_string(),
        }
    }
}
impl std::str::FromStr for IoK8sApiCoreV1PersistentVolumeClaimStatusPhase {
    type Err = &'static str;
    fn from_str(value: &str) -> Result<Self, &'static str> {
        match value {
            "Bound" => Ok(Self::Bound),
            "Lost" => Ok(Self::Lost),
            "Pending" => Ok(Self::Pending),
            _ => Err("invalid value"),
        }
    }
}
impl std::convert::TryFrom<&str> for IoK8sApiCoreV1PersistentVolumeClaimStatusPhase {
    type Error = &'static str;
    fn try_from(value: &str) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<&String> for IoK8sApiCoreV1PersistentVolumeClaimStatusPhase {
    type Error = &'static str;
    fn try_from(value: &String) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<String> for IoK8sApiCoreV1PersistentVolumeClaimStatusPhase {
    type Error = &'static str;
    fn try_from(value: String) -> Result<Self, &'static str> {
        value.parse()
    }
}
#[doc = "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PersistentVolumeClaimTemplate {
    #[doc = "May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metadata: Option<IoK8sApimachineryPkgApisMetaV1ObjectMeta>,
    #[doc = "The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here."]
    pub spec: IoK8sApiCoreV1PersistentVolumeClaimSpec,
}
impl From<&IoK8sApiCoreV1PersistentVolumeClaimTemplate>
    for IoK8sApiCoreV1PersistentVolumeClaimTemplate
{
    fn from(value: &IoK8sApiCoreV1PersistentVolumeClaimTemplate) -> Self {
        value.clone()
    }
}
#[doc = "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system)."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PersistentVolumeClaimVolumeSource {
    #[doc = "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims"]
    #[serde(rename = "claimName")]
    pub claim_name: String,
    #[doc = "Will force the ReadOnly setting in VolumeMounts. Default false."]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
}
impl From<&IoK8sApiCoreV1PersistentVolumeClaimVolumeSource>
    for IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
{
    fn from(value: &IoK8sApiCoreV1PersistentVolumeClaimVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Represents a Photon Controller persistent disk resource."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PhotonPersistentDiskVolumeSource {
    #[doc = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."]
    #[serde(rename = "fsType", default, skip_serializing_if = "Option::is_none")]
    pub fs_type: Option<String>,
    #[doc = "ID that identifies Photon Controller persistent disk"]
    #[serde(rename = "pdID")]
    pub pd_id: String,
}
impl From<&IoK8sApiCoreV1PhotonPersistentDiskVolumeSource>
    for IoK8sApiCoreV1PhotonPersistentDiskVolumeSource
{
    fn from(value: &IoK8sApiCoreV1PhotonPersistentDiskVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Pod affinity is a group of inter pod affinity scheduling rules."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PodAffinity {
    #[doc = "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."]
    #[serde(
        rename = "preferredDuringSchedulingIgnoredDuringExecution",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub preferred_during_scheduling_ignored_during_execution:
        Vec<IoK8sApiCoreV1WeightedPodAffinityTerm>,
    #[doc = "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."]
    #[serde(
        rename = "requiredDuringSchedulingIgnoredDuringExecution",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub required_during_scheduling_ignored_during_execution: Vec<IoK8sApiCoreV1PodAffinityTerm>,
}
impl From<&IoK8sApiCoreV1PodAffinity> for IoK8sApiCoreV1PodAffinity {
    fn from(value: &IoK8sApiCoreV1PodAffinity) -> Self {
        value.clone()
    }
}
#[doc = "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PodAffinityTerm {
    #[doc = "A label query over a set of resources, in this case pods."]
    #[serde(
        rename = "labelSelector",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub label_selector: Option<IoK8sApimachineryPkgApisMetaV1LabelSelector>,
    #[doc = "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled."]
    #[serde(
        rename = "namespaceSelector",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub namespace_selector: Option<IoK8sApimachineryPkgApisMetaV1LabelSelector>,
    #[doc = "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\""]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub namespaces: Vec<String>,
    #[doc = "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed."]
    #[serde(rename = "topologyKey")]
    pub topology_key: String,
}
impl From<&IoK8sApiCoreV1PodAffinityTerm> for IoK8sApiCoreV1PodAffinityTerm {
    fn from(value: &IoK8sApiCoreV1PodAffinityTerm) -> Self {
        value.clone()
    }
}
#[doc = "Pod anti affinity is a group of inter pod anti affinity scheduling rules."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PodAntiAffinity {
    #[doc = "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."]
    #[serde(
        rename = "preferredDuringSchedulingIgnoredDuringExecution",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub preferred_during_scheduling_ignored_during_execution:
        Vec<IoK8sApiCoreV1WeightedPodAffinityTerm>,
    #[doc = "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."]
    #[serde(
        rename = "requiredDuringSchedulingIgnoredDuringExecution",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub required_during_scheduling_ignored_during_execution: Vec<IoK8sApiCoreV1PodAffinityTerm>,
}
impl From<&IoK8sApiCoreV1PodAntiAffinity> for IoK8sApiCoreV1PodAntiAffinity {
    fn from(value: &IoK8sApiCoreV1PodAntiAffinity) -> Self {
        value.clone()
    }
}
#[doc = "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PodDnsConfig {
    #[doc = "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub nameservers: Vec<String>,
    #[doc = "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub options: Vec<IoK8sApiCoreV1PodDnsConfigOption>,
    #[doc = "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub searches: Vec<String>,
}
impl From<&IoK8sApiCoreV1PodDnsConfig> for IoK8sApiCoreV1PodDnsConfig {
    fn from(value: &IoK8sApiCoreV1PodDnsConfig) -> Self {
        value.clone()
    }
}
#[doc = "PodDNSConfigOption defines DNS resolver options of a pod."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PodDnsConfigOption {
    #[doc = "Required."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}
impl From<&IoK8sApiCoreV1PodDnsConfigOption> for IoK8sApiCoreV1PodDnsConfigOption {
    fn from(value: &IoK8sApiCoreV1PodDnsConfigOption) -> Self {
        value.clone()
    }
}
#[doc = "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext.  Field values of container.securityContext take precedence over field values of PodSecurityContext."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PodSecurityContext {
    #[doc = "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(rename = "fsGroup", default, skip_serializing_if = "Option::is_none")]
    pub fs_group: Option<i64>,
    #[doc = "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(
        rename = "fsGroupChangePolicy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub fs_group_change_policy: Option<String>,
    #[doc = "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext.  If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(
        rename = "runAsGroup",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub run_as_group: Option<i64>,
    #[doc = "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext.  If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."]
    #[serde(
        rename = "runAsNonRoot",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub run_as_non_root: Option<bool>,
    #[doc = "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext.  If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(rename = "runAsUser", default, skip_serializing_if = "Option::is_none")]
    pub run_as_user: Option<i64>,
    #[doc = "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container.  May also be set in SecurityContext.  If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(
        rename = "seLinuxOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub se_linux_options: Option<IoK8sApiCoreV1SeLinuxOptions>,
    #[doc = "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(
        rename = "seccompProfile",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub seccomp_profile: Option<IoK8sApiCoreV1SeccompProfile>,
    #[doc = "A list of groups applied to the first process run in each container, in addition to the container's primary GID.  If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(
        rename = "supplementalGroups",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub supplemental_groups: Vec<i64>,
    #[doc = "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub sysctls: Vec<IoK8sApiCoreV1Sysctl>,
    #[doc = "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux."]
    #[serde(
        rename = "windowsOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub windows_options: Option<IoK8sApiCoreV1WindowsSecurityContextOptions>,
}
impl From<&IoK8sApiCoreV1PodSecurityContext> for IoK8sApiCoreV1PodSecurityContext {
    fn from(value: &IoK8sApiCoreV1PodSecurityContext) -> Self {
        value.clone()
    }
}
#[doc = "PortworxVolumeSource represents a Portworx volume resource."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PortworxVolumeSource {
    #[doc = "FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified."]
    #[serde(rename = "fsType", default, skip_serializing_if = "Option::is_none")]
    pub fs_type: Option<String>,
    #[doc = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "VolumeID uniquely identifies a Portworx volume"]
    #[serde(rename = "volumeID")]
    pub volume_id: String,
}
impl From<&IoK8sApiCoreV1PortworxVolumeSource> for IoK8sApiCoreV1PortworxVolumeSource {
    fn from(value: &IoK8sApiCoreV1PortworxVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op)."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1PreferredSchedulingTerm {
    #[doc = "A node selector term, associated with the corresponding weight."]
    pub preference: IoK8sApiCoreV1NodeSelectorTerm,
    #[doc = "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100."]
    pub weight: i64,
}
impl From<&IoK8sApiCoreV1PreferredSchedulingTerm> for IoK8sApiCoreV1PreferredSchedulingTerm {
    fn from(value: &IoK8sApiCoreV1PreferredSchedulingTerm) -> Self {
        value.clone()
    }
}
#[doc = "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1Probe {
    #[doc = "Exec specifies the action to take."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub exec: Option<IoK8sApiCoreV1ExecAction>,
    #[doc = "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."]
    #[serde(
        rename = "failureThreshold",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub failure_threshold: Option<i64>,
    #[doc = "GRPC specifies an action involving a GRPC port. This is an alpha field and requires enabling GRPCContainerProbe feature gate."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub grpc: Option<IoK8sApiCoreV1GrpcAction>,
    #[doc = "HTTPGet specifies the http request to perform."]
    #[serde(rename = "httpGet", default, skip_serializing_if = "Option::is_none")]
    pub http_get: Option<IoK8sApiCoreV1HttpGetAction>,
    #[doc = "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"]
    #[serde(
        rename = "initialDelaySeconds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub initial_delay_seconds: Option<i64>,
    #[doc = "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1."]
    #[serde(
        rename = "periodSeconds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub period_seconds: Option<i64>,
    #[doc = "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1."]
    #[serde(
        rename = "successThreshold",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub success_threshold: Option<i64>,
    #[doc = "TCPSocket specifies an action involving a TCP port."]
    #[serde(rename = "tcpSocket", default, skip_serializing_if = "Option::is_none")]
    pub tcp_socket: Option<IoK8sApiCoreV1TcpSocketAction>,
    #[doc = "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset."]
    #[serde(
        rename = "terminationGracePeriodSeconds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub termination_grace_period_seconds: Option<i64>,
    #[doc = "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"]
    #[serde(
        rename = "timeoutSeconds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub timeout_seconds: Option<i64>,
}
impl From<&IoK8sApiCoreV1Probe> for IoK8sApiCoreV1Probe {
    fn from(value: &IoK8sApiCoreV1Probe) -> Self {
        value.clone()
    }
}
#[doc = "Represents a projected volume source"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1ProjectedVolumeSource {
    #[doc = "Mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."]
    #[serde(
        rename = "defaultMode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub default_mode: Option<i64>,
    #[doc = "list of volume projections"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub sources: Vec<IoK8sApiCoreV1VolumeProjection>,
}
impl From<&IoK8sApiCoreV1ProjectedVolumeSource> for IoK8sApiCoreV1ProjectedVolumeSource {
    fn from(value: &IoK8sApiCoreV1ProjectedVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1QuobyteVolumeSource {
    #[doc = "Group to map volume access to Default is no group"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub group: Option<String>,
    #[doc = "ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false."]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes"]
    pub registry: String,
    #[doc = "Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tenant: Option<String>,
    #[doc = "User to map volume access to Defaults to serivceaccount user"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub user: Option<String>,
    #[doc = "Volume is a string that references an already created Quobyte volume by name."]
    pub volume: String,
}
impl From<&IoK8sApiCoreV1QuobyteVolumeSource> for IoK8sApiCoreV1QuobyteVolumeSource {
    fn from(value: &IoK8sApiCoreV1QuobyteVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1RbdVolumeSource {
    #[doc = "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd"]
    #[serde(rename = "fsType", default, skip_serializing_if = "Option::is_none")]
    pub fs_type: Option<String>,
    #[doc = "The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"]
    pub image: String,
    #[doc = "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub keyring: Option<String>,
    #[doc = "A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"]
    pub monitors: Vec<String>,
    #[doc = "The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pool: Option<String>,
    #[doc = "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"]
    #[serde(rename = "secretRef", default, skip_serializing_if = "Option::is_none")]
    pub secret_ref: Option<IoK8sApiCoreV1LocalObjectReference>,
    #[doc = "The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub user: Option<String>,
}
impl From<&IoK8sApiCoreV1RbdVolumeSource> for IoK8sApiCoreV1RbdVolumeSource {
    fn from(value: &IoK8sApiCoreV1RbdVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "ResourceFieldSelector represents container resources (cpu, memory) and their output format"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1ResourceFieldSelector {
    #[doc = "Container name: required for volumes, optional for env vars"]
    #[serde(
        rename = "containerName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub container_name: Option<String>,
    #[doc = "Specifies the output format of the exposed resources, defaults to \"1\""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub divisor: Option<IoK8sApimachineryPkgApiResourceQuantity>,
    #[doc = "Required: resource to select"]
    pub resource: String,
}
impl From<&IoK8sApiCoreV1ResourceFieldSelector> for IoK8sApiCoreV1ResourceFieldSelector {
    fn from(value: &IoK8sApiCoreV1ResourceFieldSelector) -> Self {
        value.clone()
    }
}
#[doc = "ResourceRequirements describes the compute resource requirements."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1ResourceRequirements {
    #[doc = "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"]
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub limits: std::collections::HashMap<String, IoK8sApimachineryPkgApiResourceQuantity>,
    #[doc = "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"]
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub requests: std::collections::HashMap<String, IoK8sApimachineryPkgApiResourceQuantity>,
}
impl From<&IoK8sApiCoreV1ResourceRequirements> for IoK8sApiCoreV1ResourceRequirements {
    fn from(value: &IoK8sApiCoreV1ResourceRequirements) -> Self {
        value.clone()
    }
}
#[doc = "ScaleIOVolumeSource represents a persistent ScaleIO volume"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1ScaleIoVolumeSource {
    #[doc = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"."]
    #[serde(rename = "fsType", default, skip_serializing_if = "Option::is_none")]
    pub fs_type: Option<String>,
    #[doc = "The host address of the ScaleIO API Gateway."]
    pub gateway: String,
    #[doc = "The name of the ScaleIO Protection Domain for the configured storage."]
    #[serde(
        rename = "protectionDomain",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub protection_domain: Option<String>,
    #[doc = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail."]
    #[serde(rename = "secretRef")]
    pub secret_ref: IoK8sApiCoreV1LocalObjectReference,
    #[doc = "Flag to enable/disable SSL communication with Gateway, default false"]
    #[serde(
        rename = "sslEnabled",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub ssl_enabled: Option<bool>,
    #[doc = "Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned."]
    #[serde(
        rename = "storageMode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub storage_mode: Option<String>,
    #[doc = "The ScaleIO Storage Pool associated with the protection domain."]
    #[serde(
        rename = "storagePool",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub storage_pool: Option<String>,
    #[doc = "The name of the storage system as configured in ScaleIO."]
    pub system: String,
    #[doc = "The name of a volume already created in the ScaleIO system that is associated with this volume source."]
    #[serde(
        rename = "volumeName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub volume_name: Option<String>,
}
impl From<&IoK8sApiCoreV1ScaleIoVolumeSource> for IoK8sApiCoreV1ScaleIoVolumeSource {
    fn from(value: &IoK8sApiCoreV1ScaleIoVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "SELinuxOptions are the labels to be applied to the container"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1SeLinuxOptions {
    #[doc = "Level is SELinux level label that applies to the container."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub level: Option<String>,
    #[doc = "Role is a SELinux role label that applies to the container."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub role: Option<String>,
    #[doc = "Type is a SELinux type label that applies to the container."]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
    #[doc = "User is a SELinux user label that applies to the container."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub user: Option<String>,
}
impl From<&IoK8sApiCoreV1SeLinuxOptions> for IoK8sApiCoreV1SeLinuxOptions {
    fn from(value: &IoK8sApiCoreV1SeLinuxOptions) -> Self {
        value.clone()
    }
}
#[doc = "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1SeccompProfile {
    #[doc = "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\"."]
    #[serde(
        rename = "localhostProfile",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub localhost_profile: Option<String>,
    #[doc = "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.\n\nPossible enum values:\n - `\"Localhost\"` indicates a profile defined in a file on the node should be used. The file's location relative to <kubelet-root-dir>/seccomp.\n - `\"RuntimeDefault\"` represents the default container runtime seccomp profile.\n - `\"Unconfined\"` indicates no seccomp profile is applied (A.K.A. unconfined)."]
    #[serde(rename = "type")]
    pub type_: IoK8sApiCoreV1SeccompProfileType,
}
impl From<&IoK8sApiCoreV1SeccompProfile> for IoK8sApiCoreV1SeccompProfile {
    fn from(value: &IoK8sApiCoreV1SeccompProfile) -> Self {
        value.clone()
    }
}
#[doc = "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.\n\nPossible enum values:\n - `\"Localhost\"` indicates a profile defined in a file on the node should be used. The file's location relative to <kubelet-root-dir>/seccomp.\n - `\"RuntimeDefault\"` represents the default container runtime seccomp profile.\n - `\"Unconfined\"` indicates no seccomp profile is applied (A.K.A. unconfined)."]
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub enum IoK8sApiCoreV1SeccompProfileType {
    Localhost,
    RuntimeDefault,
    Unconfined,
}
impl From<&IoK8sApiCoreV1SeccompProfileType> for IoK8sApiCoreV1SeccompProfileType {
    fn from(value: &IoK8sApiCoreV1SeccompProfileType) -> Self {
        value.clone()
    }
}
impl ToString for IoK8sApiCoreV1SeccompProfileType {
    fn to_string(&self) -> String {
        match *self {
            Self::Localhost => "Localhost".to_string(),
            Self::RuntimeDefault => "RuntimeDefault".to_string(),
            Self::Unconfined => "Unconfined".to_string(),
        }
    }
}
impl std::str::FromStr for IoK8sApiCoreV1SeccompProfileType {
    type Err = &'static str;
    fn from_str(value: &str) -> Result<Self, &'static str> {
        match value {
            "Localhost" => Ok(Self::Localhost),
            "RuntimeDefault" => Ok(Self::RuntimeDefault),
            "Unconfined" => Ok(Self::Unconfined),
            _ => Err("invalid value"),
        }
    }
}
impl std::convert::TryFrom<&str> for IoK8sApiCoreV1SeccompProfileType {
    type Error = &'static str;
    fn try_from(value: &str) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<&String> for IoK8sApiCoreV1SeccompProfileType {
    type Error = &'static str;
    fn try_from(value: &String) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<String> for IoK8sApiCoreV1SeccompProfileType {
    type Error = &'static str;
    fn try_from(value: String) -> Result<Self, &'static str> {
        value.parse()
    }
}
#[doc = "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1SecretEnvSource {
    #[doc = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Specify whether the Secret must be defined"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}
impl From<&IoK8sApiCoreV1SecretEnvSource> for IoK8sApiCoreV1SecretEnvSource {
    fn from(value: &IoK8sApiCoreV1SecretEnvSource) -> Self {
        value.clone()
    }
}

pub use IoK8sApiCoreV1SecretKeySelectorBuilder as SecretKeySelectorBuilder;
pub use IoK8sApiCoreV1SecretKeySelectorBuilderError as SecretKeySelectorBuilderError;

#[doc = "SecretKeySelector selects a key of a Secret."]
#[derive(Clone, Debug, Deserialize, Serialize, Builder, Default)]
pub struct IoK8sApiCoreV1SecretKeySelector {
    #[doc = "The key of the secret to select from.  Must be a valid secret key."]
    pub key: String,
    #[doc = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Specify whether the Secret or its key must be defined"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}
impl From<&IoK8sApiCoreV1SecretKeySelector> for IoK8sApiCoreV1SecretKeySelector {
    fn from(value: &IoK8sApiCoreV1SecretKeySelector) -> Self {
        value.clone()
    }
}
#[doc = "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1SecretProjection {
    #[doc = "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub items: Vec<IoK8sApiCoreV1KeyToPath>,
    #[doc = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Specify whether the Secret or its key must be defined"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
}
impl From<&IoK8sApiCoreV1SecretProjection> for IoK8sApiCoreV1SecretProjection {
    fn from(value: &IoK8sApiCoreV1SecretProjection) -> Self {
        value.clone()
    }
}

pub use IoK8sApiCoreV1SecretVolumeSourceBuilder as SecretVolumeSourceBuilder;
pub use IoK8sApiCoreV1SecretVolumeSourceBuilderError as SecretVolumeSourceBuilderError;

#[doc = "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling."]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
#[builder(default)]
pub struct IoK8sApiCoreV1SecretVolumeSource {
    #[doc = "Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."]
    #[serde(
        rename = "defaultMode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub default_mode: Option<i64>,
    #[doc = "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub items: Vec<IoK8sApiCoreV1KeyToPath>,
    #[doc = "Specify whether the Secret or its keys must be defined"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub optional: Option<bool>,
    #[doc = "Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret"]
    #[serde(
        rename = "secretName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub secret_name: Option<String>,
}
impl From<&IoK8sApiCoreV1SecretVolumeSource> for IoK8sApiCoreV1SecretVolumeSource {
    fn from(value: &IoK8sApiCoreV1SecretVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext.  When both are set, the values in SecurityContext take precedence."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1SecurityContext {
    #[doc = "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows."]
    #[serde(
        rename = "allowPrivilegeEscalation",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub allow_privilege_escalation: Option<bool>,
    #[doc = "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub capabilities: Option<IoK8sApiCoreV1Capabilities>,
    #[doc = "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub privileged: Option<bool>,
    #[doc = "procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(rename = "procMount", default, skip_serializing_if = "Option::is_none")]
    pub proc_mount: Option<String>,
    #[doc = "Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(
        rename = "readOnlyRootFilesystem",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub read_only_root_filesystem: Option<bool>,
    #[doc = "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext.  If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(
        rename = "runAsGroup",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub run_as_group: Option<i64>,
    #[doc = "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext.  If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."]
    #[serde(
        rename = "runAsNonRoot",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub run_as_non_root: Option<bool>,
    #[doc = "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext.  If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(rename = "runAsUser", default, skip_serializing_if = "Option::is_none")]
    pub run_as_user: Option<i64>,
    #[doc = "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container.  May also be set in PodSecurityContext.  If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(
        rename = "seLinuxOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub se_linux_options: Option<IoK8sApiCoreV1SeLinuxOptions>,
    #[doc = "The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows."]
    #[serde(
        rename = "seccompProfile",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub seccomp_profile: Option<IoK8sApiCoreV1SeccompProfile>,
    #[doc = "The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux."]
    #[serde(
        rename = "windowsOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub windows_options: Option<IoK8sApiCoreV1WindowsSecurityContextOptions>,
}
impl From<&IoK8sApiCoreV1SecurityContext> for IoK8sApiCoreV1SecurityContext {
    fn from(value: &IoK8sApiCoreV1SecurityContext) -> Self {
        value.clone()
    }
}
#[doc = "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise)."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1ServiceAccountTokenProjection {
    #[doc = "Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub audience: Option<String>,
    #[doc = "ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes."]
    #[serde(
        rename = "expirationSeconds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub expiration_seconds: Option<i64>,
    #[doc = "Path is the path relative to the mount point of the file to project the token into."]
    pub path: String,
}
impl From<&IoK8sApiCoreV1ServiceAccountTokenProjection>
    for IoK8sApiCoreV1ServiceAccountTokenProjection
{
    fn from(value: &IoK8sApiCoreV1ServiceAccountTokenProjection) -> Self {
        value.clone()
    }
}
#[doc = "ServicePort contains information on service's port."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1ServicePort {
    #[doc = "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol."]
    #[serde(
        rename = "appProtocol",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub app_protocol: Option<String>,
    #[doc = "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "The port on each node on which this service is exposed when type is NodePort or LoadBalancer.  Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail.  If not specified, a port will be allocated if this Service requires one.  If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport"]
    #[serde(rename = "nodePort", default, skip_serializing_if = "Option::is_none")]
    pub node_port: Option<i64>,
    #[doc = "The port that will be exposed by this service."]
    pub port: i64,
    #[doc = "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.\n\nPossible enum values:\n - `\"SCTP\"` is the SCTP protocol.\n - `\"TCP\"` is the TCP protocol.\n - `\"UDP\"` is the UDP protocol."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub protocol: Option<IoK8sApiCoreV1ServicePortProtocol>,
    #[doc = "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service"]
    #[serde(
        rename = "targetPort",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_port: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>,
}
impl From<&IoK8sApiCoreV1ServicePort> for IoK8sApiCoreV1ServicePort {
    fn from(value: &IoK8sApiCoreV1ServicePort) -> Self {
        value.clone()
    }
}
#[doc = "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.\n\nPossible enum values:\n - `\"SCTP\"` is the SCTP protocol.\n - `\"TCP\"` is the TCP protocol.\n - `\"UDP\"` is the UDP protocol."]
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub enum IoK8sApiCoreV1ServicePortProtocol {
    #[serde(rename = "SCTP")]
    Sctp,
    #[serde(rename = "TCP")]
    Tcp,
    #[serde(rename = "UDP")]
    Udp,
}
impl From<&IoK8sApiCoreV1ServicePortProtocol> for IoK8sApiCoreV1ServicePortProtocol {
    fn from(value: &IoK8sApiCoreV1ServicePortProtocol) -> Self {
        value.clone()
    }
}
impl ToString for IoK8sApiCoreV1ServicePortProtocol {
    fn to_string(&self) -> String {
        match *self {
            Self::Sctp => "SCTP".to_string(),
            Self::Tcp => "TCP".to_string(),
            Self::Udp => "UDP".to_string(),
        }
    }
}
impl std::str::FromStr for IoK8sApiCoreV1ServicePortProtocol {
    type Err = &'static str;
    fn from_str(value: &str) -> Result<Self, &'static str> {
        match value {
            "SCTP" => Ok(Self::Sctp),
            "TCP" => Ok(Self::Tcp),
            "UDP" => Ok(Self::Udp),
            _ => Err("invalid value"),
        }
    }
}
impl std::convert::TryFrom<&str> for IoK8sApiCoreV1ServicePortProtocol {
    type Error = &'static str;
    fn try_from(value: &str) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<&String> for IoK8sApiCoreV1ServicePortProtocol {
    type Error = &'static str;
    fn try_from(value: &String) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<String> for IoK8sApiCoreV1ServicePortProtocol {
    type Error = &'static str;
    fn try_from(value: String) -> Result<Self, &'static str> {
        value.parse()
    }
}
#[doc = "Represents a StorageOS persistent volume resource."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1StorageOsVolumeSource {
    #[doc = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."]
    #[serde(rename = "fsType", default, skip_serializing_if = "Option::is_none")]
    pub fs_type: Option<String>,
    #[doc = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "SecretRef specifies the secret to use for obtaining the StorageOS API credentials.  If not specified, default values will be attempted."]
    #[serde(rename = "secretRef", default, skip_serializing_if = "Option::is_none")]
    pub secret_ref: Option<IoK8sApiCoreV1LocalObjectReference>,
    #[doc = "VolumeName is the human-readable name of the StorageOS volume.  Volume names are only unique within a namespace."]
    #[serde(
        rename = "volumeName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub volume_name: Option<String>,
    #[doc = "VolumeNamespace specifies the scope of the volume within StorageOS.  If no namespace is specified then the Pod's namespace will be used.  This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created."]
    #[serde(
        rename = "volumeNamespace",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub volume_namespace: Option<String>,
}
impl From<&IoK8sApiCoreV1StorageOsVolumeSource> for IoK8sApiCoreV1StorageOsVolumeSource {
    fn from(value: &IoK8sApiCoreV1StorageOsVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "Sysctl defines a kernel parameter to be set"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1Sysctl {
    #[doc = "Name of a property to set"]
    pub name: String,
    #[doc = "Value of a property to set"]
    pub value: String,
}
impl From<&IoK8sApiCoreV1Sysctl> for IoK8sApiCoreV1Sysctl {
    fn from(value: &IoK8sApiCoreV1Sysctl) -> Self {
        value.clone()
    }
}
#[doc = "TCPSocketAction describes an action based on opening a socket"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1TcpSocketAction {
    #[doc = "Optional: Host name to connect to, defaults to the pod IP."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host: Option<String>,
    #[doc = "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME."]
    pub port: IoK8sApimachineryPkgUtilIntstrIntOrString,
}
impl From<&IoK8sApiCoreV1TcpSocketAction> for IoK8sApiCoreV1TcpSocketAction {
    fn from(value: &IoK8sApiCoreV1TcpSocketAction) -> Self {
        value.clone()
    }
}
#[doc = "The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1Toleration {
    #[doc = "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.\n\nPossible enum values:\n - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController.\n - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler.\n - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub effect: Option<IoK8sApiCoreV1TolerationEffect>,
    #[doc = "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub key: Option<String>,
    #[doc = "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.\n\nPossible enum values:\n - `\"Equal\"`\n - `\"Exists\"`"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub operator: Option<IoK8sApiCoreV1TolerationOperator>,
    #[doc = "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system."]
    #[serde(
        rename = "tolerationSeconds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub toleration_seconds: Option<i64>,
    #[doc = "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}
impl From<&IoK8sApiCoreV1Toleration> for IoK8sApiCoreV1Toleration {
    fn from(value: &IoK8sApiCoreV1Toleration) -> Self {
        value.clone()
    }
}
#[doc = "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.\n\nPossible enum values:\n - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController.\n - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler.\n - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler."]
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub enum IoK8sApiCoreV1TolerationEffect {
    NoExecute,
    NoSchedule,
    PreferNoSchedule,
}
impl From<&IoK8sApiCoreV1TolerationEffect> for IoK8sApiCoreV1TolerationEffect {
    fn from(value: &IoK8sApiCoreV1TolerationEffect) -> Self {
        value.clone()
    }
}
impl ToString for IoK8sApiCoreV1TolerationEffect {
    fn to_string(&self) -> String {
        match *self {
            Self::NoExecute => "NoExecute".to_string(),
            Self::NoSchedule => "NoSchedule".to_string(),
            Self::PreferNoSchedule => "PreferNoSchedule".to_string(),
        }
    }
}
impl std::str::FromStr for IoK8sApiCoreV1TolerationEffect {
    type Err = &'static str;
    fn from_str(value: &str) -> Result<Self, &'static str> {
        match value {
            "NoExecute" => Ok(Self::NoExecute),
            "NoSchedule" => Ok(Self::NoSchedule),
            "PreferNoSchedule" => Ok(Self::PreferNoSchedule),
            _ => Err("invalid value"),
        }
    }
}
impl std::convert::TryFrom<&str> for IoK8sApiCoreV1TolerationEffect {
    type Error = &'static str;
    fn try_from(value: &str) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<&String> for IoK8sApiCoreV1TolerationEffect {
    type Error = &'static str;
    fn try_from(value: &String) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<String> for IoK8sApiCoreV1TolerationEffect {
    type Error = &'static str;
    fn try_from(value: String) -> Result<Self, &'static str> {
        value.parse()
    }
}
#[doc = "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.\n\nPossible enum values:\n - `\"Equal\"`\n - `\"Exists\"`"]
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub enum IoK8sApiCoreV1TolerationOperator {
    Equal,
    Exists,
}
impl From<&IoK8sApiCoreV1TolerationOperator> for IoK8sApiCoreV1TolerationOperator {
    fn from(value: &IoK8sApiCoreV1TolerationOperator) -> Self {
        value.clone()
    }
}
impl ToString for IoK8sApiCoreV1TolerationOperator {
    fn to_string(&self) -> String {
        match *self {
            Self::Equal => "Equal".to_string(),
            Self::Exists => "Exists".to_string(),
        }
    }
}
impl std::str::FromStr for IoK8sApiCoreV1TolerationOperator {
    type Err = &'static str;
    fn from_str(value: &str) -> Result<Self, &'static str> {
        match value {
            "Equal" => Ok(Self::Equal),
            "Exists" => Ok(Self::Exists),
            _ => Err("invalid value"),
        }
    }
}
impl std::convert::TryFrom<&str> for IoK8sApiCoreV1TolerationOperator {
    type Error = &'static str;
    fn try_from(value: &str) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<&String> for IoK8sApiCoreV1TolerationOperator {
    type Error = &'static str;
    fn try_from(value: &String) -> Result<Self, &'static str> {
        value.parse()
    }
}
impl std::convert::TryFrom<String> for IoK8sApiCoreV1TolerationOperator {
    type Error = &'static str;
    fn try_from(value: String) -> Result<Self, &'static str> {
        value.parse()
    }
}
#[doc = "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1TypedLocalObjectReference {
    #[doc = "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."]
    #[serde(rename = "apiGroup", default, skip_serializing_if = "Option::is_none")]
    pub api_group: Option<String>,
    #[doc = "Kind is the type of resource being referenced"]
    pub kind: String,
    #[doc = "Name is the name of resource being referenced"]
    pub name: String,
}
impl From<&IoK8sApiCoreV1TypedLocalObjectReference> for IoK8sApiCoreV1TypedLocalObjectReference {
    fn from(value: &IoK8sApiCoreV1TypedLocalObjectReference) -> Self {
        value.clone()
    }
}

pub use IoK8sApiCoreV1VolumeBuilder as VolumeBuilder;
pub use IoK8sApiCoreV1VolumeBuilderError as VolumeBuilderError;

#[doc = "Volume represents a named volume in a pod that may be accessed by any container in the pod."]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
#[builder(default)]
pub struct IoK8sApiCoreV1Volume {
    #[doc = "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"]
    #[serde(
        rename = "awsElasticBlockStore",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub aws_elastic_block_store: Option<IoK8sApiCoreV1AwsElasticBlockStoreVolumeSource>,
    #[doc = "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod."]
    #[serde(rename = "azureDisk", default, skip_serializing_if = "Option::is_none")]
    pub azure_disk: Option<IoK8sApiCoreV1AzureDiskVolumeSource>,
    #[doc = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod."]
    #[serde(rename = "azureFile", default, skip_serializing_if = "Option::is_none")]
    pub azure_file: Option<IoK8sApiCoreV1AzureFileVolumeSource>,
    #[doc = "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cephfs: Option<IoK8sApiCoreV1CephFsVolumeSource>,
    #[doc = "Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cinder: Option<IoK8sApiCoreV1CinderVolumeSource>,
    #[doc = "ConfigMap represents a configMap that should populate this volume"]
    #[serde(rename = "configMap", default, skip_serializing_if = "Option::is_none")]
    pub config_map: Option<IoK8sApiCoreV1ConfigMapVolumeSource>,
    #[doc = "CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature)."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub csi: Option<IoK8sApiCoreV1CsiVolumeSource>,
    #[doc = "DownwardAPI represents downward API about the pod that should populate this volume"]
    #[serde(
        rename = "downwardAPI",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub downward_api: Option<IoK8sApiCoreV1DownwardApiVolumeSource>,
    #[doc = "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir"]
    #[serde(rename = "emptyDir", default, skip_serializing_if = "Option::is_none")]
    pub empty_dir: Option<IoK8sApiCoreV1EmptyDirVolumeSource>,
    #[doc = "Ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n   tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n   a PersistentVolumeClaim (see EphemeralVolumeSource for more\n   information on the connection between this volume type\n   and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ephemeral: Option<IoK8sApiCoreV1EphemeralVolumeSource>,
    #[doc = "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub fc: Option<IoK8sApiCoreV1FcVolumeSource>,
    #[doc = "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin."]
    #[serde(
        rename = "flexVolume",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub flex_volume: Option<IoK8sApiCoreV1FlexVolumeSource>,
    #[doc = "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub flocker: Option<IoK8sApiCoreV1FlockerVolumeSource>,
    #[doc = "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"]
    #[serde(
        rename = "gcePersistentDisk",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub gce_persistent_disk: Option<IoK8sApiCoreV1GcePersistentDiskVolumeSource>,
    #[doc = "GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container."]
    #[serde(rename = "gitRepo", default, skip_serializing_if = "Option::is_none")]
    pub git_repo: Option<IoK8sApiCoreV1GitRepoVolumeSource>,
    #[doc = "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub glusterfs: Option<IoK8sApiCoreV1GlusterfsVolumeSource>,
    #[doc = "HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"]
    #[serde(rename = "hostPath", default, skip_serializing_if = "Option::is_none")]
    pub host_path: Option<IoK8sApiCoreV1HostPathVolumeSource>,
    #[doc = "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub iscsi: Option<IoK8sApiCoreV1IscsiVolumeSource>,
    #[doc = "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"]
    pub name: String,
    #[doc = "NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub nfs: Option<IoK8sApiCoreV1NfsVolumeSource>,
    #[doc = "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims"]
    #[serde(
        rename = "persistentVolumeClaim",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub persistent_volume_claim: Option<IoK8sApiCoreV1PersistentVolumeClaimVolumeSource>,
    #[doc = "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine"]
    #[serde(
        rename = "photonPersistentDisk",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub photon_persistent_disk: Option<IoK8sApiCoreV1PhotonPersistentDiskVolumeSource>,
    #[doc = "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine"]
    #[serde(
        rename = "portworxVolume",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub portworx_volume: Option<IoK8sApiCoreV1PortworxVolumeSource>,
    #[doc = "Items for all in one resources secrets, configmaps, and downward API"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub projected: Option<IoK8sApiCoreV1ProjectedVolumeSource>,
    #[doc = "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub quobyte: Option<IoK8sApiCoreV1QuobyteVolumeSource>,
    #[doc = "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rbd: Option<IoK8sApiCoreV1RbdVolumeSource>,
    #[doc = "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes."]
    #[serde(rename = "scaleIO", default, skip_serializing_if = "Option::is_none")]
    pub scale_io: Option<IoK8sApiCoreV1ScaleIoVolumeSource>,
    #[doc = "Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub secret: Option<IoK8sApiCoreV1SecretVolumeSource>,
    #[doc = "StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub storageos: Option<IoK8sApiCoreV1StorageOsVolumeSource>,
    #[doc = "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine"]
    #[serde(
        rename = "vsphereVolume",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub vsphere_volume: Option<IoK8sApiCoreV1VsphereVirtualDiskVolumeSource>,
}
impl From<&IoK8sApiCoreV1Volume> for IoK8sApiCoreV1Volume {
    fn from(value: &IoK8sApiCoreV1Volume) -> Self {
        value.clone()
    }
}
#[doc = "volumeDevice describes a mapping of a raw block device within a container."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1VolumeDevice {
    #[doc = "devicePath is the path inside of the container that the device will be mapped to."]
    #[serde(rename = "devicePath")]
    pub device_path: String,
    #[doc = "name must match the name of a persistentVolumeClaim in the pod"]
    pub name: String,
}
impl From<&IoK8sApiCoreV1VolumeDevice> for IoK8sApiCoreV1VolumeDevice {
    fn from(value: &IoK8sApiCoreV1VolumeDevice) -> Self {
        value.clone()
    }
}

pub use IoK8sApiCoreV1VolumeMountBuilder as VolumeMountBuilder;
pub use IoK8sApiCoreV1VolumeMountBuilderError as VolumeMountBuilderError;

#[doc = "VolumeMount describes a mounting of a Volume within a container."]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
#[builder(default)]
pub struct IoK8sApiCoreV1VolumeMount {
    #[doc = "Path within the container at which the volume should be mounted.  Must not contain ':'."]
    #[serde(rename = "mountPath")]
    pub mount_path: String,
    #[doc = "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10."]
    #[serde(
        rename = "mountPropagation",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub mount_propagation: Option<String>,
    #[doc = "This must match the Name of a Volume."]
    pub name: String,
    #[doc = "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false."]
    #[serde(rename = "readOnly", default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    #[doc = "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)."]
    #[serde(rename = "subPath", default, skip_serializing_if = "Option::is_none")]
    pub sub_path: Option<String>,
    #[doc = "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive."]
    #[serde(
        rename = "subPathExpr",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub sub_path_expr: Option<String>,
}
impl From<&IoK8sApiCoreV1VolumeMount> for IoK8sApiCoreV1VolumeMount {
    fn from(value: &IoK8sApiCoreV1VolumeMount) -> Self {
        value.clone()
    }
}
#[doc = "Projection that may be projected along with other supported volume types"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1VolumeProjection {
    #[doc = "information about the configMap data to project"]
    #[serde(rename = "configMap", default, skip_serializing_if = "Option::is_none")]
    pub config_map: Option<IoK8sApiCoreV1ConfigMapProjection>,
    #[doc = "information about the downwardAPI data to project"]
    #[serde(
        rename = "downwardAPI",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub downward_api: Option<IoK8sApiCoreV1DownwardApiProjection>,
    #[doc = "information about the secret data to project"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub secret: Option<IoK8sApiCoreV1SecretProjection>,
    #[doc = "information about the serviceAccountToken data to project"]
    #[serde(
        rename = "serviceAccountToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_account_token: Option<IoK8sApiCoreV1ServiceAccountTokenProjection>,
}
impl From<&IoK8sApiCoreV1VolumeProjection> for IoK8sApiCoreV1VolumeProjection {
    fn from(value: &IoK8sApiCoreV1VolumeProjection) -> Self {
        value.clone()
    }
}
#[doc = "Represents a vSphere volume resource."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1VsphereVirtualDiskVolumeSource {
    #[doc = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified."]
    #[serde(rename = "fsType", default, skip_serializing_if = "Option::is_none")]
    pub fs_type: Option<String>,
    #[doc = "Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName."]
    #[serde(
        rename = "storagePolicyID",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub storage_policy_id: Option<String>,
    #[doc = "Storage Policy Based Management (SPBM) profile name."]
    #[serde(
        rename = "storagePolicyName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub storage_policy_name: Option<String>,
    #[doc = "Path that identifies vSphere volume vmdk"]
    #[serde(rename = "volumePath")]
    pub volume_path: String,
}
impl From<&IoK8sApiCoreV1VsphereVirtualDiskVolumeSource>
    for IoK8sApiCoreV1VsphereVirtualDiskVolumeSource
{
    fn from(value: &IoK8sApiCoreV1VsphereVirtualDiskVolumeSource) -> Self {
        value.clone()
    }
}
#[doc = "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1WeightedPodAffinityTerm {
    #[doc = "Required. A pod affinity term, associated with the corresponding weight."]
    #[serde(rename = "podAffinityTerm")]
    pub pod_affinity_term: IoK8sApiCoreV1PodAffinityTerm,
    #[doc = "weight associated with matching the corresponding podAffinityTerm, in the range 1-100."]
    pub weight: i64,
}
impl From<&IoK8sApiCoreV1WeightedPodAffinityTerm> for IoK8sApiCoreV1WeightedPodAffinityTerm {
    fn from(value: &IoK8sApiCoreV1WeightedPodAffinityTerm) -> Self {
        value.clone()
    }
}
#[doc = "WindowsSecurityContextOptions contain Windows-specific options and credentials."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiCoreV1WindowsSecurityContextOptions {
    #[doc = "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."]
    #[serde(
        rename = "gmsaCredentialSpec",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub gmsa_credential_spec: Option<String>,
    #[doc = "GMSACredentialSpecName is the name of the GMSA credential spec to use."]
    #[serde(
        rename = "gmsaCredentialSpecName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub gmsa_credential_spec_name: Option<String>,
    #[doc = "HostProcess determines if a container should be run as a 'Host Process' container. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).  In addition, if HostProcess is true then HostNetwork must also be set to true."]
    #[serde(
        rename = "hostProcess",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub host_process: Option<bool>,
    #[doc = "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."]
    #[serde(
        rename = "runAsUserName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub run_as_user_name: Option<String>,
}
impl From<&IoK8sApiCoreV1WindowsSecurityContextOptions>
    for IoK8sApiCoreV1WindowsSecurityContextOptions
{
    fn from(value: &IoK8sApiCoreV1WindowsSecurityContextOptions) -> Self {
        value.clone()
    }
}
#[doc = "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApiPolicyV1PodDisruptionBudgetSpec {
    #[doc = "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"."]
    #[serde(
        rename = "maxUnavailable",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub max_unavailable: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>,
    #[doc = "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod.  So for example you can prevent all voluntary evictions by specifying \"100%\"."]
    #[serde(
        rename = "minAvailable",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub min_available: Option<IoK8sApimachineryPkgUtilIntstrIntOrString>,
    #[doc = "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub selector: Option<IoK8sApimachineryPkgApisMetaV1LabelSelector>,
}
impl From<&IoK8sApiPolicyV1PodDisruptionBudgetSpec> for IoK8sApiPolicyV1PodDisruptionBudgetSpec {
    fn from(value: &IoK8sApiPolicyV1PodDisruptionBudgetSpec) -> Self {
        value.clone()
    }
}
#[doc = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n<quantity>        ::= <signedNumber><suffix>\n  (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n<digit>           ::= 0 | 1 | ... | 9 <digits>          ::= <digit> | <digit><digits> <number>          ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign>            ::= \"+\" | \"-\" <signedNumber>    ::= <number> | <sign><number> <suffix>          ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI>        ::= Ki | Mi | Gi | Ti | Pi | Ei\n  (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n<decimalSI>       ::= m | \"\" | k | M | G | T | P | E\n  (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber>\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n  a. No precision is lost\n  b. No fractional digits will be emitted\n  c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n  1.5 will be serialized as \"1500m\"\n  1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation."]
#[derive(Clone, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub struct IoK8sApimachineryPkgApiResourceQuantity(pub String);
impl std::ops::Deref for IoK8sApimachineryPkgApiResourceQuantity {
    type Target = String;
    fn deref(&self) -> &String {
        &self.0
    }
}
impl From<IoK8sApimachineryPkgApiResourceQuantity> for String {
    fn from(value: IoK8sApimachineryPkgApiResourceQuantity) -> Self {
        value.0
    }
}
impl From<&IoK8sApimachineryPkgApiResourceQuantity> for IoK8sApimachineryPkgApiResourceQuantity {
    fn from(value: &IoK8sApimachineryPkgApiResourceQuantity) -> Self {
        value.clone()
    }
}
impl From<String> for IoK8sApimachineryPkgApiResourceQuantity {
    fn from(value: String) -> Self {
        Self(value)
    }
}
impl std::str::FromStr for IoK8sApimachineryPkgApiResourceQuantity {
    type Err = std::convert::Infallible;
    fn from_str(value: &str) -> Result<Self, Self::Err> {
        Ok(Self(value.to_string()))
    }
}
impl ToString for IoK8sApimachineryPkgApiResourceQuantity {
    fn to_string(&self) -> String {
        self.0.to_string()
    }
}
#[doc = "CreateOptions may be provided when creating an API object."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApimachineryPkgApisMetaV1CreateOptions {
    #[serde(rename = "dryRun", default, skip_serializing_if = "Vec::is_empty")]
    pub dry_run: Vec<String>,
    #[serde(
        rename = "fieldManager",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub field_manager: Option<String>,
    #[serde(
        rename = "fieldValidation",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub field_validation: Option<String>,
}
impl From<&IoK8sApimachineryPkgApisMetaV1CreateOptions>
    for IoK8sApimachineryPkgApisMetaV1CreateOptions
{
    fn from(value: &IoK8sApimachineryPkgApisMetaV1CreateOptions) -> Self {
        value.clone()
    }
}
#[doc = "Duration is a wrapper around time.Duration which supports correct\nmarshaling to YAML and JSON. In particular, it marshals into strings, which\ncan be used as map keys in json."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApimachineryPkgApisMetaV1Duration {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration: Option<String>,
}
impl From<&IoK8sApimachineryPkgApisMetaV1Duration> for IoK8sApimachineryPkgApisMetaV1Duration {
    fn from(value: &IoK8sApimachineryPkgApisMetaV1Duration) -> Self {
        value.clone()
    }
}
#[doc = "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of  a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApimachineryPkgApisMetaV1FieldsV1(pub serde_json::Map<String, serde_json::Value>);
impl std::ops::Deref for IoK8sApimachineryPkgApisMetaV1FieldsV1 {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<IoK8sApimachineryPkgApisMetaV1FieldsV1> for serde_json::Map<String, serde_json::Value> {
    fn from(value: IoK8sApimachineryPkgApisMetaV1FieldsV1) -> Self {
        value.0
    }
}
impl From<&IoK8sApimachineryPkgApisMetaV1FieldsV1> for IoK8sApimachineryPkgApisMetaV1FieldsV1 {
    fn from(value: &IoK8sApimachineryPkgApisMetaV1FieldsV1) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>> for IoK8sApimachineryPkgApisMetaV1FieldsV1 {
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}
#[doc = "+protobuf.options.(gogoproto.goproto_stringer)=false"]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApimachineryPkgApisMetaV1GroupVersionResource {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub group: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resource: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
}
impl From<&IoK8sApimachineryPkgApisMetaV1GroupVersionResource>
    for IoK8sApimachineryPkgApisMetaV1GroupVersionResource
{
    fn from(value: &IoK8sApimachineryPkgApisMetaV1GroupVersionResource) -> Self {
        value.clone()
    }
}
#[doc = "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApimachineryPkgApisMetaV1LabelSelector {
    #[doc = "matchExpressions is a list of label selector requirements. The requirements are ANDed."]
    #[serde(
        rename = "matchExpressions",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub match_expressions: Vec<IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement>,
    #[doc = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed."]
    #[serde(
        rename = "matchLabels",
        default,
        skip_serializing_if = "std::collections::HashMap::is_empty"
    )]
    pub match_labels: std::collections::HashMap<String, String>,
}
impl From<&IoK8sApimachineryPkgApisMetaV1LabelSelector>
    for IoK8sApimachineryPkgApisMetaV1LabelSelector
{
    fn from(value: &IoK8sApimachineryPkgApisMetaV1LabelSelector) -> Self {
        value.clone()
    }
}
#[doc = "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement {
    #[doc = "key is the label key that the selector applies to."]
    pub key: String,
    #[doc = "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist."]
    pub operator: String,
    #[doc = "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub values: Vec<String>,
}
impl From<&IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement>
    for IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement
{
    fn from(value: &IoK8sApimachineryPkgApisMetaV1LabelSelectorRequirement) -> Self {
        value.clone()
    }
}
#[doc = "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApimachineryPkgApisMetaV1ListMeta {
    #[doc = "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message."]
    #[serde(rename = "continue", default, skip_serializing_if = "Option::is_none")]
    pub continue_: Option<String>,
    #[doc = "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact."]
    #[serde(
        rename = "remainingItemCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub remaining_item_count: Option<i64>,
    #[doc = "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"]
    #[serde(
        rename = "resourceVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub resource_version: Option<String>,
    #[doc = "selfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."]
    #[serde(rename = "selfLink", default, skip_serializing_if = "Option::is_none")]
    pub self_link: Option<String>,
}
impl From<&IoK8sApimachineryPkgApisMetaV1ListMeta> for IoK8sApimachineryPkgApisMetaV1ListMeta {
    fn from(value: &IoK8sApimachineryPkgApisMetaV1ListMeta) -> Self {
        value.clone()
    }
}
#[doc = "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry {
    #[doc = "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted."]
    #[serde(
        rename = "apiVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub api_version: Option<String>,
    #[doc = "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\""]
    #[serde(
        rename = "fieldsType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub fields_type: Option<String>,
    #[doc = "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type."]
    #[serde(rename = "fieldsV1", default, skip_serializing_if = "Option::is_none")]
    pub fields_v1: Option<IoK8sApimachineryPkgApisMetaV1FieldsV1>,
    #[doc = "Manager is an identifier of the workflow managing these fields."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub manager: Option<String>,
    #[doc = "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub operation: Option<String>,
    #[doc = "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub subresource: Option<String>,
    #[doc = "Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply'"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub time: Option<IoK8sApimachineryPkgApisMetaV1Time>,
}
impl From<&IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry>
    for IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry
{
    fn from(value: &IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry) -> Self {
        value.clone()
    }
}
#[doc = "MicroTime is version of Time with microsecond level precision."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApimachineryPkgApisMetaV1MicroTime(pub chrono::DateTime<chrono::offset::Utc>);
impl std::ops::Deref for IoK8sApimachineryPkgApisMetaV1MicroTime {
    type Target = chrono::DateTime<chrono::offset::Utc>;
    fn deref(&self) -> &chrono::DateTime<chrono::offset::Utc> {
        &self.0
    }
}
impl From<IoK8sApimachineryPkgApisMetaV1MicroTime> for chrono::DateTime<chrono::offset::Utc> {
    fn from(value: IoK8sApimachineryPkgApisMetaV1MicroTime) -> Self {
        value.0
    }
}
impl From<&IoK8sApimachineryPkgApisMetaV1MicroTime> for IoK8sApimachineryPkgApisMetaV1MicroTime {
    fn from(value: &IoK8sApimachineryPkgApisMetaV1MicroTime) -> Self {
        value.clone()
    }
}
impl From<chrono::DateTime<chrono::offset::Utc>> for IoK8sApimachineryPkgApisMetaV1MicroTime {
    fn from(value: chrono::DateTime<chrono::offset::Utc>) -> Self {
        Self(value)
    }
}
impl std::str::FromStr for IoK8sApimachineryPkgApisMetaV1MicroTime {
    type Err = <chrono::DateTime<chrono::offset::Utc> as std::str::FromStr>::Err;
    fn from_str(value: &str) -> Result<Self, Self::Err> {
        Ok(Self(value.parse()?))
    }
}
impl std::convert::TryFrom<&str> for IoK8sApimachineryPkgApisMetaV1MicroTime {
    type Error = <chrono::DateTime<chrono::offset::Utc> as std::str::FromStr>::Err;
    fn try_from(value: &str) -> Result<Self, Self::Error> {
        value.parse()
    }
}
impl std::convert::TryFrom<&String> for IoK8sApimachineryPkgApisMetaV1MicroTime {
    type Error = <chrono::DateTime<chrono::offset::Utc> as std::str::FromStr>::Err;
    fn try_from(value: &String) -> Result<Self, Self::Error> {
        value.parse()
    }
}
impl std::convert::TryFrom<String> for IoK8sApimachineryPkgApisMetaV1MicroTime {
    type Error = <chrono::DateTime<chrono::offset::Utc> as std::str::FromStr>::Err;
    fn try_from(value: String) -> Result<Self, Self::Error> {
        value.parse()
    }
}
impl ToString for IoK8sApimachineryPkgApisMetaV1MicroTime {
    fn to_string(&self) -> String {
        self.0.to_string()
    }
}

pub use IoK8sApimachineryPkgApisMetaV1ObjectMetaBuilder as ObjectMetaBuilder;
pub use IoK8sApimachineryPkgApisMetaV1ObjectMetaBuilderError as ObjectMetaBuilderError;
#[doc = "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."]
#[derive(Clone, Debug, Deserialize, Serialize, Default, Builder)]
pub struct IoK8sApimachineryPkgApisMetaV1ObjectMeta {
    #[builder(default)]
    #[doc = "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"]
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub annotations: std::collections::HashMap<String, String>,
    #[builder(default)]
    #[doc = "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request."]
    #[serde(
        rename = "clusterName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub cluster_name: Option<String>,
    #[builder(default)]
    #[doc = "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"]
    #[serde(
        rename = "creationTimestamp",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub creation_timestamp: Option<IoK8sApimachineryPkgApisMetaV1Time>,
    #[builder(default)]
    #[doc = "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."]
    #[serde(
        rename = "deletionGracePeriodSeconds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub deletion_grace_period_seconds: Option<i64>,
    #[builder(default)]
    #[doc = "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"]
    #[serde(
        rename = "deletionTimestamp",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub deletion_timestamp: Option<IoK8sApimachineryPkgApisMetaV1Time>,
    #[builder(default)]
    #[doc = "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order.  Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub finalizers: Vec<String>,
    #[builder(default)]
    #[doc = "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"]
    #[serde(
        rename = "generateName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub generate_name: Option<String>,
    #[builder(default)]
    #[doc = "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub generation: Option<i64>,
    #[builder(default)]
    #[doc = "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"]
    #[serde(default, skip_serializing_if = "std::collections::HashMap::is_empty")]
    pub labels: std::collections::HashMap<String, String>,
    #[builder(default)]
    #[doc = "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object."]
    #[serde(
        rename = "managedFields",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub managed_fields: Vec<IoK8sApimachineryPkgApisMetaV1ManagedFieldsEntry>,
    #[doc = "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[builder(default)]
    #[doc = "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[builder(default)]
    #[doc = "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."]
    #[serde(
        rename = "ownerReferences",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub owner_references: Vec<IoK8sApimachineryPkgApisMetaV1OwnerReference>,
    #[builder(default)]
    #[doc = "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"]
    #[serde(
        rename = "resourceVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub resource_version: Option<String>,
    #[builder(default)]
    #[doc = "SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."]
    #[serde(rename = "selfLink", default, skip_serializing_if = "Option::is_none")]
    pub self_link: Option<String>,
    #[builder(default)]
    #[doc = "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uid: Option<String>,
}
impl From<&IoK8sApimachineryPkgApisMetaV1ObjectMeta> for IoK8sApimachineryPkgApisMetaV1ObjectMeta {
    fn from(value: &IoK8sApimachineryPkgApisMetaV1ObjectMeta) -> Self {
        value.clone()
    }
}
#[doc = "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApimachineryPkgApisMetaV1OwnerReference {
    #[doc = "API version of the referent."]
    #[serde(rename = "apiVersion")]
    pub api_version: String,
    #[doc = "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned."]
    #[serde(
        rename = "blockOwnerDeletion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub block_owner_deletion: Option<bool>,
    #[doc = "If true, this reference points to the managing controller."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub controller: Option<bool>,
    #[doc = "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"]
    pub kind: String,
    #[doc = "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names"]
    pub name: String,
    #[doc = "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids"]
    pub uid: String,
}
impl From<&IoK8sApimachineryPkgApisMetaV1OwnerReference>
    for IoK8sApimachineryPkgApisMetaV1OwnerReference
{
    fn from(value: &IoK8sApimachineryPkgApisMetaV1OwnerReference) -> Self {
        value.clone()
    }
}
#[doc = "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApimachineryPkgApisMetaV1StatusCause {
    #[doc = "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed.  Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n  \"name\" - the field \"name\" on the current resource\n  \"items[0].name\" - the field \"name\" on the first array entry in \"items\""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub field: Option<String>,
    #[doc = "A human-readable description of the cause of the error.  This field may be presented as-is to a reader."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[doc = "A machine-readable description of the cause of the error. If this value is empty there is no information available."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub reason: Option<String>,
}
impl From<&IoK8sApimachineryPkgApisMetaV1StatusCause>
    for IoK8sApimachineryPkgApisMetaV1StatusCause
{
    fn from(value: &IoK8sApimachineryPkgApisMetaV1StatusCause) -> Self {
        value.clone()
    }
}
#[doc = "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON.  Wrappers are provided for many of the factory methods that the time package offers."]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct IoK8sApimachineryPkgApisMetaV1Time(pub chrono::DateTime<chrono::offset::Utc>);
impl std::ops::Deref for IoK8sApimachineryPkgApisMetaV1Time {
    type Target = chrono::DateTime<chrono::offset::Utc>;
    fn deref(&self) -> &chrono::DateTime<chrono::offset::Utc> {
        &self.0
    }
}
impl From<IoK8sApimachineryPkgApisMetaV1Time> for chrono::DateTime<chrono::offset::Utc> {
    fn from(value: IoK8sApimachineryPkgApisMetaV1Time) -> Self {
        value.0
    }
}
impl From<&IoK8sApimachineryPkgApisMetaV1Time> for IoK8sApimachineryPkgApisMetaV1Time {
    fn from(value: &IoK8sApimachineryPkgApisMetaV1Time) -> Self {
        value.clone()
    }
}
impl From<chrono::DateTime<chrono::offset::Utc>> for IoK8sApimachineryPkgApisMetaV1Time {
    fn from(value: chrono::DateTime<chrono::offset::Utc>) -> Self {
        Self(value)
    }
}
impl std::str::FromStr for IoK8sApimachineryPkgApisMetaV1Time {
    type Err = <chrono::DateTime<chrono::offset::Utc> as std::str::FromStr>::Err;
    fn from_str(value: &str) -> Result<Self, Self::Err> {
        Ok(Self(value.parse()?))
    }
}
impl std::convert::TryFrom<&str> for IoK8sApimachineryPkgApisMetaV1Time {
    type Error = <chrono::DateTime<chrono::offset::Utc> as std::str::FromStr>::Err;
    fn try_from(value: &str) -> Result<Self, Self::Error> {
        value.parse()
    }
}
impl std::convert::TryFrom<&String> for IoK8sApimachineryPkgApisMetaV1Time {
    type Error = <chrono::DateTime<chrono::offset::Utc> as std::str::FromStr>::Err;
    fn try_from(value: &String) -> Result<Self, Self::Error> {
        value.parse()
    }
}
impl std::convert::TryFrom<String> for IoK8sApimachineryPkgApisMetaV1Time {
    type Error = <chrono::DateTime<chrono::offset::Utc> as std::str::FromStr>::Err;
    fn try_from(value: String) -> Result<Self, Self::Error> {
        value.parse()
    }
}
impl ToString for IoK8sApimachineryPkgApisMetaV1Time {
    fn to_string(&self) -> String {
        self.0.to_string()
    }
}
#[derive(Clone, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub struct IoK8sApimachineryPkgUtilIntstrIntOrString(pub String);
impl std::ops::Deref for IoK8sApimachineryPkgUtilIntstrIntOrString {
    type Target = String;
    fn deref(&self) -> &String {
        &self.0
    }
}
impl From<IoK8sApimachineryPkgUtilIntstrIntOrString> for String {
    fn from(value: IoK8sApimachineryPkgUtilIntstrIntOrString) -> Self {
        value.0
    }
}
impl From<&IoK8sApimachineryPkgUtilIntstrIntOrString>
    for IoK8sApimachineryPkgUtilIntstrIntOrString
{
    fn from(value: &IoK8sApimachineryPkgUtilIntstrIntOrString) -> Self {
        value.clone()
    }
}
impl From<String> for IoK8sApimachineryPkgUtilIntstrIntOrString {
    fn from(value: String) -> Self {
        Self(value)
    }
}
impl std::str::FromStr for IoK8sApimachineryPkgUtilIntstrIntOrString {
    type Err = std::convert::Infallible;
    fn from_str(value: &str) -> Result<Self, Self::Err> {
        Ok(Self(value.to_string()))
    }
}
impl ToString for IoK8sApimachineryPkgUtilIntstrIntOrString {
    fn to_string(&self) -> String {
        self.0.to_string()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct SensorCreateSensorRequest {
    #[serde(
        rename = "createOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub create_options: Option<IoK8sApimachineryPkgApisMetaV1CreateOptions>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sensor: Option<IoArgoprojEventsV1alpha1Sensor>,
}
impl From<&SensorCreateSensorRequest> for SensorCreateSensorRequest {
    fn from(value: &SensorCreateSensorRequest) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct SensorDeleteSensorResponse(pub serde_json::Map<String, serde_json::Value>);
impl std::ops::Deref for SensorDeleteSensorResponse {
    type Target = serde_json::Map<String, serde_json::Value>;
    fn deref(&self) -> &serde_json::Map<String, serde_json::Value> {
        &self.0
    }
}
impl From<SensorDeleteSensorResponse> for serde_json::Map<String, serde_json::Value> {
    fn from(value: SensorDeleteSensorResponse) -> Self {
        value.0
    }
}
impl From<&SensorDeleteSensorResponse> for SensorDeleteSensorResponse {
    fn from(value: &SensorDeleteSensorResponse) -> Self {
        value.clone()
    }
}
impl From<serde_json::Map<String, serde_json::Value>> for SensorDeleteSensorResponse {
    fn from(value: serde_json::Map<String, serde_json::Value>) -> Self {
        Self(value)
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct SensorLogEntry {
    #[serde(
        rename = "dependencyName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub dependency_name: Option<String>,
    #[serde(
        rename = "eventContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub event_context: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub level: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub msg: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(
        rename = "sensorName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub sensor_name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub time: Option<IoK8sApimachineryPkgApisMetaV1Time>,
    #[serde(
        rename = "triggerName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub trigger_name: Option<String>,
}
impl From<&SensorLogEntry> for SensorLogEntry {
    fn from(value: &SensorLogEntry) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct SensorSensorWatchEvent {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub object: Option<IoArgoprojEventsV1alpha1Sensor>,
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl From<&SensorSensorWatchEvent> for SensorSensorWatchEvent {
    fn from(value: &SensorSensorWatchEvent) -> Self {
        value.clone()
    }
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct SensorUpdateSensorRequest {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub namespace: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sensor: Option<IoArgoprojEventsV1alpha1Sensor>,
}
impl From<&SensorUpdateSensorRequest> for SensorUpdateSensorRequest {
    fn from(value: &SensorUpdateSensorRequest) -> Self {
        value.clone()
    }
}