{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments/46222205","id":46222205,"diff_hunk":"@@ -52,37 +56,68 @@ private static ResourceManagerException translate(GoogleJsonError exception) {\n \n   @Override\n   public Project create(Project project) throws ResourceManagerException {\n-    // TODO(ajaykannan): fix me!\n-    return null;\n+    try {\n+      return resourceManager.projects().create(project).execute();\n+    } catch (IOException ex) {\n+      throw translate(ex);\n+    }\n   }\n \n   @Override\n   public void delete(String projectId) throws ResourceManagerException {\n-    // TODO(ajaykannan): fix me!\n+    try {\n+      resourceManager.projects().delete(projectId).execute();\n+    } catch (IOException ex) {\n+      throw translate(ex);\n+    }\n   }\n \n   @Override\n   public Project get(String projectId, Map<Option, ?> options) throws ResourceManagerException {\n-    // TODO(ajaykannan): fix me!\n-    return null;\n+    try {\n+      return resourceManager.projects()\n+          .get(projectId)\n+          .setFields(FIELDS.getString(options))\n+          .execute();\n+    } catch (IOException ex) {\n+      throw translate(ex);\n+    }\n   }\n \n   @Override\n   public Tuple<String, Iterable<Project>> list(Map<Option, ?> options)\n       throws ResourceManagerException {\n-    // TODO(ajaykannan): fix me!\n-    return null;\n+    try {\n+      ListProjectsResponse response = resourceManager.projects()\n+          .list()\n+          .setFilter(FIELDS.getString(options))","path":"gcloud-java-resourcemanager/src/main/java/com/google/gcloud/spi/DefaultResourceManagerRpc.java","position":77,"original_position":77,"commit_id":"e7b3539e33f94d4844d06b61dc882b21d19b482a","original_commit_id":"e7b3539e33f94d4844d06b61dc882b21d19b482a","user":{"login":"aozarov","id":8921691,"avatar_url":"https://avatars.githubusercontent.com/u/8921691?v=3","gravatar_id":"","url":"https://api.github.com/users/aozarov","html_url":"https://github.com/aozarov","followers_url":"https://api.github.com/users/aozarov/followers","following_url":"https://api.github.com/users/aozarov/following{/other_user}","gists_url":"https://api.github.com/users/aozarov/gists{/gist_id}","starred_url":"https://api.github.com/users/aozarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aozarov/subscriptions","organizations_url":"https://api.github.com/users/aozarov/orgs","repos_url":"https://api.github.com/users/aozarov/repos","events_url":"https://api.github.com/users/aozarov/events{/privacy}","received_events_url":"https://api.github.com/users/aozarov/received_events","type":"User","site_admin":false},"body":"`setFields`","created_at":"2015-11-30T23:49:50Z","updated_at":"2015-11-30T23:49:50Z","html_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/427#discussion_r46222205","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/427","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments/46222205"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/427#discussion_r46222205"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/427"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/427","id":52195640,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/427","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/427.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/427.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/427","number":427,"state":"open","locked":false,"title":"Default spi layer implementation","user":{"login":"ajkannan","id":5316886,"avatar_url":"https://avatars.githubusercontent.com/u/5316886?v=3","gravatar_id":"","url":"https://api.github.com/users/ajkannan","html_url":"https://github.com/ajkannan","followers_url":"https://api.github.com/users/ajkannan/followers","following_url":"https://api.github.com/users/ajkannan/following{/other_user}","gists_url":"https://api.github.com/users/ajkannan/gists{/gist_id}","starred_url":"https://api.github.com/users/ajkannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajkannan/subscriptions","organizations_url":"https://api.github.com/users/ajkannan/orgs","repos_url":"https://api.github.com/users/ajkannan/repos","events_url":"https://api.github.com/users/ajkannan/events{/privacy}","received_events_url":"https://api.github.com/users/ajkannan/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-30T23:34:48Z","updated_at":"2015-11-30T23:49:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13a14579972956a07be15ce0e243b7ab520d67e7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/427/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/427/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/427/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/statuses/e7b3539e33f94d4844d06b61dc882b21d19b482a","head":{"label":"ajkannan:default-impl","ref":"default-impl","sha":"e7b3539e33f94d4844d06b61dc882b21d19b482a","user":{"login":"ajkannan","id":5316886,"avatar_url":"https://avatars.githubusercontent.com/u/5316886?v=3","gravatar_id":"","url":"https://api.github.com/users/ajkannan","html_url":"https://github.com/ajkannan","followers_url":"https://api.github.com/users/ajkannan/followers","following_url":"https://api.github.com/users/ajkannan/following{/other_user}","gists_url":"https://api.github.com/users/ajkannan/gists{/gist_id}","starred_url":"https://api.github.com/users/ajkannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajkannan/subscriptions","organizations_url":"https://api.github.com/users/ajkannan/orgs","repos_url":"https://api.github.com/users/ajkannan/repos","events_url":"https://api.github.com/users/ajkannan/events{/privacy}","received_events_url":"https://api.github.com/users/ajkannan/received_events","type":"User","site_admin":false},"repo":{"id":40725411,"name":"gcloud-java","full_name":"ajkannan/gcloud-java","owner":{"login":"ajkannan","id":5316886,"avatar_url":"https://avatars.githubusercontent.com/u/5316886?v=3","gravatar_id":"","url":"https://api.github.com/users/ajkannan","html_url":"https://github.com/ajkannan","followers_url":"https://api.github.com/users/ajkannan/followers","following_url":"https://api.github.com/users/ajkannan/following{/other_user}","gists_url":"https://api.github.com/users/ajkannan/gists{/gist_id}","starred_url":"https://api.github.com/users/ajkannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajkannan/subscriptions","organizations_url":"https://api.github.com/users/ajkannan/orgs","repos_url":"https://api.github.com/users/ajkannan/repos","events_url":"https://api.github.com/users/ajkannan/events{/privacy}","received_events_url":"https://api.github.com/users/ajkannan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ajkannan/gcloud-java","description":"Google Cloud Client Library for Java","fork":true,"url":"https://api.github.com/repos/ajkannan/gcloud-java","forks_url":"https://api.github.com/repos/ajkannan/gcloud-java/forks","keys_url":"https://api.github.com/repos/ajkannan/gcloud-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajkannan/gcloud-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajkannan/gcloud-java/teams","hooks_url":"https://api.github.com/repos/ajkannan/gcloud-java/hooks","issue_events_url":"https://api.github.com/repos/ajkannan/gcloud-java/issues/events{/number}","events_url":"https://api.github.com/repos/ajkannan/gcloud-java/events","assignees_url":"https://api.github.com/repos/ajkannan/gcloud-java/assignees{/user}","branches_url":"https://api.github.com/repos/ajkannan/gcloud-java/branches{/branch}","tags_url":"https://api.github.com/repos/ajkannan/gcloud-java/tags","blobs_url":"https://api.github.com/repos/ajkannan/gcloud-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajkannan/gcloud-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajkannan/gcloud-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajkannan/gcloud-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajkannan/gcloud-java/statuses/{sha}","languages_url":"https://api.github.com/repos/ajkannan/gcloud-java/languages","stargazers_url":"https://api.github.com/repos/ajkannan/gcloud-java/stargazers","contributors_url":"https://api.github.com/repos/ajkannan/gcloud-java/contributors","subscribers_url":"https://api.github.com/repos/ajkannan/gcloud-java/subscribers","subscription_url":"https://api.github.com/repos/ajkannan/gcloud-java/subscription","commits_url":"https://api.github.com/repos/ajkannan/gcloud-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajkannan/gcloud-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajkannan/gcloud-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajkannan/gcloud-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajkannan/gcloud-java/contents/{+path}","compare_url":"https://api.github.com/repos/ajkannan/gcloud-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajkannan/gcloud-java/merges","archive_url":"https://api.github.com/repos/ajkannan/gcloud-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajkannan/gcloud-java/downloads","issues_url":"https://api.github.com/repos/ajkannan/gcloud-java/issues{/number}","pulls_url":"https://api.github.com/repos/ajkannan/gcloud-java/pulls{/number}","milestones_url":"https://api.github.com/repos/ajkannan/gcloud-java/milestones{/number}","notifications_url":"https://api.github.com/repos/ajkannan/gcloud-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajkannan/gcloud-java/labels{/name}","releases_url":"https://api.github.com/repos/ajkannan/gcloud-java/releases{/id}","created_at":"2015-08-14T16:38:38Z","updated_at":"2015-08-14T16:38:40Z","pushed_at":"2015-11-30T23:32:26Z","git_url":"git://github.com/ajkannan/gcloud-java.git","ssh_url":"git@github.com:ajkannan/gcloud-java.git","clone_url":"https://github.com/ajkannan/gcloud-java.git","svn_url":"https://github.com/ajkannan/gcloud-java","homepage":"http://googlecloudplatform.github.io/gcloud-java/site/0.0.6/","size":15831,"stargazers_count":0,"watchers_count":0,"language":"Java","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:resource-manager","ref":"resource-manager","sha":"a7f3c3950cb2f05453f4084e2a4856949d47741d","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":26181278,"name":"gcloud-java","full_name":"GoogleCloudPlatform/gcloud-java","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-java","description":"Google Cloud Client Library for Java","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/releases{/id}","created_at":"2014-11-04T17:57:16Z","updated_at":"2015-11-28T12:33:16Z","pushed_at":"2015-11-30T23:34:48Z","git_url":"git://github.com/GoogleCloudPlatform/gcloud-java.git","ssh_url":"git@github.com:GoogleCloudPlatform/gcloud-java.git","clone_url":"https://github.com/GoogleCloudPlatform/gcloud-java.git","svn_url":"https://github.com/GoogleCloudPlatform/gcloud-java","homepage":"http://googlecloudplatform.github.io/gcloud-java/","size":207360,"stargazers_count":46,"watchers_count":46,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":25,"mirror_url":null,"open_issues_count":86,"forks":25,"open_issues":86,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/427"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/427"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/427"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/427/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/427/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/427/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/statuses/e7b3539e33f94d4844d06b61dc882b21d19b482a"}}}}