28
28
Base ,
29
29
BaseSchema ,
30
30
FromDictMixin ,
31
+ FromDictWithBase ,
31
32
PaginationParameter ,
32
33
SearchParameter ,
33
34
ToDictMixin ,
@@ -113,7 +114,7 @@ def make_detail_response(self, data: Dict[str, Any], **kwargs: Any) -> "Detail":
113
114
return Detail (** data )
114
115
115
116
116
- class Detail (Base , FromDictMixin ):
117
+ class Detail (FromDictWithBase ):
117
118
"""Detail is a response object mostly returned on error or when the
118
119
api output is a simple string.
119
120
@@ -146,7 +147,7 @@ def make_match(self, data: Dict[str, Any], **kwargs: Any) -> "Match":
146
147
return Match (** data )
147
148
148
149
149
- class Match (Base , FromDictMixin ):
150
+ class Match (FromDictWithBase ):
150
151
"""
151
152
Match describes an issue found by GitGuardian.
152
153
@@ -231,7 +232,7 @@ def make_policy_break(self, data: Dict[str, Any], **kwargs: Any) -> "PolicyBreak
231
232
return PolicyBreak (** data )
232
233
233
234
234
- class PolicyBreak (Base , FromDictMixin ):
235
+ class PolicyBreak (FromDictWithBase ):
235
236
"""
236
237
PolicyBreak describes a GitGuardian policy break found
237
238
in a scan.
@@ -288,7 +289,7 @@ def make_scan_result(self, data: Dict[str, Any], **kwargs: Any) -> "ScanResult":
288
289
return ScanResult (** data )
289
290
290
291
291
- class ScanResult (Base , FromDictMixin ):
292
+ class ScanResult (FromDictWithBase ):
292
293
"""ScanResult is a response object returned on a Content Scan
293
294
294
295
Attributes:
@@ -378,7 +379,7 @@ def make_scan_result(
378
379
return MultiScanResult (** data )
379
380
380
381
381
- class MultiScanResult (Base , FromDictMixin ):
382
+ class MultiScanResult (FromDictWithBase ):
382
383
"""ScanResult is a response object returned on a Content Scan
383
384
384
385
Attributes:
@@ -956,7 +957,7 @@ class Scan(Base, FromDictMixin):
956
957
957
958
958
959
@dataclass
959
- class Source (Base , FromDictMixin ):
960
+ class Source (FromDictWithBase ):
960
961
id : int
961
962
url : str
962
963
type : str
@@ -1110,7 +1111,7 @@ def make_members_parameters(self, data: Dict[str, Any], **kwargs: Any):
1110
1111
1111
1112
1112
1113
@dataclass
1113
- class Member (Base , FromDictMixin ):
1114
+ class Member (FromDictWithBase ):
1114
1115
"""
1115
1116
Member represents a user in a GitGuardian account.
1116
1117
"""
@@ -1168,7 +1169,7 @@ def access_level_value(self, data: Dict[str, Any], **kwargs: Any) -> Dict[str, A
1168
1169
1169
1170
1170
1171
@dataclass
1171
- class UpdateMember (Base , FromDictMixin ):
1172
+ class UpdateMember (FromDictWithBase ):
1172
1173
"""
1173
1174
UpdateMember represents the payload to update a member
1174
1175
"""
@@ -1182,7 +1183,7 @@ class UpdateMember(Base, FromDictMixin):
1182
1183
1183
1184
1184
1185
@dataclass
1185
- class UpdateMemberParameters (Base , FromDictMixin ):
1186
+ class UpdateMemberParameters (FromDictWithBase ):
1186
1187
send_email : Optional [bool ] = None
1187
1188
1188
1189
@@ -1194,7 +1195,7 @@ class UpdateMemberParameters(Base, FromDictMixin):
1194
1195
1195
1196
1196
1197
@dataclass
1197
- class DeleteMemberParameters (Base , FromDictMixin ):
1198
+ class DeleteMemberParameters (FromDictWithBase ):
1198
1199
id : int
1199
1200
send_email : Optional [bool ] = None
1200
1201
@@ -1219,7 +1220,7 @@ class TeamsParameters(PaginationParameter, SearchParameter, FromDictMixin, ToDic
1219
1220
1220
1221
1221
1222
@dataclass
1222
- class Team (Base , FromDictMixin ):
1223
+ class Team (FromDictWithBase ):
1223
1224
id : int
1224
1225
name : str
1225
1226
is_global : bool
@@ -1235,7 +1236,7 @@ class Team(Base, FromDictMixin):
1235
1236
1236
1237
1237
1238
@dataclass
1238
- class CreateTeam (Base , FromDictMixin ):
1239
+ class CreateTeam (FromDictWithBase ):
1239
1240
name : str
1240
1241
description : Optional [str ] = ""
1241
1242
@@ -1250,7 +1251,7 @@ class CreateTeam(Base, FromDictMixin):
1250
1251
1251
1252
1252
1253
@dataclass
1253
- class UpdateTeam (Base , FromDictMixin ):
1254
+ class UpdateTeam (FromDictWithBase ):
1254
1255
id : int
1255
1256
name : Optional [str ]
1256
1257
description : Optional [str ] = None
@@ -1296,7 +1297,7 @@ class Meta:
1296
1297
1297
1298
1298
1299
@dataclass
1299
- class TeamInvitation (Base , FromDictMixin ):
1300
+ class TeamInvitation (FromDictWithBase ):
1300
1301
id : int
1301
1302
invitation_id : int
1302
1303
team_id : int
@@ -1326,7 +1327,7 @@ def make_team_invitation(
1326
1327
1327
1328
1328
1329
@dataclass
1329
- class CreateTeamInvitation (Base , FromDictMixin ):
1330
+ class CreateTeamInvitation (FromDictWithBase ):
1330
1331
invitation_id : int
1331
1332
is_team_leader : bool
1332
1333
incident_permission : IncidentPermission
@@ -1376,7 +1377,7 @@ class Meta:
1376
1377
1377
1378
1378
1379
@dataclass
1379
- class TeamMember (Base , FromDictMixin ):
1380
+ class TeamMember (FromDictWithBase ):
1380
1381
id : int
1381
1382
team_id : int
1382
1383
member_id : int
@@ -1416,7 +1417,7 @@ class CreateTeamMemberParameters(ToDictMixin):
1416
1417
1417
1418
1418
1419
@dataclass
1419
- class CreateTeamMember (Base , FromDictMixin ):
1420
+ class CreateTeamMember (FromDictWithBase ):
1420
1421
member_id : int
1421
1422
is_team_leader : bool
1422
1423
incident_permission : IncidentPermission
@@ -1456,7 +1457,7 @@ class TeamSourceParameters(PaginationParameter, SearchParameter, ToDictMixin):
1456
1457
1457
1458
1458
1459
@dataclass
1459
- class UpdateTeamSource (Base , FromDictMixin ):
1460
+ class UpdateTeamSource (FromDictWithBase ):
1460
1461
team_id : int
1461
1462
sources_to_add : List [int ]
1462
1463
sources_to_remove : List [int ]
@@ -1490,7 +1491,7 @@ class InvitationParameters(
1490
1491
1491
1492
1492
1493
@dataclass
1493
- class Invitation (Base , FromDictMixin ):
1494
+ class Invitation (FromDictWithBase ):
1494
1495
id : int
1495
1496
email : str
1496
1497
access_level : AccessLevel
0 commit comments