{"action":"created","comment":{"url":"https://api.github.com/repos/juju/juju-gui/pulls/comments/59585387","id":59585387,"diff_hunk":"@@ -157,6 +130,128 @@ YUI.add('deployment-add-credentials', function() {\n                 required=\"required\"\n                 type=\"text\"\n                 ref=\"templateSecretKey\" />\n+            </div>);\n+          break;\n+        case 'gcp':\n+          return (\n+            <div className=\"twelve-col\">\n+              <p className=\"deployment-add-credentials__p six-col last-col\">\n+                The GCE provider uses OAauth to Authenticate. This requires that\n+                you set it up and get the relevant credentials. For more\n+                information see&nbsp;\n+                <a className=\"deployment-panel__link\"\n+                  href={'https://cloud.google.com/copmute/dosc/api/how-tos/' +\n+                    'authorization'}\n+                  target=\"_blank\">\n+                  https://cloud.google.com/copmute/dosc/api/how-tos/\n+                  authorization\n+                </a>.\n+                The key information can be downloaded as a JSON file, or copied\n+                from&nbsp;\n+                <a className=\"deployment-panel__link\"\n+                  href={'https://console.developers.google.com/project/apiui/' +\n+                    'credential'}\n+                  target=\"_blank\">\n+                  https://console.developers.google.com/project/apiui/credential\n+                </a>.\n+              </p>\n+              <div className=\"deployment-add-credentials__upload twelve-col\">\n+                Upload GCE auth-file or&nbsp;\n+                <span className=\"link\">manually set the individual fields</span>\n+              </div>\n+            </div>);\n+          break;\n+        case 'azure':\n+          return (\n+            <div className=\"twelve-col\">\n+              <p className=\"deployment-add-credentials__p six-col last-col\">\n+                The following fields require your Windows Azure management\n+                information. For more information please see:&nbsp;\n+                <a className=\"deployment-panel__link\"\n+                  href=\"https://msdn.microsoft.com/en-us/library/windowsazure\"\n+                  target=\"_blank\">\n+                  https://msdn.microsoft.com/en-us/library/windowsazure\n+                </a>\n+                &nbsp;for details.\n+              </p>\n+              <div className=\"deployment-add-credentials__upload twelve-col\">\n+                Upload management certificate &rsaquo;\n+              </div>\n+            </div>);\n+          break;\n+      }\n+    },\n+\n+    render: function() {\n+      var cloud = this.props.cloud;\n+      var title = cloud.title;\n+      var buttons = [{\n+        action: this._handleChangeCloud,\n+        title: 'Change cloud',\n+        type: 'inline-neutral'\n+      }, {\n+        title: 'Add credentials',\n+        action: this._handleAddCredentials,\n+        disabled: cloud.id !== 'aws',\n+        type: 'inline-positive'\n+      }];\n+      var credentialName = cloud.id === 'gcp' ?\n+        'Project ID (credential name)' : 'Credential name';\n+      return (\n+        <div className=\"deployment-panel__child\">\n+          <juju.components.DeploymentPanelContent\n+            title={`Configure ${title}`}>\n+            <div className=\"deployment-add-credentials__logo\">\n+                <juju.components.SvgIcon\n+                  height={cloud.svgHeight}\n+                  name={cloud.id}\n+                  width={cloud.svgWidth} />\n+            </div>\n+            <div className=\"twelve-col deployment-add-credentials__signup\">\n+              <a href={cloud.signupUrl}\n+                target=\"_blank\">\n+                Sign up for {title}\n+                &nbsp;\n+                <juju.components.SvgIcon\n+                  name=\"external-link-16\"\n+                  size=\"12\" />\n+              </a>\n+            </div>\n+            <form className=\"twelve-col-col\">\n+              <div className=\"six-col\">\n+                <label className=\"deployment-panel__label\"\n+                  htmlFor=\"credential-name\">\n+                  {credentialName}\n+                </label>\n+                <input className=\"deployment-panel__input\"\n+                  id=\"credential-name\"\n+                  placeholder=\"AWS_1\"\n+                  required=\"required\"\n+                  type=\"text\"\n+                  ref=\"templateName\" />\n+                <label className=\"deployment-panel__label\"\n+                  htmlFor=\"specify-region\">\n+                  Region\n+                </label>\n+                <input className=\"deployment-panel__input\"\n+                  id=\"specify-region\"\n+                  placeholder=\"us-central1\"\n+                  required=\"required\"\n+                  type=\"text\"\n+                  ref=\"templateRegion\" />\n+              </div>\n+              <div className=\"deployment-panel__notice six-col last-col\">\n+                <juju.components.SvgIcon\n+                  name=\"general-action-blue\"\n+                  size=\"16\" />\n+                Credentials are store securely on our servers and we'll notify","path":"jujugui/static/gui/src/app/components/deployment/add-credentials/add-credentials.js","position":186,"original_position":186,"commit_id":"815a673825f405dbf4685c59d4706986e226213e","original_commit_id":"815a673825f405dbf4685c59d4706986e226213e","user":{"login":"makyo","id":303761,"avatar_url":"https://avatars.githubusercontent.com/u/303761?v=3","gravatar_id":"","url":"https://api.github.com/users/makyo","html_url":"https://github.com/makyo","followers_url":"https://api.github.com/users/makyo/followers","following_url":"https://api.github.com/users/makyo/following{/other_user}","gists_url":"https://api.github.com/users/makyo/gists{/gist_id}","starred_url":"https://api.github.com/users/makyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makyo/subscriptions","organizations_url":"https://api.github.com/users/makyo/orgs","repos_url":"https://api.github.com/users/makyo/repos","events_url":"https://api.github.com/users/makyo/events{/privacy}","received_events_url":"https://api.github.com/users/makyo/received_events","type":"User","site_admin":false},"body":"\"Credentials are stored...\"","created_at":"2016-04-13T17:01:15Z","updated_at":"2016-04-13T17:01:15Z","html_url":"https://github.com/juju/juju-gui/pull/1531#discussion_r59585387","pull_request_url":"https://api.github.com/repos/juju/juju-gui/pulls/1531","_links":{"self":{"href":"https://api.github.com/repos/juju/juju-gui/pulls/comments/59585387"},"html":{"href":"https://github.com/juju/juju-gui/pull/1531#discussion_r59585387"},"pull_request":{"href":"https://api.github.com/repos/juju/juju-gui/pulls/1531"}}},"pull_request":{"url":"https://api.github.com/repos/juju/juju-gui/pulls/1531","id":65938965,"html_url":"https://github.com/juju/juju-gui/pull/1531","diff_url":"https://github.com/juju/juju-gui/pull/1531.diff","patch_url":"https://github.com/juju/juju-gui/pull/1531.patch","issue_url":"https://api.github.com/repos/juju/juju-gui/issues/1531","number":1531,"state":"open","locked":false,"title":"Added credentials forms for more clouds.","user":{"login":"huwshimi","id":361637,"avatar_url":"https://avatars.githubusercontent.com/u/361637?v=3","gravatar_id":"","url":"https://api.github.com/users/huwshimi","html_url":"https://github.com/huwshimi","followers_url":"https://api.github.com/users/huwshimi/followers","following_url":"https://api.github.com/users/huwshimi/following{/other_user}","gists_url":"https://api.github.com/users/huwshimi/gists{/gist_id}","starred_url":"https://api.github.com/users/huwshimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huwshimi/subscriptions","organizations_url":"https://api.github.com/users/huwshimi/orgs","repos_url":"https://api.github.com/users/huwshimi/repos","events_url":"https://api.github.com/users/huwshimi/events{/privacy}","received_events_url":"https://api.github.com/users/huwshimi/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-11T04:25:43Z","updated_at":"2016-04-13T17:01:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d288d535ce74200fd4caed24c855b4154b69e990","assignee":{"login":"makyo","id":303761,"avatar_url":"https://avatars.githubusercontent.com/u/303761?v=3","gravatar_id":"","url":"https://api.github.com/users/makyo","html_url":"https://github.com/makyo","followers_url":"https://api.github.com/users/makyo/followers","following_url":"https://api.github.com/users/makyo/following{/other_user}","gists_url":"https://api.github.com/users/makyo/gists{/gist_id}","starred_url":"https://api.github.com/users/makyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makyo/subscriptions","organizations_url":"https://api.github.com/users/makyo/orgs","repos_url":"https://api.github.com/users/makyo/repos","events_url":"https://api.github.com/users/makyo/events{/privacy}","received_events_url":"https://api.github.com/users/makyo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/juju/juju-gui/milestones/8","html_url":"https://github.com/juju/juju-gui/milestones/2.2.0","labels_url":"https://api.github.com/repos/juju/juju-gui/milestones/8/labels","id":1646049,"number":8,"title":"2.2.0","description":"","creator":{"login":"hatched","id":532033,"avatar_url":"https://avatars.githubusercontent.com/u/532033?v=3","gravatar_id":"","url":"https://api.github.com/users/hatched","html_url":"https://github.com/hatched","followers_url":"https://api.github.com/users/hatched/followers","following_url":"https://api.github.com/users/hatched/following{/other_user}","gists_url":"https://api.github.com/users/hatched/gists{/gist_id}","starred_url":"https://api.github.com/users/hatched/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hatched/subscriptions","organizations_url":"https://api.github.com/users/hatched/orgs","repos_url":"https://api.github.com/users/hatched/repos","events_url":"https://api.github.com/users/hatched/events{/privacy}","received_events_url":"https://api.github.com/users/hatched/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":31,"state":"open","created_at":"2016-03-15T16:39:15Z","updated_at":"2016-04-13T03:48:24Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/juju/juju-gui/pulls/1531/commits","review_comments_url":"https://api.github.com/repos/juju/juju-gui/pulls/1531/comments","review_comment_url":"https://api.github.com/repos/juju/juju-gui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/juju/juju-gui/issues/1531/comments","statuses_url":"https://api.github.com/repos/juju/juju-gui/statuses/815a673825f405dbf4685c59d4706986e226213e","head":{"label":"huwshimi:add-deployment-credentials","ref":"add-deployment-credentials","sha":"815a673825f405dbf4685c59d4706986e226213e","user":{"login":"huwshimi","id":361637,"avatar_url":"https://avatars.githubusercontent.com/u/361637?v=3","gravatar_id":"","url":"https://api.github.com/users/huwshimi","html_url":"https://github.com/huwshimi","followers_url":"https://api.github.com/users/huwshimi/followers","following_url":"https://api.github.com/users/huwshimi/following{/other_user}","gists_url":"https://api.github.com/users/huwshimi/gists{/gist_id}","starred_url":"https://api.github.com/users/huwshimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huwshimi/subscriptions","organizations_url":"https://api.github.com/users/huwshimi/orgs","repos_url":"https://api.github.com/users/huwshimi/repos","events_url":"https://api.github.com/users/huwshimi/events{/privacy}","received_events_url":"https://api.github.com/users/huwshimi/received_events","type":"User","site_admin":false},"repo":{"id":15032585,"name":"juju-gui","full_name":"huwshimi/juju-gui","owner":{"login":"huwshimi","id":361637,"avatar_url":"https://avatars.githubusercontent.com/u/361637?v=3","gravatar_id":"","url":"https://api.github.com/users/huwshimi","html_url":"https://github.com/huwshimi","followers_url":"https://api.github.com/users/huwshimi/followers","following_url":"https://api.github.com/users/huwshimi/following{/other_user}","gists_url":"https://api.github.com/users/huwshimi/gists{/gist_id}","starred_url":"https://api.github.com/users/huwshimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huwshimi/subscriptions","organizations_url":"https://api.github.com/users/huwshimi/orgs","repos_url":"https://api.github.com/users/huwshimi/repos","events_url":"https://api.github.com/users/huwshimi/events{/privacy}","received_events_url":"https://api.github.com/users/huwshimi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/huwshimi/juju-gui","description":"Juju-GUI is a web-based GUI for Juju <https://juju.ubuntu.com/>.","fork":true,"url":"https://api.github.com/repos/huwshimi/juju-gui","forks_url":"https://api.github.com/repos/huwshimi/juju-gui/forks","keys_url":"https://api.github.com/repos/huwshimi/juju-gui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/huwshimi/juju-gui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/huwshimi/juju-gui/teams","hooks_url":"https://api.github.com/repos/huwshimi/juju-gui/hooks","issue_events_url":"https://api.github.com/repos/huwshimi/juju-gui/issues/events{/number}","events_url":"https://api.github.com/repos/huwshimi/juju-gui/events","assignees_url":"https://api.github.com/repos/huwshimi/juju-gui/assignees{/user}","branches_url":"https://api.github.com/repos/huwshimi/juju-gui/branches{/branch}","tags_url":"https://api.github.com/repos/huwshimi/juju-gui/tags","blobs_url":"https://api.github.com/repos/huwshimi/juju-gui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/huwshimi/juju-gui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/huwshimi/juju-gui/git/refs{/sha}","trees_url":"https://api.github.com/repos/huwshimi/juju-gui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/huwshimi/juju-gui/statuses/{sha}","languages_url":"https://api.github.com/repos/huwshimi/juju-gui/languages","stargazers_url":"https://api.github.com/repos/huwshimi/juju-gui/stargazers","contributors_url":"https://api.github.com/repos/huwshimi/juju-gui/contributors","subscribers_url":"https://api.github.com/repos/huwshimi/juju-gui/subscribers","subscription_url":"https://api.github.com/repos/huwshimi/juju-gui/subscription","commits_url":"https://api.github.com/repos/huwshimi/juju-gui/commits{/sha}","git_commits_url":"https://api.github.com/repos/huwshimi/juju-gui/git/commits{/sha}","comments_url":"https://api.github.com/repos/huwshimi/juju-gui/comments{/number}","issue_comment_url":"https://api.github.com/repos/huwshimi/juju-gui/issues/comments{/number}","contents_url":"https://api.github.com/repos/huwshimi/juju-gui/contents/{+path}","compare_url":"https://api.github.com/repos/huwshimi/juju-gui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/huwshimi/juju-gui/merges","archive_url":"https://api.github.com/repos/huwshimi/juju-gui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/huwshimi/juju-gui/downloads","issues_url":"https://api.github.com/repos/huwshimi/juju-gui/issues{/number}","pulls_url":"https://api.github.com/repos/huwshimi/juju-gui/pulls{/number}","milestones_url":"https://api.github.com/repos/huwshimi/juju-gui/milestones{/number}","notifications_url":"https://api.github.com/repos/huwshimi/juju-gui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/huwshimi/juju-gui/labels{/name}","releases_url":"https://api.github.com/repos/huwshimi/juju-gui/releases{/id}","deployments_url":"https://api.github.com/repos/huwshimi/juju-gui/deployments","created_at":"2013-12-08T22:20:08Z","updated_at":"2014-06-25T06:57:23Z","pushed_at":"2016-04-13T00:05:44Z","git_url":"git://github.com/huwshimi/juju-gui.git","ssh_url":"git@github.com:huwshimi/juju-gui.git","clone_url":"https://github.com/huwshimi/juju-gui.git","svn_url":"https://github.com/huwshimi/juju-gui","homepage":null,"size":114275,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"juju:develop","ref":"develop","sha":"049156263fc972279167737fd56e673910a3c330","user":{"login":"juju","id":4604548,"avatar_url":"https://avatars.githubusercontent.com/u/4604548?v=3","gravatar_id":"","url":"https://api.github.com/users/juju","html_url":"https://github.com/juju","followers_url":"https://api.github.com/users/juju/followers","following_url":"https://api.github.com/users/juju/following{/other_user}","gists_url":"https://api.github.com/users/juju/gists{/gist_id}","starred_url":"https://api.github.com/users/juju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juju/subscriptions","organizations_url":"https://api.github.com/users/juju/orgs","repos_url":"https://api.github.com/users/juju/repos","events_url":"https://api.github.com/users/juju/events{/privacy}","received_events_url":"https://api.github.com/users/juju/received_events","type":"Organization","site_admin":false},"repo":{"id":14960387,"name":"juju-gui","full_name":"juju/juju-gui","owner":{"login":"juju","id":4604548,"avatar_url":"https://avatars.githubusercontent.com/u/4604548?v=3","gravatar_id":"","url":"https://api.github.com/users/juju","html_url":"https://github.com/juju","followers_url":"https://api.github.com/users/juju/followers","following_url":"https://api.github.com/users/juju/following{/other_user}","gists_url":"https://api.github.com/users/juju/gists{/gist_id}","starred_url":"https://api.github.com/users/juju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juju/subscriptions","organizations_url":"https://api.github.com/users/juju/orgs","repos_url":"https://api.github.com/users/juju/repos","events_url":"https://api.github.com/users/juju/events{/privacy}","received_events_url":"https://api.github.com/users/juju/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/juju/juju-gui","description":"Juju-GUI is a web-based GUI for Juju <https://jujucharms.com/>.","fork":false,"url":"https://api.github.com/repos/juju/juju-gui","forks_url":"https://api.github.com/repos/juju/juju-gui/forks","keys_url":"https://api.github.com/repos/juju/juju-gui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juju/juju-gui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juju/juju-gui/teams","hooks_url":"https://api.github.com/repos/juju/juju-gui/hooks","issue_events_url":"https://api.github.com/repos/juju/juju-gui/issues/events{/number}","events_url":"https://api.github.com/repos/juju/juju-gui/events","assignees_url":"https://api.github.com/repos/juju/juju-gui/assignees{/user}","branches_url":"https://api.github.com/repos/juju/juju-gui/branches{/branch}","tags_url":"https://api.github.com/repos/juju/juju-gui/tags","blobs_url":"https://api.github.com/repos/juju/juju-gui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juju/juju-gui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juju/juju-gui/git/refs{/sha}","trees_url":"https://api.github.com/repos/juju/juju-gui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juju/juju-gui/statuses/{sha}","languages_url":"https://api.github.com/repos/juju/juju-gui/languages","stargazers_url":"https://api.github.com/repos/juju/juju-gui/stargazers","contributors_url":"https://api.github.com/repos/juju/juju-gui/contributors","subscribers_url":"https://api.github.com/repos/juju/juju-gui/subscribers","subscription_url":"https://api.github.com/repos/juju/juju-gui/subscription","commits_url":"https://api.github.com/repos/juju/juju-gui/commits{/sha}","git_commits_url":"https://api.github.com/repos/juju/juju-gui/git/commits{/sha}","comments_url":"https://api.github.com/repos/juju/juju-gui/comments{/number}","issue_comment_url":"https://api.github.com/repos/juju/juju-gui/issues/comments{/number}","contents_url":"https://api.github.com/repos/juju/juju-gui/contents/{+path}","compare_url":"https://api.github.com/repos/juju/juju-gui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juju/juju-gui/merges","archive_url":"https://api.github.com/repos/juju/juju-gui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juju/juju-gui/downloads","issues_url":"https://api.github.com/repos/juju/juju-gui/issues{/number}","pulls_url":"https://api.github.com/repos/juju/juju-gui/pulls{/number}","milestones_url":"https://api.github.com/repos/juju/juju-gui/milestones{/number}","notifications_url":"https://api.github.com/repos/juju/juju-gui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juju/juju-gui/labels{/name}","releases_url":"https://api.github.com/repos/juju/juju-gui/releases{/id}","deployments_url":"https://api.github.com/repos/juju/juju-gui/deployments","created_at":"2013-12-05T17:15:48Z","updated_at":"2016-04-12T05:23:27Z","pushed_at":"2016-04-13T13:31:01Z","git_url":"git://github.com/juju/juju-gui.git","ssh_url":"git@github.com:juju/juju-gui.git","clone_url":"https://github.com/juju/juju-gui.git","svn_url":"https://github.com/juju/juju-gui","homepage":"","size":118535,"stargazers_count":83,"watchers_count":83,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":50,"mirror_url":null,"open_issues_count":75,"forks":50,"open_issues":75,"watchers":83,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/juju/juju-gui/pulls/1531"},"html":{"href":"https://github.com/juju/juju-gui/pull/1531"},"issue":{"href":"https://api.github.com/repos/juju/juju-gui/issues/1531"},"comments":{"href":"https://api.github.com/repos/juju/juju-gui/issues/1531/comments"},"review_comments":{"href":"https://api.github.com/repos/juju/juju-gui/pulls/1531/comments"},"review_comment":{"href":"https://api.github.com/repos/juju/juju-gui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/juju/juju-gui/pulls/1531/commits"},"statuses":{"href":"https://api.github.com/repos/juju/juju-gui/statuses/815a673825f405dbf4685c59d4706986e226213e"}}}}