{"action":"created","comment":{"url":"https://api.github.com/repos/fog/fog-openstack/pulls/comments/55702512","id":55702512,"diff_hunk":"@@ -0,0 +1,39 @@\n+module Fog\n+  module Network\n+    class OpenStack\n+      class Real\n+        def update_vpn_service(vpn_service_id, options = {})\n+          data = { 'vpnservice' => {} }\n+\n+          vanilla_options = [:name, :description, :admin_state_up]\n+          vanilla_options.select{ |o| options.key?(o) }.each do |key|\n+            data['vpnservice'][key] = options[key]\n+          end\n+\n+          request(\n+            :body    => Fog::JSON.encode(data),\n+            :expects => 200,\n+            :method  => 'PUT',\n+            :path    => \"vpn/vpnservices/#{vpn_service_id}\"\n+          )\n+        end\n+      end\n+\n+      class Mock\n+        def update_vpn_service(vpn_service_id, options = {})\n+          response = Excon::Response.new\n+          if vpn_service = list_vpn_services.body['vpnservices'].find { |_| _['id'] == vpn_service_id }","path":"lib/fog/openstack/requests/network/update_vpn_service.rb","position":25,"original_position":25,"commit_id":"599ab03edff40c98c559a921ea1348905dbb0326","original_commit_id":"599ab03edff40c98c559a921ea1348905dbb0326","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Do not use prefix `_` for a variable that is used.<br>Prefer `detect` over `find`.","created_at":"2016-03-10T16:07:22Z","updated_at":"2016-03-10T16:07:22Z","html_url":"https://github.com/fog/fog-openstack/pull/34#discussion_r55702512","pull_request_url":"https://api.github.com/repos/fog/fog-openstack/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/fog/fog-openstack/pulls/comments/55702512"},"html":{"href":"https://github.com/fog/fog-openstack/pull/34#discussion_r55702512"},"pull_request":{"href":"https://api.github.com/repos/fog/fog-openstack/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/fog/fog-openstack/pulls/34","id":62203136,"html_url":"https://github.com/fog/fog-openstack/pull/34","diff_url":"https://github.com/fog/fog-openstack/pull/34.diff","patch_url":"https://github.com/fog/fog-openstack/pull/34.patch","issue_url":"https://api.github.com/repos/fog/fog-openstack/issues/34","number":34,"state":"open","locked":false,"title":"Integrate VPNaaS endpoints","user":{"login":"seanhandley","id":98526,"avatar_url":"https://avatars.githubusercontent.com/u/98526?v=3","gravatar_id":"","url":"https://api.github.com/users/seanhandley","html_url":"https://github.com/seanhandley","followers_url":"https://api.github.com/users/seanhandley/followers","following_url":"https://api.github.com/users/seanhandley/following{/other_user}","gists_url":"https://api.github.com/users/seanhandley/gists{/gist_id}","starred_url":"https://api.github.com/users/seanhandley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanhandley/subscriptions","organizations_url":"https://api.github.com/users/seanhandley/orgs","repos_url":"https://api.github.com/users/seanhandley/repos","events_url":"https://api.github.com/users/seanhandley/events{/privacy}","received_events_url":"https://api.github.com/users/seanhandley/received_events","type":"User","site_admin":false},"body":"- [x] VPN Services\r\n- [x] IKE Policies\r\n- [x] IPSec Policies\r\n- [x] IPSec Site Connections","created_at":"2016-03-09T09:51:51Z","updated_at":"2016-03-10T16:07:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13cd999c7ac2b42ab5fe9a596d5e6286351ff4bf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fog/fog-openstack/pulls/34/commits","review_comments_url":"https://api.github.com/repos/fog/fog-openstack/pulls/34/comments","review_comment_url":"https://api.github.com/repos/fog/fog-openstack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fog/fog-openstack/issues/34/comments","statuses_url":"https://api.github.com/repos/fog/fog-openstack/statuses/599ab03edff40c98c559a921ea1348905dbb0326","head":{"label":"fog:vpnaas","ref":"vpnaas","sha":"599ab03edff40c98c559a921ea1348905dbb0326","user":{"login":"fog","id":991149,"avatar_url":"https://avatars.githubusercontent.com/u/991149?v=3","gravatar_id":"","url":"https://api.github.com/users/fog","html_url":"https://github.com/fog","followers_url":"https://api.github.com/users/fog/followers","following_url":"https://api.github.com/users/fog/following{/other_user}","gists_url":"https://api.github.com/users/fog/gists{/gist_id}","starred_url":"https://api.github.com/users/fog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fog/subscriptions","organizations_url":"https://api.github.com/users/fog/orgs","repos_url":"https://api.github.com/users/fog/repos","events_url":"https://api.github.com/users/fog/events{/privacy}","received_events_url":"https://api.github.com/users/fog/received_events","type":"Organization","site_admin":false},"repo":{"id":52039406,"name":"fog-openstack","full_name":"fog/fog-openstack","owner":{"login":"fog","id":991149,"avatar_url":"https://avatars.githubusercontent.com/u/991149?v=3","gravatar_id":"","url":"https://api.github.com/users/fog","html_url":"https://github.com/fog","followers_url":"https://api.github.com/users/fog/followers","following_url":"https://api.github.com/users/fog/following{/other_user}","gists_url":"https://api.github.com/users/fog/gists{/gist_id}","starred_url":"https://api.github.com/users/fog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fog/subscriptions","organizations_url":"https://api.github.com/users/fog/orgs","repos_url":"https://api.github.com/users/fog/repos","events_url":"https://api.github.com/users/fog/events{/privacy}","received_events_url":"https://api.github.com/users/fog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fog/fog-openstack","description":"Fog for OpenStack Platform","fork":false,"url":"https://api.github.com/repos/fog/fog-openstack","forks_url":"https://api.github.com/repos/fog/fog-openstack/forks","keys_url":"https://api.github.com/repos/fog/fog-openstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fog/fog-openstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fog/fog-openstack/teams","hooks_url":"https://api.github.com/repos/fog/fog-openstack/hooks","issue_events_url":"https://api.github.com/repos/fog/fog-openstack/issues/events{/number}","events_url":"https://api.github.com/repos/fog/fog-openstack/events","assignees_url":"https://api.github.com/repos/fog/fog-openstack/assignees{/user}","branches_url":"https://api.github.com/repos/fog/fog-openstack/branches{/branch}","tags_url":"https://api.github.com/repos/fog/fog-openstack/tags","blobs_url":"https://api.github.com/repos/fog/fog-openstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fog/fog-openstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fog/fog-openstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/fog/fog-openstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fog/fog-openstack/statuses/{sha}","languages_url":"https://api.github.com/repos/fog/fog-openstack/languages","stargazers_url":"https://api.github.com/repos/fog/fog-openstack/stargazers","contributors_url":"https://api.github.com/repos/fog/fog-openstack/contributors","subscribers_url":"https://api.github.com/repos/fog/fog-openstack/subscribers","subscription_url":"https://api.github.com/repos/fog/fog-openstack/subscription","commits_url":"https://api.github.com/repos/fog/fog-openstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/fog/fog-openstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/fog/fog-openstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/fog/fog-openstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/fog/fog-openstack/contents/{+path}","compare_url":"https://api.github.com/repos/fog/fog-openstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fog/fog-openstack/merges","archive_url":"https://api.github.com/repos/fog/fog-openstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fog/fog-openstack/downloads","issues_url":"https://api.github.com/repos/fog/fog-openstack/issues{/number}","pulls_url":"https://api.github.com/repos/fog/fog-openstack/pulls{/number}","milestones_url":"https://api.github.com/repos/fog/fog-openstack/milestones{/number}","notifications_url":"https://api.github.com/repos/fog/fog-openstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fog/fog-openstack/labels{/name}","releases_url":"https://api.github.com/repos/fog/fog-openstack/releases{/id}","deployments_url":"https://api.github.com/repos/fog/fog-openstack/deployments","created_at":"2016-02-18T21:16:52Z","updated_at":"2016-03-01T12:52:18Z","pushed_at":"2016-03-10T16:06:59Z","git_url":"git://github.com/fog/fog-openstack.git","ssh_url":"git@github.com:fog/fog-openstack.git","clone_url":"https://github.com/fog/fog-openstack.git","svn_url":"https://github.com/fog/fog-openstack","homepage":"","size":482,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":2,"default_branch":"master"}},"base":{"label":"fog:master","ref":"master","sha":"643f73c3ba619092b9fb2d4888807e407f443730","user":{"login":"fog","id":991149,"avatar_url":"https://avatars.githubusercontent.com/u/991149?v=3","gravatar_id":"","url":"https://api.github.com/users/fog","html_url":"https://github.com/fog","followers_url":"https://api.github.com/users/fog/followers","following_url":"https://api.github.com/users/fog/following{/other_user}","gists_url":"https://api.github.com/users/fog/gists{/gist_id}","starred_url":"https://api.github.com/users/fog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fog/subscriptions","organizations_url":"https://api.github.com/users/fog/orgs","repos_url":"https://api.github.com/users/fog/repos","events_url":"https://api.github.com/users/fog/events{/privacy}","received_events_url":"https://api.github.com/users/fog/received_events","type":"Organization","site_admin":false},"repo":{"id":52039406,"name":"fog-openstack","full_name":"fog/fog-openstack","owner":{"login":"fog","id":991149,"avatar_url":"https://avatars.githubusercontent.com/u/991149?v=3","gravatar_id":"","url":"https://api.github.com/users/fog","html_url":"https://github.com/fog","followers_url":"https://api.github.com/users/fog/followers","following_url":"https://api.github.com/users/fog/following{/other_user}","gists_url":"https://api.github.com/users/fog/gists{/gist_id}","starred_url":"https://api.github.com/users/fog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fog/subscriptions","organizations_url":"https://api.github.com/users/fog/orgs","repos_url":"https://api.github.com/users/fog/repos","events_url":"https://api.github.com/users/fog/events{/privacy}","received_events_url":"https://api.github.com/users/fog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fog/fog-openstack","description":"Fog for OpenStack Platform","fork":false,"url":"https://api.github.com/repos/fog/fog-openstack","forks_url":"https://api.github.com/repos/fog/fog-openstack/forks","keys_url":"https://api.github.com/repos/fog/fog-openstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fog/fog-openstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fog/fog-openstack/teams","hooks_url":"https://api.github.com/repos/fog/fog-openstack/hooks","issue_events_url":"https://api.github.com/repos/fog/fog-openstack/issues/events{/number}","events_url":"https://api.github.com/repos/fog/fog-openstack/events","assignees_url":"https://api.github.com/repos/fog/fog-openstack/assignees{/user}","branches_url":"https://api.github.com/repos/fog/fog-openstack/branches{/branch}","tags_url":"https://api.github.com/repos/fog/fog-openstack/tags","blobs_url":"https://api.github.com/repos/fog/fog-openstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fog/fog-openstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fog/fog-openstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/fog/fog-openstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fog/fog-openstack/statuses/{sha}","languages_url":"https://api.github.com/repos/fog/fog-openstack/languages","stargazers_url":"https://api.github.com/repos/fog/fog-openstack/stargazers","contributors_url":"https://api.github.com/repos/fog/fog-openstack/contributors","subscribers_url":"https://api.github.com/repos/fog/fog-openstack/subscribers","subscription_url":"https://api.github.com/repos/fog/fog-openstack/subscription","commits_url":"https://api.github.com/repos/fog/fog-openstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/fog/fog-openstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/fog/fog-openstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/fog/fog-openstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/fog/fog-openstack/contents/{+path}","compare_url":"https://api.github.com/repos/fog/fog-openstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fog/fog-openstack/merges","archive_url":"https://api.github.com/repos/fog/fog-openstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fog/fog-openstack/downloads","issues_url":"https://api.github.com/repos/fog/fog-openstack/issues{/number}","pulls_url":"https://api.github.com/repos/fog/fog-openstack/pulls{/number}","milestones_url":"https://api.github.com/repos/fog/fog-openstack/milestones{/number}","notifications_url":"https://api.github.com/repos/fog/fog-openstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fog/fog-openstack/labels{/name}","releases_url":"https://api.github.com/repos/fog/fog-openstack/releases{/id}","deployments_url":"https://api.github.com/repos/fog/fog-openstack/deployments","created_at":"2016-02-18T21:16:52Z","updated_at":"2016-03-01T12:52:18Z","pushed_at":"2016-03-10T16:06:59Z","git_url":"git://github.com/fog/fog-openstack.git","ssh_url":"git@github.com:fog/fog-openstack.git","clone_url":"https://github.com/fog/fog-openstack.git","svn_url":"https://github.com/fog/fog-openstack","homepage":"","size":482,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fog/fog-openstack/pulls/34"},"html":{"href":"https://github.com/fog/fog-openstack/pull/34"},"issue":{"href":"https://api.github.com/repos/fog/fog-openstack/issues/34"},"comments":{"href":"https://api.github.com/repos/fog/fog-openstack/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/fog/fog-openstack/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/fog/fog-openstack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fog/fog-openstack/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/fog/fog-openstack/statuses/599ab03edff40c98c559a921ea1348905dbb0326"}}}}