{"action":"created","comment":{"url":"https://api.github.com/repos/cloudera/director-google-plugin/pulls/comments/37457069","id":37457069,"diff_hunk":"@@ -0,0 +1,101 @@\n+/*\n+ * Copyright (c) 2015 Google, Inc.\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+package com.cloudera.director.google.sql;\n+\n+import static com.cloudera.director.spi.v1.database.DatabaseServerInstanceTemplate.DatabaseServerInstanceTemplateConfigurationPropertyToken.ADMIN_PASSWORD;\n+import static com.cloudera.director.spi.v1.database.DatabaseServerInstanceTemplate.DatabaseServerInstanceTemplateConfigurationPropertyToken.ADMIN_USERNAME;\n+import static com.cloudera.director.spi.v1.database.DatabaseServerInstanceTemplate.DatabaseServerInstanceTemplateConfigurationPropertyToken.TYPE;\n+\n+import com.cloudera.director.spi.v1.model.ConfigurationProperty;\n+import com.cloudera.director.spi.v1.model.ConfigurationPropertyToken;\n+import com.cloudera.director.spi.v1.model.util.SimpleConfigurationPropertyBuilder;\n+\n+\n+/**\n+ * Google Cloud SQL instance template configuration properties.\n+ */\n+public enum GoogleCloudSQLInstanceTemplateConfigurationProperty implements ConfigurationPropertyToken {\n+\n+  TIER(new SimpleConfigurationPropertyBuilder()\n+      .configKey(\"tier\")\n+      .name(\"Tier\")\n+      .defaultValue(\"D1\")\n+      .defaultDescription(\"The tier of your database. This affects performance and how much you will be charged.\")\n+      .widget(ConfigurationProperty.Widget.OPENLIST)\n+      .addValidValues(","path":"provider/src/main/java/com/cloudera/director/google/sql/GoogleCloudSQLInstanceTemplateConfigurationProperty.java","position":39,"original_position":39,"commit_id":"4affbbb596ff3331d35107567801dc5fc86ec3b7","original_commit_id":"4affbbb596ff3331d35107567801dc5fc86ec3b7","user":{"login":"mbrukman","id":4074659,"avatar_url":"https://avatars.githubusercontent.com/u/4074659?v=3","gravatar_id":"","url":"https://api.github.com/users/mbrukman","html_url":"https://github.com/mbrukman","followers_url":"https://api.github.com/users/mbrukman/followers","following_url":"https://api.github.com/users/mbrukman/following{/other_user}","gists_url":"https://api.github.com/users/mbrukman/gists{/gist_id}","starred_url":"https://api.github.com/users/mbrukman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbrukman/subscriptions","organizations_url":"https://api.github.com/users/mbrukman/orgs","repos_url":"https://api.github.com/users/mbrukman/repos","events_url":"https://api.github.com/users/mbrukman/events{/privacy}","received_events_url":"https://api.github.com/users/mbrukman/received_events","type":"User","site_admin":false},"body":"OK, SGTM. Thanks for the explanation.","created_at":"2015-08-19T19:28:08Z","updated_at":"2015-08-19T19:28:08Z","html_url":"https://github.com/cloudera/director-google-plugin/pull/93#discussion_r37457069","pull_request_url":"https://api.github.com/repos/cloudera/director-google-plugin/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/cloudera/director-google-plugin/pulls/comments/37457069"},"html":{"href":"https://github.com/cloudera/director-google-plugin/pull/93#discussion_r37457069"},"pull_request":{"href":"https://api.github.com/repos/cloudera/director-google-plugin/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/cloudera/director-google-plugin/pulls/93","id":42352826,"html_url":"https://github.com/cloudera/director-google-plugin/pull/93","diff_url":"https://github.com/cloudera/director-google-plugin/pull/93.diff","patch_url":"https://github.com/cloudera/director-google-plugin/pull/93.patch","issue_url":"https://api.github.com/repos/cloudera/director-google-plugin/issues/93","number":93,"state":"open","locked":false,"title":"WIP: First pass Cloud SQL integration.","user":{"login":"kl3n1nz","id":13105644,"avatar_url":"https://avatars.githubusercontent.com/u/13105644?v=3","gravatar_id":"","url":"https://api.github.com/users/kl3n1nz","html_url":"https://github.com/kl3n1nz","followers_url":"https://api.github.com/users/kl3n1nz/followers","following_url":"https://api.github.com/users/kl3n1nz/following{/other_user}","gists_url":"https://api.github.com/users/kl3n1nz/gists{/gist_id}","starred_url":"https://api.github.com/users/kl3n1nz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kl3n1nz/subscriptions","organizations_url":"https://api.github.com/users/kl3n1nz/orgs","repos_url":"https://api.github.com/users/kl3n1nz/repos","events_url":"https://api.github.com/users/kl3n1nz/events{/privacy}","received_events_url":"https://api.github.com/users/kl3n1nz/received_events","type":"User","site_admin":false},"body":"@duftler please review.","created_at":"2015-08-13T13:54:42Z","updated_at":"2015-08-19T19:28:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51070f36e974abbc1981b84101c5169f797b5f6f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudera/director-google-plugin/pulls/93/commits","review_comments_url":"https://api.github.com/repos/cloudera/director-google-plugin/pulls/93/comments","review_comment_url":"https://api.github.com/repos/cloudera/director-google-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudera/director-google-plugin/issues/93/comments","statuses_url":"https://api.github.com/repos/cloudera/director-google-plugin/statuses/4affbbb596ff3331d35107567801dc5fc86ec3b7","head":{"label":"kl3n1nz:google-sql-first-pass","ref":"google-sql-first-pass","sha":"4affbbb596ff3331d35107567801dc5fc86ec3b7","user":{"login":"kl3n1nz","id":13105644,"avatar_url":"https://avatars.githubusercontent.com/u/13105644?v=3","gravatar_id":"","url":"https://api.github.com/users/kl3n1nz","html_url":"https://github.com/kl3n1nz","followers_url":"https://api.github.com/users/kl3n1nz/followers","following_url":"https://api.github.com/users/kl3n1nz/following{/other_user}","gists_url":"https://api.github.com/users/kl3n1nz/gists{/gist_id}","starred_url":"https://api.github.com/users/kl3n1nz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kl3n1nz/subscriptions","organizations_url":"https://api.github.com/users/kl3n1nz/orgs","repos_url":"https://api.github.com/users/kl3n1nz/repos","events_url":"https://api.github.com/users/kl3n1nz/events{/privacy}","received_events_url":"https://api.github.com/users/kl3n1nz/received_events","type":"User","site_admin":false},"repo":{"id":40658491,"name":"director-google-plugin","full_name":"kl3n1nz/director-google-plugin","owner":{"login":"kl3n1nz","id":13105644,"avatar_url":"https://avatars.githubusercontent.com/u/13105644?v=3","gravatar_id":"","url":"https://api.github.com/users/kl3n1nz","html_url":"https://github.com/kl3n1nz","followers_url":"https://api.github.com/users/kl3n1nz/followers","following_url":"https://api.github.com/users/kl3n1nz/following{/other_user}","gists_url":"https://api.github.com/users/kl3n1nz/gists{/gist_id}","starred_url":"https://api.github.com/users/kl3n1nz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kl3n1nz/subscriptions","organizations_url":"https://api.github.com/users/kl3n1nz/orgs","repos_url":"https://api.github.com/users/kl3n1nz/repos","events_url":"https://api.github.com/users/kl3n1nz/events{/privacy}","received_events_url":"https://api.github.com/users/kl3n1nz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kl3n1nz/director-google-plugin","description":"Cloudera Director - Google Cloud Platform integration","fork":true,"url":"https://api.github.com/repos/kl3n1nz/director-google-plugin","forks_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/forks","keys_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/teams","hooks_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/hooks","issue_events_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/events","assignees_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/tags","blobs_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/languages","stargazers_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/stargazers","contributors_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/contributors","subscribers_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/subscribers","subscription_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/subscription","commits_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/merges","archive_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/downloads","issues_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/labels{/name}","releases_url":"https://api.github.com/repos/kl3n1nz/director-google-plugin/releases{/id}","created_at":"2015-08-13T12:50:11Z","updated_at":"2015-08-13T12:50:12Z","pushed_at":"2015-08-19T13:29:08Z","git_url":"git://github.com/kl3n1nz/director-google-plugin.git","ssh_url":"git@github.com:kl3n1nz/director-google-plugin.git","clone_url":"https://github.com/kl3n1nz/director-google-plugin.git","svn_url":"https://github.com/kl3n1nz/director-google-plugin","homepage":null,"size":852,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cloudera:master","ref":"master","sha":"7df63cb7d56373d75184ba36fbec6a6627883851","user":{"login":"cloudera","id":87383,"avatar_url":"https://avatars.githubusercontent.com/u/87383?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudera","html_url":"https://github.com/cloudera","followers_url":"https://api.github.com/users/cloudera/followers","following_url":"https://api.github.com/users/cloudera/following{/other_user}","gists_url":"https://api.github.com/users/cloudera/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudera/subscriptions","organizations_url":"https://api.github.com/users/cloudera/orgs","repos_url":"https://api.github.com/users/cloudera/repos","events_url":"https://api.github.com/users/cloudera/events{/privacy}","received_events_url":"https://api.github.com/users/cloudera/received_events","type":"Organization","site_admin":false},"repo":{"id":30982881,"name":"director-google-plugin","full_name":"cloudera/director-google-plugin","owner":{"login":"cloudera","id":87383,"avatar_url":"https://avatars.githubusercontent.com/u/87383?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudera","html_url":"https://github.com/cloudera","followers_url":"https://api.github.com/users/cloudera/followers","following_url":"https://api.github.com/users/cloudera/following{/other_user}","gists_url":"https://api.github.com/users/cloudera/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudera/subscriptions","organizations_url":"https://api.github.com/users/cloudera/orgs","repos_url":"https://api.github.com/users/cloudera/repos","events_url":"https://api.github.com/users/cloudera/events{/privacy}","received_events_url":"https://api.github.com/users/cloudera/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudera/director-google-plugin","description":"Cloudera Director - Google Cloud Platform integration","fork":false,"url":"https://api.github.com/repos/cloudera/director-google-plugin","forks_url":"https://api.github.com/repos/cloudera/director-google-plugin/forks","keys_url":"https://api.github.com/repos/cloudera/director-google-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudera/director-google-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudera/director-google-plugin/teams","hooks_url":"https://api.github.com/repos/cloudera/director-google-plugin/hooks","issue_events_url":"https://api.github.com/repos/cloudera/director-google-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/cloudera/director-google-plugin/events","assignees_url":"https://api.github.com/repos/cloudera/director-google-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/cloudera/director-google-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/cloudera/director-google-plugin/tags","blobs_url":"https://api.github.com/repos/cloudera/director-google-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudera/director-google-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudera/director-google-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudera/director-google-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudera/director-google-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudera/director-google-plugin/languages","stargazers_url":"https://api.github.com/repos/cloudera/director-google-plugin/stargazers","contributors_url":"https://api.github.com/repos/cloudera/director-google-plugin/contributors","subscribers_url":"https://api.github.com/repos/cloudera/director-google-plugin/subscribers","subscription_url":"https://api.github.com/repos/cloudera/director-google-plugin/subscription","commits_url":"https://api.github.com/repos/cloudera/director-google-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudera/director-google-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudera/director-google-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudera/director-google-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudera/director-google-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/cloudera/director-google-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudera/director-google-plugin/merges","archive_url":"https://api.github.com/repos/cloudera/director-google-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudera/director-google-plugin/downloads","issues_url":"https://api.github.com/repos/cloudera/director-google-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/cloudera/director-google-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudera/director-google-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudera/director-google-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudera/director-google-plugin/labels{/name}","releases_url":"https://api.github.com/repos/cloudera/director-google-plugin/releases{/id}","created_at":"2015-02-18T19:39:24Z","updated_at":"2015-08-13T05:46:08Z","pushed_at":"2015-08-19T13:29:09Z","git_url":"git://github.com/cloudera/director-google-plugin.git","ssh_url":"git@github.com:cloudera/director-google-plugin.git","clone_url":"https://github.com/cloudera/director-google-plugin.git","svn_url":"https://github.com/cloudera/director-google-plugin","homepage":null,"size":852,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudera/director-google-plugin/pulls/93"},"html":{"href":"https://github.com/cloudera/director-google-plugin/pull/93"},"issue":{"href":"https://api.github.com/repos/cloudera/director-google-plugin/issues/93"},"comments":{"href":"https://api.github.com/repos/cloudera/director-google-plugin/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudera/director-google-plugin/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudera/director-google-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudera/director-google-plugin/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/cloudera/director-google-plugin/statuses/4affbbb596ff3331d35107567801dc5fc86ec3b7"}}}}