{"action":"created","comment":{"url":"https://api.github.com/repos/eayunstack/python-neutronclient/pulls/comments/36263571","id":36263571,"diff_hunk":"@@ -0,0 +1,87 @@\n+# Copyright 2012 OpenStack Foundation.\n+# All Rights Reserved\n+#\n+#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n+#    not use this file except in compliance with the License. You may obtain\n+#    a copy of the License at\n+#\n+#         http://www.apache.org/licenses/LICENSE-2.0\n+#\n+#    Unless required by applicable law or agreed to in writing, software\n+#    distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n+#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n+#    License for the specific language governing permissions and limitations\n+#    under the License.\n+#\n+\n+from neutronclient.neutron import v2_0 as neutronV20\n+from neutronclient.i18n import _\n+\n+\n+class Listportmapping(neutronV20.ListCommand):\n+    \"\"\"List portmappingtable\"\"\"\n+\n+    resoure = \"portmapping\"\n+    list_columns = ['status', 'router_id', 'destination_ip', 'protocol',\n+                    'name', 'admin_state_up', 'tenant_id', 'destination_port',\n+                    'router_port', 'id']\n+    pagination_support = True\n+    sorting_support = True\n+\n+\n+class Showportmapping(neutronV20.ShowCommand):\n+    \"\"\"show information of given portmappings\"\"\"","path":"neutronclient/neutron/v2_0/portmapping_client.py","position":33,"original_position":33,"commit_id":"8202365278b92024f9513a7095a16f3dbbf5e3cc","original_commit_id":"8202365278b92024f9513a7095a16f3dbbf5e3cc","user":{"login":"huntxu","id":137809,"avatar_url":"https://avatars.githubusercontent.com/u/137809?v=3","gravatar_id":"","url":"https://api.github.com/users/huntxu","html_url":"https://github.com/huntxu","followers_url":"https://api.github.com/users/huntxu/followers","following_url":"https://api.github.com/users/huntxu/following{/other_user}","gists_url":"https://api.github.com/users/huntxu/gists{/gist_id}","starred_url":"https://api.github.com/users/huntxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huntxu/subscriptions","organizations_url":"https://api.github.com/users/huntxu/orgs","repos_url":"https://api.github.com/users/huntxu/repos","events_url":"https://api.github.com/users/huntxu/events{/privacy}","received_events_url":"https://api.github.com/users/huntxu/received_events","type":"User","site_admin":false},"body":"Show information of a given portmapping.","created_at":"2015-08-05T02:05:25Z","updated_at":"2015-08-05T02:05:25Z","html_url":"https://github.com/eayunstack/python-neutronclient/pull/5#discussion_r36263571","pull_request_url":"https://api.github.com/repos/eayunstack/python-neutronclient/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/eayunstack/python-neutronclient/pulls/comments/36263571"},"html":{"href":"https://github.com/eayunstack/python-neutronclient/pull/5#discussion_r36263571"},"pull_request":{"href":"https://api.github.com/repos/eayunstack/python-neutronclient/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/eayunstack/python-neutronclient/pulls/5","id":41324955,"html_url":"https://github.com/eayunstack/python-neutronclient/pull/5","diff_url":"https://github.com/eayunstack/python-neutronclient/pull/5.diff","patch_url":"https://github.com/eayunstack/python-neutronclient/pull/5.patch","issue_url":"https://api.github.com/repos/eayunstack/python-neutronclient/issues/5","number":5,"state":"open","locked":false,"title":"Portmapping client","user":{"login":"chenyanfun","id":11586091,"avatar_url":"https://avatars.githubusercontent.com/u/11586091?v=3","gravatar_id":"","url":"https://api.github.com/users/chenyanfun","html_url":"https://github.com/chenyanfun","followers_url":"https://api.github.com/users/chenyanfun/followers","following_url":"https://api.github.com/users/chenyanfun/following{/other_user}","gists_url":"https://api.github.com/users/chenyanfun/gists{/gist_id}","starred_url":"https://api.github.com/users/chenyanfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenyanfun/subscriptions","organizations_url":"https://api.github.com/users/chenyanfun/orgs","repos_url":"https://api.github.com/users/chenyanfun/repos","events_url":"https://api.github.com/users/chenyanfun/events{/privacy}","received_events_url":"https://api.github.com/users/chenyanfun/received_events","type":"User","site_admin":false},"body":"add portmapping-client.py ","created_at":"2015-07-31T10:05:04Z","updated_at":"2015-08-05T02:05:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96154dcedaf11b7371f4e7e437b0886c6434843a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eayunstack/python-neutronclient/pulls/5/commits","review_comments_url":"https://api.github.com/repos/eayunstack/python-neutronclient/pulls/5/comments","review_comment_url":"https://api.github.com/repos/eayunstack/python-neutronclient/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eayunstack/python-neutronclient/issues/5/comments","statuses_url":"https://api.github.com/repos/eayunstack/python-neutronclient/statuses/8202365278b92024f9513a7095a16f3dbbf5e3cc","head":{"label":"chenyanfun:portmapping-client","ref":"portmapping-client","sha":"8202365278b92024f9513a7095a16f3dbbf5e3cc","user":{"login":"chenyanfun","id":11586091,"avatar_url":"https://avatars.githubusercontent.com/u/11586091?v=3","gravatar_id":"","url":"https://api.github.com/users/chenyanfun","html_url":"https://github.com/chenyanfun","followers_url":"https://api.github.com/users/chenyanfun/followers","following_url":"https://api.github.com/users/chenyanfun/following{/other_user}","gists_url":"https://api.github.com/users/chenyanfun/gists{/gist_id}","starred_url":"https://api.github.com/users/chenyanfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenyanfun/subscriptions","organizations_url":"https://api.github.com/users/chenyanfun/orgs","repos_url":"https://api.github.com/users/chenyanfun/repos","events_url":"https://api.github.com/users/chenyanfun/events{/privacy}","received_events_url":"https://api.github.com/users/chenyanfun/received_events","type":"User","site_admin":false},"repo":{"id":39985702,"name":"python-neutronclient","full_name":"chenyanfun/python-neutronclient","owner":{"login":"chenyanfun","id":11586091,"avatar_url":"https://avatars.githubusercontent.com/u/11586091?v=3","gravatar_id":"","url":"https://api.github.com/users/chenyanfun","html_url":"https://github.com/chenyanfun","followers_url":"https://api.github.com/users/chenyanfun/followers","following_url":"https://api.github.com/users/chenyanfun/following{/other_user}","gists_url":"https://api.github.com/users/chenyanfun/gists{/gist_id}","starred_url":"https://api.github.com/users/chenyanfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenyanfun/subscriptions","organizations_url":"https://api.github.com/users/chenyanfun/orgs","repos_url":"https://api.github.com/users/chenyanfun/repos","events_url":"https://api.github.com/users/chenyanfun/events{/privacy}","received_events_url":"https://api.github.com/users/chenyanfun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chenyanfun/python-neutronclient","description":"Python API Library for Quantum","fork":true,"url":"https://api.github.com/repos/chenyanfun/python-neutronclient","forks_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/forks","keys_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/teams","hooks_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/hooks","issue_events_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/issues/events{/number}","events_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/events","assignees_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/assignees{/user}","branches_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/branches{/branch}","tags_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/tags","blobs_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/statuses/{sha}","languages_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/languages","stargazers_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/stargazers","contributors_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/contributors","subscribers_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/subscribers","subscription_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/subscription","commits_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/contents/{+path}","compare_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/merges","archive_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/downloads","issues_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/issues{/number}","pulls_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/pulls{/number}","milestones_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/milestones{/number}","notifications_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/labels{/name}","releases_url":"https://api.github.com/repos/chenyanfun/python-neutronclient/releases{/id}","created_at":"2015-07-31T03:57:21Z","updated_at":"2015-07-31T03:57:22Z","pushed_at":"2015-08-04T10:28:03Z","git_url":"git://github.com/chenyanfun/python-neutronclient.git","ssh_url":"git@github.com:chenyanfun/python-neutronclient.git","clone_url":"https://github.com/chenyanfun/python-neutronclient.git","svn_url":"https://github.com/chenyanfun/python-neutronclient","homepage":"http://openstack.org","size":2209,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"eayunstack:master","ref":"master","sha":"6c512446b13cdb4ab4191e940dda8d5b2c976e52","user":{"login":"eayunstack","id":8656371,"avatar_url":"https://avatars.githubusercontent.com/u/8656371?v=3","gravatar_id":"","url":"https://api.github.com/users/eayunstack","html_url":"https://github.com/eayunstack","followers_url":"https://api.github.com/users/eayunstack/followers","following_url":"https://api.github.com/users/eayunstack/following{/other_user}","gists_url":"https://api.github.com/users/eayunstack/gists{/gist_id}","starred_url":"https://api.github.com/users/eayunstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eayunstack/subscriptions","organizations_url":"https://api.github.com/users/eayunstack/orgs","repos_url":"https://api.github.com/users/eayunstack/repos","events_url":"https://api.github.com/users/eayunstack/events{/privacy}","received_events_url":"https://api.github.com/users/eayunstack/received_events","type":"Organization","site_admin":false},"repo":{"id":35150246,"name":"python-neutronclient","full_name":"eayunstack/python-neutronclient","owner":{"login":"eayunstack","id":8656371,"avatar_url":"https://avatars.githubusercontent.com/u/8656371?v=3","gravatar_id":"","url":"https://api.github.com/users/eayunstack","html_url":"https://github.com/eayunstack","followers_url":"https://api.github.com/users/eayunstack/followers","following_url":"https://api.github.com/users/eayunstack/following{/other_user}","gists_url":"https://api.github.com/users/eayunstack/gists{/gist_id}","starred_url":"https://api.github.com/users/eayunstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eayunstack/subscriptions","organizations_url":"https://api.github.com/users/eayunstack/orgs","repos_url":"https://api.github.com/users/eayunstack/repos","events_url":"https://api.github.com/users/eayunstack/events{/privacy}","received_events_url":"https://api.github.com/users/eayunstack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eayunstack/python-neutronclient","description":"Python API Library for Quantum","fork":true,"url":"https://api.github.com/repos/eayunstack/python-neutronclient","forks_url":"https://api.github.com/repos/eayunstack/python-neutronclient/forks","keys_url":"https://api.github.com/repos/eayunstack/python-neutronclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eayunstack/python-neutronclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eayunstack/python-neutronclient/teams","hooks_url":"https://api.github.com/repos/eayunstack/python-neutronclient/hooks","issue_events_url":"https://api.github.com/repos/eayunstack/python-neutronclient/issues/events{/number}","events_url":"https://api.github.com/repos/eayunstack/python-neutronclient/events","assignees_url":"https://api.github.com/repos/eayunstack/python-neutronclient/assignees{/user}","branches_url":"https://api.github.com/repos/eayunstack/python-neutronclient/branches{/branch}","tags_url":"https://api.github.com/repos/eayunstack/python-neutronclient/tags","blobs_url":"https://api.github.com/repos/eayunstack/python-neutronclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eayunstack/python-neutronclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eayunstack/python-neutronclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/eayunstack/python-neutronclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eayunstack/python-neutronclient/statuses/{sha}","languages_url":"https://api.github.com/repos/eayunstack/python-neutronclient/languages","stargazers_url":"https://api.github.com/repos/eayunstack/python-neutronclient/stargazers","contributors_url":"https://api.github.com/repos/eayunstack/python-neutronclient/contributors","subscribers_url":"https://api.github.com/repos/eayunstack/python-neutronclient/subscribers","subscription_url":"https://api.github.com/repos/eayunstack/python-neutronclient/subscription","commits_url":"https://api.github.com/repos/eayunstack/python-neutronclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/eayunstack/python-neutronclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/eayunstack/python-neutronclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/eayunstack/python-neutronclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/eayunstack/python-neutronclient/contents/{+path}","compare_url":"https://api.github.com/repos/eayunstack/python-neutronclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eayunstack/python-neutronclient/merges","archive_url":"https://api.github.com/repos/eayunstack/python-neutronclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eayunstack/python-neutronclient/downloads","issues_url":"https://api.github.com/repos/eayunstack/python-neutronclient/issues{/number}","pulls_url":"https://api.github.com/repos/eayunstack/python-neutronclient/pulls{/number}","milestones_url":"https://api.github.com/repos/eayunstack/python-neutronclient/milestones{/number}","notifications_url":"https://api.github.com/repos/eayunstack/python-neutronclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eayunstack/python-neutronclient/labels{/name}","releases_url":"https://api.github.com/repos/eayunstack/python-neutronclient/releases{/id}","created_at":"2015-05-06T09:14:22Z","updated_at":"2015-05-06T09:14:24Z","pushed_at":"2015-08-04T10:28:03Z","git_url":"git://github.com/eayunstack/python-neutronclient.git","ssh_url":"git@github.com:eayunstack/python-neutronclient.git","clone_url":"https://github.com/eayunstack/python-neutronclient.git","svn_url":"https://github.com/eayunstack/python-neutronclient","homepage":"http://openstack.org","size":2408,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eayunstack/python-neutronclient/pulls/5"},"html":{"href":"https://github.com/eayunstack/python-neutronclient/pull/5"},"issue":{"href":"https://api.github.com/repos/eayunstack/python-neutronclient/issues/5"},"comments":{"href":"https://api.github.com/repos/eayunstack/python-neutronclient/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/eayunstack/python-neutronclient/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/eayunstack/python-neutronclient/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eayunstack/python-neutronclient/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/eayunstack/python-neutronclient/statuses/8202365278b92024f9513a7095a16f3dbbf5e3cc"}}}}