payload: {"action":"created","comment":{"url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/pulls/comments/312982806","pull_request_review_id":273768342,"id":312982806,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxMjk4MjgwNg==","diff_hunk":"@@ -0,0 +1,386 @@\n+import requests\n+import indexclient.client as client\n+\n+\n+class Gen3Index:\n+    \"\"\"\n+\n+    A class for interacting with the Gen3 Index services.\n+\n+    Args:\n+        endpoint (str): The URL of the data commons.\n+        auth_provider (Gen3Auth): A Gen3Auth class instance.\n+\n+    Examples:\n+        This generates the Gen3Index class pointed at the sandbox commons while\n+        using the credentials.json downloaded from the commons profile page.\n+\n+        >>> endpoint = \"https://nci-crdc-demo.datacommons.io\"\n+        ... auth = Gen3Auth(endpoint, refresh_file=\"credentials.json\")\n+        ... sub = Gen3Submission(endpoint, auth)\n+\n+    \"\"\"\n+\n+    def __init__(self, endpoint, auth_provider):\n+        self.client = client.IndexClient(endpoint, auth=auth_provider)\n+\n+    ### Get Requests\n+\n+    def get_status(self):\n+        \"\"\" Return if indexd is healthy or not\n+\n+        \"\"\"\n+        response = self.client._get(\"_status\")\n+        response.raise_for_status()\n+        return response\n+\n+    def get_version(self):\n+        \"\"\" Return the version of indexd\n+\n+        \"\"\"\n+        response = self.client._get(\"_version\")\n+        response.raise_for_status()\n+        return response.json()\n+\n+    def get_stats(self):\n+        \"\"\" Return basic info about the records in indexd\n+\n+        \"\"\"\n+        response = self.client._get(\"_stats\")\n+        response.raise_for_status()\n+        return response.json()\n+\n+    def get_index(self):\n+        \"\"\" Get a list of all records\n+\n+        \"\"\"\n+        response = self.client._get(\"index/\")\n+        response.raise_for_status()\n+        return response.json()\n+\n+    def global_get(self, guid, no_dist=False):","path":"gen3/index.py","position":61,"original_position":61,"commit_id":"996ec66f251d7879d5cb78d25cdc9b29bb1aa177","original_commit_id":"996ec66f251d7879d5cb78d25cdc9b29bb1aa177","user":{"login":"Avantol13","id":9382451,"node_id":"MDQ6VXNlcjkzODI0NTE=","avatar_url":"https://avatars0.githubusercontent.com/u/9382451?v=4","gravatar_id":"","url":"https://api.github.com/users/Avantol13","html_url":"https://github.com/Avantol13","followers_url":"https://api.github.com/users/Avantol13/followers","following_url":"https://api.github.com/users/Avantol13/following{/other_user}","gists_url":"https://api.github.com/users/Avantol13/gists{/gist_id}","starred_url":"https://api.github.com/users/Avantol13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Avantol13/subscriptions","organizations_url":"https://api.github.com/users/Avantol13/orgs","repos_url":"https://api.github.com/users/Avantol13/repos","events_url":"https://api.github.com/users/Avantol13/events{/privacy}","received_events_url":"https://api.github.com/users/Avantol13/received_events","type":"User","site_admin":false},"body":"let's change this to just `get` since it should be the default","created_at":"2019-08-12T15:24:27Z","updated_at":"2019-08-12T15:24:27Z","html_url":"https://github.com/uc-cdis/gen3sdk-python/pull/14#discussion_r312982806","pull_request_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/pulls/14","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/uc-cdis/gen3sdk-python/pulls/comments/312982806"},"html":{"href":"https://github.com/uc-cdis/gen3sdk-python/pull/14#discussion_r312982806"},"pull_request":{"href":"https://api.github.com/repos/uc-cdis/gen3sdk-python/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/pulls/14","id":303007916,"node_id":"MDExOlB1bGxSZXF1ZXN0MzAzMDA3OTE2","html_url":"https://github.com/uc-cdis/gen3sdk-python/pull/14","diff_url":"https://github.com/uc-cdis/gen3sdk-python/pull/14.diff","patch_url":"https://github.com/uc-cdis/gen3sdk-python/pull/14.patch","issue_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/issues/14","number":14,"state":"open","locked":false,"title":"Feat/improvements","user":{"login":"Avantol13","id":9382451,"node_id":"MDQ6VXNlcjkzODI0NTE=","avatar_url":"https://avatars0.githubusercontent.com/u/9382451?v=4","gravatar_id":"","url":"https://api.github.com/users/Avantol13","html_url":"https://github.com/Avantol13","followers_url":"https://api.github.com/users/Avantol13/followers","following_url":"https://api.github.com/users/Avantol13/following{/other_user}","gists_url":"https://api.github.com/users/Avantol13/gists{/gist_id}","starred_url":"https://api.github.com/users/Avantol13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Avantol13/subscriptions","organizations_url":"https://api.github.com/users/Avantol13/orgs","repos_url":"https://api.github.com/users/Avantol13/repos","events_url":"https://api.github.com/users/Avantol13/events{/privacy}","received_events_url":"https://api.github.com/users/Avantol13/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-07-31T15:24:18Z","updated_at":"2019-08-12T15:24:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8856cc662f1c15efd3023f96964dc4d8f644a54","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/pulls/14/commits","review_comments_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/pulls/14/comments","review_comment_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/issues/14/comments","statuses_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/statuses/996ec66f251d7879d5cb78d25cdc9b29bb1aa177","head":{"label":"uc-cdis:feat/improvements","ref":"feat/improvements","sha":"996ec66f251d7879d5cb78d25cdc9b29bb1aa177","user":{"login":"uc-cdis","id":15327655,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MzI3NjU1","avatar_url":"https://avatars0.githubusercontent.com/u/15327655?v=4","gravatar_id":"","url":"https://api.github.com/users/uc-cdis","html_url":"https://github.com/uc-cdis","followers_url":"https://api.github.com/users/uc-cdis/followers","following_url":"https://api.github.com/users/uc-cdis/following{/other_user}","gists_url":"https://api.github.com/users/uc-cdis/gists{/gist_id}","starred_url":"https://api.github.com/users/uc-cdis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uc-cdis/subscriptions","organizations_url":"https://api.github.com/users/uc-cdis/orgs","repos_url":"https://api.github.com/users/uc-cdis/repos","events_url":"https://api.github.com/users/uc-cdis/events{/privacy}","received_events_url":"https://api.github.com/users/uc-cdis/received_events","type":"Organization","site_admin":false},"repo":{"id":146138414,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYxMzg0MTQ=","name":"gen3sdk-python","full_name":"uc-cdis/gen3sdk-python","private":false,"owner":{"login":"uc-cdis","id":15327655,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MzI3NjU1","avatar_url":"https://avatars0.githubusercontent.com/u/15327655?v=4","gravatar_id":"","url":"https://api.github.com/users/uc-cdis","html_url":"https://github.com/uc-cdis","followers_url":"https://api.github.com/users/uc-cdis/followers","following_url":"https://api.github.com/users/uc-cdis/following{/other_user}","gists_url":"https://api.github.com/users/uc-cdis/gists{/gist_id}","starred_url":"https://api.github.com/users/uc-cdis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uc-cdis/subscriptions","organizations_url":"https://api.github.com/users/uc-cdis/orgs","repos_url":"https://api.github.com/users/uc-cdis/repos","events_url":"https://api.github.com/users/uc-cdis/events{/privacy}","received_events_url":"https://api.github.com/users/uc-cdis/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/uc-cdis/gen3sdk-python","description":"Gen3 SDK for Python","fork":false,"url":"https://api.github.com/repos/uc-cdis/gen3sdk-python","forks_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/forks","keys_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/teams","hooks_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/hooks","issue_events_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/issues/events{/number}","events_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/events","assignees_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/assignees{/user}","branches_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/branches{/branch}","tags_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/tags","blobs_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/statuses/{sha}","languages_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/languages","stargazers_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/stargazers","contributors_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/contributors","subscribers_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/subscribers","subscription_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/subscription","commits_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/contents/{+path}","compare_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/merges","archive_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/downloads","issues_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/issues{/number}","pulls_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/pulls{/number}","milestones_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/milestones{/number}","notifications_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/labels{/name}","releases_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/releases{/id}","deployments_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/deployments","created_at":"2018-08-26T00:07:40Z","updated_at":"2019-07-24T17:53:58Z","pushed_at":"2019-08-08T16:08:19Z","git_url":"git://github.com/uc-cdis/gen3sdk-python.git","ssh_url":"git@github.com:uc-cdis/gen3sdk-python.git","clone_url":"https://github.com/uc-cdis/gen3sdk-python.git","svn_url":"https://github.com/uc-cdis/gen3sdk-python","homepage":null,"size":104,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"uc-cdis:master","ref":"master","sha":"af84122cb38678b830cd53f77f40897034c6c818","user":{"login":"uc-cdis","id":15327655,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MzI3NjU1","avatar_url":"https://avatars0.githubusercontent.com/u/15327655?v=4","gravatar_id":"","url":"https://api.github.com/users/uc-cdis","html_url":"https://github.com/uc-cdis","followers_url":"https://api.github.com/users/uc-cdis/followers","following_url":"https://api.github.com/users/uc-cdis/following{/other_user}","gists_url":"https://api.github.com/users/uc-cdis/gists{/gist_id}","starred_url":"https://api.github.com/users/uc-cdis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uc-cdis/subscriptions","organizations_url":"https://api.github.com/users/uc-cdis/orgs","repos_url":"https://api.github.com/users/uc-cdis/repos","events_url":"https://api.github.com/users/uc-cdis/events{/privacy}","received_events_url":"https://api.github.com/users/uc-cdis/received_events","type":"Organization","site_admin":false},"repo":{"id":146138414,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYxMzg0MTQ=","name":"gen3sdk-python","full_name":"uc-cdis/gen3sdk-python","private":false,"owner":{"login":"uc-cdis","id":15327655,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MzI3NjU1","avatar_url":"https://avatars0.githubusercontent.com/u/15327655?v=4","gravatar_id":"","url":"https://api.github.com/users/uc-cdis","html_url":"https://github.com/uc-cdis","followers_url":"https://api.github.com/users/uc-cdis/followers","following_url":"https://api.github.com/users/uc-cdis/following{/other_user}","gists_url":"https://api.github.com/users/uc-cdis/gists{/gist_id}","starred_url":"https://api.github.com/users/uc-cdis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uc-cdis/subscriptions","organizations_url":"https://api.github.com/users/uc-cdis/orgs","repos_url":"https://api.github.com/users/uc-cdis/repos","events_url":"https://api.github.com/users/uc-cdis/events{/privacy}","received_events_url":"https://api.github.com/users/uc-cdis/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/uc-cdis/gen3sdk-python","description":"Gen3 SDK for Python","fork":false,"url":"https://api.github.com/repos/uc-cdis/gen3sdk-python","forks_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/forks","keys_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/teams","hooks_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/hooks","issue_events_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/issues/events{/number}","events_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/events","assignees_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/assignees{/user}","branches_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/branches{/branch}","tags_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/tags","blobs_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/statuses/{sha}","languages_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/languages","stargazers_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/stargazers","contributors_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/contributors","subscribers_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/subscribers","subscription_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/subscription","commits_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/contents/{+path}","compare_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/merges","archive_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/downloads","issues_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/issues{/number}","pulls_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/pulls{/number}","milestones_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/milestones{/number}","notifications_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/labels{/name}","releases_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/releases{/id}","deployments_url":"https://api.github.com/repos/uc-cdis/gen3sdk-python/deployments","created_at":"2018-08-26T00:07:40Z","updated_at":"2019-07-24T17:53:58Z","pushed_at":"2019-08-08T16:08:19Z","git_url":"git://github.com/uc-cdis/gen3sdk-python.git","ssh_url":"git@github.com:uc-cdis/gen3sdk-python.git","clone_url":"https://github.com/uc-cdis/gen3sdk-python.git","svn_url":"https://github.com/uc-cdis/gen3sdk-python","homepage":null,"size":104,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uc-cdis/gen3sdk-python/pulls/14"},"html":{"href":"https://github.com/uc-cdis/gen3sdk-python/pull/14"},"issue":{"href":"https://api.github.com/repos/uc-cdis/gen3sdk-python/issues/14"},"comments":{"href":"https://api.github.com/repos/uc-cdis/gen3sdk-python/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/uc-cdis/gen3sdk-python/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/uc-cdis/gen3sdk-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uc-cdis/gen3sdk-python/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/uc-cdis/gen3sdk-python/statuses/996ec66f251d7879d5cb78d25cdc9b29bb1aa177"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"Avantol13"}}