{"action":"created","comment":{"url":"https://api.github.com/repos/sourced/deploymentmanager-samples/pulls/comments/213758027","pull_request_review_id":150660665,"id":213758027,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzc1ODAyNw==","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 HAProxy installed and configured to load\n+    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+      A network name to which a load balancer will be connected to,\n+      e.g. '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+    description: |\n+      Compute instance type. E.g. 'n1-standard-1'\n+      Visit https://cloud.google.com/compute/docs/machine-types for more details\n+  serviceAccountEmail:\n+    type: string\n+    description: |\n+      Service account email which has enought permissions to list zones and\n+      instanceGroups instances\n+    default: default\n+  loadBalancer:\n+    type: object\n+    description: HAProxy load balancer's front end settings\n+    required:\n+      - port\n+    properties:\n+      algorithm:\n+        type: string\n+        description: A load balancing algorithm\n+        enum:\n+          - roundrobin\n+          - leastconn\n+          - source\n+        default: roundrobin\n+      port:\n+        type: integer\n+        description: A port number at which load balancer will receive requests\n+      mode:\n+        type: string\n+        description: What kind of traffic HAProxy will be load balancing\n+        enum:\n+          - http\n+          - tcp\n+        default: http\n+    instances:\n+      type: object\n+      description: HAProxy load balancer's back end settings\n+      required:\n+        - port\n+        - groups\n+      properties:\n+        port:\n+          type: integer\n+          description: |\n+            A port number at which instances will accept requests\n+          groups:\n+            type: array\n+            description: A list of instanceGroups which will be load balanced\n+            item:\n+              type: string\n+              description: |\n+                Instance group name. When located in the same availability zone,\n+                as a load balancer, just a group name is enough. When located\n+                elsewhere, name should have the following format\n+                'zones/[ZONE]/instanceGroups/[GROUP]'\n+\n+outputs:\n+  properties:\n+    - externalIp:\n+      type: string\n+      description: Reference to external ip address of a load balancer\n+    - internalIp:\n+      type: string\n+      description: Reference to internal ip address of a load balancer\n+    - name:\n+      type: string\n+      description: A name of a load balancer\n+    - selfLink:\n+      type: string\n+      description: A link to a load balancer instance\n+    - port:","path":"community/cloud-foundation/templates/haproxy/haproxy.py.schema","position":114,"original_position":114,"commit_id":"7528ffa9d47f751142200a92edcf8266bbd1d273","original_commit_id":"7528ffa9d47f751142200a92edcf8266bbd1d273","user":{"login":"alexander-levitski","id":42546035,"node_id":"MDQ6VXNlcjQyNTQ2MDM1","avatar_url":"https://avatars3.githubusercontent.com/u/42546035?v=4","gravatar_id":"","url":"https://api.github.com/users/alexander-levitski","html_url":"https://github.com/alexander-levitski","followers_url":"https://api.github.com/users/alexander-levitski/followers","following_url":"https://api.github.com/users/alexander-levitski/following{/other_user}","gists_url":"https://api.github.com/users/alexander-levitski/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-levitski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-levitski/subscriptions","organizations_url":"https://api.github.com/users/alexander-levitski/orgs","repos_url":"https://api.github.com/users/alexander-levitski/repos","events_url":"https://api.github.com/users/alexander-levitski/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-levitski/received_events","type":"User","site_admin":false},"body":"Link to the load balancer instance.","created_at":"2018-08-29T17:00:19Z","updated_at":"2018-08-29T17:00:19Z","html_url":"https://github.com/sourced/deploymentmanager-samples/pull/36#discussion_r213758027","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/213758027"},"html":{"href":"https://github.com/sourced/deploymentmanager-samples/pull/36#discussion_r213758027"},"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-08-29T17:00:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7748f2c3ccfae3f1cc8cad7e44de28b9df2fda0f","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/7528ffa9d47f751142200a92edcf8266bbd1d273","head":{"label":"sourced:haproxy","ref":"haproxy","sha":"7528ffa9d47f751142200a92edcf8266bbd1d273","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-08-13T19:29:00Z","pushed_at":"2018-08-29T16:47:02Z","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":1456,"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":7,"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":7,"watchers":1,"default_branch":"cloud-foundation"}},"base":{"label":"sourced:cloud-foundation","ref":"cloud-foundation","sha":"e0e2eea3658a8fb8041dcc32d23dd45262b1e296","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-08-13T19:29:00Z","pushed_at":"2018-08-29T16:47:02Z","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":1456,"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":7,"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":7,"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/7528ffa9d47f751142200a92edcf8266bbd1d273"}},"author_association":"NONE"}}
{"actor":{"display_login":"alexander-levitski"}}