diff options
-rw-r--r-- | gitlab/v4/objects.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 6bf55ab..da2f6ed 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -1298,7 +1298,8 @@ class ProjectKeyManager(CRUDMixin, RESTManager): _path = '/projects/%(project_id)s/deploy_keys' _obj_cls = ProjectKey _from_parent_attrs = {'project_id': 'id'} - _create_attrs = (('title', 'key'), tuple()) + _create_attrs = (('title', 'key'), ('can_push',)) + _update_attrs = (tuple(), ('title', 'can_push')) @cli.register_custom_action('ProjectKeyManager', ('key_id',)) @exc.on_http_error(exc.GitlabProjectDeployKeyError) |