{"action":"created","comment":{"url":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/comments/26167186","id":26167186,"diff_hunk":"@@ -0,0 +1,398 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one or more\n+ * contributor license agreements.  See the NOTICE file distributed with\n+ * this work for additional information regarding copyright ownership.\n+ * The ASF licenses this file to You under the Apache License, Version 2.0\n+ * (the \"License\"); you may not use this file except in compliance with\n+ * the License.  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+package org.jclouds.profitbricks.domain;\n+\n+import com.google.auto.value.AutoValue;\n+import com.google.common.collect.ImmutableList;\n+import org.jclouds.javax.annotation.Nullable;\n+\n+import java.util.Date;\n+import java.util.List;\n+\n+@AutoValue\n+public abstract class LoadBalancer {\n+\n+   public enum LoadbalancerAlgorithm {\n+\n+      ROUND_ROBIN, UNRECOGNIZED;\n+\n+      public static LoadbalancerAlgorithm\n+              fromValue(String value) {\n+         try {\n+            return valueOf(value);\n+         } catch (IllegalArgumentException e) {\n+            return UNRECOGNIZED;\n+         }\n+      }\n+   }\n+\n+   @Nullable\n+   public abstract String id();\n+\n+   @Nullable\n+   public abstract String name();\n+\n+   @Nullable\n+   public abstract LoadbalancerAlgorithm loadBalancerAlgorithm();\n+\n+   @Nullable\n+   public abstract String dataCenterId();\n+\n+   @Nullable\n+   public abstract String dataCenterVersion();\n+\n+   @Nullable\n+   public abstract boolean internetAccess();\n+\n+   @Nullable\n+   public abstract String ip();\n+\n+   @Nullable\n+   public abstract String lanId();\n+\n+   @Nullable\n+   public abstract ProvisioningState state();\n+\n+   @Nullable\n+   public abstract Date creationTime();\n+\n+   @Nullable\n+   public abstract Date lastModificationTime();\n+\n+   @Nullable\n+   public abstract List<Server> balancedServers();\n+\n+   @Nullable\n+   public abstract List<Firewall> firewalls();","path":"profitbricks/src/main/java/org/jclouds/profitbricks/domain/LoadBalancer.java","position":80,"original_position":80,"commit_id":"42a6251088b7aa403407676e90ee70cf65a97503","original_commit_id":"42a6251088b7aa403407676e90ee70cf65a97503","user":{"login":"jasminSPC","id":8327751,"avatar_url":"https://avatars.githubusercontent.com/u/8327751?v=3","gravatar_id":"","url":"https://api.github.com/users/jasminSPC","html_url":"https://github.com/jasminSPC","followers_url":"https://api.github.com/users/jasminSPC/followers","following_url":"https://api.github.com/users/jasminSPC/following{/other_user}","gists_url":"https://api.github.com/users/jasminSPC/gists{/gist_id}","starred_url":"https://api.github.com/users/jasminSPC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasminSPC/subscriptions","organizations_url":"https://api.github.com/users/jasminSPC/orgs","repos_url":"https://api.github.com/users/jasminSPC/repos","events_url":"https://api.github.com/users/jasminSPC/events{/privacy}","received_events_url":"https://api.github.com/users/jasminSPC/received_events","type":"User","site_admin":false},"body":"I use the same object for as a response when creating https://github.com/StackPointCloud/jclouds-labs/commit/42a6251088b7aa403407676e90ee70cf65a97503#diff-bf57b5d122ac037379a25c1825cf7badR65\r\n\r\nDo you think I should change this to return RequestId only?","created_at":"2015-03-10T21:17:44Z","updated_at":"2015-03-10T21:17:44Z","html_url":"https://github.com/jclouds/jclouds-labs/pull/143#discussion_r26167186","pull_request_url":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/143","_links":{"self":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/comments/26167186"},"html":{"href":"https://github.com/jclouds/jclouds-labs/pull/143#discussion_r26167186"},"pull_request":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/143"}}},"pull_request":{"url":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/143","id":30206987,"html_url":"https://github.com/jclouds/jclouds-labs/pull/143","diff_url":"https://github.com/jclouds/jclouds-labs/pull/143.diff","patch_url":"https://github.com/jclouds/jclouds-labs/pull/143.patch","issue_url":"https://api.github.com/repos/jclouds/jclouds-labs/issues/143","number":143,"state":"open","locked":false,"title":"JClouds Profitbricks provider - LoadBalancer API","user":{"login":"jasminSPC","id":8327751,"avatar_url":"https://avatars.githubusercontent.com/u/8327751?v=3","gravatar_id":"","url":"https://api.github.com/users/jasminSPC","html_url":"https://github.com/jasminSPC","followers_url":"https://api.github.com/users/jasminSPC/followers","following_url":"https://api.github.com/users/jasminSPC/following{/other_user}","gists_url":"https://api.github.com/users/jasminSPC/gists{/gist_id}","starred_url":"https://api.github.com/users/jasminSPC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasminSPC/subscriptions","organizations_url":"https://api.github.com/users/jasminSPC/orgs","repos_url":"https://api.github.com/users/jasminSPC/repos","events_url":"https://api.github.com/users/jasminSPC/events{/privacy}","received_events_url":"https://api.github.com/users/jasminSPC/received_events","type":"User","site_admin":false},"body":"JClouds Profitbricks provider - LoadBalancer API","created_at":"2015-02-27T22:30:28Z","updated_at":"2015-03-10T21:17:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30aaeff14a9a765e3f774e19c5f322335679814c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/143/commits","review_comments_url":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/143/comments","review_comment_url":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jclouds/jclouds-labs/issues/143/comments","statuses_url":"https://api.github.com/repos/jclouds/jclouds-labs/statuses/42a6251088b7aa403407676e90ee70cf65a97503","head":{"label":"StackPointCloud:profitbricks-loadbalancer-api","ref":"profitbricks-loadbalancer-api","sha":"42a6251088b7aa403407676e90ee70cf65a97503","user":{"login":"StackPointCloud","id":7716957,"avatar_url":"https://avatars.githubusercontent.com/u/7716957?v=3","gravatar_id":"","url":"https://api.github.com/users/StackPointCloud","html_url":"https://github.com/StackPointCloud","followers_url":"https://api.github.com/users/StackPointCloud/followers","following_url":"https://api.github.com/users/StackPointCloud/following{/other_user}","gists_url":"https://api.github.com/users/StackPointCloud/gists{/gist_id}","starred_url":"https://api.github.com/users/StackPointCloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackPointCloud/subscriptions","organizations_url":"https://api.github.com/users/StackPointCloud/orgs","repos_url":"https://api.github.com/users/StackPointCloud/repos","events_url":"https://api.github.com/users/StackPointCloud/events{/privacy}","received_events_url":"https://api.github.com/users/StackPointCloud/received_events","type":"Organization","site_admin":false},"repo":{"id":30977988,"name":"jclouds-labs","full_name":"StackPointCloud/jclouds-labs","owner":{"login":"StackPointCloud","id":7716957,"avatar_url":"https://avatars.githubusercontent.com/u/7716957?v=3","gravatar_id":"","url":"https://api.github.com/users/StackPointCloud","html_url":"https://github.com/StackPointCloud","followers_url":"https://api.github.com/users/StackPointCloud/followers","following_url":"https://api.github.com/users/StackPointCloud/following{/other_user}","gists_url":"https://api.github.com/users/StackPointCloud/gists{/gist_id}","starred_url":"https://api.github.com/users/StackPointCloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackPointCloud/subscriptions","organizations_url":"https://api.github.com/users/StackPointCloud/orgs","repos_url":"https://api.github.com/users/StackPointCloud/repos","events_url":"https://api.github.com/users/StackPointCloud/events{/privacy}","received_events_url":"https://api.github.com/users/StackPointCloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StackPointCloud/jclouds-labs","description":"Read-only mirror of ASF Git Repo for jclouds labs","fork":true,"url":"https://api.github.com/repos/StackPointCloud/jclouds-labs","forks_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/forks","keys_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/teams","hooks_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/hooks","issue_events_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/issues/events{/number}","events_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/events","assignees_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/assignees{/user}","branches_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/branches{/branch}","tags_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/tags","blobs_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/git/refs{/sha}","trees_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/statuses/{sha}","languages_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/languages","stargazers_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/stargazers","contributors_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/contributors","subscribers_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/subscribers","subscription_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/subscription","commits_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/commits{/sha}","git_commits_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/git/commits{/sha}","comments_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/comments{/number}","issue_comment_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/issues/comments{/number}","contents_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/contents/{+path}","compare_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/merges","archive_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/downloads","issues_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/issues{/number}","pulls_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/pulls{/number}","milestones_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/milestones{/number}","notifications_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/labels{/name}","releases_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/releases{/id}","created_at":"2015-02-18T17:50:37Z","updated_at":"2015-02-26T20:46:01Z","pushed_at":"2015-03-09T06:26:38Z","git_url":"git://github.com/StackPointCloud/jclouds-labs.git","ssh_url":"git@github.com:StackPointCloud/jclouds-labs.git","clone_url":"https://github.com/StackPointCloud/jclouds-labs.git","svn_url":"https://github.com/StackPointCloud/jclouds-labs","homepage":null,"size":20088,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jclouds:master","ref":"master","sha":"e97ddaeeb59acc516e3d4d8398cf2da5e5492487","user":{"login":"jclouds","id":108982,"avatar_url":"https://avatars.githubusercontent.com/u/108982?v=3","gravatar_id":"","url":"https://api.github.com/users/jclouds","html_url":"https://github.com/jclouds","followers_url":"https://api.github.com/users/jclouds/followers","following_url":"https://api.github.com/users/jclouds/following{/other_user}","gists_url":"https://api.github.com/users/jclouds/gists{/gist_id}","starred_url":"https://api.github.com/users/jclouds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jclouds/subscriptions","organizations_url":"https://api.github.com/users/jclouds/orgs","repos_url":"https://api.github.com/users/jclouds/repos","events_url":"https://api.github.com/users/jclouds/events{/privacy}","received_events_url":"https://api.github.com/users/jclouds/received_events","type":"Organization","site_admin":false},"repo":{"id":10040970,"name":"jclouds-labs","full_name":"jclouds/jclouds-labs","owner":{"login":"jclouds","id":108982,"avatar_url":"https://avatars.githubusercontent.com/u/108982?v=3","gravatar_id":"","url":"https://api.github.com/users/jclouds","html_url":"https://github.com/jclouds","followers_url":"https://api.github.com/users/jclouds/followers","following_url":"https://api.github.com/users/jclouds/following{/other_user}","gists_url":"https://api.github.com/users/jclouds/gists{/gist_id}","starred_url":"https://api.github.com/users/jclouds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jclouds/subscriptions","organizations_url":"https://api.github.com/users/jclouds/orgs","repos_url":"https://api.github.com/users/jclouds/repos","events_url":"https://api.github.com/users/jclouds/events{/privacy}","received_events_url":"https://api.github.com/users/jclouds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jclouds/jclouds-labs","description":"Read-only mirror of ASF Git Repo for jclouds labs","fork":false,"url":"https://api.github.com/repos/jclouds/jclouds-labs","forks_url":"https://api.github.com/repos/jclouds/jclouds-labs/forks","keys_url":"https://api.github.com/repos/jclouds/jclouds-labs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jclouds/jclouds-labs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jclouds/jclouds-labs/teams","hooks_url":"https://api.github.com/repos/jclouds/jclouds-labs/hooks","issue_events_url":"https://api.github.com/repos/jclouds/jclouds-labs/issues/events{/number}","events_url":"https://api.github.com/repos/jclouds/jclouds-labs/events","assignees_url":"https://api.github.com/repos/jclouds/jclouds-labs/assignees{/user}","branches_url":"https://api.github.com/repos/jclouds/jclouds-labs/branches{/branch}","tags_url":"https://api.github.com/repos/jclouds/jclouds-labs/tags","blobs_url":"https://api.github.com/repos/jclouds/jclouds-labs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jclouds/jclouds-labs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jclouds/jclouds-labs/git/refs{/sha}","trees_url":"https://api.github.com/repos/jclouds/jclouds-labs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jclouds/jclouds-labs/statuses/{sha}","languages_url":"https://api.github.com/repos/jclouds/jclouds-labs/languages","stargazers_url":"https://api.github.com/repos/jclouds/jclouds-labs/stargazers","contributors_url":"https://api.github.com/repos/jclouds/jclouds-labs/contributors","subscribers_url":"https://api.github.com/repos/jclouds/jclouds-labs/subscribers","subscription_url":"https://api.github.com/repos/jclouds/jclouds-labs/subscription","commits_url":"https://api.github.com/repos/jclouds/jclouds-labs/commits{/sha}","git_commits_url":"https://api.github.com/repos/jclouds/jclouds-labs/git/commits{/sha}","comments_url":"https://api.github.com/repos/jclouds/jclouds-labs/comments{/number}","issue_comment_url":"https://api.github.com/repos/jclouds/jclouds-labs/issues/comments{/number}","contents_url":"https://api.github.com/repos/jclouds/jclouds-labs/contents/{+path}","compare_url":"https://api.github.com/repos/jclouds/jclouds-labs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jclouds/jclouds-labs/merges","archive_url":"https://api.github.com/repos/jclouds/jclouds-labs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jclouds/jclouds-labs/downloads","issues_url":"https://api.github.com/repos/jclouds/jclouds-labs/issues{/number}","pulls_url":"https://api.github.com/repos/jclouds/jclouds-labs/pulls{/number}","milestones_url":"https://api.github.com/repos/jclouds/jclouds-labs/milestones{/number}","notifications_url":"https://api.github.com/repos/jclouds/jclouds-labs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jclouds/jclouds-labs/labels{/name}","releases_url":"https://api.github.com/repos/jclouds/jclouds-labs/releases{/id}","created_at":"2013-05-13T20:47:47Z","updated_at":"2015-03-08T20:32:20Z","pushed_at":"2015-03-08T20:32:18Z","git_url":"git://github.com/jclouds/jclouds-labs.git","ssh_url":"git@github.com:jclouds/jclouds-labs.git","clone_url":"https://github.com/jclouds/jclouds-labs.git","svn_url":"https://github.com/jclouds/jclouds-labs","homepage":null,"size":29024,"stargazers_count":16,"watchers_count":16,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":8,"forks":64,"open_issues":8,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/143"},"html":{"href":"https://github.com/jclouds/jclouds-labs/pull/143"},"issue":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/issues/143"},"comments":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/statuses/42a6251088b7aa403407676e90ee70cf65a97503"}}}}