{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/pulls/comments/51301273","id":51301273,"diff_hunk":"@@ -0,0 +1,820 @@\n+# Copyright 2016, Google, Inc.\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain 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,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+import argparse\n+from collections import defaultdict\n+import datetime\n+from pprint import pprint\n+import time\n+\n+import gcloud\n+from gcloud import datastore\n+\n+\n+def incomplete_key(client):\n+    # [START incomplete_key]\n+    key = client.key('Task')\n+    # [END incomplete_key]\n+\n+    return key\n+\n+\n+def named_key(client):\n+    # [START named_key]\n+    key = client.key('Task', 'sample_task')\n+    # [END named_key]\n+\n+    return key\n+\n+\n+def key_with_parent(client):\n+    # [START key_with_parent]\n+    key = client.key('TaskList', 'default', 'Task', 'sample_task')\n+    # [END key_with_parent]\n+\n+    return key\n+\n+\n+def key_with_multilevel_parent(client):\n+    # [START key_with_multilevel_parent]\n+    key = client.key(\n+        'User', 'alice',\n+        'TaskList', 'default',\n+        'Task', 'sample_task')\n+    # [END key_with_multilevel_parent]\n+\n+    return key\n+\n+\n+def basic_entity(client):\n+    # [START basic_entity]\n+    task = datastore.Entity()\n+    task.update({\n+        'type': 'Personal',\n+        'done': False,\n+        'priority': 4,\n+        'description': 'Learn Cloud Datastore'\n+    })\n+    # [END basic_entity]\n+\n+    return task\n+\n+\n+def entity_with_parent(client):\n+    # [START entity_with_parent]\n+    key_with_parent = client.key(\n+        'TaskList', 'default', 'Task', 'sample_task')\n+\n+    task = datastore.Entity(key=key_with_parent)\n+\n+    task.update({\n+        'type': 'Personal',\n+        'done': False,\n+        'priority': 4,\n+        'description': 'Learn Cloud Datastore'\n+    })\n+    # [END entity_with_parent]\n+\n+    return task\n+\n+\n+def properties(client):\n+    # [START properties]\n+    task = datastore.Entity()\n+    task.update({\n+        # String\n+        'type': 'Personal',\n+        'description': 'Learn Cloud Datastore',\n+        # Date\n+        'created': datetime.datetime.utcnow(),\n+        # Boolean\n+        'done': False,\n+        # Integer\n+        'priority': 4,\n+        # Float\n+        'percent_complete': 10.5,\n+    })\n+    # [END properties]\n+\n+    return task\n+\n+\n+def array_value(client):\n+    # [START array_value]\n+    task = datastore.Entity()\n+    task.update({\n+        'tags': [\n+            'fun',\n+            'programming'\n+        ],\n+        'collaborators': [\n+            'alice',\n+            'bob'\n+        ]\n+    })\n+    # [END array_value]\n+\n+    return task\n+\n+\n+def upsert(client):\n+    # [START upsert]\n+    complete_key = client.key('Task', 'sample_task')\n+\n+    task = datastore.Entity(key=complete_key)\n+\n+    task.update({\n+        'type': 'Personal',\n+        'done': False,\n+        'priority': 4,\n+        'description': 'Learn Cloud Datastore'\n+    })\n+\n+    client.put(task)\n+    # [END upsert]\n+\n+    return task\n+\n+\n+def insert(client):\n+    # [START upsert]\n+    incomplete_key = client.key('Task')\n+\n+    task = datastore.Entity(key=incomplete_key)\n+\n+    task.update({\n+        'type': 'Personal',\n+        'done': False,\n+        'priority': 4,\n+        'description': 'Learn Cloud Datastore'\n+    })\n+\n+    client.put(task)\n+    # [END upsert]\n+\n+    return task\n+\n+\n+def update(client):\n+    # Create the entity we're going to update.\n+    upsert(client)\n+\n+    # [START update]\n+    key = client.key('Task', 'sample_task')\n+    task = client.get(key)\n+\n+    task['done'] = True\n+\n+    client.put(task)\n+    # [END update]\n+\n+    return task\n+\n+\n+def lookup(client):\n+    # Create the entity that we're going to look up.\n+    upsert(client)\n+\n+    # [START lookup]\n+    key = client.key('Task', 'sample_task')\n+    task = client.get(key)\n+    # <Entity\n+    #   [{'kind': 'Task', 'name': 'sample_task'}]\n+    #   {\n+    #       'priority': 4,\n+    #       'type': 'Personal',\n+    #       'done': False,\n+    #       'description': 'Learn Cloud Datastore'\n+    # }>\n+    # [END lookup]\n+\n+    return task\n+\n+\n+def delete(client):\n+    # Create the entity we're going to delete.\n+    upsert(client)\n+\n+    # [START delete]\n+    key = client.key('Task', 'sample_task')\n+    client.delete(key)\n+    # [END delete]\n+\n+    return key\n+\n+\n+def batch_upsert(client):\n+    # [START batch_upsert]\n+    task1 = datastore.Entity(client.key('Task', 1))\n+\n+    task1.update({\n+        'type': 'Personal',\n+        'done': False,\n+        'priority': 4,\n+        'description': 'Learn Cloud Datastore'\n+    })\n+\n+    task2 = datastore.Entity(client.key('Task', 2))\n+\n+    task2.update({\n+        'type': 'Work',\n+        'done': False,\n+        'priority': 8,\n+        'description': 'Integrate Cloud Datastore'\n+    })\n+\n+    client.put_multi([task1, task2])\n+    # [END batch_upsert]\n+\n+    return task1, task2\n+\n+\n+def batch_lookup(client):\n+    # Create the entities we will lookup.\n+    batch_upsert(client)\n+\n+    # [START batch_lookup]\n+    keys = [\n+        client.key('Task', 1),\n+        client.key('Task', 2)\n+    ]\n+\n+    tasks = client.get_multi(keys)\n+    # [<Entity Task 1>, <Entity Task 2>]\n+    # [END batch_lookup]\n+\n+    return tasks\n+\n+\n+def batch_delete(client):\n+    # Create the entities we will delete.\n+    batch_upsert(client)\n+\n+    # [START batch_delete]\n+    keys = [\n+        client.key('Task', 1),\n+        client.key('Task', 2)\n+    ]\n+\n+    client.delete_multi(keys)\n+    # [END batch_delete]\n+\n+    return keys\n+\n+\n+def unindexed_property_query(client):\n+    # Create the entity that we're going to query.\n+    upsert(client)\n+\n+    # [START unindexed_property_query]\n+    query = client.query(kind='Task')\n+    query.add_filter('description', '=', 'Learn Cloud Datastore')\n+    tasks = list(query.fetch())\n+    # [<Entity Task>, ... ]\n+    # [END unindexed_property_query]\n+\n+    return tasks\n+\n+\n+def basic_query(client):\n+    # Create the entity that we're going to query.\n+    upsert(client)\n+\n+    # [START basic_query]\n+    query = client.query(kind='Task')\n+    query.add_filter('done', '=', False)\n+    query.add_filter('priority', '>=', 4)\n+    query.order = ['-priority']\n+\n+    tasks = list(query.fetch())\n+    # [END basic_query]\n+\n+    return tasks\n+\n+\n+def projection_query(client):\n+    # Create the entity that we're going to query.\n+    task = datastore.Entity(client.key('Task'))\n+    task.update({\n+        'type': 'Personal',\n+        'done': False,\n+        'priority': 4,\n+        'description': 'Learn Cloud Datastore',\n+        'percent_complete': 0.5\n+    })\n+    client.put(task)\n+\n+    # [START projection_query]\n+    query = client.query(kind='Task')\n+    query.projection = ['priority', 'percent_complete']\n+    # [END projection_query]\n+\n+    # [START run_query_projection]\n+    priorities = []\n+    percent_completes = []\n+\n+    for task in query.fetch():\n+        priorities.append(task['priority'])\n+        percent_completes.append(task['priority'])\n+    # [END run_query_projection]\n+\n+    return priorities, percent_completes\n+\n+\n+def ancestor_query(client):\n+    task = datastore.Entity(\n+        client.key('TaskList', 'default', 'Task'))\n+    task.update({\n+        'type': 'Personal',\n+        'description': 'Learn Cloud Datastore',\n+    })\n+    client.put(task)\n+\n+    # [START ancestor_query]\n+    ancestor = client.key('TaskList', 'default')\n+    query = client.query(kind='Task', ancestor=ancestor)\n+    tasks = list(query.fetch())\n+    # [END ancestor_query]\n+\n+    return tasks\n+\n+\n+def run_query(client):\n+\n+    # [START run_query]\n+    query = client.query()\n+    results = list(query.fetch())\n+    # [END run_query]\n+\n+    return results\n+\n+\n+def limit(client):\n+\n+    # [START run_query]\n+    query = client.query()\n+    tasks = list(query.fetch(limit=5))\n+    # [END run_query]\n+\n+    return tasks\n+\n+\n+def cursor_paging(client):\n+\n+    # [START cursor_paging]\n+    tasks = []\n+    query = client.query(kind='Task')\n+    it = query.fetch(limit=5)","path":"datastore/api/snippets.py","position":377,"original_position":377,"commit_id":"1878b8ba090270bc7dc2f6040710f504cab4ef9a","original_commit_id":"1878b8ba090270bc7dc2f6040710f504cab4ef9a","user":{"login":"dhermes","id":520669,"avatar_url":"https://avatars.githubusercontent.com/u/520669?v=3","gravatar_id":"","url":"https://api.github.com/users/dhermes","html_url":"https://github.com/dhermes","followers_url":"https://api.github.com/users/dhermes/followers","following_url":"https://api.github.com/users/dhermes/following{/other_user}","gists_url":"https://api.github.com/users/dhermes/gists{/gist_id}","starred_url":"https://api.github.com/users/dhermes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhermes/subscriptions","organizations_url":"https://api.github.com/users/dhermes/orgs","repos_url":"https://api.github.com/users/dhermes/repos","events_url":"https://api.github.com/users/dhermes/events{/privacy}","received_events_url":"https://api.github.com/users/dhermes/received_events","type":"User","site_admin":false},"body":"Suggest: `query_iter` would be more descriptive","created_at":"2016-01-29T19:07:23Z","updated_at":"2016-01-29T19:07:23Z","html_url":"https://github.com/GoogleCloudPlatform/python-docs-samples/pull/158#discussion_r51301273","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/pulls/158","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/pulls/comments/51301273"},"html":{"href":"https://github.com/GoogleCloudPlatform/python-docs-samples/pull/158#discussion_r51301273"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/pulls/158"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/pulls/158","id":57686577,"html_url":"https://github.com/GoogleCloudPlatform/python-docs-samples/pull/158","diff_url":"https://github.com/GoogleCloudPlatform/python-docs-samples/pull/158.diff","patch_url":"https://github.com/GoogleCloudPlatform/python-docs-samples/pull/158.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/issues/158","number":158,"state":"open","locked":false,"title":"Adding datastore samples.","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":"@waprin this is missing tests, but ready for initial review. I will add tests. It's just a ton to write. :|\r\n\r\n@pcostell Please verify that all of the relevant snippets are here. These are based on the node.js snippets, not the ndb ones.\r\n\r\n@dhermes if you have a chance, please take a quick look and make sure I'm not using `gcloud-python` like a moron.","created_at":"2016-01-29T18:48:29Z","updated_at":"2016-01-29T19:07:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ff362f901a987def99a6829d1513035a0832889","assignee":{"login":"waprin","id":1075173,"avatar_url":"https://avatars.githubusercontent.com/u/1075173?v=3","gravatar_id":"","url":"https://api.github.com/users/waprin","html_url":"https://github.com/waprin","followers_url":"https://api.github.com/users/waprin/followers","following_url":"https://api.github.com/users/waprin/following{/other_user}","gists_url":"https://api.github.com/users/waprin/gists{/gist_id}","starred_url":"https://api.github.com/users/waprin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waprin/subscriptions","organizations_url":"https://api.github.com/users/waprin/orgs","repos_url":"https://api.github.com/users/waprin/repos","events_url":"https://api.github.com/users/waprin/events{/privacy}","received_events_url":"https://api.github.com/users/waprin/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/pulls/158/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/pulls/158/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/issues/158/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/statuses/1878b8ba090270bc7dc2f6040710f504cab4ef9a","head":{"label":"GoogleCloudPlatform:datastore","ref":"datastore","sha":"1878b8ba090270bc7dc2f6040710f504cab4ef9a","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":35065876,"name":"python-docs-samples","full_name":"GoogleCloudPlatform/python-docs-samples","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/python-docs-samples","description":"Code samples used on cloud.google.com","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/deployments","created_at":"2015-05-04T23:26:13Z","updated_at":"2016-01-28T19:13:52Z","pushed_at":"2016-01-29T19:04:42Z","git_url":"git://github.com/GoogleCloudPlatform/python-docs-samples.git","ssh_url":"git@github.com:GoogleCloudPlatform/python-docs-samples.git","clone_url":"https://github.com/GoogleCloudPlatform/python-docs-samples.git","svn_url":"https://github.com/GoogleCloudPlatform/python-docs-samples","homepage":"","size":638,"stargazers_count":46,"watchers_count":46,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":10,"forks":53,"open_issues":10,"watchers":46,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"b00f1dc4177060be0884e715406067bade2f6e21","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":35065876,"name":"python-docs-samples","full_name":"GoogleCloudPlatform/python-docs-samples","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/python-docs-samples","description":"Code samples used on cloud.google.com","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/deployments","created_at":"2015-05-04T23:26:13Z","updated_at":"2016-01-28T19:13:52Z","pushed_at":"2016-01-29T19:04:42Z","git_url":"git://github.com/GoogleCloudPlatform/python-docs-samples.git","ssh_url":"git@github.com:GoogleCloudPlatform/python-docs-samples.git","clone_url":"https://github.com/GoogleCloudPlatform/python-docs-samples.git","svn_url":"https://github.com/GoogleCloudPlatform/python-docs-samples","homepage":"","size":638,"stargazers_count":46,"watchers_count":46,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":10,"forks":53,"open_issues":10,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/pulls/158"},"html":{"href":"https://github.com/GoogleCloudPlatform/python-docs-samples/pull/158"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/issues/158"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/python-docs-samples/statuses/1878b8ba090270bc7dc2f6040710f504cab4ef9a"}}}}