{"action":"closed","number":28,"pull_request":{"url":"https://api.github.com/repos/tomoasleep/ews/pulls/28","id":38635198,"html_url":"https://github.com/tomoasleep/ews/pull/28","diff_url":"https://github.com/tomoasleep/ews/pull/28.diff","patch_url":"https://github.com/tomoasleep/ews/pull/28.patch","issue_url":"https://api.github.com/repos/tomoasleep/ews/issues/28","number":28,"state":"closed","locked":false,"title":"ews上で電源ON、OFF出来るようにする","user":{"login":"tomoasleep","id":1477130,"avatar_url":"https://avatars.githubusercontent.com/u/1477130?v=3","gravatar_id":"","url":"https://api.github.com/users/tomoasleep","html_url":"https://github.com/tomoasleep","followers_url":"https://api.github.com/users/tomoasleep/followers","following_url":"https://api.github.com/users/tomoasleep/following{/other_user}","gists_url":"https://api.github.com/users/tomoasleep/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoasleep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoasleep/subscriptions","organizations_url":"https://api.github.com/users/tomoasleep/orgs","repos_url":"https://api.github.com/users/tomoasleep/repos","events_url":"https://api.github.com/users/tomoasleep/events{/privacy}","received_events_url":"https://api.github.com/users/tomoasleep/received_events","type":"User","site_admin":false},"body":"- [x] [vm/vmoperation/production.py](https://github.com/tomoasleep/ews/blob/master/vm/vmoperation/production.py)の`start`, `shutdown`を呼ぶために[vm/vmoperation/__init__.py](https://github.com/tomoasleep/ews/blob/master/vm/vmoperation/__init__.py)にVMPowerControlというクラスを作成(VirtualModelのインスタンスを受け取ってstart, shutdownを呼ぶ)\r\n- [x] [views.py](https://github.com/tomoasleep/ews/blob/master/vm/views.py)にpoweron, poweroffというメソッドを追加\r\n- [x] [url.py](https://github.com/tomoasleep/ews/blob/master/vm/urls.py)にpoweron, poweroffのルーティングを追加","created_at":"2015-06-26T10:13:03Z","updated_at":"2015-07-02T10:06:43Z","closed_at":"2015-07-02T10:06:43Z","merged_at":"2015-07-02T10:06:43Z","merge_commit_sha":"14ce58e6c3d80545787ab53917782850263585f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tomoasleep/ews/pulls/28/commits","review_comments_url":"https://api.github.com/repos/tomoasleep/ews/pulls/28/comments","review_comment_url":"https://api.github.com/repos/tomoasleep/ews/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tomoasleep/ews/issues/28/comments","statuses_url":"https://api.github.com/repos/tomoasleep/ews/statuses/c92f870ce24a87c2044cf50774aff0d63080aead","head":{"label":"tomoasleep:power-on-off","ref":"power-on-off","sha":"c92f870ce24a87c2044cf50774aff0d63080aead","user":{"login":"tomoasleep","id":1477130,"avatar_url":"https://avatars.githubusercontent.com/u/1477130?v=3","gravatar_id":"","url":"https://api.github.com/users/tomoasleep","html_url":"https://github.com/tomoasleep","followers_url":"https://api.github.com/users/tomoasleep/followers","following_url":"https://api.github.com/users/tomoasleep/following{/other_user}","gists_url":"https://api.github.com/users/tomoasleep/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoasleep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoasleep/subscriptions","organizations_url":"https://api.github.com/users/tomoasleep/orgs","repos_url":"https://api.github.com/users/tomoasleep/repos","events_url":"https://api.github.com/users/tomoasleep/events{/privacy}","received_events_url":"https://api.github.com/users/tomoasleep/received_events","type":"User","site_admin":false},"repo":{"id":36923029,"name":"ews","full_name":"tomoasleep/ews","owner":{"login":"tomoasleep","id":1477130,"avatar_url":"https://avatars.githubusercontent.com/u/1477130?v=3","gravatar_id":"","url":"https://api.github.com/users/tomoasleep","html_url":"https://github.com/tomoasleep","followers_url":"https://api.github.com/users/tomoasleep/followers","following_url":"https://api.github.com/users/tomoasleep/following{/other_user}","gists_url":"https://api.github.com/users/tomoasleep/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoasleep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoasleep/subscriptions","organizations_url":"https://api.github.com/users/tomoasleep/orgs","repos_url":"https://api.github.com/users/tomoasleep/repos","events_url":"https://api.github.com/users/tomoasleep/events{/privacy}","received_events_url":"https://api.github.com/users/tomoasleep/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomoasleep/ews","description":"Enpit Web Service(仮)","fork":false,"url":"https://api.github.com/repos/tomoasleep/ews","forks_url":"https://api.github.com/repos/tomoasleep/ews/forks","keys_url":"https://api.github.com/repos/tomoasleep/ews/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomoasleep/ews/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomoasleep/ews/teams","hooks_url":"https://api.github.com/repos/tomoasleep/ews/hooks","issue_events_url":"https://api.github.com/repos/tomoasleep/ews/issues/events{/number}","events_url":"https://api.github.com/repos/tomoasleep/ews/events","assignees_url":"https://api.github.com/repos/tomoasleep/ews/assignees{/user}","branches_url":"https://api.github.com/repos/tomoasleep/ews/branches{/branch}","tags_url":"https://api.github.com/repos/tomoasleep/ews/tags","blobs_url":"https://api.github.com/repos/tomoasleep/ews/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomoasleep/ews/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomoasleep/ews/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomoasleep/ews/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomoasleep/ews/statuses/{sha}","languages_url":"https://api.github.com/repos/tomoasleep/ews/languages","stargazers_url":"https://api.github.com/repos/tomoasleep/ews/stargazers","contributors_url":"https://api.github.com/repos/tomoasleep/ews/contributors","subscribers_url":"https://api.github.com/repos/tomoasleep/ews/subscribers","subscription_url":"https://api.github.com/repos/tomoasleep/ews/subscription","commits_url":"https://api.github.com/repos/tomoasleep/ews/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomoasleep/ews/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomoasleep/ews/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomoasleep/ews/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomoasleep/ews/contents/{+path}","compare_url":"https://api.github.com/repos/tomoasleep/ews/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomoasleep/ews/merges","archive_url":"https://api.github.com/repos/tomoasleep/ews/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomoasleep/ews/downloads","issues_url":"https://api.github.com/repos/tomoasleep/ews/issues{/number}","pulls_url":"https://api.github.com/repos/tomoasleep/ews/pulls{/number}","milestones_url":"https://api.github.com/repos/tomoasleep/ews/milestones{/number}","notifications_url":"https://api.github.com/repos/tomoasleep/ews/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomoasleep/ews/labels{/name}","releases_url":"https://api.github.com/repos/tomoasleep/ews/releases{/id}","created_at":"2015-06-05T09:03:57Z","updated_at":"2015-06-12T10:00:39Z","pushed_at":"2015-07-02T10:06:44Z","git_url":"git://github.com/tomoasleep/ews.git","ssh_url":"git@github.com:tomoasleep/ews.git","clone_url":"https://github.com/tomoasleep/ews.git","svn_url":"https://github.com/tomoasleep/ews","homepage":null,"size":1860,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"tomoasleep:master","ref":"master","sha":"a74392878c83f9ff127b777723e629afb219d9d0","user":{"login":"tomoasleep","id":1477130,"avatar_url":"https://avatars.githubusercontent.com/u/1477130?v=3","gravatar_id":"","url":"https://api.github.com/users/tomoasleep","html_url":"https://github.com/tomoasleep","followers_url":"https://api.github.com/users/tomoasleep/followers","following_url":"https://api.github.com/users/tomoasleep/following{/other_user}","gists_url":"https://api.github.com/users/tomoasleep/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoasleep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoasleep/subscriptions","organizations_url":"https://api.github.com/users/tomoasleep/orgs","repos_url":"https://api.github.com/users/tomoasleep/repos","events_url":"https://api.github.com/users/tomoasleep/events{/privacy}","received_events_url":"https://api.github.com/users/tomoasleep/received_events","type":"User","site_admin":false},"repo":{"id":36923029,"name":"ews","full_name":"tomoasleep/ews","owner":{"login":"tomoasleep","id":1477130,"avatar_url":"https://avatars.githubusercontent.com/u/1477130?v=3","gravatar_id":"","url":"https://api.github.com/users/tomoasleep","html_url":"https://github.com/tomoasleep","followers_url":"https://api.github.com/users/tomoasleep/followers","following_url":"https://api.github.com/users/tomoasleep/following{/other_user}","gists_url":"https://api.github.com/users/tomoasleep/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoasleep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoasleep/subscriptions","organizations_url":"https://api.github.com/users/tomoasleep/orgs","repos_url":"https://api.github.com/users/tomoasleep/repos","events_url":"https://api.github.com/users/tomoasleep/events{/privacy}","received_events_url":"https://api.github.com/users/tomoasleep/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomoasleep/ews","description":"Enpit Web Service(仮)","fork":false,"url":"https://api.github.com/repos/tomoasleep/ews","forks_url":"https://api.github.com/repos/tomoasleep/ews/forks","keys_url":"https://api.github.com/repos/tomoasleep/ews/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomoasleep/ews/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomoasleep/ews/teams","hooks_url":"https://api.github.com/repos/tomoasleep/ews/hooks","issue_events_url":"https://api.github.com/repos/tomoasleep/ews/issues/events{/number}","events_url":"https://api.github.com/repos/tomoasleep/ews/events","assignees_url":"https://api.github.com/repos/tomoasleep/ews/assignees{/user}","branches_url":"https://api.github.com/repos/tomoasleep/ews/branches{/branch}","tags_url":"https://api.github.com/repos/tomoasleep/ews/tags","blobs_url":"https://api.github.com/repos/tomoasleep/ews/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomoasleep/ews/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomoasleep/ews/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomoasleep/ews/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomoasleep/ews/statuses/{sha}","languages_url":"https://api.github.com/repos/tomoasleep/ews/languages","stargazers_url":"https://api.github.com/repos/tomoasleep/ews/stargazers","contributors_url":"https://api.github.com/repos/tomoasleep/ews/contributors","subscribers_url":"https://api.github.com/repos/tomoasleep/ews/subscribers","subscription_url":"https://api.github.com/repos/tomoasleep/ews/subscription","commits_url":"https://api.github.com/repos/tomoasleep/ews/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomoasleep/ews/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomoasleep/ews/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomoasleep/ews/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomoasleep/ews/contents/{+path}","compare_url":"https://api.github.com/repos/tomoasleep/ews/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomoasleep/ews/merges","archive_url":"https://api.github.com/repos/tomoasleep/ews/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomoasleep/ews/downloads","issues_url":"https://api.github.com/repos/tomoasleep/ews/issues{/number}","pulls_url":"https://api.github.com/repos/tomoasleep/ews/pulls{/number}","milestones_url":"https://api.github.com/repos/tomoasleep/ews/milestones{/number}","notifications_url":"https://api.github.com/repos/tomoasleep/ews/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomoasleep/ews/labels{/name}","releases_url":"https://api.github.com/repos/tomoasleep/ews/releases{/id}","created_at":"2015-06-05T09:03:57Z","updated_at":"2015-06-12T10:00:39Z","pushed_at":"2015-07-02T10:06:44Z","git_url":"git://github.com/tomoasleep/ews.git","ssh_url":"git@github.com:tomoasleep/ews.git","clone_url":"https://github.com/tomoasleep/ews.git","svn_url":"https://github.com/tomoasleep/ews","homepage":null,"size":1860,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomoasleep/ews/pulls/28"},"html":{"href":"https://github.com/tomoasleep/ews/pull/28"},"issue":{"href":"https://api.github.com/repos/tomoasleep/ews/issues/28"},"comments":{"href":"https://api.github.com/repos/tomoasleep/ews/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/tomoasleep/ews/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/tomoasleep/ews/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tomoasleep/ews/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/tomoasleep/ews/statuses/c92f870ce24a87c2044cf50774aff0d63080aead"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"motomuman","id":7392624,"avatar_url":"https://avatars.githubusercontent.com/u/7392624?v=3","gravatar_id":"","url":"https://api.github.com/users/motomuman","html_url":"https://github.com/motomuman","followers_url":"https://api.github.com/users/motomuman/followers","following_url":"https://api.github.com/users/motomuman/following{/other_user}","gists_url":"https://api.github.com/users/motomuman/gists{/gist_id}","starred_url":"https://api.github.com/users/motomuman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motomuman/subscriptions","organizations_url":"https://api.github.com/users/motomuman/orgs","repos_url":"https://api.github.com/users/motomuman/repos","events_url":"https://api.github.com/users/motomuman/events{/privacy}","received_events_url":"https://api.github.com/users/motomuman/received_events","type":"User","site_admin":false},"comments":13,"review_comments":6,"commits":8,"additions":102,"deletions":7,"changed_files":9}}