{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/comments/47702801","id":47702801,"diff_hunk":"@@ -0,0 +1,531 @@\n+/*!\n+ * Copyright 2015 Google Inc. All Rights Reserved.\n+ *\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+\n+/*!\n+ * @module logging/log\n+ */\n+\n+'use strict';\n+\n+var arrify = require('arrify');\n+var extend = require('extend');\n+var format = require('string-format-obj');\n+var is = require('is');\n+var JSONStream = require('JSONStream');\n+var nodeutil = require('util');\n+var propAssign = require('prop-assign');\n+var pumpify = require('pumpify');\n+var streamEvents = require('stream-events');\n+var through = require('through2');\n+\n+/**\n+ * @type {module:logging/entry}\n+ * @private\n+ */\n+var Entry = require('./entry.js');\n+\n+/**\n+ * @type {module:common/serviceObject}\n+ * @private\n+ */\n+var ServiceObject = require('../common/service-object.js');\n+\n+/**\n+ * A log is a named collection of entries, each entry representing a timestamped\n+ * event. Logs can be produced by Google Cloud Platform services, by third-party\n+ * services, or by your applications. For example, the log `apache-access` is\n+ * produced by the Apache Web Server, but the log\n+ * `compute.googleapis.com/activity_log` is produced by Google Compute Engine.\n+ *\n+ * @resource [Introduction to Logs]{@link https://cloud.google.com/logging/docs/api/#logs}\n+ *\n+ * @alias module:logging/log\n+ * @constructor\n+ *\n+ * @param {object} options - [Configuration object](#/docs/?method=gcloud).\n+ *\n+ * @example\n+ * var gcloud = require('gcloud')({\n+ *   keyFilename: '/path/to/keyfile.json',\n+ *   projectId: 'grape-spaceship-123'\n+ * });\n+ *\n+ * var logging = gcloud.logging();\n+ * var log = logging.log('my-log');\n+ */\n+function Log(logging, name) {\n+  var methods = {\n+    /**\n+     * Delete the log.\n+     *\n+     * @resource [projects.logs.delete API Documentation]{@link https://cloud.google.com/logging/docs/api/ref/rest/v2beta1/projects.logs/delete}\n+     *\n+     * @param {function=} callback - The callback function.\n+     * @param {?error} callback.err - An error returned while making this\n+     *     request.\n+     * @param {object} callback.apiResponse - The full API response.\n+     *\n+     * @example\n+     * log.delete(function(err, apiResponse) {\n+     *   if (!err) {\n+     *     // The log was deleted.\n+     *   }\n+     * });\n+     */\n+    delete: true\n+  };\n+\n+  this.name = name.replace(/^.*logs\\//, '');\n+  this.formattedName_ = Log.formatName_(logging.projectId, name);\n+\n+  ServiceObject.call(this, {\n+    parent: logging,\n+    baseUrl: '/logs',\n+    id: this.name,\n+    methods: methods\n+  });\n+}\n+\n+nodeutil.inherits(Log, ServiceObject);\n+\n+/**\n+ * Return an array of log entries with the desired severity assigned.\n+ *\n+ * @private\n+ *\n+ * @param {object|object[]} entries - Log entries.\n+ * @param {string} severity - The desired severity level.\n+ */\n+Log.assignSeverityToEntries_ = function(entries, severity) {\n+  var entriesClone = [].slice.call(entries);\n+  return arrify(entriesClone).map(propAssign('severity', severity));\n+};\n+\n+/**\n+ * Format the name of a log. A log's full name is in the format of\n+ * 'projects/{projectId}/logs/{logName}'.\n+ *\n+ * @private\n+ *\n+ * @return {string}\n+ */\n+Log.formatName_ = function(projectId, name) {\n+  if (name.indexOf('logs/') > -1) {\n+    return name;\n+  }\n+\n+  var uriSafeName = name;\n+\n+  if (decodeURIComponent(name) === name) {\n+    // The name has not been encoded yet.\n+    uriSafeName = encodeURIComponent(name);\n+  }\n+\n+  return format('projects/{projectId}/logs/{name}', {\n+    projectId: projectId,\n+    name: uriSafeName\n+  });\n+};\n+\n+/**\n+ * Write a log entry with a severity of \"ALERT\".\n+ *\n+ * This is a simple wrapper around {module:logging/log#insert}. All arguments\n+ * are the same as documented there.\n+ *\n+ * @example\n+ * var entry = log.entry('compute.googleapis.com', {\n+ *   user: process.env.USER\n+ * });\n+ *\n+ * log.alert(entry, function(err, apiResponse) {});\n+ */\n+Log.prototype.alert = function(entry, options, callback) {\n+  this.write(Log.assignSeverityToEntries_(entry, 'ALERT'), options, callback);\n+};\n+\n+/**\n+ * Write log entries from a streaming object input.\n+ *\n+ * @example\n+ * var logStream = log.createWriteStream();\n+ *\n+ * logStream.on('finish', function(err) {\n+ *   // All entries have been written.\n+ * });\n+ *\n+ * logStream.end({\n+ *   // Log entry.\n+ * });\n+ */\n+Log.prototype.createWriteStream = function() {\n+  var self = this;\n+  var writeStream = streamEvents(pumpify.obj());\n+\n+  writeStream.once('writing', function() {\n+    var requestStream = self.parent.request({\n+      method: 'POST',\n+      uri: '/entries:write'\n+    });\n+\n+    requestStream.on('response', function(response) {\n+      writeStream.emit('response', response);\n+    });\n+\n+    function formatEntryForApi_(entry, enc, next) {\n+      next(null, self.formatEntryForApi_(entry));\n+    }\n+\n+    writeStream.setPipeline([\n+      through.obj(formatEntryForApi_),\n+      JSONStream.stringify('{\"entries\":[', ',', ']}'),\n+      requestStream\n+    ]);\n+  });\n+\n+  return writeStream;\n+};\n+\n+/**\n+ * Write a log entry with a severity of \"CRITICAL\".\n+ *\n+ * This is a simple wrapper around {module:logging/log#insert}. All arguments\n+ * are the same as documented there.\n+ *\n+ * @example\n+ * var entry = log.entry('compute.googleapis.com', {\n+ *   user: process.env.USER\n+ * });\n+ *\n+ * log.critical(entry, function(err, apiResponse) {});\n+ */\n+Log.prototype.critical = function(entry, options, callback) {\n+  var entries = Log.assignSeverityToEntries_(entry, 'CRITICAL');\n+  this.write(entries, options, callback);\n+};\n+\n+/**\n+ * Write a log entry with a severity of \"DEBUG\".\n+ *\n+ * This is a simple wrapper around {module:logging/log#insert}. All arguments\n+ * are the same as documented there.\n+ *\n+ * @example\n+ * var entry = log.entry('compute.googleapis.com', {\n+ *   user: process.env.USER\n+ * });\n+ *\n+ * log.debug(entry, function(err, apiResponse) {});\n+ */\n+Log.prototype.debug = function(entry, options, callback) {\n+  this.write(Log.assignSeverityToEntries_(entry, 'DEBUG'), options, callback);\n+};\n+\n+/**\n+ * Write a log entry with a severity of \"EMERGENCY\".\n+ *\n+ * This is a simple wrapper around {module:logging/log#insert}. All arguments\n+ * are the same as documented there.\n+ *\n+ * @example\n+ * var entry = log.entry('compute.googleapis.com', {\n+ *   user: process.env.USER\n+ * });\n+ *\n+ * log.emergency(entry, function(err, apiResponse) {});\n+ */\n+Log.prototype.emergency = function(entry, options, callback) {\n+  var entries = Log.assignSeverityToEntries_(entry, 'EMERGENCY');\n+  this.write(entries, options, callback);\n+};\n+\n+/**\n+ * Create an entry object for this log.\n+ *\n+ * Note that using this method will not itself make any API requests. You will\n+ * use the object returned in other API calls, such as\n+ * {module:logging/log#write}.\n+ *\n+ * @resource [LogEntry JSON representation]{@link https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/LogEntry}\n+ *\n+ * @param {object=|string=} resource - See a\n+ *     [Monitored Resource]{@link https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/MonitoredResource}.\n+ * @param {object|string} data - The data to use as the value for this log\n+ *     entry.\n+ * @return {module:logging/entry}\n+ *\n+ * @example\n+ * var entry = log.entry('compute.googleapis.com', 'user-name');\n+ *\n+ * entry.toJSON();\n+ * // {\n+ * //   logName: 'projects/grape-spaceship-123/logs/my-log',\n+ * //   resource: {\n+ * //     type: 'compute.googleapis.com'\n+ * //   },\n+ * //   textPayload: 'user-name'\n+ * // }\n+ */\n+Log.prototype.entry = function(resource, data) {\n+  var entryInstance = this.parent.entry(resource, data);\n+  entryInstance.logName = this.formattedName_;\n+  return entryInstance;\n+};\n+\n+/**\n+ * Write a log entry with a severity of \"ERROR\".\n+ *\n+ * This is a simple wrapper around {module:logging/log#insert}. All arguments","path":"lib/logging/log.js","position":291,"original_position":291,"commit_id":"86b294798eb5efa9805effce97f53f999dd2ec90","original_commit_id":"4b36fdae4117d9175616c9c1229b16bb016e279f","user":{"login":"callmehiphop","id":1707267,"avatar_url":"https://avatars.githubusercontent.com/u/1707267?v=3","gravatar_id":"","url":"https://api.github.com/users/callmehiphop","html_url":"https://github.com/callmehiphop","followers_url":"https://api.github.com/users/callmehiphop/followers","following_url":"https://api.github.com/users/callmehiphop/following{/other_user}","gists_url":"https://api.github.com/users/callmehiphop/gists{/gist_id}","starred_url":"https://api.github.com/users/callmehiphop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callmehiphop/subscriptions","organizations_url":"https://api.github.com/users/callmehiphop/orgs","repos_url":"https://api.github.com/users/callmehiphop/repos","events_url":"https://api.github.com/users/callmehiphop/events{/privacy}","received_events_url":"https://api.github.com/users/callmehiphop/received_events","type":"User","site_admin":false},"body":"see https://github.com/GoogleCloudPlatform/gcloud-node/pull/865/files#r47702149","created_at":"2015-12-15T21:39:52Z","updated_at":"2015-12-15T21:39:52Z","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/865#discussion_r47702801","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/865","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/comments/47702801"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/865#discussion_r47702801"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/865"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/865","id":45100907,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/865","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/865.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/865.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/865","number":865,"state":"open","locked":false,"title":"introduce Logging support","user":{"login":"stephenplusplus","id":723048,"avatar_url":"https://avatars.githubusercontent.com/u/723048?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenplusplus","html_url":"https://github.com/stephenplusplus","followers_url":"https://api.github.com/users/stephenplusplus/followers","following_url":"https://api.github.com/users/stephenplusplus/following{/other_user}","gists_url":"https://api.github.com/users/stephenplusplus/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenplusplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenplusplus/subscriptions","organizations_url":"https://api.github.com/users/stephenplusplus/orgs","repos_url":"https://api.github.com/users/stephenplusplus/repos","events_url":"https://api.github.com/users/stephenplusplus/events{/privacy}","received_events_url":"https://api.github.com/users/stephenplusplus/received_events","type":"User","site_admin":false},"body":"Fixes #842\r\n\r\n#### Must Reads\r\n- Introduction to the Cloud Logging API: https://cloud.google.com/logging/docs/api/\r\n- Docs: https://stephenplusplus.github.io/gcloud-node/#/docs/master/logging\r\n\r\n#### To Dos\r\n\r\n- [x] Enable Cloud Logging API on System Test Account\r\n- [x] Document createSink.config.filter\r\n- [x] Inherit from Service / ServiceObject\r\n- **Support Sink destinations**\r\n  - [x] Storage Bucket\r\n  - [x] BigQuery Dataset\r\n  - [x] Pub/Sub Topic\r\n- **Docs**\r\n  - [x] Readme\r\n  - [x] JSDocs\r\n  - [x] Site\r\n- **Tests**\r\n  - [x] System\r\n  - Unit\r\n    - [x] Index\r\n    - [x] Log\r\n    - [x] Sink\r\n\r\n#### Preview\r\n\r\n```js\r\n// Authenticating on a global-basis. You can also authenticate on a per-API-\r\n// basis (see Authentication section above).\r\nvar gcloud = require('gcloud')({\r\n  projectId: 'my-project',\r\n  keyFilename: '/path/to/keyfile.json'\r\n});\r\n\r\nvar logging = gcloud.logging();\r\n\r\n// Create a sink using a Bucket as a destination.\r\nvar gcs = gcloud.storage();\r\n\r\ndns.createSink('my-new-sink', {\r\n  destination: gcs.bucket('my-sink')\r\n}, function(err, sink) {});\r\n\r\n// Write a critical entry to a log.\r\nvar syslog = logging.log('syslog');\r\n\r\nvar resource = {\r\n  type: 'gce_instance',\r\n  labels: {\r\n    zone: 'global',\r\n    instance_id: 3\r\n  }\r\n};\r\n\r\nvar entry = syslog.entry(resource, {\r\n  delegate: process.env.user\r\n});\r\n\r\nlog.critical(entry, function(err) {});\r\n\r\n// Get all entries in your project.\r\nlogging.getEntries(function(err, entries) {\r\n  if (!err) {\r\n    // `entries` contains all of the entries from the logs in your project.\r\n  }\r\n});\r\n```","created_at":"2015-09-15T20:53:46Z","updated_at":"2015-12-15T21:39:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3095fcc9d37dfaeec73e55310c8bd2b22c9e0935","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/865/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/865/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/865/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/statuses/86b294798eb5efa9805effce97f53f999dd2ec90","head":{"label":"stephenplusplus:spp--logging","ref":"spp--logging","sha":"86b294798eb5efa9805effce97f53f999dd2ec90","user":{"login":"stephenplusplus","id":723048,"avatar_url":"https://avatars.githubusercontent.com/u/723048?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenplusplus","html_url":"https://github.com/stephenplusplus","followers_url":"https://api.github.com/users/stephenplusplus/followers","following_url":"https://api.github.com/users/stephenplusplus/following{/other_user}","gists_url":"https://api.github.com/users/stephenplusplus/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenplusplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenplusplus/subscriptions","organizations_url":"https://api.github.com/users/stephenplusplus/orgs","repos_url":"https://api.github.com/users/stephenplusplus/repos","events_url":"https://api.github.com/users/stephenplusplus/events{/privacy}","received_events_url":"https://api.github.com/users/stephenplusplus/received_events","type":"User","site_admin":false},"repo":{"id":22482767,"name":"gcloud-node","full_name":"stephenplusplus/gcloud-node","owner":{"login":"stephenplusplus","id":723048,"avatar_url":"https://avatars.githubusercontent.com/u/723048?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenplusplus","html_url":"https://github.com/stephenplusplus","followers_url":"https://api.github.com/users/stephenplusplus/followers","following_url":"https://api.github.com/users/stephenplusplus/following{/other_user}","gists_url":"https://api.github.com/users/stephenplusplus/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenplusplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenplusplus/subscriptions","organizations_url":"https://api.github.com/users/stephenplusplus/orgs","repos_url":"https://api.github.com/users/stephenplusplus/repos","events_url":"https://api.github.com/users/stephenplusplus/events{/privacy}","received_events_url":"https://api.github.com/users/stephenplusplus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stephenplusplus/gcloud-node","description":"Google Cloud Node Client Library","fork":true,"url":"https://api.github.com/repos/stephenplusplus/gcloud-node","forks_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/forks","keys_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/teams","hooks_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/hooks","issue_events_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/issues/events{/number}","events_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/events","assignees_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/assignees{/user}","branches_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/branches{/branch}","tags_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/tags","blobs_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/statuses/{sha}","languages_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/languages","stargazers_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/stargazers","contributors_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/contributors","subscribers_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/subscribers","subscription_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/subscription","commits_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/contents/{+path}","compare_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/merges","archive_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/downloads","issues_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/issues{/number}","pulls_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/pulls{/number}","milestones_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/milestones{/number}","notifications_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/labels{/name}","releases_url":"https://api.github.com/repos/stephenplusplus/gcloud-node/releases{/id}","created_at":"2014-07-31T19:55:20Z","updated_at":"2015-07-31T17:14:21Z","pushed_at":"2015-12-15T21:38:05Z","git_url":"git://github.com/stephenplusplus/gcloud-node.git","ssh_url":"git@github.com:stephenplusplus/gcloud-node.git","clone_url":"https://github.com/stephenplusplus/gcloud-node.git","svn_url":"https://github.com/stephenplusplus/gcloud-node","homepage":"","size":12830,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"c11b5e85f0c67ebf8fb1f279b2ba5885ee03bcb6","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":19483273,"name":"gcloud-node","full_name":"GoogleCloudPlatform/gcloud-node","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-node","description":"Google Cloud Client Library for Node.js","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/releases{/id}","created_at":"2014-05-06T06:18:00Z","updated_at":"2015-12-15T19:30:43Z","pushed_at":"2015-12-15T21:38:07Z","git_url":"git://github.com/GoogleCloudPlatform/gcloud-node.git","ssh_url":"git@github.com:GoogleCloudPlatform/gcloud-node.git","clone_url":"https://github.com/GoogleCloudPlatform/gcloud-node.git","svn_url":"https://github.com/GoogleCloudPlatform/gcloud-node","homepage":"https://googlecloudplatform.github.io/gcloud-node/","size":13153,"stargazers_count":604,"watchers_count":604,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":118,"mirror_url":null,"open_issues_count":35,"forks":118,"open_issues":35,"watchers":604,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/865"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/865"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/865"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/865/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/865/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/865/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/statuses/86b294798eb5efa9805effce97f53f999dd2ec90"}}}}