@@ -135,7 +135,7 @@ class UserKeyManager(GetFromListMixin, CreateMixin, DeleteMixin, RESTManager):
135
135
136
136
137
137
class UserProject (RESTObject ):
138
- _constructor_types = { 'owner' : 'User' , 'namespace' : 'Group' }
138
+ pass
139
139
140
140
141
141
class UserProjectManager (CreateMixin , RESTManager ):
@@ -418,9 +418,6 @@ class HookManager(NoUpdateMixin, RESTManager):
418
418
419
419
class Issue (RESTObject ):
420
420
_url = '/issues'
421
- _constructor_types = {'author' : 'User' ,
422
- 'assignee' : 'User' ,
423
- 'milestone' : 'ProjectMilestone' }
424
421
_short_print_attr = 'title'
425
422
426
423
@@ -442,7 +439,6 @@ class LicenseManager(RetrieveMixin, RESTManager):
442
439
443
440
444
441
class Snippet (SaveMixin , ObjectDeleteMixin , RESTObject ):
445
- _constructor_types = {'author' : 'User' }
446
442
_short_print_attr = 'title'
447
443
448
444
@cli .register_custom_action ('Snippet' )
@@ -508,7 +504,7 @@ class NamespaceManager(GetFromListMixin, RESTManager):
508
504
509
505
510
506
class ProjectBoardList (SaveMixin , ObjectDeleteMixin , RESTObject ):
511
- _constructor_types = { 'label' : 'ProjectLabel' }
507
+ pass
512
508
513
509
514
510
class ProjectBoardListManager (CRUDMixin , RESTManager ):
@@ -521,7 +517,6 @@ class ProjectBoardListManager(CRUDMixin, RESTManager):
521
517
522
518
523
519
class ProjectBoard (RESTObject ):
524
- _constructor_types = {'labels' : 'ProjectBoardList' }
525
520
_managers = (('lists' , 'ProjectBoardListManager' ), )
526
521
527
522
@@ -532,7 +527,6 @@ class ProjectBoardManager(GetFromListMixin, RESTManager):
532
527
533
528
534
529
class ProjectBranch (ObjectDeleteMixin , RESTObject ):
535
- _constructor_types = {'author' : 'User' , "committer" : "User" }
536
530
_id_attr = 'name'
537
531
538
532
@cli .register_custom_action ('ProjectBranch' , tuple (),
@@ -585,10 +579,6 @@ class ProjectBranchManager(NoUpdateMixin, RESTManager):
585
579
586
580
587
581
class ProjectJob (RESTObject ):
588
- _constructor_types = {'user' : 'User' ,
589
- 'commit' : 'ProjectCommit' ,
590
- 'runner' : 'Runner' }
591
-
592
582
@cli .register_custom_action ('ProjectJob' )
593
583
@exc .on_http_error (exc .GitlabJobCancelError )
594
584
def cancel (self , ** kwargs ):
@@ -907,7 +897,7 @@ class ProjectHookManager(CRUDMixin, RESTManager):
907
897
908
898
909
899
class ProjectIssueNote (SaveMixin , ObjectDeleteMixin , RESTObject ):
910
- _constructor_types = { 'author' : 'User' }
900
+ pass
911
901
912
902
913
903
class ProjectIssueNoteManager (CRUDMixin , RESTManager ):
@@ -920,8 +910,6 @@ class ProjectIssueNoteManager(CRUDMixin, RESTManager):
920
910
921
911
class ProjectIssue (SubscribableMixin , TodoMixin , TimeTrackingMixin , SaveMixin ,
922
912
ObjectDeleteMixin , RESTObject ):
923
- _constructor_types = {'author' : 'User' , 'assignee' : 'User' , 'milestone' :
924
- 'ProjectMilestone' }
925
913
_short_print_attr = 'title'
926
914
_id_attr = 'iid'
927
915
_managers = (('notes' , 'ProjectIssueNoteManager' ), )
@@ -978,7 +966,7 @@ class ProjectMemberManager(CRUDMixin, RESTManager):
978
966
979
967
980
968
class ProjectNote (RESTObject ):
981
- _constructor_types = { 'author' : 'User' }
969
+ pass
982
970
983
971
984
972
class ProjectNoteManager (RetrieveMixin , RESTManager ):
@@ -999,8 +987,6 @@ class ProjectNotificationSettingsManager(NotificationSettingsManager):
999
987
1000
988
1001
989
class ProjectTag (ObjectDeleteMixin , RESTObject ):
1002
- _constructor_types = {'release' : 'ProjectTagRelease' ,
1003
- 'commit' : 'ProjectCommit' }
1004
990
_id_attr = 'name'
1005
991
_short_print_attr = 'name'
1006
992
@@ -1058,7 +1044,7 @@ class ProjectMergeRequestDiffManager(RetrieveMixin, RESTManager):
1058
1044
1059
1045
1060
1046
class ProjectMergeRequestNote (SaveMixin , ObjectDeleteMixin , RESTObject ):
1061
- _constructor_types = { 'author' : 'User' }
1047
+ pass
1062
1048
1063
1049
1064
1050
class ProjectMergeRequestNoteManager (CRUDMixin , RESTManager ):
@@ -1071,7 +1057,6 @@ class ProjectMergeRequestNoteManager(CRUDMixin, RESTManager):
1071
1057
1072
1058
class ProjectMergeRequest (SubscribableMixin , TodoMixin , TimeTrackingMixin ,
1073
1059
SaveMixin , ObjectDeleteMixin , RESTObject ):
1074
- _constructor_types = {'author' : 'User' , 'assignee' : 'User' }
1075
1060
_id_attr = 'iid'
1076
1061
1077
1062
_managers = (
@@ -1546,7 +1531,7 @@ def create(self, data, **kwargs):
1546
1531
1547
1532
1548
1533
class ProjectSnippetNote (SaveMixin , ObjectDeleteMixin , RESTObject ):
1549
- _constructor_types = { 'author' : 'User' }
1534
+ pass
1550
1535
1551
1536
1552
1537
class ProjectSnippetNoteManager (CRUDMixin , RESTManager ):
@@ -1560,7 +1545,6 @@ class ProjectSnippetNoteManager(CRUDMixin, RESTManager):
1560
1545
1561
1546
class ProjectSnippet (SaveMixin , ObjectDeleteMixin , RESTObject ):
1562
1547
_url = '/projects/%(project_id)s/snippets'
1563
- _constructor_types = {'author' : 'User' }
1564
1548
_short_print_attr = 'title'
1565
1549
_managers = (('notes' , 'ProjectSnippetNoteManager' ), )
1566
1550
@@ -1779,7 +1763,6 @@ class ProjectRunnerManager(NoUpdateMixin, RESTManager):
1779
1763
1780
1764
1781
1765
class Project (SaveMixin , ObjectDeleteMixin , RESTObject ):
1782
- _constructor_types = {'owner' : 'User' , 'namespace' : 'Group' }
1783
1766
_short_print_attr = 'path'
1784
1767
_managers = (
1785
1768
('accessrequests' , 'ProjectAccessRequestManager' ),
0 commit comments