{"action":"created","comment":{"url":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls/comments/215419126","pull_request_review_id":152680758,"id":215419126,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTQxOTEyNg==","diff_hunk":"@@ -0,0 +1,124 @@\n+# Copyright 2018 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+info:\n+  title: HAProxy load balancer template\n+  author: Sourced Group Inc.\n+  description: |\n+    Deploys a Compute instance, with an HAProxy installed and configured to\n+    load-balance traffic between instance groups.\n+\n+imports:\n+  - path: haproxy.py\n+\n+required:\n+  - zone\n+  - network\n+  - loadBalancer\n+  - instances\n+\n+properties:\n+  name:\n+    type: string\n+    description: A name of a load balancer instance\n+  network:\n+    type: string\n+    description: |\n+      Name of the network to which a load balancer will be connected; e.g.,\n+      'my-custom-network' or 'default'.\n+  zone:\n+    type: string\n+    description: Availability zone. E.g. 'us-central1-a'\n+  machineType:\n+    type: string\n+    default: n1-standard-1\n+    description: |\n+      The Compute instance type. E.g., 'n1-standard-1'. For details, see:\n+      https://cloud.google.com/compute/docs/machine-types.\n+  serviceAccountEmail:\n+    type: string\n+    default: default\n+    description: |\n+      A service account email with permissions sufficient to list zones and\n+      instanceGroups instances.\n+  loadBalancer:\n+    type: object\n+    description: Front-end settings for the HAProxy load balancer.\n+    required:\n+      - port\n+    properties:\n+      algorithm:\n+        type: string\n+        default: roundrobin\n+        description: The load balancing algorithm.\n+        enum:\n+          - roundrobin\n+          - leastconn\n+          - source\n+      port:\n+        type: integer\n+        description: Number of the port at which the load balancer will receive requests.\n+      mode:\n+        type: string\n+        default: http\n+        description: The type of traffic the HAProxy will be load-balancing.\n+        enum:\n+          - http\n+          - tcp\n+    instances:\n+      type: object\n+      description: Back-end settings of the HAProxy load balancer.\n+      required:\n+        - port\n+        - groups\n+      properties:\n+        port:\n+          type: integer\n+          description: |\n+            Number of the port at which instances will accept requests.\n+          groups:\n+            type: array\n+            description: A list of instanceGroups that will be load-balanced.\n+            item:","path":"community/cloud-foundation/templates/haproxy/haproxy.py.schema","position":93,"original_position":93,"commit_id":"44b3a85657cb0053f5a443e8595197d804fd7f32","original_commit_id":"44b3a85657cb0053f5a443e8595197d804fd7f32","user":{"login":"sourced-vince","id":41383330,"node_id":"MDQ6VXNlcjQxMzgzMzMw","avatar_url":"https://avatars0.githubusercontent.com/u/41383330?v=4","gravatar_id":"","url":"https://api.github.com/users/sourced-vince","html_url":"https://github.com/sourced-vince","followers_url":"https://api.github.com/users/sourced-vince/followers","following_url":"https://api.github.com/users/sourced-vince/following{/other_user}","gists_url":"https://api.github.com/users/sourced-vince/gists{/gist_id}","starred_url":"https://api.github.com/users/sourced-vince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourced-vince/subscriptions","organizations_url":"https://api.github.com/users/sourced-vince/orgs","repos_url":"https://api.github.com/users/sourced-vince/repos","events_url":"https://api.github.com/users/sourced-vince/events{/privacy}","received_events_url":"https://api.github.com/users/sourced-vince/received_events","type":"User","site_admin":false},"body":"items","created_at":"2018-09-05T20:43:25Z","updated_at":"2018-09-05T20:43:28Z","html_url":"https://github.com/sourced/deploymentmanager-samples/pull/36#discussion_r215419126","pull_request_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls/36","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls/comments/215419126"},"html":{"href":"https://github.com/sourced/deploymentmanager-samples/pull/36#discussion_r215419126"},"pull_request":{"href":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls/36","id":211444485,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExNDQ0NDg1","html_url":"https://github.com/sourced/deploymentmanager-samples/pull/36","diff_url":"https://github.com/sourced/deploymentmanager-samples/pull/36.diff","patch_url":"https://github.com/sourced/deploymentmanager-samples/pull/36.patch","issue_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/issues/36","number":36,"state":"open","locked":false,"title":"Add HAProxy template","user":{"login":"sourced-pavel","id":41803546,"node_id":"MDQ6VXNlcjQxODAzNTQ2","avatar_url":"https://avatars1.githubusercontent.com/u/41803546?v=4","gravatar_id":"","url":"https://api.github.com/users/sourced-pavel","html_url":"https://github.com/sourced-pavel","followers_url":"https://api.github.com/users/sourced-pavel/followers","following_url":"https://api.github.com/users/sourced-pavel/following{/other_user}","gists_url":"https://api.github.com/users/sourced-pavel/gists{/gist_id}","starred_url":"https://api.github.com/users/sourced-pavel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourced-pavel/subscriptions","organizations_url":"https://api.github.com/users/sourced-pavel/orgs","repos_url":"https://api.github.com/users/sourced-pavel/repos","events_url":"https://api.github.com/users/sourced-pavel/events{/privacy}","received_events_url":"https://api.github.com/users/sourced-pavel/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-28T14:32:25Z","updated_at":"2018-09-05T20:43:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f41ba06c6317d1d63c0d461d3d262a861ad5cf7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls/36/commits","review_comments_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls/36/comments","review_comment_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/issues/36/comments","statuses_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/statuses/44b3a85657cb0053f5a443e8595197d804fd7f32","head":{"label":"sourced:haproxy","ref":"haproxy","sha":"44b3a85657cb0053f5a443e8595197d804fd7f32","user":{"login":"sourced","id":24400964,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NDAwOTY0","avatar_url":"https://avatars1.githubusercontent.com/u/24400964?v=4","gravatar_id":"","url":"https://api.github.com/users/sourced","html_url":"https://github.com/sourced","followers_url":"https://api.github.com/users/sourced/followers","following_url":"https://api.github.com/users/sourced/following{/other_user}","gists_url":"https://api.github.com/users/sourced/gists{/gist_id}","starred_url":"https://api.github.com/users/sourced/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourced/subscriptions","organizations_url":"https://api.github.com/users/sourced/orgs","repos_url":"https://api.github.com/users/sourced/repos","events_url":"https://api.github.com/users/sourced/events{/privacy}","received_events_url":"https://api.github.com/users/sourced/received_events","type":"Organization","site_admin":false},"repo":{"id":141518202,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE1MTgyMDI=","name":"deploymentmanager-samples","full_name":"sourced/deploymentmanager-samples","owner":{"login":"sourced","id":24400964,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NDAwOTY0","avatar_url":"https://avatars1.githubusercontent.com/u/24400964?v=4","gravatar_id":"","url":"https://api.github.com/users/sourced","html_url":"https://github.com/sourced","followers_url":"https://api.github.com/users/sourced/followers","following_url":"https://api.github.com/users/sourced/following{/other_user}","gists_url":"https://api.github.com/users/sourced/gists{/gist_id}","starred_url":"https://api.github.com/users/sourced/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourced/subscriptions","organizations_url":"https://api.github.com/users/sourced/orgs","repos_url":"https://api.github.com/users/sourced/repos","events_url":"https://api.github.com/users/sourced/events{/privacy}","received_events_url":"https://api.github.com/users/sourced/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourced/deploymentmanager-samples","description":"Deployment Manager samples and templates.","fork":true,"url":"https://api.github.com/repos/sourced/deploymentmanager-samples","forks_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/forks","keys_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/teams","hooks_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/hooks","issue_events_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/issues/events{/number}","events_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/events","assignees_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/assignees{/user}","branches_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/branches{/branch}","tags_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/tags","blobs_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/languages","stargazers_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/stargazers","contributors_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/contributors","subscribers_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/subscribers","subscription_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/subscription","commits_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/contents/{+path}","compare_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/merges","archive_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/downloads","issues_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/issues{/number}","pulls_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/labels{/name}","releases_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/releases{/id}","deployments_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/deployments","created_at":"2018-07-19T03:11:11Z","updated_at":"2018-09-04T16:27:55Z","pushed_at":"2018-09-05T20:31:55Z","git_url":"git://github.com/sourced/deploymentmanager-samples.git","ssh_url":"git@github.com:sourced/deploymentmanager-samples.git","clone_url":"https://github.com/sourced/deploymentmanager-samples.git","svn_url":"https://github.com/sourced/deploymentmanager-samples","homepage":null,"size":1452,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":23,"watchers":1,"default_branch":"cloud-foundation"}},"base":{"label":"sourced:cloud-foundation","ref":"cloud-foundation","sha":"6ec6c60da919970c0c46e86714f3679e96b7d8bf","user":{"login":"sourced","id":24400964,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NDAwOTY0","avatar_url":"https://avatars1.githubusercontent.com/u/24400964?v=4","gravatar_id":"","url":"https://api.github.com/users/sourced","html_url":"https://github.com/sourced","followers_url":"https://api.github.com/users/sourced/followers","following_url":"https://api.github.com/users/sourced/following{/other_user}","gists_url":"https://api.github.com/users/sourced/gists{/gist_id}","starred_url":"https://api.github.com/users/sourced/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourced/subscriptions","organizations_url":"https://api.github.com/users/sourced/orgs","repos_url":"https://api.github.com/users/sourced/repos","events_url":"https://api.github.com/users/sourced/events{/privacy}","received_events_url":"https://api.github.com/users/sourced/received_events","type":"Organization","site_admin":false},"repo":{"id":141518202,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE1MTgyMDI=","name":"deploymentmanager-samples","full_name":"sourced/deploymentmanager-samples","owner":{"login":"sourced","id":24400964,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NDAwOTY0","avatar_url":"https://avatars1.githubusercontent.com/u/24400964?v=4","gravatar_id":"","url":"https://api.github.com/users/sourced","html_url":"https://github.com/sourced","followers_url":"https://api.github.com/users/sourced/followers","following_url":"https://api.github.com/users/sourced/following{/other_user}","gists_url":"https://api.github.com/users/sourced/gists{/gist_id}","starred_url":"https://api.github.com/users/sourced/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourced/subscriptions","organizations_url":"https://api.github.com/users/sourced/orgs","repos_url":"https://api.github.com/users/sourced/repos","events_url":"https://api.github.com/users/sourced/events{/privacy}","received_events_url":"https://api.github.com/users/sourced/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourced/deploymentmanager-samples","description":"Deployment Manager samples and templates.","fork":true,"url":"https://api.github.com/repos/sourced/deploymentmanager-samples","forks_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/forks","keys_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/teams","hooks_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/hooks","issue_events_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/issues/events{/number}","events_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/events","assignees_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/assignees{/user}","branches_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/branches{/branch}","tags_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/tags","blobs_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/languages","stargazers_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/stargazers","contributors_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/contributors","subscribers_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/subscribers","subscription_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/subscription","commits_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/contents/{+path}","compare_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/merges","archive_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/downloads","issues_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/issues{/number}","pulls_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/labels{/name}","releases_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/releases{/id}","deployments_url":"https://api.github.com/repos/sourced/deploymentmanager-samples/deployments","created_at":"2018-07-19T03:11:11Z","updated_at":"2018-09-04T16:27:55Z","pushed_at":"2018-09-05T20:31:55Z","git_url":"git://github.com/sourced/deploymentmanager-samples.git","ssh_url":"git@github.com:sourced/deploymentmanager-samples.git","clone_url":"https://github.com/sourced/deploymentmanager-samples.git","svn_url":"https://github.com/sourced/deploymentmanager-samples","homepage":null,"size":1452,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":23,"watchers":1,"default_branch":"cloud-foundation"}},"_links":{"self":{"href":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls/36"},"html":{"href":"https://github.com/sourced/deploymentmanager-samples/pull/36"},"issue":{"href":"https://api.github.com/repos/sourced/deploymentmanager-samples/issues/36"},"comments":{"href":"https://api.github.com/repos/sourced/deploymentmanager-samples/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/sourced/deploymentmanager-samples/statuses/44b3a85657cb0053f5a443e8595197d804fd7f32"}},"author_association":"NONE"}}
{"actor":{"display_login":"sourced-vince"}}