azure_devops_rust_api 0.37.0

Rust API library for Azure DevOps
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
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#![allow(non_camel_case_types)]
#![allow(unused_imports)]
use serde::de::{value, Deserializer, IntoDeserializer};
use serde::{Deserialize, Serialize, Serializer};
use std::str::FromStr;
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AadGraphMember {
    #[serde(flatten)]
    pub graph_member: GraphMember,
    #[doc = "The short, generally unique name for the user in the backing directory. For AAD users, this corresponds to the mail nickname, which is often but not necessarily similar to the part of the user's mail address before the @ sign. For GitHub users, this corresponds to the GitHub user handle."]
    #[serde(
        rename = "directoryAlias",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub directory_alias: Option<String>,
    #[doc = "When true, the group has been deleted in the identity provider"]
    #[serde(
        rename = "isDeletedInOrigin",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_deleted_in_origin: Option<bool>,
    #[doc = "The meta type of the user in the origin, such as \"member\", \"guest\", etc. See UserMetaType for the set of possible values."]
    #[serde(rename = "metaType", default, skip_serializing_if = "Option::is_none")]
    pub meta_type: Option<String>,
}
impl AadGraphMember {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "License assigned to a user"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AccessLevel {
    #[doc = "Type of Account License (e.g. Express, Stakeholder etc.). To use the AccountLicenseType, LicensingSource should be defined as 'account' in the request body."]
    #[serde(
        rename = "accountLicenseType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub account_license_type: Option<access_level::AccountLicenseType>,
    #[doc = "Assignment Source of the License (e.g. Group, Unknown etc."]
    #[serde(
        rename = "assignmentSource",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub assignment_source: Option<access_level::AssignmentSource>,
    #[doc = "Display name of the License"]
    #[serde(
        rename = "licenseDisplayName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub license_display_name: Option<String>,
    #[doc = "Licensing Source (e.g. Account. MSDN etc.)"]
    #[serde(
        rename = "licensingSource",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub licensing_source: Option<access_level::LicensingSource>,
    #[doc = "Type of MSDN License (e.g. Visual Studio Professional, Visual Studio Enterprise etc.). To use the MsdnLicenseType, LicensingSource should be defined as 'msdn' in the request body."]
    #[serde(
        rename = "msdnLicenseType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub msdn_license_type: Option<access_level::MsdnLicenseType>,
    #[doc = "User status in the account"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<access_level::Status>,
    #[doc = "Status message."]
    #[serde(
        rename = "statusMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub status_message: Option<String>,
}
impl AccessLevel {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod access_level {
    use super::*;
    #[doc = "Type of Account License (e.g. Express, Stakeholder etc.). To use the AccountLicenseType, LicensingSource should be defined as 'account' in the request body."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum AccountLicenseType {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "earlyAdopter")]
        EarlyAdopter,
        #[serde(rename = "express")]
        Express,
        #[serde(rename = "professional")]
        Professional,
        #[serde(rename = "advanced")]
        Advanced,
        #[serde(rename = "stakeholder")]
        Stakeholder,
    }
    impl std::fmt::Display for AccountLicenseType {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::None => write!(f, "none"),
                Self::EarlyAdopter => write!(f, "earlyAdopter"),
                Self::Express => write!(f, "express"),
                Self::Professional => write!(f, "professional"),
                Self::Advanced => write!(f, "advanced"),
                Self::Stakeholder => write!(f, "stakeholder"),
            }
        }
    }
    #[doc = "Assignment Source of the License (e.g. Group, Unknown etc."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum AssignmentSource {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "unknown")]
        Unknown,
        #[serde(rename = "groupRule")]
        GroupRule,
    }
    impl std::fmt::Display for AssignmentSource {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::None => write!(f, "none"),
                Self::Unknown => write!(f, "unknown"),
                Self::GroupRule => write!(f, "groupRule"),
            }
        }
    }
    #[doc = "Licensing Source (e.g. Account. MSDN etc.)"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum LicensingSource {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "account")]
        Account,
        #[serde(rename = "msdn")]
        Msdn,
        #[serde(rename = "profile")]
        Profile,
        #[serde(rename = "auto")]
        Auto,
        #[serde(rename = "trial")]
        Trial,
    }
    impl std::fmt::Display for LicensingSource {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::None => write!(f, "none"),
                Self::Account => write!(f, "account"),
                Self::Msdn => write!(f, "msdn"),
                Self::Profile => write!(f, "profile"),
                Self::Auto => write!(f, "auto"),
                Self::Trial => write!(f, "trial"),
            }
        }
    }
    #[doc = "Type of MSDN License (e.g. Visual Studio Professional, Visual Studio Enterprise etc.). To use the MsdnLicenseType, LicensingSource should be defined as 'msdn' in the request body."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum MsdnLicenseType {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "eligible")]
        Eligible,
        #[serde(rename = "professional")]
        Professional,
        #[serde(rename = "platforms")]
        Platforms,
        #[serde(rename = "testProfessional")]
        TestProfessional,
        #[serde(rename = "premium")]
        Premium,
        #[serde(rename = "ultimate")]
        Ultimate,
        #[serde(rename = "enterprise")]
        Enterprise,
    }
    impl std::fmt::Display for MsdnLicenseType {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::None => write!(f, "none"),
                Self::Eligible => write!(f, "eligible"),
                Self::Professional => write!(f, "professional"),
                Self::Platforms => write!(f, "platforms"),
                Self::TestProfessional => write!(f, "testProfessional"),
                Self::Premium => write!(f, "premium"),
                Self::Ultimate => write!(f, "ultimate"),
                Self::Enterprise => write!(f, "enterprise"),
            }
        }
    }
    #[doc = "User status in the account"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Status {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "active")]
        Active,
        #[serde(rename = "disabled")]
        Disabled,
        #[serde(rename = "deleted")]
        Deleted,
        #[serde(rename = "pending")]
        Pending,
        #[serde(rename = "expired")]
        Expired,
        #[serde(rename = "pendingDisabled")]
        PendingDisabled,
    }
    impl std::fmt::Display for Status {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::None => write!(f, "none"),
                Self::Active => write!(f, "active"),
                Self::Disabled => write!(f, "disabled"),
                Self::Deleted => write!(f, "deleted"),
                Self::Pending => write!(f, "pending"),
                Self::Expired => write!(f, "expired"),
                Self::PendingDisabled => write!(f, "pendingDisabled"),
            }
        }
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct BaseOperationResult {
    #[doc = "List of error codes paired with their corresponding error messages"]
    #[serde(
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub errors: Vec<serde_json::Value>,
    #[doc = "Success status of the operation"]
    #[serde(rename = "isSuccess", default, skip_serializing_if = "Option::is_none")]
    pub is_success: Option<bool>,
}
impl BaseOperationResult {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct EntitlementBase {
    #[doc = "License assigned to a user"]
    #[serde(
        rename = "accessLevel",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub access_level: Option<AccessLevel>,
    #[doc = "\\[Readonly\\] Date the member was added to the collection."]
    #[serde(
        rename = "dateCreated",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub date_created: Option<time::OffsetDateTime>,
    #[doc = "\\[Readonly\\] GroupEntitlements that this member belongs to."]
    #[serde(
        rename = "groupAssignments",
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub group_assignments: Vec<GroupEntitlement>,
    #[doc = "The unique identifier which matches the Id of the Identity associated with the GraphMember."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[doc = "\\[Readonly\\] Date the member last accessed the collection."]
    #[serde(
        rename = "lastAccessedDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub last_accessed_date: Option<time::OffsetDateTime>,
    #[doc = "Relation between a project and the member's effective permissions in that project."]
    #[serde(
        rename = "projectEntitlements",
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub project_entitlements: Vec<ProjectEntitlement>,
}
impl EntitlementBase {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct EntitlementOperationResultBase {
    #[doc = "List of error codes paired with their corresponding error messages."]
    #[serde(
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub errors: Vec<serde_json::Value>,
    #[doc = "Success status of the operation."]
    #[serde(rename = "isSuccess", default, skip_serializing_if = "Option::is_none")]
    pub is_success: Option<bool>,
    #[doc = "Resulting entitlement property.  For specific implementations, see also: <seealso cref=\"T:Microsoft.VisualStudio.Services.MemberEntitlementManagement.WebApi.ServicePrincipalEntitlementOperationResult\" /><seealso cref=\"T:Microsoft.VisualStudio.Services.MemberEntitlementManagement.WebApi.UserEntitlementOperationResult\" />"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub result: Option<String>,
}
impl EntitlementOperationResultBase {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "An extension assigned to a user"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct Extension {
    #[doc = "Assignment source for this extension. I.e. explicitly assigned or from a group rule."]
    #[serde(
        rename = "assignmentSource",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub assignment_source: Option<extension::AssignmentSource>,
    #[doc = "Gallery Id of the Extension."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[doc = "Friendly name of this extension."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Source of this extension assignment. Ex: msdn, account, none, etc."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source: Option<extension::Source>,
}
impl Extension {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod extension {
    use super::*;
    #[doc = "Assignment source for this extension. I.e. explicitly assigned or from a group rule."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum AssignmentSource {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "unknown")]
        Unknown,
        #[serde(rename = "groupRule")]
        GroupRule,
    }
    impl std::fmt::Display for AssignmentSource {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::None => write!(f, "none"),
                Self::Unknown => write!(f, "unknown"),
                Self::GroupRule => write!(f, "groupRule"),
            }
        }
    }
    #[doc = "Source of this extension assignment. Ex: msdn, account, none, etc."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Source {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "account")]
        Account,
        #[serde(rename = "msdn")]
        Msdn,
        #[serde(rename = "profile")]
        Profile,
        #[serde(rename = "auto")]
        Auto,
        #[serde(rename = "trial")]
        Trial,
    }
    impl std::fmt::Display for Source {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::None => write!(f, "none"),
                Self::Account => write!(f, "account"),
                Self::Msdn => write!(f, "msdn"),
                Self::Profile => write!(f, "profile"),
                Self::Auto => write!(f, "auto"),
                Self::Trial => write!(f, "trial"),
            }
        }
    }
}
#[doc = "Summary of Extensions in the organization."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ExtensionSummaryData {
    #[serde(flatten)]
    pub summary_data: SummaryData,
    #[doc = "Count of Extension Licenses assigned to users through msdn."]
    #[serde(
        rename = "assignedThroughSubscription",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub assigned_through_subscription: Option<i32>,
    #[doc = "Gallery Id of the Extension"]
    #[serde(
        rename = "extensionId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub extension_id: Option<String>,
    #[doc = "Friendly name of this extension"]
    #[serde(
        rename = "extensionName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub extension_name: Option<String>,
    #[doc = "Whether its a Trial Version."]
    #[serde(
        rename = "isTrialVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_trial_version: Option<bool>,
    #[doc = "Minimum License Required for the Extension."]
    #[serde(
        rename = "minimumLicenseRequired",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub minimum_license_required: Option<extension_summary_data::MinimumLicenseRequired>,
    #[doc = "Days remaining for the Trial to expire."]
    #[serde(
        rename = "remainingTrialDays",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub remaining_trial_days: Option<i32>,
    #[doc = "Date on which the Trial expires."]
    #[serde(
        rename = "trialExpiryDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub trial_expiry_date: Option<time::OffsetDateTime>,
}
impl ExtensionSummaryData {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod extension_summary_data {
    use super::*;
    #[doc = "Minimum License Required for the Extension."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum MinimumLicenseRequired {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "express")]
        Express,
        #[serde(rename = "advanced")]
        Advanced,
        #[serde(rename = "advancedPlus")]
        AdvancedPlus,
        #[serde(rename = "stakeholder")]
        Stakeholder,
    }
    impl std::fmt::Display for MinimumLicenseRequired {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::None => write!(f, "none"),
                Self::Express => write!(f, "express"),
                Self::Advanced => write!(f, "advanced"),
                Self::AdvancedPlus => write!(f, "advancedPlus"),
                Self::Stakeholder => write!(f, "stakeholder"),
            }
        }
    }
}
#[doc = "Graph group entity"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GraphGroup {
    #[serde(flatten)]
    pub graph_member: GraphMember,
    #[doc = "A short phrase to help human readers disambiguate groups with similar names"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
}
impl GraphGroup {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GraphMember {
    #[serde(flatten)]
    pub graph_subject: GraphSubject,
    #[doc = "This represents the name of the container of origin for a graph member. (For MSA this is \"Windows Live ID\", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub domain: Option<String>,
    #[doc = "The email address of record for a given graph member. This may be different than the principal name."]
    #[serde(
        rename = "mailAddress",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub mail_address: Option<String>,
    #[doc = "This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS."]
    #[serde(
        rename = "principalName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub principal_name: Option<String>,
}
impl GraphMember {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GraphServicePrincipal {
    #[serde(flatten)]
    pub aad_graph_member: AadGraphMember,
    #[serde(
        rename = "applicationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub application_id: Option<String>,
}
impl GraphServicePrincipal {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Top-level graph entity"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GraphSubject {
    #[serde(flatten)]
    pub graph_subject_base: GraphSubjectBase,
    #[doc = "[Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor."]
    #[serde(
        rename = "legacyDescriptor",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub legacy_descriptor: Option<String>,
    #[doc = "The type of source provider for the origin identifier (ex:AD, AAD, MSA)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub origin: Option<String>,
    #[doc = "The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider."]
    #[serde(rename = "originId", default, skip_serializing_if = "Option::is_none")]
    pub origin_id: Option<String>,
    #[doc = "This field identifies the type of the graph subject (ex: Group, Scope, User)."]
    #[serde(
        rename = "subjectKind",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub subject_kind: Option<String>,
}
impl GraphSubject {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GraphSubjectBase {
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = "The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub descriptor: Option<String>,
    #[doc = "This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider."]
    #[serde(
        rename = "displayName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub display_name: Option<String>,
    #[doc = "This url is the full route to the source resource of this graph subject."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GraphSubjectBase {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GraphUser {
    #[serde(flatten)]
    pub aad_graph_member: AadGraphMember,
}
impl GraphUser {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Project Group (e.g. Contributor, Reader etc.)"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct Group {
    #[doc = "Display Name of the Group"]
    #[serde(
        rename = "displayName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub display_name: Option<String>,
    #[doc = "Group Type"]
    #[serde(rename = "groupType", default, skip_serializing_if = "Option::is_none")]
    pub group_type: Option<group::GroupType>,
}
impl Group {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod group {
    use super::*;
    #[doc = "Group Type"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum GroupType {
        #[serde(rename = "projectStakeholder")]
        ProjectStakeholder,
        #[serde(rename = "projectReader")]
        ProjectReader,
        #[serde(rename = "projectContributor")]
        ProjectContributor,
        #[serde(rename = "projectAdministrator")]
        ProjectAdministrator,
        #[serde(rename = "custom")]
        Custom,
    }
    impl std::fmt::Display for GroupType {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::ProjectStakeholder => write!(f, "projectStakeholder"),
                Self::ProjectReader => write!(f, "projectReader"),
                Self::ProjectContributor => write!(f, "projectContributor"),
                Self::ProjectAdministrator => write!(f, "projectAdministrator"),
                Self::Custom => write!(f, "custom"),
            }
        }
    }
}
#[doc = "A group entity with additional properties including its license, extensions, and project membership"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GroupEntitlement {
    #[doc = "Graph group entity"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub group: Option<GraphGroup>,
    #[doc = "The unique identifier which matches the Id of the GraphMember."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[doc = "\\[Readonly\\] The last time the group licensing rule was executed (regardless of whether any changes were made)."]
    #[serde(
        rename = "lastExecuted",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub last_executed: Option<time::OffsetDateTime>,
    #[doc = "License assigned to a user"]
    #[serde(
        rename = "licenseRule",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub license_rule: Option<AccessLevel>,
    #[doc = "Group members. Only used when creating a new group."]
    #[serde(
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub members: Vec<UserEntitlement>,
    #[doc = "Relation between a project and the member's effective permissions in that project."]
    #[serde(
        rename = "projectEntitlements",
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub project_entitlements: Vec<ProjectEntitlement>,
    #[doc = "The status of the group rule."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<group_entitlement::Status>,
}
impl GroupEntitlement {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod group_entitlement {
    use super::*;
    #[doc = "The status of the group rule."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Status {
        #[serde(rename = "applyPending")]
        ApplyPending,
        #[serde(rename = "applied")]
        Applied,
        #[serde(rename = "incompatible")]
        Incompatible,
        #[serde(rename = "unableToApply")]
        UnableToApply,
    }
    impl std::fmt::Display for Status {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::ApplyPending => write!(f, "applyPending"),
                Self::Applied => write!(f, "applied"),
                Self::Incompatible => write!(f, "incompatible"),
                Self::UnableToApply => write!(f, "unableToApply"),
            }
        }
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GroupEntitlementList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub value: Vec<GroupEntitlement>,
}
impl GroupEntitlementList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GroupEntitlementOperationReference {
    #[serde(flatten)]
    pub operation_reference: OperationReference,
    #[doc = "Operation completed with success or failure."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub completed: Option<bool>,
    #[doc = "True if all operations were successful."]
    #[serde(
        rename = "haveResultsSucceeded",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub have_results_succeeded: Option<bool>,
    #[doc = "List of results for each operation."]
    #[serde(
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub results: Vec<GroupOperationResult>,
}
impl GroupEntitlementOperationReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GroupOperationResult {
    #[serde(flatten)]
    pub base_operation_result: BaseOperationResult,
    #[doc = "Identifier of the Group being acted upon"]
    #[serde(rename = "groupId", default, skip_serializing_if = "Option::is_none")]
    pub group_id: Option<String>,
    #[doc = "A group entity with additional properties including its license, extensions, and project membership"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub result: Option<GroupEntitlement>,
}
impl GroupOperationResult {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Group option to add a user to"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GroupOption {
    #[doc = "License assigned to a user"]
    #[serde(
        rename = "accessLevel",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub access_level: Option<AccessLevel>,
    #[doc = "Project Group (e.g. Contributor, Reader etc.)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub group: Option<Group>,
}
impl GroupOption {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "The JSON model for JSON Patch Operations"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct JsonPatchDocument {}
impl JsonPatchDocument {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "The JSON model for a JSON Patch operation"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct JsonPatchOperation {
    #[doc = "The path to copy from for the Move/Copy operation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub from: Option<String>,
    #[doc = "The patch operation"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub op: Option<json_patch_operation::Op>,
    #[doc = "The path for the operation. In the case of an array, a zero based index can be used to specify the position in the array (e.g. /biscuits/0/name). The \"-\" character can be used instead of an index to insert at the end of the array (e.g. /biscuits/-)."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[doc = "The value for the operation. This is either a primitive or a JToken."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<serde_json::Value>,
}
impl JsonPatchOperation {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod json_patch_operation {
    use super::*;
    #[doc = "The patch operation"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Op {
        #[serde(rename = "add")]
        Add,
        #[serde(rename = "remove")]
        Remove,
        #[serde(rename = "replace")]
        Replace,
        #[serde(rename = "move")]
        Move,
        #[serde(rename = "copy")]
        Copy,
        #[serde(rename = "test")]
        Test,
    }
    impl std::fmt::Display for Op {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::Add => write!(f, "add"),
                Self::Remove => write!(f, "remove"),
                Self::Replace => write!(f, "replace"),
                Self::Move => write!(f, "move"),
                Self::Copy => write!(f, "copy"),
                Self::Test => write!(f, "test"),
            }
        }
    }
}
#[doc = "Summary of Licenses in the organization."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct LicenseSummaryData {
    #[serde(flatten)]
    pub summary_data: SummaryData,
    #[doc = "Type of Account License. To use the AccountLicenseType, LicensingSource should be defined as 'account' in the request body."]
    #[serde(
        rename = "accountLicenseType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub account_license_type: Option<license_summary_data::AccountLicenseType>,
    #[doc = "Count of Disabled Licenses."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub disabled: Option<i32>,
    #[doc = "Designates if this license quantity can be changed through purchase"]
    #[serde(
        rename = "isPurchasable",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_purchasable: Option<bool>,
    #[doc = "Name of the License."]
    #[serde(
        rename = "licenseName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub license_name: Option<String>,
    #[doc = "Type of MSDN License. To use the MsdnLicenseType, LicensingSource should be defined as 'msdn' in the request body."]
    #[serde(
        rename = "msdnLicenseType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub msdn_license_type: Option<license_summary_data::MsdnLicenseType>,
    #[doc = "Specifies the date when billing will charge for paid licenses"]
    #[serde(
        rename = "nextBillingDate",
        default,
        skip_serializing_if = "Option::is_none",
        with = "crate::date_time::rfc3339::option"
    )]
    pub next_billing_date: Option<time::OffsetDateTime>,
    #[doc = "Source of the License."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source: Option<license_summary_data::Source>,
    #[doc = "Total license count after next billing cycle"]
    #[serde(
        rename = "totalAfterNextBillingDate",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub total_after_next_billing_date: Option<i32>,
}
impl LicenseSummaryData {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod license_summary_data {
    use super::*;
    #[doc = "Type of Account License. To use the AccountLicenseType, LicensingSource should be defined as 'account' in the request body."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum AccountLicenseType {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "earlyAdopter")]
        EarlyAdopter,
        #[serde(rename = "express")]
        Express,
        #[serde(rename = "professional")]
        Professional,
        #[serde(rename = "advanced")]
        Advanced,
        #[serde(rename = "stakeholder")]
        Stakeholder,
    }
    impl std::fmt::Display for AccountLicenseType {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::None => write!(f, "none"),
                Self::EarlyAdopter => write!(f, "earlyAdopter"),
                Self::Express => write!(f, "express"),
                Self::Professional => write!(f, "professional"),
                Self::Advanced => write!(f, "advanced"),
                Self::Stakeholder => write!(f, "stakeholder"),
            }
        }
    }
    #[doc = "Type of MSDN License. To use the MsdnLicenseType, LicensingSource should be defined as 'msdn' in the request body."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum MsdnLicenseType {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "eligible")]
        Eligible,
        #[serde(rename = "professional")]
        Professional,
        #[serde(rename = "platforms")]
        Platforms,
        #[serde(rename = "testProfessional")]
        TestProfessional,
        #[serde(rename = "premium")]
        Premium,
        #[serde(rename = "ultimate")]
        Ultimate,
        #[serde(rename = "enterprise")]
        Enterprise,
    }
    impl std::fmt::Display for MsdnLicenseType {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::None => write!(f, "none"),
                Self::Eligible => write!(f, "eligible"),
                Self::Professional => write!(f, "professional"),
                Self::Platforms => write!(f, "platforms"),
                Self::TestProfessional => write!(f, "testProfessional"),
                Self::Premium => write!(f, "premium"),
                Self::Ultimate => write!(f, "ultimate"),
                Self::Enterprise => write!(f, "enterprise"),
            }
        }
    }
    #[doc = "Source of the License."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Source {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "account")]
        Account,
        #[serde(rename = "msdn")]
        Msdn,
        #[serde(rename = "profile")]
        Profile,
        #[serde(rename = "auto")]
        Auto,
        #[serde(rename = "trial")]
        Trial,
    }
    impl std::fmt::Display for Source {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::None => write!(f, "none"),
                Self::Account => write!(f, "account"),
                Self::Msdn => write!(f, "msdn"),
                Self::Profile => write!(f, "profile"),
                Self::Auto => write!(f, "auto"),
                Self::Trial => write!(f, "trial"),
            }
        }
    }
}
#[doc = "Deprecated: Use UserEntitlement instead"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct MemberEntitlement {
    #[serde(flatten)]
    pub user_entitlement: UserEntitlement,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub member: Option<GraphMember>,
}
impl MemberEntitlement {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "An AAD member entity"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct MemberEntitlement2 {
    #[serde(flatten)]
    pub entitlement_base: EntitlementBase,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub member: Option<AadGraphMember>,
}
impl MemberEntitlement2 {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct MemberEntitlement2OperationReference {
    #[serde(flatten)]
    pub operation_reference: OperationReference,
    #[doc = "Operation completed with success or failure."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub completed: Option<bool>,
    #[doc = "True if all operations were successful."]
    #[serde(
        rename = "haveResultsSucceeded",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub have_results_succeeded: Option<bool>,
    #[doc = "List of results for each operation."]
    #[serde(
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub results: Vec<MemberEntitlement2OperationResult>,
}
impl MemberEntitlement2OperationReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct MemberEntitlement2OperationResult {
    #[serde(flatten)]
    pub entitlement_operation_result_base: EntitlementOperationResultBase,
    #[doc = "Identifier of the Member being acted upon."]
    #[serde(rename = "memberId", default, skip_serializing_if = "Option::is_none")]
    pub member_id: Option<String>,
}
impl MemberEntitlement2OperationResult {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct MemberEntitlement2PatchResponse {
    #[serde(flatten)]
    pub member_entitlement2_response_base: MemberEntitlement2ResponseBase,
    #[doc = "List of results for each operation"]
    #[serde(
        rename = "operationResults",
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub operation_results: Vec<MemberEntitlement2OperationResult>,
}
impl MemberEntitlement2PatchResponse {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct MemberEntitlement2PostResponse {
    #[serde(flatten)]
    pub member_entitlement2_response_base: MemberEntitlement2ResponseBase,
    #[serde(
        rename = "operationResult",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub operation_result: Option<MemberEntitlement2OperationResult>,
}
impl MemberEntitlement2PostResponse {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct MemberEntitlement2ResponseBase {
    #[doc = "True if all operations were successful."]
    #[serde(rename = "isSuccess", default, skip_serializing_if = "Option::is_none")]
    pub is_success: Option<bool>,
    #[doc = "An AAD member entity"]
    #[serde(
        rename = "memberEntitlement",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub member_entitlement: Option<MemberEntitlement2>,
}
impl MemberEntitlement2ResponseBase {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct MemberEntitlementOperationReference {
    #[serde(flatten)]
    pub operation_reference: OperationReference,
    #[doc = "Operation completed with success or failure"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub completed: Option<bool>,
    #[doc = "True if all operations were successful"]
    #[serde(
        rename = "haveResultsSucceeded",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub have_results_succeeded: Option<bool>,
    #[doc = "List of results for each operation"]
    #[serde(
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub results: Vec<OperationResult>,
}
impl MemberEntitlementOperationReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct MemberEntitlementsPatchResponse {
    #[serde(flatten)]
    pub member_entitlements_response_base: MemberEntitlementsResponseBase,
    #[doc = "List of results for each operation"]
    #[serde(
        rename = "operationResults",
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub operation_results: Vec<OperationResult>,
}
impl MemberEntitlementsPatchResponse {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct MemberEntitlementsPostResponse {
    #[serde(flatten)]
    pub member_entitlements_response_base: MemberEntitlementsResponseBase,
    #[serde(
        rename = "operationResult",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub operation_result: Option<OperationResult>,
}
impl MemberEntitlementsPostResponse {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct MemberEntitlementsResponseBase {
    #[doc = "True if all operations were successful."]
    #[serde(rename = "isSuccess", default, skip_serializing_if = "Option::is_none")]
    pub is_success: Option<bool>,
    #[doc = "Deprecated: Use UserEntitlement instead"]
    #[serde(
        rename = "memberEntitlement",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub member_entitlement: Option<MemberEntitlement>,
}
impl MemberEntitlementsResponseBase {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Reference for an async operation."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct OperationReference {
    #[doc = "Unique identifier for the operation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[doc = "Unique identifier for the plugin."]
    #[serde(rename = "pluginId", default, skip_serializing_if = "Option::is_none")]
    pub plugin_id: Option<String>,
    #[doc = "The current status of the operation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<operation_reference::Status>,
    #[doc = "URL to get the full operation object."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl OperationReference {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod operation_reference {
    use super::*;
    #[doc = "The current status of the operation."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Status {
        #[serde(rename = "notSet")]
        NotSet,
        #[serde(rename = "queued")]
        Queued,
        #[serde(rename = "inProgress")]
        InProgress,
        #[serde(rename = "cancelled")]
        Cancelled,
        #[serde(rename = "succeeded")]
        Succeeded,
        #[serde(rename = "failed")]
        Failed,
    }
    impl std::fmt::Display for Status {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::NotSet => write!(f, "notSet"),
                Self::Queued => write!(f, "queued"),
                Self::InProgress => write!(f, "inProgress"),
                Self::Cancelled => write!(f, "cancelled"),
                Self::Succeeded => write!(f, "succeeded"),
                Self::Failed => write!(f, "failed"),
            }
        }
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct OperationResult {
    #[doc = "List of error codes paired with their corresponding error messages."]
    #[serde(
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub errors: Vec<serde_json::Value>,
    #[doc = "Success status of the operation."]
    #[serde(rename = "isSuccess", default, skip_serializing_if = "Option::is_none")]
    pub is_success: Option<bool>,
    #[doc = "Identifier of the Member being acted upon."]
    #[serde(rename = "memberId", default, skip_serializing_if = "Option::is_none")]
    pub member_id: Option<String>,
    #[doc = "Deprecated: Use UserEntitlement instead"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub result: Option<MemberEntitlement>,
}
impl OperationResult {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A page of users"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct PagedGraphMemberList {
    #[serde(
        rename = "continuationToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub continuation_token: Option<String>,
    #[serde(
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub items: Vec<UserEntitlement>,
    #[serde(
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub members: Vec<UserEntitlement>,
    #[serde(
        rename = "totalCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub total_count: Option<i32>,
}
impl PagedGraphMemberList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A page of user entitlements"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct PagedUserEntitlementsList {
    #[doc = "The continuation token for next page of data. Can be null, if no more data exists."]
    #[serde(
        rename = "continuationToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub continuation_token: Option<String>,
    #[doc = "The requested user entitlement items."]
    #[serde(
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub items: Vec<UserEntitlement>,
    #[doc = "The total count of the existing user entitlement items."]
    #[serde(
        rename = "totalCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub total_count: Option<i32>,
}
impl PagedUserEntitlementsList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Relation between a project and the user's effective permissions in that project."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ProjectEntitlement {
    #[doc = "Assignment Source (e.g. Group or Unknown)."]
    #[serde(
        rename = "assignmentSource",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub assignment_source: Option<project_entitlement::AssignmentSource>,
    #[doc = "Project Group (e.g. Contributor, Reader etc.)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub group: Option<Group>,
    #[doc = "Whether the user is inheriting permissions to a project through a Azure DevOps or AAD group membership."]
    #[serde(
        rename = "projectPermissionInherited",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub project_permission_inherited: Option<project_entitlement::ProjectPermissionInherited>,
    #[doc = "A reference to a project"]
    #[serde(
        rename = "projectRef",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub project_ref: Option<ProjectRef>,
    #[doc = "Team Ref."]
    #[serde(
        rename = "teamRefs",
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub team_refs: Vec<TeamRef>,
}
impl ProjectEntitlement {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod project_entitlement {
    use super::*;
    #[doc = "Assignment Source (e.g. Group or Unknown)."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum AssignmentSource {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "unknown")]
        Unknown,
        #[serde(rename = "groupRule")]
        GroupRule,
    }
    impl std::fmt::Display for AssignmentSource {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::None => write!(f, "none"),
                Self::Unknown => write!(f, "unknown"),
                Self::GroupRule => write!(f, "groupRule"),
            }
        }
    }
    #[doc = "Whether the user is inheriting permissions to a project through a Azure DevOps or AAD group membership."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ProjectPermissionInherited {
        #[serde(rename = "notSet")]
        NotSet,
        #[serde(rename = "notInherited")]
        NotInherited,
        #[serde(rename = "inherited")]
        Inherited,
    }
    impl std::fmt::Display for ProjectPermissionInherited {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            match self {
                Self::NotSet => write!(f, "notSet"),
                Self::NotInherited => write!(f, "notInherited"),
                Self::Inherited => write!(f, "inherited"),
            }
        }
    }
}
#[doc = "A reference to a project"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ProjectRef {
    #[doc = "Project ID."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[doc = "Project Name."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl ProjectRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "The class to represent a collection of REST reference links."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ReferenceLinks {
    #[doc = "The readonly view of the links.  Because Reference links are readonly, we only want to expose them as read only."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
}
impl ReferenceLinks {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "RuleOption [ApplyGroupRule/TestApplyGroupRule] - specifies if the rules defined in group entitlement should be created and applied to it’s members (default option) or just be tested"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub enum RuleOption {
    #[serde(rename = "applyGroupRule")]
    ApplyGroupRule,
    #[serde(rename = "testApplyGroupRule")]
    TestApplyGroupRule,
}
impl std::fmt::Display for RuleOption {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Self::ApplyGroupRule => write!(f, "applyGroupRule"),
            Self::TestApplyGroupRule => write!(f, "testApplyGroupRule"),
        }
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ServicePrincipalEntitlement {
    #[serde(flatten)]
    pub entitlement_base: EntitlementBase,
    #[serde(
        rename = "servicePrincipal",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_principal: Option<GraphServicePrincipal>,
}
impl ServicePrincipalEntitlement {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ServicePrincipalEntitlementOperationReference {
    #[serde(flatten)]
    pub operation_reference: OperationReference,
    #[doc = "Operation completed with success or failure."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub completed: Option<bool>,
    #[doc = "True if all operations were successful."]
    #[serde(
        rename = "haveResultsSucceeded",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub have_results_succeeded: Option<bool>,
    #[doc = "List of results for each operation."]
    #[serde(
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub results: Vec<ServicePrincipalEntitlementOperationResult>,
}
impl ServicePrincipalEntitlementOperationReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ServicePrincipalEntitlementOperationResult {
    #[serde(flatten)]
    pub entitlement_operation_result_base: EntitlementOperationResultBase,
    #[doc = "Identifier of the ServicePrincipal being acted upon."]
    #[serde(
        rename = "servicePrincipalId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_principal_id: Option<String>,
}
impl ServicePrincipalEntitlementOperationResult {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ServicePrincipalEntitlementsPatchResponse {
    #[serde(flatten)]
    pub service_principal_entitlements_response_base: ServicePrincipalEntitlementsResponseBase,
    #[serde(
        rename = "operationResults",
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub operation_results: Vec<ServicePrincipalEntitlementOperationResult>,
}
impl ServicePrincipalEntitlementsPatchResponse {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ServicePrincipalEntitlementsPostResponse {
    #[serde(flatten)]
    pub service_principal_entitlements_response_base: ServicePrincipalEntitlementsResponseBase,
    #[serde(
        rename = "operationResult",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub operation_result: Option<ServicePrincipalEntitlementOperationResult>,
}
impl ServicePrincipalEntitlementsPostResponse {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ServicePrincipalEntitlementsResponseBase {
    #[serde(rename = "isSuccess", default, skip_serializing_if = "Option::is_none")]
    pub is_success: Option<bool>,
    #[serde(
        rename = "servicePrincipalEntitlement",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_principal_entitlement: Option<ServicePrincipalEntitlement>,
}
impl ServicePrincipalEntitlementsResponseBase {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct SummaryData {
    #[doc = "Count of Licenses already assigned."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub assigned: Option<i32>,
    #[doc = "Available Count."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub available: Option<i32>,
    #[doc = "Quantity"]
    #[serde(
        rename = "includedQuantity",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub included_quantity: Option<i32>,
    #[doc = "Total Count."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub total: Option<i32>,
}
impl SummaryData {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A reference to a team"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TeamRef {
    #[doc = "Team ID"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[doc = "Team Name"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl TeamRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A user entity with additional properties including their license, extensions, and project membership"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct UserEntitlement {
    #[serde(flatten)]
    pub entitlement_base: EntitlementBase,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub user: Option<GraphUser>,
}
impl UserEntitlement {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct UserEntitlementOperationReference {
    #[serde(flatten)]
    pub operation_reference: OperationReference,
    #[doc = "Operation completed with success or failure."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub completed: Option<bool>,
    #[doc = "True if all operations were successful."]
    #[serde(
        rename = "haveResultsSucceeded",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub have_results_succeeded: Option<bool>,
    #[doc = "List of results for each operation."]
    #[serde(
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub results: Vec<UserEntitlementOperationResult>,
}
impl UserEntitlementOperationReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct UserEntitlementOperationResult {
    #[serde(flatten)]
    pub entitlement_operation_result_base: EntitlementOperationResultBase,
    #[doc = "Identifier of the Member being acted upon."]
    #[serde(rename = "userId", default, skip_serializing_if = "Option::is_none")]
    pub user_id: Option<String>,
}
impl UserEntitlementOperationResult {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub enum UserEntitlementProperty {
    #[serde(rename = "license")]
    License,
    #[serde(rename = "extensions")]
    Extensions,
    #[serde(rename = "projects")]
    Projects,
    #[serde(rename = "groupRules")]
    GroupRules,
    #[serde(rename = "all")]
    All,
}
impl std::fmt::Display for UserEntitlementProperty {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Self::License => write!(f, "license"),
            Self::Extensions => write!(f, "extensions"),
            Self::Projects => write!(f, "projects"),
            Self::GroupRules => write!(f, "groupRules"),
            Self::All => write!(f, "all"),
        }
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct UserEntitlementsPatchResponse {
    #[serde(flatten)]
    pub user_entitlements_response_base: UserEntitlementsResponseBase,
    #[doc = "List of results for each operation."]
    #[serde(
        rename = "operationResults",
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub operation_results: Vec<UserEntitlementOperationResult>,
}
impl UserEntitlementsPatchResponse {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct UserEntitlementsPostResponse {
    #[serde(flatten)]
    pub user_entitlements_response_base: UserEntitlementsResponseBase,
    #[serde(
        rename = "operationResult",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub operation_result: Option<UserEntitlementOperationResult>,
}
impl UserEntitlementsPostResponse {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct UserEntitlementsResponseBase {
    #[doc = "True if all operations were successful."]
    #[serde(rename = "isSuccess", default, skip_serializing_if = "Option::is_none")]
    pub is_success: Option<bool>,
    #[doc = "A user entity with additional properties including their license, extensions, and project membership"]
    #[serde(
        rename = "userEntitlement",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub user_entitlement: Option<UserEntitlement>,
}
impl UserEntitlementsResponseBase {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Summary of licenses and extensions assigned to users in the organization"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct UsersSummary {
    #[doc = "Available Access Levels"]
    #[serde(
        rename = "availableAccessLevels",
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub available_access_levels: Vec<AccessLevel>,
    #[doc = "License assigned to a user"]
    #[serde(
        rename = "defaultAccessLevel",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub default_access_level: Option<AccessLevel>,
    #[doc = "Group Options"]
    #[serde(
        rename = "groupOptions",
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub group_options: Vec<GroupOption>,
    #[doc = "Summary of Licenses in the organization"]
    #[serde(
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub licenses: Vec<LicenseSummaryData>,
    #[doc = "Summary of Projects in the organization"]
    #[serde(
        rename = "projectRefs",
        default,
        deserialize_with = "crate::serde::deserialize_null_as_default",
        skip_serializing_if = "Vec::is_empty"
    )]
    pub project_refs: Vec<ProjectRef>,
}
impl UsersSummary {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "This class is used to serialize collections as a single JSON object on the wire."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct VssJsonCollectionWrapper {
    #[serde(flatten)]
    pub vss_json_collection_wrapper_base: VssJsonCollectionWrapperBase,
    #[doc = "The serialized item."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}
impl VssJsonCollectionWrapper {
    pub fn new() -> Self {
        Self::default()
    }
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct VssJsonCollectionWrapperBase {
    #[doc = "The number of serialized items."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
}
impl VssJsonCollectionWrapperBase {
    pub fn new() -> Self {
        Self::default()
    }
}