GitHub PullRequestReviewCommentEvent at 2014-08-22 11:49:43
Repository: azure-sdk-tools
Actor: yoavrubin
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-tools/pulls/comments/16593621","id":16593621,"diff_hunk":"@@ -0,0 +1,59 @@\n+﻿// ----------------------------------------------------------------------------------\n+//\n+// Copyright Microsoft Corporation\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+// http://www.apache.org/licenses/LICENSE-2.0\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+namespace Microsoft.Azure.Commands.SqlDatabase.Security.Cmdlet\n+{\n+    using System;\n+    using System.Management.Automation;\n+    using Microsoft.Azure.Management.Sql.Models;\n+    using Microsoft.Azure.Commands.SqlDatabase.Services;\n+\n+    /// <summary>\n+    /// Disable auditing on a database server, therefore all of the databases that use their server's auditing policy will not be audited, as well as \n+    /// all new databases within this database server.\n+    /// </summary>\n+    [Cmdlet(VerbsLifecycle.Disable, \"AzureSqlServerAuditing\", ConfirmImpact = ConfirmImpact.None)]\n+    public class DisableSqlServerAuditing : SetAuditingSettingsBase\n+    {\n+\n+        /// <summary>\n+        /// Process the command.\n+        /// </summary>\n+        public override void ExecuteCmdlet()\n+        {\n+            try\n+            {\n+                DatabaseSecurityPolicyUpdateParameters parameters = PolicyPropertyHandler.Init(this).UpdateAuditingEnblement(false).ExtractUpdateParameters();\n+                EndpointsCommunicator.SetServerSecurityPolicy(this.ResourceGroupName, this.ServerName, this.clientRequestId, parameters);\n+                this.WriteObject(parameters.Properties);\n+            }\n+            catch (Exception ex)\n+            {\n+                this.WriteExceptionError(ex);\n+            }\n+        }\n+\n+        /// <summary>\n+        /// Provides the proverty value for the given property name\n+        /// </summary>\n+        /// <param name=\"propertyName\">The name of the property for which the caller wants to know the value</param>\n+        /// <returns>The value of the given property</returns>\n+        public override object GetPropertyValue(string propertyName)\n+        {\n+            if (propertyName == Constants.DEFAULT_PROPERTIES)","path":"src/ResourceManager/Sql/Commands.SqlDatabase2/Security/Cmdlet/DisableSqlServerAuditing.cs","position":null,"original_position":54,"commit_id":"eb46697ee01d72dac3bf041727288fc2f5f391e9","original_commit_id":"56501fda6a25c00b16e805a16a80515b437ad794","user":{"login":"yoavrubin","id":491605,"avatar_url":"https://avatars.githubusercontent.com/u/491605?v=2","gravatar_id":"ecb5b4801bc4b316431b30da9cd6ee53","url":"https://api.github.com/users/yoavrubin","html_url":"https://github.com/yoavrubin","followers_url":"https://api.github.com/users/yoavrubin/followers","following_url":"https://api.github.com/users/yoavrubin/following{/other_user}","gists_url":"https://api.github.com/users/yoavrubin/gists{/gist_id}","starred_url":"https://api.github.com/users/yoavrubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoavrubin/subscriptions","organizations_url":"https://api.github.com/users/yoavrubin/orgs","repos_url":"https://api.github.com/users/yoavrubin/repos","events_url":"https://api.github.com/users/yoavrubin/events{/privacy}","received_events_url":"https://api.github.com/users/yoavrubin/received_events","type":"User","site_admin":false},"body":"done","created_at":"2014-08-22T11:49:43Z","updated_at":"2014-08-22T11:49:43Z","html_url":"https://github.com/Azure/azure-sdk-tools/pull/2842#discussion_r16593621","pull_request_url":"https://api.github.com/repos/Azure/azure-sdk-tools/pulls/2842","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-tools/pulls/comments/16593621"},"html":{"href":"https://github.com/Azure/azure-sdk-tools/pull/2842#discussion_r16593621"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-sdk-tools/pulls/2842"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-sdk-tools/pulls/2842","id":20070755,"html_url":"https://github.com/Azure/azure-sdk-tools/pull/2842","diff_url":"https://github.com/Azure/azure-sdk-tools/pull/2842.diff","patch_url":"https://github.com/Azure/azure-sdk-tools/pull/2842.patch","issue_url":"https://api.github.com/repos/Azure/azure-sdk-tools/issues/2842","number":2842,"state":"open","locked":false,"title":"Initial addition of security cmdlets","user":{"login":"yoavrubin","id":491605,"avatar_url":"https://avatars.githubusercontent.com/u/491605?v=2","gravatar_id":"ecb5b4801bc4b316431b30da9cd6ee53","url":"https://api.github.com/users/yoavrubin","html_url":"https://github.com/yoavrubin","followers_url":"https://api.github.com/users/yoavrubin/followers","following_url":"https://api.github.com/users/yoavrubin/following{/other_user}","gists_url":"https://api.github.com/users/yoavrubin/gists{/gist_id}","starred_url":"https://api.github.com/users/yoavrubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoavrubin/subscriptions","organizations_url":"https://api.github.com/users/yoavrubin/orgs","repos_url":"https://api.github.com/users/yoavrubin/repos","events_url":"https://api.github.com/users/yoavrubin/events{/privacy}","received_events_url":"https://api.github.com/users/yoavrubin/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-08-20T20:16:29Z","updated_at":"2014-08-22T11:49:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d6c480aa4836a201a6cecc1eeab2a9b03d46ec3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-sdk-tools/pulls/2842/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-sdk-tools/pulls/2842/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-sdk-tools/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-tools/issues/2842/comments","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-tools/statuses/eb46697ee01d72dac3bf041727288fc2f5f391e9","head":{"label":"yoavrubin:dev","ref":"dev","sha":"eb46697ee01d72dac3bf041727288fc2f5f391e9","user":{"login":"yoavrubin","id":491605,"avatar_url":"https://avatars.githubusercontent.com/u/491605?v=2","gravatar_id":"ecb5b4801bc4b316431b30da9cd6ee53","url":"https://api.github.com/users/yoavrubin","html_url":"https://github.com/yoavrubin","followers_url":"https://api.github.com/users/yoavrubin/followers","following_url":"https://api.github.com/users/yoavrubin/following{/other_user}","gists_url":"https://api.github.com/users/yoavrubin/gists{/gist_id}","starred_url":"https://api.github.com/users/yoavrubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoavrubin/subscriptions","organizations_url":"https://api.github.com/users/yoavrubin/orgs","repos_url":"https://api.github.com/users/yoavrubin/repos","events_url":"https://api.github.com/users/yoavrubin/events{/privacy}","received_events_url":"https://api.github.com/users/yoavrubin/received_events","type":"User","site_admin":false},"repo":{"id":22769020,"name":"azure-sdk-tools","full_name":"yoavrubin/azure-sdk-tools","owner":{"login":"yoavrubin","id":491605,"avatar_url":"https://avatars.githubusercontent.com/u/491605?v=2","gravatar_id":"ecb5b4801bc4b316431b30da9cd6ee53","url":"https://api.github.com/users/yoavrubin","html_url":"https://github.com/yoavrubin","followers_url":"https://api.github.com/users/yoavrubin/followers","following_url":"https://api.github.com/users/yoavrubin/following{/other_user}","gists_url":"https://api.github.com/users/yoavrubin/gists{/gist_id}","starred_url":"https://api.github.com/users/yoavrubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoavrubin/subscriptions","organizations_url":"https://api.github.com/users/yoavrubin/orgs","repos_url":"https://api.github.com/users/yoavrubin/repos","events_url":"https://api.github.com/users/yoavrubin/events{/privacy}","received_events_url":"https://api.github.com/users/yoavrubin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yoavrubin/azure-sdk-tools","description":"Microsoft Azure PowerShell","fork":true,"url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools","forks_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/forks","keys_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/teams","hooks_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/hooks","issue_events_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/issues/events{/number}","events_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/events","assignees_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/assignees{/user}","branches_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/branches{/branch}","tags_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/tags","blobs_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/languages","stargazers_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/stargazers","contributors_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/contributors","subscribers_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/subscribers","subscription_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/subscription","commits_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/issues/comments/{number}","contents_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/contents/{+path}","compare_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/merges","archive_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/downloads","issues_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/issues{/number}","pulls_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/labels{/name}","releases_url":"https://api.github.com/repos/yoavrubin/azure-sdk-tools/releases{/id}","created_at":"2014-08-08T19:23:13Z","updated_at":"2014-08-06T05:03:32Z","pushed_at":"2014-08-22T11:45:52Z","git_url":"git://github.com/yoavrubin/azure-sdk-tools.git","ssh_url":"git@github.com:yoavrubin/azure-sdk-tools.git","clone_url":"https://github.com/yoavrubin/azure-sdk-tools.git","svn_url":"https://github.com/yoavrubin/azure-sdk-tools","homepage":"http://azure.microsoft.com/en-us/documentation/","size":260533,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Azure:dev","ref":"dev","sha":"5f74513aa6670ceeadafe2b849106e2447949a4b","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=2","gravatar_id":"c629ed394d19b8acdf3947f4c1079bbb","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":2942160,"name":"azure-sdk-tools","full_name":"Azure/azure-sdk-tools","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=2","gravatar_id":"c629ed394d19b8acdf3947f4c1079bbb","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-sdk-tools","description":"Microsoft Azure PowerShell","fork":false,"url":"https://api.github.com/repos/Azure/azure-sdk-tools","forks_url":"https://api.github.com/repos/Azure/azure-sdk-tools/forks","keys_url":"https://api.github.com/repos/Azure/azure-sdk-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-sdk-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-sdk-tools/teams","hooks_url":"https://api.github.com/repos/Azure/azure-sdk-tools/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-sdk-tools/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-sdk-tools/events","assignees_url":"https://api.github.com/repos/Azure/azure-sdk-tools/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-sdk-tools/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-sdk-tools/tags","blobs_url":"https://api.github.com/repos/Azure/azure-sdk-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-sdk-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-sdk-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-sdk-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-sdk-tools/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-sdk-tools/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-sdk-tools/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-sdk-tools/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-sdk-tools/subscription","commits_url":"https://api.github.com/repos/Azure/azure-sdk-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-sdk-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-sdk-tools/issues/comments/{number}","contents_url":"https://api.github.com/repos/Azure/azure-sdk-tools/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-sdk-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-sdk-tools/merges","archive_url":"https://api.github.com/repos/Azure/azure-sdk-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-sdk-tools/downloads","issues_url":"https://api.github.com/repos/Azure/azure-sdk-tools/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-sdk-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-sdk-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-sdk-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-sdk-tools/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-sdk-tools/releases{/id}","created_at":"2011-12-08T18:36:46Z","updated_at":"2014-08-21T21:04:57Z","pushed_at":"2014-08-22T01:06:56Z","git_url":"git://github.com/Azure/azure-sdk-tools.git","ssh_url":"git@github.com:Azure/azure-sdk-tools.git","clone_url":"https://github.com/Azure/azure-sdk-tools.git","svn_url":"https://github.com/Azure/azure-sdk-tools","homepage":"http://azure.microsoft.com/en-us/documentation/","size":293037,"stargazers_count":317,"watchers_count":317,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":270,"mirror_url":null,"open_issues_count":521,"forks":270,"open_issues":521,"watchers":317,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-tools/pulls/2842"},"html":{"href":"https://github.com/Azure/azure-sdk-tools/pull/2842"},"issue":{"href":"https://api.github.com/repos/Azure/azure-sdk-tools/issues/2842"},"comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-tools/issues/2842/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-tools/pulls/2842/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-sdk-tools/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-sdk-tools/pulls/2842/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-sdk-tools/statuses/eb46697ee01d72dac3bf041727288fc2f5f391e9"}}}}