{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/comments/88956457","pull_request_review_id":9511908,"id":88956457,"diff_hunk":"@@ -30,24 +39,67 @@ def _to_camel_case(s):\n     return ''.join(_title(y) for y in s.split(\"_\"))\n \n \n-def iterate_through_operations(spec, func):\n+def apply_funcs_to_spec(spec, func, *params):\n+    \"\"\"Apply fun to each operation in the spec.","path":"scripts/preprocess_spec.py","position":22,"original_position":22,"commit_id":"8a4a042601d403d3255450a5a080849eef36d5e8","original_commit_id":"d04a5f3fe04c7b02694773c5157a21825b0da3c1","user":{"login":"mbohlool","id":1613024,"avatar_url":"https://avatars.githubusercontent.com/u/1613024?v=3","gravatar_id":"","url":"https://api.github.com/users/mbohlool","html_url":"https://github.com/mbohlool","followers_url":"https://api.github.com/users/mbohlool/followers","following_url":"https://api.github.com/users/mbohlool/following{/other_user}","gists_url":"https://api.github.com/users/mbohlool/gists{/gist_id}","starred_url":"https://api.github.com/users/mbohlool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbohlool/subscriptions","organizations_url":"https://api.github.com/users/mbohlool/orgs","repos_url":"https://api.github.com/users/mbohlool/repos","events_url":"https://api.github.com/users/mbohlool/events{/privacy}","received_events_url":"https://api.github.com/users/mbohlool/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2016-11-21T18:26:26Z","updated_at":"2016-11-21T18:26:26Z","html_url":"https://github.com/kubernetes-incubator/client-python/pull/9#discussion_r88956457","pull_request_url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/comments/88956457"},"html":{"href":"https://github.com/kubernetes-incubator/client-python/pull/9#discussion_r88956457"},"pull_request":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/9","id":94084647,"html_url":"https://github.com/kubernetes-incubator/client-python/pull/9","diff_url":"https://github.com/kubernetes-incubator/client-python/pull/9.diff","patch_url":"https://github.com/kubernetes-incubator/client-python/pull/9.patch","issue_url":"https://api.github.com/repos/kubernetes-incubator/client-python/issues/9","number":9,"state":"open","locked":false,"title":"Remove watch_* operations in favor of \"list_*(watch=True)\"","user":{"login":"mbohlool","id":1613024,"avatar_url":"https://avatars.githubusercontent.com/u/1613024?v=3","gravatar_id":"","url":"https://api.github.com/users/mbohlool","html_url":"https://github.com/mbohlool","followers_url":"https://api.github.com/users/mbohlool/followers","following_url":"https://api.github.com/users/mbohlool/following{/other_user}","gists_url":"https://api.github.com/users/mbohlool/gists{/gist_id}","starred_url":"https://api.github.com/users/mbohlool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbohlool/subscriptions","organizations_url":"https://api.github.com/users/mbohlool/orgs","repos_url":"https://api.github.com/users/mbohlool/repos","events_url":"https://api.github.com/users/mbohlool/events{/privacy}","received_events_url":"https://api.github.com/users/mbohlool/received_events","type":"User","site_admin":false},"body":"Kubernetes supports two type of watch operations. One is the old deprecated one (watch_resource...) and on is the new one (list_resource...(watch=True)). k8sutil.Watch class support only the new one. It is not hard to support old deprecated ones too, but they are redundant and removing them make client less crowded. This PR removes old deprecated watch operations after it make sure there exists a new watch operation for them.\r\n\r\nfixes #8 ","created_at":"2016-11-17T01:17:54Z","updated_at":"2016-11-21T18:26:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f98383dec8cb2b4d49b78318798b08483371717","assignee":{"login":"lavalamp","id":647318,"avatar_url":"https://avatars.githubusercontent.com/u/647318?v=3","gravatar_id":"","url":"https://api.github.com/users/lavalamp","html_url":"https://github.com/lavalamp","followers_url":"https://api.github.com/users/lavalamp/followers","following_url":"https://api.github.com/users/lavalamp/following{/other_user}","gists_url":"https://api.github.com/users/lavalamp/gists{/gist_id}","starred_url":"https://api.github.com/users/lavalamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavalamp/subscriptions","organizations_url":"https://api.github.com/users/lavalamp/orgs","repos_url":"https://api.github.com/users/lavalamp/repos","events_url":"https://api.github.com/users/lavalamp/events{/privacy}","received_events_url":"https://api.github.com/users/lavalamp/received_events","type":"User","site_admin":false},"assignees":[{"login":"lavalamp","id":647318,"avatar_url":"https://avatars.githubusercontent.com/u/647318?v=3","gravatar_id":"","url":"https://api.github.com/users/lavalamp","html_url":"https://github.com/lavalamp","followers_url":"https://api.github.com/users/lavalamp/followers","following_url":"https://api.github.com/users/lavalamp/following{/other_user}","gists_url":"https://api.github.com/users/lavalamp/gists{/gist_id}","starred_url":"https://api.github.com/users/lavalamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavalamp/subscriptions","organizations_url":"https://api.github.com/users/lavalamp/orgs","repos_url":"https://api.github.com/users/lavalamp/repos","events_url":"https://api.github.com/users/lavalamp/events{/privacy}","received_events_url":"https://api.github.com/users/lavalamp/received_events","type":"User","site_admin":false},{"login":"smarterclayton","id":1163175,"avatar_url":"https://avatars.githubusercontent.com/u/1163175?v=3","gravatar_id":"","url":"https://api.github.com/users/smarterclayton","html_url":"https://github.com/smarterclayton","followers_url":"https://api.github.com/users/smarterclayton/followers","following_url":"https://api.github.com/users/smarterclayton/following{/other_user}","gists_url":"https://api.github.com/users/smarterclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/smarterclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarterclayton/subscriptions","organizations_url":"https://api.github.com/users/smarterclayton/orgs","repos_url":"https://api.github.com/users/smarterclayton/repos","events_url":"https://api.github.com/users/smarterclayton/events{/privacy}","received_events_url":"https://api.github.com/users/smarterclayton/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/kubernetes-incubator/client-python/milestones/1","html_url":"https://github.com/kubernetes-incubator/client-python/milestones/v1.0","labels_url":"https://api.github.com/repos/kubernetes-incubator/client-python/milestones/1/labels","id":2140763,"number":1,"title":"v1.0","description":"First version of python client to be released with kubernetes v1.5.","creator":{"login":"mbohlool","id":1613024,"avatar_url":"https://avatars.githubusercontent.com/u/1613024?v=3","gravatar_id":"","url":"https://api.github.com/users/mbohlool","html_url":"https://github.com/mbohlool","followers_url":"https://api.github.com/users/mbohlool/followers","following_url":"https://api.github.com/users/mbohlool/following{/other_user}","gists_url":"https://api.github.com/users/mbohlool/gists{/gist_id}","starred_url":"https://api.github.com/users/mbohlool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbohlool/subscriptions","organizations_url":"https://api.github.com/users/mbohlool/orgs","repos_url":"https://api.github.com/users/mbohlool/repos","events_url":"https://api.github.com/users/mbohlool/events{/privacy}","received_events_url":"https://api.github.com/users/mbohlool/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":5,"state":"open","created_at":"2016-11-17T00:22:29Z","updated_at":"2016-11-20T08:51:08Z","due_on":"2016-12-09T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/9/commits","review_comments_url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/9/comments","review_comment_url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes-incubator/client-python/issues/9/comments","statuses_url":"https://api.github.com/repos/kubernetes-incubator/client-python/statuses/8a4a042601d403d3255450a5a080849eef36d5e8","head":{"label":"kubernetes-incubator:o2","ref":"o2","sha":"8a4a042601d403d3255450a5a080849eef36d5e8","user":{"login":"kubernetes-incubator","id":20862812,"avatar_url":"https://avatars.githubusercontent.com/u/20862812?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes-incubator","html_url":"https://github.com/kubernetes-incubator","followers_url":"https://api.github.com/users/kubernetes-incubator/followers","following_url":"https://api.github.com/users/kubernetes-incubator/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes-incubator/subscriptions","organizations_url":"https://api.github.com/users/kubernetes-incubator/orgs","repos_url":"https://api.github.com/users/kubernetes-incubator/repos","events_url":"https://api.github.com/users/kubernetes-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":72473727,"name":"client-python","full_name":"kubernetes-incubator/client-python","owner":{"login":"kubernetes-incubator","id":20862812,"avatar_url":"https://avatars.githubusercontent.com/u/20862812?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes-incubator","html_url":"https://github.com/kubernetes-incubator","followers_url":"https://api.github.com/users/kubernetes-incubator/followers","following_url":"https://api.github.com/users/kubernetes-incubator/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes-incubator/subscriptions","organizations_url":"https://api.github.com/users/kubernetes-incubator/orgs","repos_url":"https://api.github.com/users/kubernetes-incubator/repos","events_url":"https://api.github.com/users/kubernetes-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes-incubator/client-python","description":"Python clients for kubernetes","fork":false,"url":"https://api.github.com/repos/kubernetes-incubator/client-python","forks_url":"https://api.github.com/repos/kubernetes-incubator/client-python/forks","keys_url":"https://api.github.com/repos/kubernetes-incubator/client-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes-incubator/client-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes-incubator/client-python/teams","hooks_url":"https://api.github.com/repos/kubernetes-incubator/client-python/hooks","issue_events_url":"https://api.github.com/repos/kubernetes-incubator/client-python/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes-incubator/client-python/events","assignees_url":"https://api.github.com/repos/kubernetes-incubator/client-python/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes-incubator/client-python/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes-incubator/client-python/tags","blobs_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes-incubator/client-python/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes-incubator/client-python/languages","stargazers_url":"https://api.github.com/repos/kubernetes-incubator/client-python/stargazers","contributors_url":"https://api.github.com/repos/kubernetes-incubator/client-python/contributors","subscribers_url":"https://api.github.com/repos/kubernetes-incubator/client-python/subscribers","subscription_url":"https://api.github.com/repos/kubernetes-incubator/client-python/subscription","commits_url":"https://api.github.com/repos/kubernetes-incubator/client-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes-incubator/client-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes-incubator/client-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes-incubator/client-python/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes-incubator/client-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes-incubator/client-python/merges","archive_url":"https://api.github.com/repos/kubernetes-incubator/client-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes-incubator/client-python/downloads","issues_url":"https://api.github.com/repos/kubernetes-incubator/client-python/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes-incubator/client-python/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes-incubator/client-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes-incubator/client-python/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes-incubator/client-python/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes-incubator/client-python/deployments","created_at":"2016-10-31T20:08:03Z","updated_at":"2016-11-19T03:00:37Z","pushed_at":"2016-11-19T10:03:44Z","git_url":"git://github.com/kubernetes-incubator/client-python.git","ssh_url":"git@github.com:kubernetes-incubator/client-python.git","clone_url":"https://github.com/kubernetes-incubator/client-python.git","svn_url":"https://github.com/kubernetes-incubator/client-python","homepage":"http://kubernetes.io/","size":789,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":11,"forks":2,"open_issues":11,"watchers":6,"default_branch":"master"}},"base":{"label":"kubernetes-incubator:master","ref":"master","sha":"d466aa321aac68e2a6ed681c0be9285268681c75","user":{"login":"kubernetes-incubator","id":20862812,"avatar_url":"https://avatars.githubusercontent.com/u/20862812?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes-incubator","html_url":"https://github.com/kubernetes-incubator","followers_url":"https://api.github.com/users/kubernetes-incubator/followers","following_url":"https://api.github.com/users/kubernetes-incubator/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes-incubator/subscriptions","organizations_url":"https://api.github.com/users/kubernetes-incubator/orgs","repos_url":"https://api.github.com/users/kubernetes-incubator/repos","events_url":"https://api.github.com/users/kubernetes-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":72473727,"name":"client-python","full_name":"kubernetes-incubator/client-python","owner":{"login":"kubernetes-incubator","id":20862812,"avatar_url":"https://avatars.githubusercontent.com/u/20862812?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes-incubator","html_url":"https://github.com/kubernetes-incubator","followers_url":"https://api.github.com/users/kubernetes-incubator/followers","following_url":"https://api.github.com/users/kubernetes-incubator/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes-incubator/subscriptions","organizations_url":"https://api.github.com/users/kubernetes-incubator/orgs","repos_url":"https://api.github.com/users/kubernetes-incubator/repos","events_url":"https://api.github.com/users/kubernetes-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes-incubator/client-python","description":"Python clients for kubernetes","fork":false,"url":"https://api.github.com/repos/kubernetes-incubator/client-python","forks_url":"https://api.github.com/repos/kubernetes-incubator/client-python/forks","keys_url":"https://api.github.com/repos/kubernetes-incubator/client-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes-incubator/client-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes-incubator/client-python/teams","hooks_url":"https://api.github.com/repos/kubernetes-incubator/client-python/hooks","issue_events_url":"https://api.github.com/repos/kubernetes-incubator/client-python/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes-incubator/client-python/events","assignees_url":"https://api.github.com/repos/kubernetes-incubator/client-python/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes-incubator/client-python/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes-incubator/client-python/tags","blobs_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes-incubator/client-python/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes-incubator/client-python/languages","stargazers_url":"https://api.github.com/repos/kubernetes-incubator/client-python/stargazers","contributors_url":"https://api.github.com/repos/kubernetes-incubator/client-python/contributors","subscribers_url":"https://api.github.com/repos/kubernetes-incubator/client-python/subscribers","subscription_url":"https://api.github.com/repos/kubernetes-incubator/client-python/subscription","commits_url":"https://api.github.com/repos/kubernetes-incubator/client-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes-incubator/client-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes-incubator/client-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes-incubator/client-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes-incubator/client-python/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes-incubator/client-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes-incubator/client-python/merges","archive_url":"https://api.github.com/repos/kubernetes-incubator/client-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes-incubator/client-python/downloads","issues_url":"https://api.github.com/repos/kubernetes-incubator/client-python/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes-incubator/client-python/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes-incubator/client-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes-incubator/client-python/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes-incubator/client-python/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes-incubator/client-python/deployments","created_at":"2016-10-31T20:08:03Z","updated_at":"2016-11-19T03:00:37Z","pushed_at":"2016-11-19T10:03:44Z","git_url":"git://github.com/kubernetes-incubator/client-python.git","ssh_url":"git@github.com:kubernetes-incubator/client-python.git","clone_url":"https://github.com/kubernetes-incubator/client-python.git","svn_url":"https://github.com/kubernetes-incubator/client-python","homepage":"http://kubernetes.io/","size":789,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":11,"forks":2,"open_issues":11,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/9"},"html":{"href":"https://github.com/kubernetes-incubator/client-python/pull/9"},"issue":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/issues/9"},"comments":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes-incubator/client-python/statuses/8a4a042601d403d3255450a5a080849eef36d5e8"}}}}
{"actor":{"display_login":"mbohlool"}}