{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/comments/47317510","id":47317510,"diff_hunk":"@@ -55,6 +56,8 @@ class Connection(object):\n     object will also need to be able to add a bearer token to API\n     requests and handle token refresh on 401 errors.\n \n+    A custom `http` object will also need to ensure its own thread safety.","path":"gcloud/connection.py","position":12,"original_position":12,"commit_id":"363dcda9e8ef5b216a04b72b71ad622c7dab7ff4","original_commit_id":"31e659893f6e898d507b0ef9482ff286433dec03","user":{"login":"jonparrott","id":250995,"avatar_url":"https://avatars.githubusercontent.com/u/250995?v=3","gravatar_id":"","url":"https://api.github.com/users/jonparrott","html_url":"https://github.com/jonparrott","followers_url":"https://api.github.com/users/jonparrott/followers","following_url":"https://api.github.com/users/jonparrott/following{/other_user}","gists_url":"https://api.github.com/users/jonparrott/gists{/gist_id}","starred_url":"https://api.github.com/users/jonparrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonparrott/subscriptions","organizations_url":"https://api.github.com/users/jonparrott/orgs","repos_url":"https://api.github.com/users/jonparrott/repos","events_url":"https://api.github.com/users/jonparrott/events{/privacy}","received_events_url":"https://api.github.com/users/jonparrott/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2015-12-11T03:02:19Z","updated_at":"2015-12-11T03:02:19Z","html_url":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/1274#discussion_r47317510","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/1274","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/comments/47317510"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/1274#discussion_r47317510"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/1274"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/1274","id":53072348,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/1274","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/1274.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/1274.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/1274","number":1274,"state":"open","locked":false,"title":"Make connection return a thread-local instance of http.","user":{"login":"jonparrott","id":250995,"avatar_url":"https://avatars.githubusercontent.com/u/250995?v=3","gravatar_id":"","url":"https://api.github.com/users/jonparrott","html_url":"https://github.com/jonparrott","followers_url":"https://api.github.com/users/jonparrott/followers","following_url":"https://api.github.com/users/jonparrott/following{/other_user}","gists_url":"https://api.github.com/users/jonparrott/gists{/gist_id}","starred_url":"https://api.github.com/users/jonparrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonparrott/subscriptions","organizations_url":"https://api.github.com/users/jonparrott/orgs","repos_url":"https://api.github.com/users/jonparrott/repos","events_url":"https://api.github.com/users/jonparrott/events{/privacy}","received_events_url":"https://api.github.com/users/jonparrott/received_events","type":"User","site_admin":false},"body":"Fixes #926, and opens up the possibility of using an object pool later.","created_at":"2015-12-09T03:26:48Z","updated_at":"2015-12-11T03:02:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a54a17393c8c9e82805eabb0ee5f7441907f623c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/1274/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/1274/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/1274/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/statuses/363dcda9e8ef5b216a04b72b71ad622c7dab7ff4","head":{"label":"jonparrott:threadsafe-connection","ref":"threadsafe-connection","sha":"363dcda9e8ef5b216a04b72b71ad622c7dab7ff4","user":{"login":"jonparrott","id":250995,"avatar_url":"https://avatars.githubusercontent.com/u/250995?v=3","gravatar_id":"","url":"https://api.github.com/users/jonparrott","html_url":"https://github.com/jonparrott","followers_url":"https://api.github.com/users/jonparrott/followers","following_url":"https://api.github.com/users/jonparrott/following{/other_user}","gists_url":"https://api.github.com/users/jonparrott/gists{/gist_id}","starred_url":"https://api.github.com/users/jonparrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonparrott/subscriptions","organizations_url":"https://api.github.com/users/jonparrott/orgs","repos_url":"https://api.github.com/users/jonparrott/repos","events_url":"https://api.github.com/users/jonparrott/events{/privacy}","received_events_url":"https://api.github.com/users/jonparrott/received_events","type":"User","site_admin":false},"repo":{"id":43107138,"name":"gcloud-python","full_name":"jonparrott/gcloud-python","owner":{"login":"jonparrott","id":250995,"avatar_url":"https://avatars.githubusercontent.com/u/250995?v=3","gravatar_id":"","url":"https://api.github.com/users/jonparrott","html_url":"https://github.com/jonparrott","followers_url":"https://api.github.com/users/jonparrott/followers","following_url":"https://api.github.com/users/jonparrott/following{/other_user}","gists_url":"https://api.github.com/users/jonparrott/gists{/gist_id}","starred_url":"https://api.github.com/users/jonparrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonparrott/subscriptions","organizations_url":"https://api.github.com/users/jonparrott/orgs","repos_url":"https://api.github.com/users/jonparrott/repos","events_url":"https://api.github.com/users/jonparrott/events{/privacy}","received_events_url":"https://api.github.com/users/jonparrott/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonparrott/gcloud-python","description":"Google Cloud Client Library for Python","fork":true,"url":"https://api.github.com/repos/jonparrott/gcloud-python","forks_url":"https://api.github.com/repos/jonparrott/gcloud-python/forks","keys_url":"https://api.github.com/repos/jonparrott/gcloud-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonparrott/gcloud-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonparrott/gcloud-python/teams","hooks_url":"https://api.github.com/repos/jonparrott/gcloud-python/hooks","issue_events_url":"https://api.github.com/repos/jonparrott/gcloud-python/issues/events{/number}","events_url":"https://api.github.com/repos/jonparrott/gcloud-python/events","assignees_url":"https://api.github.com/repos/jonparrott/gcloud-python/assignees{/user}","branches_url":"https://api.github.com/repos/jonparrott/gcloud-python/branches{/branch}","tags_url":"https://api.github.com/repos/jonparrott/gcloud-python/tags","blobs_url":"https://api.github.com/repos/jonparrott/gcloud-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonparrott/gcloud-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonparrott/gcloud-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonparrott/gcloud-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonparrott/gcloud-python/statuses/{sha}","languages_url":"https://api.github.com/repos/jonparrott/gcloud-python/languages","stargazers_url":"https://api.github.com/repos/jonparrott/gcloud-python/stargazers","contributors_url":"https://api.github.com/repos/jonparrott/gcloud-python/contributors","subscribers_url":"https://api.github.com/repos/jonparrott/gcloud-python/subscribers","subscription_url":"https://api.github.com/repos/jonparrott/gcloud-python/subscription","commits_url":"https://api.github.com/repos/jonparrott/gcloud-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonparrott/gcloud-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonparrott/gcloud-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonparrott/gcloud-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonparrott/gcloud-python/contents/{+path}","compare_url":"https://api.github.com/repos/jonparrott/gcloud-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonparrott/gcloud-python/merges","archive_url":"https://api.github.com/repos/jonparrott/gcloud-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonparrott/gcloud-python/downloads","issues_url":"https://api.github.com/repos/jonparrott/gcloud-python/issues{/number}","pulls_url":"https://api.github.com/repos/jonparrott/gcloud-python/pulls{/number}","milestones_url":"https://api.github.com/repos/jonparrott/gcloud-python/milestones{/number}","notifications_url":"https://api.github.com/repos/jonparrott/gcloud-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonparrott/gcloud-python/labels{/name}","releases_url":"https://api.github.com/repos/jonparrott/gcloud-python/releases{/id}","created_at":"2015-09-25T03:18:45Z","updated_at":"2015-09-25T03:18:49Z","pushed_at":"2015-12-11T03:01:41Z","git_url":"git://github.com/jonparrott/gcloud-python.git","ssh_url":"git@github.com:jonparrott/gcloud-python.git","clone_url":"https://github.com/jonparrott/gcloud-python.git","svn_url":"https://github.com/jonparrott/gcloud-python","homepage":"https://googlecloudplatform.github.io/gcloud-python/","size":36147,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"d6820b91788adcb11aee119349b1489123c12e9f","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":16316451,"name":"gcloud-python","full_name":"GoogleCloudPlatform/gcloud-python","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-python","description":"Google Cloud Client Library for Python","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/releases{/id}","created_at":"2014-01-28T15:51:47Z","updated_at":"2015-12-10T18:03:46Z","pushed_at":"2015-12-11T03:01:42Z","git_url":"git://github.com/GoogleCloudPlatform/gcloud-python.git","ssh_url":"git@github.com:GoogleCloudPlatform/gcloud-python.git","clone_url":"https://github.com/GoogleCloudPlatform/gcloud-python.git","svn_url":"https://github.com/GoogleCloudPlatform/gcloud-python","homepage":"https://googlecloudplatform.github.io/gcloud-python/","size":40747,"stargazers_count":217,"watchers_count":217,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":122,"mirror_url":null,"open_issues_count":117,"forks":122,"open_issues":117,"watchers":217,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/1274"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/1274"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/1274"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/1274/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/1274/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/1274/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/statuses/363dcda9e8ef5b216a04b72b71ad622c7dab7ff4"}}}}