{"action":"created","comment":{"url":"https://api.github.com/repos/gpocentek/python-gitlab/pulls/comments/85925502","pull_request_review_id":6609665,"id":85925502,"diff_hunk":"@@ -34,3 +34,15 @@\n # or\n key.delete()\n # end delete\n+\n+# enable\n+key = gl.project_keys.enable(key_id, project_id=1)","path":"docs/gl_objects/deploy_keys.py","position":6,"original_position":6,"commit_id":"f9cb7184f8907de7f99009b7cce92c5c4eec2107","original_commit_id":"f9cb7184f8907de7f99009b7cce92c5c4eec2107","user":{"login":"gpocentek","id":1687888,"avatar_url":"https://avatars.githubusercontent.com/u/1687888?v=3","gravatar_id":"","url":"https://api.github.com/users/gpocentek","html_url":"https://github.com/gpocentek","followers_url":"https://api.github.com/users/gpocentek/followers","following_url":"https://api.github.com/users/gpocentek/following{/other_user}","gists_url":"https://api.github.com/users/gpocentek/gists{/gist_id}","starred_url":"https://api.github.com/users/gpocentek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpocentek/subscriptions","organizations_url":"https://api.github.com/users/gpocentek/orgs","repos_url":"https://api.github.com/users/gpocentek/repos","events_url":"https://api.github.com/users/gpocentek/events{/privacy}","received_events_url":"https://api.github.com/users/gpocentek/received_events","type":"User","site_admin":false},"body":"Since the new methods are defined for the ProjectKey class you should only have one example:\r\n\r\n````` python\r\nkey.enable()\r\n`````","created_at":"2016-11-01T13:16:25Z","updated_at":"2016-11-01T13:16:44Z","html_url":"https://github.com/gpocentek/python-gitlab/pull/180#discussion_r85925502","pull_request_url":"https://api.github.com/repos/gpocentek/python-gitlab/pulls/180","_links":{"self":{"href":"https://api.github.com/repos/gpocentek/python-gitlab/pulls/comments/85925502"},"html":{"href":"https://github.com/gpocentek/python-gitlab/pull/180#discussion_r85925502"},"pull_request":{"href":"https://api.github.com/repos/gpocentek/python-gitlab/pulls/180"}}},"pull_request":{"url":"https://api.github.com/repos/gpocentek/python-gitlab/pulls/180","id":91470937,"html_url":"https://github.com/gpocentek/python-gitlab/pull/180","diff_url":"https://github.com/gpocentek/python-gitlab/pull/180.diff","patch_url":"https://github.com/gpocentek/python-gitlab/pull/180.patch","issue_url":"https://api.github.com/repos/gpocentek/python-gitlab/issues/180","number":180,"state":"open","locked":false,"title":"Feature: enable / disable the deploy key in a project","user":{"login":"Asher256","id":8672411,"avatar_url":"https://avatars.githubusercontent.com/u/8672411?v=3","gravatar_id":"","url":"https://api.github.com/users/Asher256","html_url":"https://github.com/Asher256","followers_url":"https://api.github.com/users/Asher256/followers","following_url":"https://api.github.com/users/Asher256/following{/other_user}","gists_url":"https://api.github.com/users/Asher256/gists{/gist_id}","starred_url":"https://api.github.com/users/Asher256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asher256/subscriptions","organizations_url":"https://api.github.com/users/Asher256/orgs","repos_url":"https://api.github.com/users/Asher256/repos","events_url":"https://api.github.com/users/Asher256/events{/privacy}","received_events_url":"https://api.github.com/users/Asher256/received_events","type":"User","site_admin":false},"body":"To solve the issue https://github.com/gpocentek/python-gitlab/issues/179 I added 2 new features to the class ProjectKeyManager: enable_deploy_key() and disable_deploy_key() .\n","created_at":"2016-10-29T00:13:54Z","updated_at":"2016-11-01T13:16:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"65ce31a0ec13f2f9f3024a22745608874a2fc8fc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gpocentek/python-gitlab/pulls/180/commits","review_comments_url":"https://api.github.com/repos/gpocentek/python-gitlab/pulls/180/comments","review_comment_url":"https://api.github.com/repos/gpocentek/python-gitlab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gpocentek/python-gitlab/issues/180/comments","statuses_url":"https://api.github.com/repos/gpocentek/python-gitlab/statuses/f9cb7184f8907de7f99009b7cce92c5c4eec2107","head":{"label":"Asher256:master-project-deploy-keys","ref":"master-project-deploy-keys","sha":"f9cb7184f8907de7f99009b7cce92c5c4eec2107","user":{"login":"Asher256","id":8672411,"avatar_url":"https://avatars.githubusercontent.com/u/8672411?v=3","gravatar_id":"","url":"https://api.github.com/users/Asher256","html_url":"https://github.com/Asher256","followers_url":"https://api.github.com/users/Asher256/followers","following_url":"https://api.github.com/users/Asher256/following{/other_user}","gists_url":"https://api.github.com/users/Asher256/gists{/gist_id}","starred_url":"https://api.github.com/users/Asher256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asher256/subscriptions","organizations_url":"https://api.github.com/users/Asher256/orgs","repos_url":"https://api.github.com/users/Asher256/repos","events_url":"https://api.github.com/users/Asher256/events{/privacy}","received_events_url":"https://api.github.com/users/Asher256/received_events","type":"User","site_admin":false},"repo":{"id":52987680,"name":"python-gitlab","full_name":"Asher256/python-gitlab","owner":{"login":"Asher256","id":8672411,"avatar_url":"https://avatars.githubusercontent.com/u/8672411?v=3","gravatar_id":"","url":"https://api.github.com/users/Asher256","html_url":"https://github.com/Asher256","followers_url":"https://api.github.com/users/Asher256/followers","following_url":"https://api.github.com/users/Asher256/following{/other_user}","gists_url":"https://api.github.com/users/Asher256/gists{/gist_id}","starred_url":"https://api.github.com/users/Asher256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asher256/subscriptions","organizations_url":"https://api.github.com/users/Asher256/orgs","repos_url":"https://api.github.com/users/Asher256/repos","events_url":"https://api.github.com/users/Asher256/events{/privacy}","received_events_url":"https://api.github.com/users/Asher256/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Asher256/python-gitlab","description":"Python wrapper for the GitLab API","fork":true,"url":"https://api.github.com/repos/Asher256/python-gitlab","forks_url":"https://api.github.com/repos/Asher256/python-gitlab/forks","keys_url":"https://api.github.com/repos/Asher256/python-gitlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Asher256/python-gitlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Asher256/python-gitlab/teams","hooks_url":"https://api.github.com/repos/Asher256/python-gitlab/hooks","issue_events_url":"https://api.github.com/repos/Asher256/python-gitlab/issues/events{/number}","events_url":"https://api.github.com/repos/Asher256/python-gitlab/events","assignees_url":"https://api.github.com/repos/Asher256/python-gitlab/assignees{/user}","branches_url":"https://api.github.com/repos/Asher256/python-gitlab/branches{/branch}","tags_url":"https://api.github.com/repos/Asher256/python-gitlab/tags","blobs_url":"https://api.github.com/repos/Asher256/python-gitlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Asher256/python-gitlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Asher256/python-gitlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/Asher256/python-gitlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Asher256/python-gitlab/statuses/{sha}","languages_url":"https://api.github.com/repos/Asher256/python-gitlab/languages","stargazers_url":"https://api.github.com/repos/Asher256/python-gitlab/stargazers","contributors_url":"https://api.github.com/repos/Asher256/python-gitlab/contributors","subscribers_url":"https://api.github.com/repos/Asher256/python-gitlab/subscribers","subscription_url":"https://api.github.com/repos/Asher256/python-gitlab/subscription","commits_url":"https://api.github.com/repos/Asher256/python-gitlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/Asher256/python-gitlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/Asher256/python-gitlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/Asher256/python-gitlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/Asher256/python-gitlab/contents/{+path}","compare_url":"https://api.github.com/repos/Asher256/python-gitlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Asher256/python-gitlab/merges","archive_url":"https://api.github.com/repos/Asher256/python-gitlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Asher256/python-gitlab/downloads","issues_url":"https://api.github.com/repos/Asher256/python-gitlab/issues{/number}","pulls_url":"https://api.github.com/repos/Asher256/python-gitlab/pulls{/number}","milestones_url":"https://api.github.com/repos/Asher256/python-gitlab/milestones{/number}","notifications_url":"https://api.github.com/repos/Asher256/python-gitlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Asher256/python-gitlab/labels{/name}","releases_url":"https://api.github.com/repos/Asher256/python-gitlab/releases{/id}","deployments_url":"https://api.github.com/repos/Asher256/python-gitlab/deployments","created_at":"2016-03-02T18:51:10Z","updated_at":"2016-03-02T18:51:11Z","pushed_at":"2016-10-31T02:50:26Z","git_url":"git://github.com/Asher256/python-gitlab.git","ssh_url":"git@github.com:Asher256/python-gitlab.git","clone_url":"https://github.com/Asher256/python-gitlab.git","svn_url":"https://github.com/Asher256/python-gitlab","homepage":null,"size":781,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gpocentek:master","ref":"master","sha":"4689e73b051fa985168cb648f49ee2dd6b6df523","user":{"login":"gpocentek","id":1687888,"avatar_url":"https://avatars.githubusercontent.com/u/1687888?v=3","gravatar_id":"","url":"https://api.github.com/users/gpocentek","html_url":"https://github.com/gpocentek","followers_url":"https://api.github.com/users/gpocentek/followers","following_url":"https://api.github.com/users/gpocentek/following{/other_user}","gists_url":"https://api.github.com/users/gpocentek/gists{/gist_id}","starred_url":"https://api.github.com/users/gpocentek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpocentek/subscriptions","organizations_url":"https://api.github.com/users/gpocentek/orgs","repos_url":"https://api.github.com/users/gpocentek/repos","events_url":"https://api.github.com/users/gpocentek/events{/privacy}","received_events_url":"https://api.github.com/users/gpocentek/received_events","type":"User","site_admin":false},"repo":{"id":8077625,"name":"python-gitlab","full_name":"gpocentek/python-gitlab","owner":{"login":"gpocentek","id":1687888,"avatar_url":"https://avatars.githubusercontent.com/u/1687888?v=3","gravatar_id":"","url":"https://api.github.com/users/gpocentek","html_url":"https://github.com/gpocentek","followers_url":"https://api.github.com/users/gpocentek/followers","following_url":"https://api.github.com/users/gpocentek/following{/other_user}","gists_url":"https://api.github.com/users/gpocentek/gists{/gist_id}","starred_url":"https://api.github.com/users/gpocentek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpocentek/subscriptions","organizations_url":"https://api.github.com/users/gpocentek/orgs","repos_url":"https://api.github.com/users/gpocentek/repos","events_url":"https://api.github.com/users/gpocentek/events{/privacy}","received_events_url":"https://api.github.com/users/gpocentek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gpocentek/python-gitlab","description":"Python wrapper for the GitLab API","fork":false,"url":"https://api.github.com/repos/gpocentek/python-gitlab","forks_url":"https://api.github.com/repos/gpocentek/python-gitlab/forks","keys_url":"https://api.github.com/repos/gpocentek/python-gitlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gpocentek/python-gitlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gpocentek/python-gitlab/teams","hooks_url":"https://api.github.com/repos/gpocentek/python-gitlab/hooks","issue_events_url":"https://api.github.com/repos/gpocentek/python-gitlab/issues/events{/number}","events_url":"https://api.github.com/repos/gpocentek/python-gitlab/events","assignees_url":"https://api.github.com/repos/gpocentek/python-gitlab/assignees{/user}","branches_url":"https://api.github.com/repos/gpocentek/python-gitlab/branches{/branch}","tags_url":"https://api.github.com/repos/gpocentek/python-gitlab/tags","blobs_url":"https://api.github.com/repos/gpocentek/python-gitlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gpocentek/python-gitlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gpocentek/python-gitlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/gpocentek/python-gitlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gpocentek/python-gitlab/statuses/{sha}","languages_url":"https://api.github.com/repos/gpocentek/python-gitlab/languages","stargazers_url":"https://api.github.com/repos/gpocentek/python-gitlab/stargazers","contributors_url":"https://api.github.com/repos/gpocentek/python-gitlab/contributors","subscribers_url":"https://api.github.com/repos/gpocentek/python-gitlab/subscribers","subscription_url":"https://api.github.com/repos/gpocentek/python-gitlab/subscription","commits_url":"https://api.github.com/repos/gpocentek/python-gitlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/gpocentek/python-gitlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/gpocentek/python-gitlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/gpocentek/python-gitlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/gpocentek/python-gitlab/contents/{+path}","compare_url":"https://api.github.com/repos/gpocentek/python-gitlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gpocentek/python-gitlab/merges","archive_url":"https://api.github.com/repos/gpocentek/python-gitlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gpocentek/python-gitlab/downloads","issues_url":"https://api.github.com/repos/gpocentek/python-gitlab/issues{/number}","pulls_url":"https://api.github.com/repos/gpocentek/python-gitlab/pulls{/number}","milestones_url":"https://api.github.com/repos/gpocentek/python-gitlab/milestones{/number}","notifications_url":"https://api.github.com/repos/gpocentek/python-gitlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gpocentek/python-gitlab/labels{/name}","releases_url":"https://api.github.com/repos/gpocentek/python-gitlab/releases{/id}","deployments_url":"https://api.github.com/repos/gpocentek/python-gitlab/deployments","created_at":"2013-02-07T17:23:16Z","updated_at":"2016-10-31T12:24:46Z","pushed_at":"2016-10-31T02:50:27Z","git_url":"git://github.com/gpocentek/python-gitlab.git","ssh_url":"git@github.com:gpocentek/python-gitlab.git","clone_url":"https://github.com/gpocentek/python-gitlab.git","svn_url":"https://github.com/gpocentek/python-gitlab","homepage":null,"size":862,"stargazers_count":226,"watchers_count":226,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":82,"mirror_url":null,"open_issues_count":21,"forks":82,"open_issues":21,"watchers":226,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gpocentek/python-gitlab/pulls/180"},"html":{"href":"https://github.com/gpocentek/python-gitlab/pull/180"},"issue":{"href":"https://api.github.com/repos/gpocentek/python-gitlab/issues/180"},"comments":{"href":"https://api.github.com/repos/gpocentek/python-gitlab/issues/180/comments"},"review_comments":{"href":"https://api.github.com/repos/gpocentek/python-gitlab/pulls/180/comments"},"review_comment":{"href":"https://api.github.com/repos/gpocentek/python-gitlab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gpocentek/python-gitlab/pulls/180/commits"},"statuses":{"href":"https://api.github.com/repos/gpocentek/python-gitlab/statuses/f9cb7184f8907de7f99009b7cce92c5c4eec2107"}}}}
{"actor":{"display_login":"gpocentek"}}