{"action":"created","comment":{"url":"https://api.github.com/repos/xenserver/xenadmin/pulls/comments/52892242","id":52892242,"diff_hunk":"@@ -0,0 +1,271 @@\n+﻿/* Copyright (c) Citrix Systems Inc. \n+ * All rights reserved. \n+ * \n+ * Redistribution and use in source and binary forms, \n+ * with or without modification, are permitted provided \n+ * that the following conditions are met: \n+ * \n+ * *   Redistributions of source code must retain the above \n+ *     copyright notice, this list of conditions and the \n+ *     following disclaimer. \n+ * *   Redistributions in binary form must reproduce the above \n+ *     copyright notice, this list of conditions and the \n+ *     following disclaimer in the documentation and/or other \n+ *     materials provided with the distribution. \n+ * \n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND \n+ * CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, \n+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF \n+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE \n+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR \n+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, \n+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \n+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR \n+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS \n+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \n+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \n+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE \n+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF \n+ * SUCH DAMAGE.\n+ */\n+\n+using System;\n+using System.Collections.Generic;\n+using XenAdmin;\n+using XenAdmin.Alerts;\n+using XenAdmin.Core;\n+using XenAdmin.Network;\n+\n+namespace XenAPI\n+{\n+    public partial class VMSS : IVMPolicy\n+    {\n+        public bool is_enabled()\n+        {\n+            return this.enabled;\n+        }\n+\n+        public bool is_running()\n+        {\n+            return false;","path":"XenModel/XenAPI-Extensions/VMSS.cs","position":50,"original_position":50,"commit_id":"a14d1fe6fd701952cae50e8dce99825fa9f7d28e","original_commit_id":"a14d1fe6fd701952cae50e8dce99825fa9f7d28e","user":{"login":"stephen-turner","id":5031457,"avatar_url":"https://avatars.githubusercontent.com/u/5031457?v=3","gravatar_id":"","url":"https://api.github.com/users/stephen-turner","html_url":"https://github.com/stephen-turner","followers_url":"https://api.github.com/users/stephen-turner/followers","following_url":"https://api.github.com/users/stephen-turner/following{/other_user}","gists_url":"https://api.github.com/users/stephen-turner/gists{/gist_id}","starred_url":"https://api.github.com/users/stephen-turner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephen-turner/subscriptions","organizations_url":"https://api.github.com/users/stephen-turner/orgs","repos_url":"https://api.github.com/users/stephen-turner/repos","events_url":"https://api.github.com/users/stephen-turner/events{/privacy}","received_events_url":"https://api.github.com/users/stephen-turner/received_events","type":"User","site_admin":false},"body":"Why is is_running always false for VMSS? Is it the case that we have this info for VMPP but not for VMSS for some reason?","created_at":"2016-02-15T12:18:04Z","updated_at":"2016-02-15T12:18:04Z","html_url":"https://github.com/xenserver/xenadmin/pull/839#discussion_r52892242","pull_request_url":"https://api.github.com/repos/xenserver/xenadmin/pulls/839","_links":{"self":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/comments/52892242"},"html":{"href":"https://github.com/xenserver/xenadmin/pull/839#discussion_r52892242"},"pull_request":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/839"}}},"pull_request":{"url":"https://api.github.com/repos/xenserver/xenadmin/pulls/839","id":59323555,"html_url":"https://github.com/xenserver/xenadmin/pull/839","diff_url":"https://github.com/xenserver/xenadmin/pull/839.diff","patch_url":"https://github.com/xenserver/xenadmin/pull/839.patch","issue_url":"https://api.github.com/repos/xenserver/xenadmin/issues/839","number":839,"state":"open","locked":false,"title":"Scheduled Snapshots Feature","user":{"login":"koushikcgit","id":10140689,"avatar_url":"https://avatars.githubusercontent.com/u/10140689?v=3","gravatar_id":"","url":"https://api.github.com/users/koushikcgit","html_url":"https://github.com/koushikcgit","followers_url":"https://api.github.com/users/koushikcgit/followers","following_url":"https://api.github.com/users/koushikcgit/following{/other_user}","gists_url":"https://api.github.com/users/koushikcgit/gists{/gist_id}","starred_url":"https://api.github.com/users/koushikcgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koushikcgit/subscriptions","organizations_url":"https://api.github.com/users/koushikcgit/orgs","repos_url":"https://api.github.com/users/koushikcgit/repos","events_url":"https://api.github.com/users/koushikcgit/events{/privacy}","received_events_url":"https://api.github.com/users/koushikcgit/received_events","type":"User","site_admin":false},"body":"This PR has all the commits for the VMSS feature.","created_at":"2016-02-15T05:52:50Z","updated_at":"2016-02-15T12:18:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74caa0b3ca57797b7e8f88684e3601f26ac9ce9b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xenserver/xenadmin/pulls/839/commits","review_comments_url":"https://api.github.com/repos/xenserver/xenadmin/pulls/839/comments","review_comment_url":"https://api.github.com/repos/xenserver/xenadmin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xenserver/xenadmin/issues/839/comments","statuses_url":"https://api.github.com/repos/xenserver/xenadmin/statuses/a14d1fe6fd701952cae50e8dce99825fa9f7d28e","head":{"label":"koushikcgit:VMSSv2","ref":"VMSSv2","sha":"a14d1fe6fd701952cae50e8dce99825fa9f7d28e","user":{"login":"koushikcgit","id":10140689,"avatar_url":"https://avatars.githubusercontent.com/u/10140689?v=3","gravatar_id":"","url":"https://api.github.com/users/koushikcgit","html_url":"https://github.com/koushikcgit","followers_url":"https://api.github.com/users/koushikcgit/followers","following_url":"https://api.github.com/users/koushikcgit/following{/other_user}","gists_url":"https://api.github.com/users/koushikcgit/gists{/gist_id}","starred_url":"https://api.github.com/users/koushikcgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koushikcgit/subscriptions","organizations_url":"https://api.github.com/users/koushikcgit/orgs","repos_url":"https://api.github.com/users/koushikcgit/repos","events_url":"https://api.github.com/users/koushikcgit/events{/privacy}","received_events_url":"https://api.github.com/users/koushikcgit/received_events","type":"User","site_admin":false},"repo":{"id":49865625,"name":"xenadmin","full_name":"koushikcgit/xenadmin","owner":{"login":"koushikcgit","id":10140689,"avatar_url":"https://avatars.githubusercontent.com/u/10140689?v=3","gravatar_id":"","url":"https://api.github.com/users/koushikcgit","html_url":"https://github.com/koushikcgit","followers_url":"https://api.github.com/users/koushikcgit/followers","following_url":"https://api.github.com/users/koushikcgit/following{/other_user}","gists_url":"https://api.github.com/users/koushikcgit/gists{/gist_id}","starred_url":"https://api.github.com/users/koushikcgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koushikcgit/subscriptions","organizations_url":"https://api.github.com/users/koushikcgit/orgs","repos_url":"https://api.github.com/users/koushikcgit/repos","events_url":"https://api.github.com/users/koushikcgit/events{/privacy}","received_events_url":"https://api.github.com/users/koushikcgit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/koushikcgit/xenadmin","description":"XenCenter, the Windows management console for XenServer","fork":true,"url":"https://api.github.com/repos/koushikcgit/xenadmin","forks_url":"https://api.github.com/repos/koushikcgit/xenadmin/forks","keys_url":"https://api.github.com/repos/koushikcgit/xenadmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koushikcgit/xenadmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koushikcgit/xenadmin/teams","hooks_url":"https://api.github.com/repos/koushikcgit/xenadmin/hooks","issue_events_url":"https://api.github.com/repos/koushikcgit/xenadmin/issues/events{/number}","events_url":"https://api.github.com/repos/koushikcgit/xenadmin/events","assignees_url":"https://api.github.com/repos/koushikcgit/xenadmin/assignees{/user}","branches_url":"https://api.github.com/repos/koushikcgit/xenadmin/branches{/branch}","tags_url":"https://api.github.com/repos/koushikcgit/xenadmin/tags","blobs_url":"https://api.github.com/repos/koushikcgit/xenadmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koushikcgit/xenadmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koushikcgit/xenadmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/koushikcgit/xenadmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koushikcgit/xenadmin/statuses/{sha}","languages_url":"https://api.github.com/repos/koushikcgit/xenadmin/languages","stargazers_url":"https://api.github.com/repos/koushikcgit/xenadmin/stargazers","contributors_url":"https://api.github.com/repos/koushikcgit/xenadmin/contributors","subscribers_url":"https://api.github.com/repos/koushikcgit/xenadmin/subscribers","subscription_url":"https://api.github.com/repos/koushikcgit/xenadmin/subscription","commits_url":"https://api.github.com/repos/koushikcgit/xenadmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/koushikcgit/xenadmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/koushikcgit/xenadmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/koushikcgit/xenadmin/issues/comments{/number}","contents_url":"https://api.github.com/repos/koushikcgit/xenadmin/contents/{+path}","compare_url":"https://api.github.com/repos/koushikcgit/xenadmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koushikcgit/xenadmin/merges","archive_url":"https://api.github.com/repos/koushikcgit/xenadmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koushikcgit/xenadmin/downloads","issues_url":"https://api.github.com/repos/koushikcgit/xenadmin/issues{/number}","pulls_url":"https://api.github.com/repos/koushikcgit/xenadmin/pulls{/number}","milestones_url":"https://api.github.com/repos/koushikcgit/xenadmin/milestones{/number}","notifications_url":"https://api.github.com/repos/koushikcgit/xenadmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koushikcgit/xenadmin/labels{/name}","releases_url":"https://api.github.com/repos/koushikcgit/xenadmin/releases{/id}","deployments_url":"https://api.github.com/repos/koushikcgit/xenadmin/deployments","created_at":"2016-01-18T09:19:49Z","updated_at":"2016-01-18T09:20:11Z","pushed_at":"2016-02-15T10:11:13Z","git_url":"git://github.com/koushikcgit/xenadmin.git","ssh_url":"git@github.com:koushikcgit/xenadmin.git","clone_url":"https://github.com/koushikcgit/xenadmin.git","svn_url":"https://github.com/koushikcgit/xenadmin","homepage":"","size":92000,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"xenserver:master","ref":"master","sha":"fe29a0bb7ddb87cc62e6d8ea52466daec4f34283","user":{"login":"xenserver","id":4669806,"avatar_url":"https://avatars.githubusercontent.com/u/4669806?v=3","gravatar_id":"","url":"https://api.github.com/users/xenserver","html_url":"https://github.com/xenserver","followers_url":"https://api.github.com/users/xenserver/followers","following_url":"https://api.github.com/users/xenserver/following{/other_user}","gists_url":"https://api.github.com/users/xenserver/gists{/gist_id}","starred_url":"https://api.github.com/users/xenserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xenserver/subscriptions","organizations_url":"https://api.github.com/users/xenserver/orgs","repos_url":"https://api.github.com/users/xenserver/repos","events_url":"https://api.github.com/users/xenserver/events{/privacy}","received_events_url":"https://api.github.com/users/xenserver/received_events","type":"Organization","site_admin":false},"repo":{"id":10915984,"name":"xenadmin","full_name":"xenserver/xenadmin","owner":{"login":"xenserver","id":4669806,"avatar_url":"https://avatars.githubusercontent.com/u/4669806?v=3","gravatar_id":"","url":"https://api.github.com/users/xenserver","html_url":"https://github.com/xenserver","followers_url":"https://api.github.com/users/xenserver/followers","following_url":"https://api.github.com/users/xenserver/following{/other_user}","gists_url":"https://api.github.com/users/xenserver/gists{/gist_id}","starred_url":"https://api.github.com/users/xenserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xenserver/subscriptions","organizations_url":"https://api.github.com/users/xenserver/orgs","repos_url":"https://api.github.com/users/xenserver/repos","events_url":"https://api.github.com/users/xenserver/events{/privacy}","received_events_url":"https://api.github.com/users/xenserver/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xenserver/xenadmin","description":"XenCenter, the Windows management console for XenServer","fork":false,"url":"https://api.github.com/repos/xenserver/xenadmin","forks_url":"https://api.github.com/repos/xenserver/xenadmin/forks","keys_url":"https://api.github.com/repos/xenserver/xenadmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xenserver/xenadmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xenserver/xenadmin/teams","hooks_url":"https://api.github.com/repos/xenserver/xenadmin/hooks","issue_events_url":"https://api.github.com/repos/xenserver/xenadmin/issues/events{/number}","events_url":"https://api.github.com/repos/xenserver/xenadmin/events","assignees_url":"https://api.github.com/repos/xenserver/xenadmin/assignees{/user}","branches_url":"https://api.github.com/repos/xenserver/xenadmin/branches{/branch}","tags_url":"https://api.github.com/repos/xenserver/xenadmin/tags","blobs_url":"https://api.github.com/repos/xenserver/xenadmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xenserver/xenadmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xenserver/xenadmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/xenserver/xenadmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xenserver/xenadmin/statuses/{sha}","languages_url":"https://api.github.com/repos/xenserver/xenadmin/languages","stargazers_url":"https://api.github.com/repos/xenserver/xenadmin/stargazers","contributors_url":"https://api.github.com/repos/xenserver/xenadmin/contributors","subscribers_url":"https://api.github.com/repos/xenserver/xenadmin/subscribers","subscription_url":"https://api.github.com/repos/xenserver/xenadmin/subscription","commits_url":"https://api.github.com/repos/xenserver/xenadmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/xenserver/xenadmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/xenserver/xenadmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/xenserver/xenadmin/issues/comments{/number}","contents_url":"https://api.github.com/repos/xenserver/xenadmin/contents/{+path}","compare_url":"https://api.github.com/repos/xenserver/xenadmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xenserver/xenadmin/merges","archive_url":"https://api.github.com/repos/xenserver/xenadmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xenserver/xenadmin/downloads","issues_url":"https://api.github.com/repos/xenserver/xenadmin/issues{/number}","pulls_url":"https://api.github.com/repos/xenserver/xenadmin/pulls{/number}","milestones_url":"https://api.github.com/repos/xenserver/xenadmin/milestones{/number}","notifications_url":"https://api.github.com/repos/xenserver/xenadmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xenserver/xenadmin/labels{/name}","releases_url":"https://api.github.com/repos/xenserver/xenadmin/releases{/id}","deployments_url":"https://api.github.com/repos/xenserver/xenadmin/deployments","created_at":"2013-06-24T18:10:24Z","updated_at":"2016-01-19T19:37:28Z","pushed_at":"2016-02-15T10:35:32Z","git_url":"git://github.com/xenserver/xenadmin.git","ssh_url":"git@github.com:xenserver/xenadmin.git","clone_url":"https://github.com/xenserver/xenadmin.git","svn_url":"https://github.com/xenserver/xenadmin","homepage":"","size":92486,"stargazers_count":103,"watchers_count":103,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":77,"mirror_url":null,"open_issues_count":9,"forks":77,"open_issues":9,"watchers":103,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/839"},"html":{"href":"https://github.com/xenserver/xenadmin/pull/839"},"issue":{"href":"https://api.github.com/repos/xenserver/xenadmin/issues/839"},"comments":{"href":"https://api.github.com/repos/xenserver/xenadmin/issues/839/comments"},"review_comments":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/839/comments"},"review_comment":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/839/commits"},"statuses":{"href":"https://api.github.com/repos/xenserver/xenadmin/statuses/a14d1fe6fd701952cae50e8dce99825fa9f7d28e"}}}}