{"action":"created","comment":{"url":"https://api.github.com/repos/google/oauth2client/pulls/comments/50178095","id":50178095,"diff_hunk":"@@ -108,6 +112,29 @@ def serialization_data(self):\n             'private_key': self._private_key_pkcs8_text\n         }\n \n+    def to_json(self):\n+        strip = (['_private_key'] + self.NON_SERIALIZED_MEMBERS)","path":"oauth2client/service_account.py","position":null,"original_position":27,"commit_id":"2e7afd9b9e0404994fd27b60d21d71242e1e42cd","original_commit_id":"59fa8c4e20a574b7e349d9462d029487081dae86","user":{"login":"dlorenc","id":1714486,"avatar_url":"https://avatars.githubusercontent.com/u/1714486?v=3","gravatar_id":"","url":"https://api.github.com/users/dlorenc","html_url":"https://github.com/dlorenc","followers_url":"https://api.github.com/users/dlorenc/followers","following_url":"https://api.github.com/users/dlorenc/following{/other_user}","gists_url":"https://api.github.com/users/dlorenc/gists{/gist_id}","starred_url":"https://api.github.com/users/dlorenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlorenc/subscriptions","organizations_url":"https://api.github.com/users/dlorenc/orgs","repos_url":"https://api.github.com/users/dlorenc/repos","events_url":"https://api.github.com/users/dlorenc/events{/privacy}","received_events_url":"https://api.github.com/users/dlorenc/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2016-01-19T21:27:38Z","updated_at":"2016-01-19T21:27:38Z","html_url":"https://github.com/google/oauth2client/pull/385#discussion_r50178095","pull_request_url":"https://api.github.com/repos/google/oauth2client/pulls/385","_links":{"self":{"href":"https://api.github.com/repos/google/oauth2client/pulls/comments/50178095"},"html":{"href":"https://github.com/google/oauth2client/pull/385#discussion_r50178095"},"pull_request":{"href":"https://api.github.com/repos/google/oauth2client/pulls/385"}}},"pull_request":{"url":"https://api.github.com/repos/google/oauth2client/pulls/385","id":56524863,"html_url":"https://github.com/google/oauth2client/pull/385","diff_url":"https://github.com/google/oauth2client/pull/385.diff","patch_url":"https://github.com/google/oauth2client/pull/385.patch","issue_url":"https://api.github.com/repos/google/oauth2client/issues/385","number":385,"state":"open","locked":false,"title":"Add to/from json methods to Credentials classes","user":{"login":"dlorenc","id":1714486,"avatar_url":"https://avatars.githubusercontent.com/u/1714486?v=3","gravatar_id":"","url":"https://api.github.com/users/dlorenc","html_url":"https://github.com/dlorenc","followers_url":"https://api.github.com/users/dlorenc/followers","following_url":"https://api.github.com/users/dlorenc/following{/other_user}","gists_url":"https://api.github.com/users/dlorenc/gists{/gist_id}","starred_url":"https://api.github.com/users/dlorenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlorenc/subscriptions","organizations_url":"https://api.github.com/users/dlorenc/orgs","repos_url":"https://api.github.com/users/dlorenc/repos","events_url":"https://api.github.com/users/dlorenc/events{/privacy}","received_events_url":"https://api.github.com/users/dlorenc/received_events","type":"User","site_admin":false},"body":"This adds to_json and from_json methods to GoogleCredentials\r\nand _ServiceAccountCredentials classes. This allows them to\r\nbe serialized by multistore_file.\r\n\r\nResovles: #384","created_at":"2016-01-19T21:01:08Z","updated_at":"2016-01-19T21:27:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b7b83be8b03858d44457a02acef686aae9cedd51","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/google/oauth2client/pulls/385/commits","review_comments_url":"https://api.github.com/repos/google/oauth2client/pulls/385/comments","review_comment_url":"https://api.github.com/repos/google/oauth2client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/oauth2client/issues/385/comments","statuses_url":"https://api.github.com/repos/google/oauth2client/statuses/2e7afd9b9e0404994fd27b60d21d71242e1e42cd","head":{"label":"dlorenc:master","ref":"master","sha":"2e7afd9b9e0404994fd27b60d21d71242e1e42cd","user":{"login":"dlorenc","id":1714486,"avatar_url":"https://avatars.githubusercontent.com/u/1714486?v=3","gravatar_id":"","url":"https://api.github.com/users/dlorenc","html_url":"https://github.com/dlorenc","followers_url":"https://api.github.com/users/dlorenc/followers","following_url":"https://api.github.com/users/dlorenc/following{/other_user}","gists_url":"https://api.github.com/users/dlorenc/gists{/gist_id}","starred_url":"https://api.github.com/users/dlorenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlorenc/subscriptions","organizations_url":"https://api.github.com/users/dlorenc/orgs","repos_url":"https://api.github.com/users/dlorenc/repos","events_url":"https://api.github.com/users/dlorenc/events{/privacy}","received_events_url":"https://api.github.com/users/dlorenc/received_events","type":"User","site_admin":false},"repo":{"id":49969895,"name":"oauth2client","full_name":"dlorenc/oauth2client","owner":{"login":"dlorenc","id":1714486,"avatar_url":"https://avatars.githubusercontent.com/u/1714486?v=3","gravatar_id":"","url":"https://api.github.com/users/dlorenc","html_url":"https://github.com/dlorenc","followers_url":"https://api.github.com/users/dlorenc/followers","following_url":"https://api.github.com/users/dlorenc/following{/other_user}","gists_url":"https://api.github.com/users/dlorenc/gists{/gist_id}","starred_url":"https://api.github.com/users/dlorenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlorenc/subscriptions","organizations_url":"https://api.github.com/users/dlorenc/orgs","repos_url":"https://api.github.com/users/dlorenc/repos","events_url":"https://api.github.com/users/dlorenc/events{/privacy}","received_events_url":"https://api.github.com/users/dlorenc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dlorenc/oauth2client","description":"This is a Python library for accessing resources protected by OAuth 2.0.","fork":true,"url":"https://api.github.com/repos/dlorenc/oauth2client","forks_url":"https://api.github.com/repos/dlorenc/oauth2client/forks","keys_url":"https://api.github.com/repos/dlorenc/oauth2client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dlorenc/oauth2client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dlorenc/oauth2client/teams","hooks_url":"https://api.github.com/repos/dlorenc/oauth2client/hooks","issue_events_url":"https://api.github.com/repos/dlorenc/oauth2client/issues/events{/number}","events_url":"https://api.github.com/repos/dlorenc/oauth2client/events","assignees_url":"https://api.github.com/repos/dlorenc/oauth2client/assignees{/user}","branches_url":"https://api.github.com/repos/dlorenc/oauth2client/branches{/branch}","tags_url":"https://api.github.com/repos/dlorenc/oauth2client/tags","blobs_url":"https://api.github.com/repos/dlorenc/oauth2client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dlorenc/oauth2client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dlorenc/oauth2client/git/refs{/sha}","trees_url":"https://api.github.com/repos/dlorenc/oauth2client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dlorenc/oauth2client/statuses/{sha}","languages_url":"https://api.github.com/repos/dlorenc/oauth2client/languages","stargazers_url":"https://api.github.com/repos/dlorenc/oauth2client/stargazers","contributors_url":"https://api.github.com/repos/dlorenc/oauth2client/contributors","subscribers_url":"https://api.github.com/repos/dlorenc/oauth2client/subscribers","subscription_url":"https://api.github.com/repos/dlorenc/oauth2client/subscription","commits_url":"https://api.github.com/repos/dlorenc/oauth2client/commits{/sha}","git_commits_url":"https://api.github.com/repos/dlorenc/oauth2client/git/commits{/sha}","comments_url":"https://api.github.com/repos/dlorenc/oauth2client/comments{/number}","issue_comment_url":"https://api.github.com/repos/dlorenc/oauth2client/issues/comments{/number}","contents_url":"https://api.github.com/repos/dlorenc/oauth2client/contents/{+path}","compare_url":"https://api.github.com/repos/dlorenc/oauth2client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dlorenc/oauth2client/merges","archive_url":"https://api.github.com/repos/dlorenc/oauth2client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dlorenc/oauth2client/downloads","issues_url":"https://api.github.com/repos/dlorenc/oauth2client/issues{/number}","pulls_url":"https://api.github.com/repos/dlorenc/oauth2client/pulls{/number}","milestones_url":"https://api.github.com/repos/dlorenc/oauth2client/milestones{/number}","notifications_url":"https://api.github.com/repos/dlorenc/oauth2client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dlorenc/oauth2client/labels{/name}","releases_url":"https://api.github.com/repos/dlorenc/oauth2client/releases{/id}","created_at":"2016-01-19T17:27:33Z","updated_at":"2016-01-19T17:27:35Z","pushed_at":"2016-01-19T21:27:07Z","git_url":"git://github.com/dlorenc/oauth2client.git","ssh_url":"git@github.com:dlorenc/oauth2client.git","clone_url":"https://github.com/dlorenc/oauth2client.git","svn_url":"https://github.com/dlorenc/oauth2client","homepage":"","size":23263,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"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":"google:master","ref":"master","sha":"8f8df1f5977ec76d50cb3dca9a31044cfd1fb9b4","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":14211461,"name":"oauth2client","full_name":"google/oauth2client","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/oauth2client","description":"This is a Python library for accessing resources protected by OAuth 2.0.","fork":false,"url":"https://api.github.com/repos/google/oauth2client","forks_url":"https://api.github.com/repos/google/oauth2client/forks","keys_url":"https://api.github.com/repos/google/oauth2client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/oauth2client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/oauth2client/teams","hooks_url":"https://api.github.com/repos/google/oauth2client/hooks","issue_events_url":"https://api.github.com/repos/google/oauth2client/issues/events{/number}","events_url":"https://api.github.com/repos/google/oauth2client/events","assignees_url":"https://api.github.com/repos/google/oauth2client/assignees{/user}","branches_url":"https://api.github.com/repos/google/oauth2client/branches{/branch}","tags_url":"https://api.github.com/repos/google/oauth2client/tags","blobs_url":"https://api.github.com/repos/google/oauth2client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/oauth2client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/oauth2client/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/oauth2client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/oauth2client/statuses/{sha}","languages_url":"https://api.github.com/repos/google/oauth2client/languages","stargazers_url":"https://api.github.com/repos/google/oauth2client/stargazers","contributors_url":"https://api.github.com/repos/google/oauth2client/contributors","subscribers_url":"https://api.github.com/repos/google/oauth2client/subscribers","subscription_url":"https://api.github.com/repos/google/oauth2client/subscription","commits_url":"https://api.github.com/repos/google/oauth2client/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/oauth2client/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/oauth2client/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/oauth2client/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/oauth2client/contents/{+path}","compare_url":"https://api.github.com/repos/google/oauth2client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/oauth2client/merges","archive_url":"https://api.github.com/repos/google/oauth2client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/oauth2client/downloads","issues_url":"https://api.github.com/repos/google/oauth2client/issues{/number}","pulls_url":"https://api.github.com/repos/google/oauth2client/pulls{/number}","milestones_url":"https://api.github.com/repos/google/oauth2client/milestones{/number}","notifications_url":"https://api.github.com/repos/google/oauth2client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/oauth2client/labels{/name}","releases_url":"https://api.github.com/repos/google/oauth2client/releases{/id}","created_at":"2013-11-07T18:03:04Z","updated_at":"2016-01-19T19:55:44Z","pushed_at":"2016-01-19T21:27:07Z","git_url":"git://github.com/google/oauth2client.git","ssh_url":"git@github.com:google/oauth2client.git","clone_url":"https://github.com/google/oauth2client.git","svn_url":"https://github.com/google/oauth2client","homepage":"","size":24078,"stargazers_count":303,"watchers_count":303,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":156,"mirror_url":null,"open_issues_count":65,"forks":156,"open_issues":65,"watchers":303,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/oauth2client/pulls/385"},"html":{"href":"https://github.com/google/oauth2client/pull/385"},"issue":{"href":"https://api.github.com/repos/google/oauth2client/issues/385"},"comments":{"href":"https://api.github.com/repos/google/oauth2client/issues/385/comments"},"review_comments":{"href":"https://api.github.com/repos/google/oauth2client/pulls/385/comments"},"review_comment":{"href":"https://api.github.com/repos/google/oauth2client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/oauth2client/pulls/385/commits"},"statuses":{"href":"https://api.github.com/repos/google/oauth2client/statuses/2e7afd9b9e0404994fd27b60d21d71242e1e42cd"}}}}