@@ -786,7 +786,7 @@ class LicenseManager(RetrieveMixin, RESTManager):
786786 _optional_get_attrs = ('project' , 'fullname' )
787787
788788
789- class Snippet (SaveMixin , ObjectDeleteMixin , RESTObject ):
789+ class Snippet (UserAgentDetailMixin , SaveMixin , ObjectDeleteMixin , RESTObject ):
790790 _short_print_attr = 'title'
791791
792792 @cli .register_custom_action ('Snippet' )
@@ -1386,8 +1386,9 @@ class ProjectIssueDiscussionManager(RetrieveMixin, CreateMixin, RESTManager):
13861386 _create_attrs = (('body' ,), ('created_at' ,))
13871387
13881388
1389- class ProjectIssue (SubscribableMixin , TodoMixin , TimeTrackingMixin , SaveMixin ,
1390- ObjectDeleteMixin , RESTObject ):
1389+ class ProjectIssue (UserAgentDetailMixin , SubscribableMixin , TodoMixin ,
1390+ TimeTrackingMixin , SaveMixin , ObjectDeleteMixin ,
1391+ RESTObject ):
13911392 _short_print_attr = 'title'
13921393 _id_attr = 'iid'
13931394 _managers = (
@@ -1396,21 +1397,6 @@ class ProjectIssue(SubscribableMixin, TodoMixin, TimeTrackingMixin, SaveMixin,
13961397 ('notes' , 'ProjectIssueNoteManager' ),
13971398 )
13981399
1399- @cli .register_custom_action ('ProjectIssue' )
1400- @exc .on_http_error (exc .GitlabUpdateError )
1401- def user_agent_detail (self , ** kwargs ):
1402- """Get user agent detail.
1403-
1404- Args:
1405- **kwargs: Extra options to send to the server (e.g. sudo)
1406-
1407- Raises:
1408- GitlabAuthenticationError: If authentication is not correct
1409- GitlabGetError: If the detail could not be retrieved
1410- """
1411- path = '%s/%s/user_agent_detail' % (self .manager .path , self .get_id ())
1412- return self .manager .gitlab .http_get (path , ** kwargs )
1413-
14141400 @cli .register_custom_action ('ProjectIssue' , ('to_project_id' ,))
14151401 @exc .on_http_error (exc .GitlabUpdateError )
14161402 def move (self , to_project_id , ** kwargs ):
@@ -2291,7 +2277,8 @@ class ProjectSnippetDiscussionManager(RetrieveMixin, CreateMixin, RESTManager):
22912277 _create_attrs = (('body' ,), ('created_at' ,))
22922278
22932279
2294- class ProjectSnippet (SaveMixin , ObjectDeleteMixin , RESTObject ):
2280+ class ProjectSnippet (UserAgentDetailMixin , SaveMixin , ObjectDeleteMixin ,
2281+ RESTObject ):
22952282 _url = '/projects/%(project_id)s/snippets'
22962283 _short_print_attr = 'title'
22972284 _managers = (
0 commit comments