{"action":"created","comment":{"url":"https://api.github.com/repos/bwsw/cs-entities/pulls/comments/155517380","pull_request_review_id":81848016,"id":155517380,"diff_hunk":"@@ -0,0 +1,67 @@\n+/*\n+* Licensed to the Apache Software Foundation (ASF) under one\n+* or more contributor license agreements. See the NOTICE file\n+* distributed with this work for additional information\n+* regarding copyright ownership. The ASF licenses this file\n+* to you under the Apache License, Version 2.0 (the\n+* \"License\"); you may not use this file except in compliance\n+* with 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,\n+* software distributed under the License is distributed on an\n+* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+* KIND, either express or implied. See the License for the\n+* specific language governing permissions and limitations\n+* under the License.\n+*/\n+package com.bwsw.cloudstack.entities.requests\n+\n+import java.util.UUID\n+\n+import br.com.autonomiccs.apacheCloudStack.client.ApacheCloudStackRequest\n+import com.bwsw.cloudstack.entities.requests.util.Constants.Commands\n+import com.bwsw.cloudstack.entities.requests.util.Constants.Parameters._\n+import com.bwsw.cloudstack.entities.requests.traits.Request\n+\n+/**\n+  * Class is responsible for building ApacheCloudStackRequest with specified parameters for creating a virtual machine\n+  *\n+  * @param settings required parameters for vm creation, more info see VmCreateRequest.Settings\n+  */\n+class VmCreateRequest(settings: VmCreateRequest.Settings) extends Request {\n+\n+  override val request: ApacheCloudStackRequest = new ApacheCloudStackRequest(Commands.DEPLOY_VIRTUAL_MACHINE)\n+    .addParameter(RESPONSE, \"json\")\n+    .addParameter(SERVICE_OFFERING_ID, settings.serviceOfferingId)\n+    .addParameter(TEMPLATE_ID, settings.templateId)\n+    .addParameter(ZONE_ID, settings.zoneId)\n+\n+  /**\n+    * Add an account name parameter to a request.\n+    */\n+  def withAccountName(name: String): VmCreateRequest = {\n+    request.addParameter(ACCOUNT, name)\n+    this\n+  }\n+\n+  /**\n+    * Add a domain id parameter to a request.\n+    */\n+  def withDomain(id: UUID): VmCreateRequest = {\n+    request.addParameter(DOMAIN_ID, id)\n+    this\n+  }\n+}\n+\n+object VmCreateRequest {\n+  /**\n+    * Class is responsible for providing vm creation settings.\n+    *\n+    * @param serviceOfferingId the UUID of the service offering for the virtual machine","path":"src/main/scala/com/bwsw/cloudstack/entities/requests/VmCreateRequest.scala","position":62,"original_position":62,"commit_id":"d26825fc39cb85b5e6c4fb81c5bd05fcf284bf6d","original_commit_id":"d26825fc39cb85b5e6c4fb81c5bd05fcf284bf6d","user":{"login":"placccebo","id":14290880,"avatar_url":"https://avatars1.githubusercontent.com/u/14290880?v=4","gravatar_id":"","url":"https://api.github.com/users/placccebo","html_url":"https://github.com/placccebo","followers_url":"https://api.github.com/users/placccebo/followers","following_url":"https://api.github.com/users/placccebo/following{/other_user}","gists_url":"https://api.github.com/users/placccebo/gists{/gist_id}","starred_url":"https://api.github.com/users/placccebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/placccebo/subscriptions","organizations_url":"https://api.github.com/users/placccebo/orgs","repos_url":"https://api.github.com/users/placccebo/repos","events_url":"https://api.github.com/users/placccebo/events{/privacy}","received_events_url":"https://api.github.com/users/placccebo/received_events","type":"User","site_admin":false},"body":"what does it mean?","created_at":"2017-12-07T13:18:21Z","updated_at":"2017-12-07T13:20:39Z","html_url":"https://github.com/bwsw/cs-entities/pull/40#discussion_r155517380","pull_request_url":"https://api.github.com/repos/bwsw/cs-entities/pulls/40","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/bwsw/cs-entities/pulls/comments/155517380"},"html":{"href":"https://github.com/bwsw/cs-entities/pull/40#discussion_r155517380"},"pull_request":{"href":"https://api.github.com/repos/bwsw/cs-entities/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/bwsw/cs-entities/pulls/40","id":156956262,"html_url":"https://github.com/bwsw/cs-entities/pull/40","diff_url":"https://github.com/bwsw/cs-entities/pull/40.diff","patch_url":"https://github.com/bwsw/cs-entities/pull/40.patch","issue_url":"https://api.github.com/repos/bwsw/cs-entities/issues/40","number":40,"state":"open","locked":false,"title":" CSEN-23 \"VmRequest\" classes were implemented ","user":{"login":"MedvedevBW","id":25095225,"avatar_url":"https://avatars0.githubusercontent.com/u/25095225?v=4","gravatar_id":"","url":"https://api.github.com/users/MedvedevBW","html_url":"https://github.com/MedvedevBW","followers_url":"https://api.github.com/users/MedvedevBW/followers","following_url":"https://api.github.com/users/MedvedevBW/following{/other_user}","gists_url":"https://api.github.com/users/MedvedevBW/gists{/gist_id}","starred_url":"https://api.github.com/users/MedvedevBW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MedvedevBW/subscriptions","organizations_url":"https://api.github.com/users/MedvedevBW/orgs","repos_url":"https://api.github.com/users/MedvedevBW/repos","events_url":"https://api.github.com/users/MedvedevBW/events{/privacy}","received_events_url":"https://api.github.com/users/MedvedevBW/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-12-07T10:29:38Z","updated_at":"2017-12-07T13:20:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42a87e7246a199e21f369f375a29c0f361d64616","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/bwsw/cs-entities/pulls/40/commits","review_comments_url":"https://api.github.com/repos/bwsw/cs-entities/pulls/40/comments","review_comment_url":"https://api.github.com/repos/bwsw/cs-entities/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bwsw/cs-entities/issues/40/comments","statuses_url":"https://api.github.com/repos/bwsw/cs-entities/statuses/d26825fc39cb85b5e6c4fb81c5bd05fcf284bf6d","head":{"label":"bwsw:CSEN-23","ref":"CSEN-23","sha":"d26825fc39cb85b5e6c4fb81c5bd05fcf284bf6d","user":{"login":"bwsw","id":15047882,"avatar_url":"https://avatars2.githubusercontent.com/u/15047882?v=4","gravatar_id":"","url":"https://api.github.com/users/bwsw","html_url":"https://github.com/bwsw","followers_url":"https://api.github.com/users/bwsw/followers","following_url":"https://api.github.com/users/bwsw/following{/other_user}","gists_url":"https://api.github.com/users/bwsw/gists{/gist_id}","starred_url":"https://api.github.com/users/bwsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwsw/subscriptions","organizations_url":"https://api.github.com/users/bwsw/orgs","repos_url":"https://api.github.com/users/bwsw/repos","events_url":"https://api.github.com/users/bwsw/events{/privacy}","received_events_url":"https://api.github.com/users/bwsw/received_events","type":"User","site_admin":false},"repo":{"id":107946130,"name":"cs-entities","full_name":"bwsw/cs-entities","owner":{"login":"bwsw","id":15047882,"avatar_url":"https://avatars2.githubusercontent.com/u/15047882?v=4","gravatar_id":"","url":"https://api.github.com/users/bwsw","html_url":"https://github.com/bwsw","followers_url":"https://api.github.com/users/bwsw/followers","following_url":"https://api.github.com/users/bwsw/following{/other_user}","gists_url":"https://api.github.com/users/bwsw/gists{/gist_id}","starred_url":"https://api.github.com/users/bwsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwsw/subscriptions","organizations_url":"https://api.github.com/users/bwsw/orgs","repos_url":"https://api.github.com/users/bwsw/repos","events_url":"https://api.github.com/users/bwsw/events{/privacy}","received_events_url":"https://api.github.com/users/bwsw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bwsw/cs-entities","description":"Simple CloudStack Entities Framework","fork":false,"url":"https://api.github.com/repos/bwsw/cs-entities","forks_url":"https://api.github.com/repos/bwsw/cs-entities/forks","keys_url":"https://api.github.com/repos/bwsw/cs-entities/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bwsw/cs-entities/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bwsw/cs-entities/teams","hooks_url":"https://api.github.com/repos/bwsw/cs-entities/hooks","issue_events_url":"https://api.github.com/repos/bwsw/cs-entities/issues/events{/number}","events_url":"https://api.github.com/repos/bwsw/cs-entities/events","assignees_url":"https://api.github.com/repos/bwsw/cs-entities/assignees{/user}","branches_url":"https://api.github.com/repos/bwsw/cs-entities/branches{/branch}","tags_url":"https://api.github.com/repos/bwsw/cs-entities/tags","blobs_url":"https://api.github.com/repos/bwsw/cs-entities/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bwsw/cs-entities/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bwsw/cs-entities/git/refs{/sha}","trees_url":"https://api.github.com/repos/bwsw/cs-entities/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bwsw/cs-entities/statuses/{sha}","languages_url":"https://api.github.com/repos/bwsw/cs-entities/languages","stargazers_url":"https://api.github.com/repos/bwsw/cs-entities/stargazers","contributors_url":"https://api.github.com/repos/bwsw/cs-entities/contributors","subscribers_url":"https://api.github.com/repos/bwsw/cs-entities/subscribers","subscription_url":"https://api.github.com/repos/bwsw/cs-entities/subscription","commits_url":"https://api.github.com/repos/bwsw/cs-entities/commits{/sha}","git_commits_url":"https://api.github.com/repos/bwsw/cs-entities/git/commits{/sha}","comments_url":"https://api.github.com/repos/bwsw/cs-entities/comments{/number}","issue_comment_url":"https://api.github.com/repos/bwsw/cs-entities/issues/comments{/number}","contents_url":"https://api.github.com/repos/bwsw/cs-entities/contents/{+path}","compare_url":"https://api.github.com/repos/bwsw/cs-entities/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bwsw/cs-entities/merges","archive_url":"https://api.github.com/repos/bwsw/cs-entities/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bwsw/cs-entities/downloads","issues_url":"https://api.github.com/repos/bwsw/cs-entities/issues{/number}","pulls_url":"https://api.github.com/repos/bwsw/cs-entities/pulls{/number}","milestones_url":"https://api.github.com/repos/bwsw/cs-entities/milestones{/number}","notifications_url":"https://api.github.com/repos/bwsw/cs-entities/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bwsw/cs-entities/labels{/name}","releases_url":"https://api.github.com/repos/bwsw/cs-entities/releases{/id}","deployments_url":"https://api.github.com/repos/bwsw/cs-entities/deployments","created_at":"2017-10-23T07:23:04Z","updated_at":"2017-12-01T03:56:10Z","pushed_at":"2017-12-07T10:29:39Z","git_url":"git://github.com/bwsw/cs-entities.git","ssh_url":"git@github.com:bwsw/cs-entities.git","clone_url":"https://github.com/bwsw/cs-entities.git","svn_url":"https://github.com/bwsw/cs-entities","homepage":"","size":76,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":20,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"base":{"label":"bwsw:develop","ref":"develop","sha":"459b912a015618dbe6394de448909cd7ed634c8f","user":{"login":"bwsw","id":15047882,"avatar_url":"https://avatars2.githubusercontent.com/u/15047882?v=4","gravatar_id":"","url":"https://api.github.com/users/bwsw","html_url":"https://github.com/bwsw","followers_url":"https://api.github.com/users/bwsw/followers","following_url":"https://api.github.com/users/bwsw/following{/other_user}","gists_url":"https://api.github.com/users/bwsw/gists{/gist_id}","starred_url":"https://api.github.com/users/bwsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwsw/subscriptions","organizations_url":"https://api.github.com/users/bwsw/orgs","repos_url":"https://api.github.com/users/bwsw/repos","events_url":"https://api.github.com/users/bwsw/events{/privacy}","received_events_url":"https://api.github.com/users/bwsw/received_events","type":"User","site_admin":false},"repo":{"id":107946130,"name":"cs-entities","full_name":"bwsw/cs-entities","owner":{"login":"bwsw","id":15047882,"avatar_url":"https://avatars2.githubusercontent.com/u/15047882?v=4","gravatar_id":"","url":"https://api.github.com/users/bwsw","html_url":"https://github.com/bwsw","followers_url":"https://api.github.com/users/bwsw/followers","following_url":"https://api.github.com/users/bwsw/following{/other_user}","gists_url":"https://api.github.com/users/bwsw/gists{/gist_id}","starred_url":"https://api.github.com/users/bwsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwsw/subscriptions","organizations_url":"https://api.github.com/users/bwsw/orgs","repos_url":"https://api.github.com/users/bwsw/repos","events_url":"https://api.github.com/users/bwsw/events{/privacy}","received_events_url":"https://api.github.com/users/bwsw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bwsw/cs-entities","description":"Simple CloudStack Entities Framework","fork":false,"url":"https://api.github.com/repos/bwsw/cs-entities","forks_url":"https://api.github.com/repos/bwsw/cs-entities/forks","keys_url":"https://api.github.com/repos/bwsw/cs-entities/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bwsw/cs-entities/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bwsw/cs-entities/teams","hooks_url":"https://api.github.com/repos/bwsw/cs-entities/hooks","issue_events_url":"https://api.github.com/repos/bwsw/cs-entities/issues/events{/number}","events_url":"https://api.github.com/repos/bwsw/cs-entities/events","assignees_url":"https://api.github.com/repos/bwsw/cs-entities/assignees{/user}","branches_url":"https://api.github.com/repos/bwsw/cs-entities/branches{/branch}","tags_url":"https://api.github.com/repos/bwsw/cs-entities/tags","blobs_url":"https://api.github.com/repos/bwsw/cs-entities/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bwsw/cs-entities/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bwsw/cs-entities/git/refs{/sha}","trees_url":"https://api.github.com/repos/bwsw/cs-entities/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bwsw/cs-entities/statuses/{sha}","languages_url":"https://api.github.com/repos/bwsw/cs-entities/languages","stargazers_url":"https://api.github.com/repos/bwsw/cs-entities/stargazers","contributors_url":"https://api.github.com/repos/bwsw/cs-entities/contributors","subscribers_url":"https://api.github.com/repos/bwsw/cs-entities/subscribers","subscription_url":"https://api.github.com/repos/bwsw/cs-entities/subscription","commits_url":"https://api.github.com/repos/bwsw/cs-entities/commits{/sha}","git_commits_url":"https://api.github.com/repos/bwsw/cs-entities/git/commits{/sha}","comments_url":"https://api.github.com/repos/bwsw/cs-entities/comments{/number}","issue_comment_url":"https://api.github.com/repos/bwsw/cs-entities/issues/comments{/number}","contents_url":"https://api.github.com/repos/bwsw/cs-entities/contents/{+path}","compare_url":"https://api.github.com/repos/bwsw/cs-entities/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bwsw/cs-entities/merges","archive_url":"https://api.github.com/repos/bwsw/cs-entities/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bwsw/cs-entities/downloads","issues_url":"https://api.github.com/repos/bwsw/cs-entities/issues{/number}","pulls_url":"https://api.github.com/repos/bwsw/cs-entities/pulls{/number}","milestones_url":"https://api.github.com/repos/bwsw/cs-entities/milestones{/number}","notifications_url":"https://api.github.com/repos/bwsw/cs-entities/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bwsw/cs-entities/labels{/name}","releases_url":"https://api.github.com/repos/bwsw/cs-entities/releases{/id}","deployments_url":"https://api.github.com/repos/bwsw/cs-entities/deployments","created_at":"2017-10-23T07:23:04Z","updated_at":"2017-12-01T03:56:10Z","pushed_at":"2017-12-07T10:29:39Z","git_url":"git://github.com/bwsw/cs-entities.git","ssh_url":"git@github.com:bwsw/cs-entities.git","clone_url":"https://github.com/bwsw/cs-entities.git","svn_url":"https://github.com/bwsw/cs-entities","homepage":"","size":76,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":20,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bwsw/cs-entities/pulls/40"},"html":{"href":"https://github.com/bwsw/cs-entities/pull/40"},"issue":{"href":"https://api.github.com/repos/bwsw/cs-entities/issues/40"},"comments":{"href":"https://api.github.com/repos/bwsw/cs-entities/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/bwsw/cs-entities/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/bwsw/cs-entities/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bwsw/cs-entities/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/bwsw/cs-entities/statuses/d26825fc39cb85b5e6c4fb81c5bd05fcf284bf6d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"placccebo"}}