GitHub PullRequestReviewCommentEvent at 2014-01-07 00:44:43
Repository: azure-sdk-tools
Actor: huangpf
Payload: {"comment":{"url":"https://api.github.com/repos/AzureRT/azure-sdk-tools/pulls/comments/8683186","id":8683186,"diff_hunk":"@@ -0,0 +1,49 @@\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.WindowsAzure.Commands.ServiceManagement.IaaS.PersistentVMs\n+{\n+    using System.Linq;\n+    using System.Management.Automation;\n+    using Model;\n+    using Model.PersistentVMModel;\n+\n+    [Cmdlet(VerbsCommon.Get, StaticVNetIPNoun), OutputType(typeof(VirtualNetworkStaticIPContext))]\n+    public class GetAzureStaticVNetIPNounCommand : VirtualMachineConfigurationCmdletBase\n+    {\n+        internal void ExecuteCommand()\n+        {\n+            var vmRole = VM.GetInstance();\n+            var networkConfiguration = vmRole.ConfigurationSets.OfType<NetworkConfigurationSet>().SingleOrDefault();\n+            if (networkConfiguration == null)\n+            {\n+                WriteObject(null);","path":"WindowsAzurePowershell/src/Commands.ServiceManagement/IaaS/Network/GetAzureStaticVNetIP.cs","position":31,"original_position":31,"commit_id":"ccd5b36aeae2452b84bc40568caa92622208e355","original_commit_id":"ccd5b36aeae2452b84bc40568caa92622208e355","user":{"login":"huangpf","id":3858524,"avatar_url":"https://gravatar.com/avatar/3eea7c59e97c9caec36646d3adc9b2fd?d=https%3A%2F%2Fidenticons.github.com%2F01fce367760d860c98e73ab418f9bd0d.png&r=x","gravatar_id":"3eea7c59e97c9caec36646d3adc9b2fd","url":"https://api.github.com/users/huangpf","html_url":"https://github.com/huangpf","followers_url":"https://api.github.com/users/huangpf/followers","following_url":"https://api.github.com/users/huangpf/following{/other_user}","gists_url":"https://api.github.com/users/huangpf/gists{/gist_id}","starred_url":"https://api.github.com/users/huangpf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangpf/subscriptions","organizations_url":"https://api.github.com/users/huangpf/orgs","repos_url":"https://api.github.com/users/huangpf/repos","events_url":"https://api.github.com/users/huangpf/events{/privacy}","received_events_url":"https://api.github.com/users/huangpf/received_events","type":"User","site_admin":false},"body":"OK","created_at":"2014-01-07T00:44:43Z","updated_at":"2014-01-07T00:44:43Z","html_url":"https://github.com/AzureRT/azure-sdk-tools/pull/75#discussion_r8683186","pull_request_url":"https://api.github.com/repos/AzureRT/azure-sdk-tools/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/AzureRT/azure-sdk-tools/pulls/comments/8683186"},"html":{"href":"https://github.com/AzureRT/azure-sdk-tools/pull/75#discussion_r8683186"},"pull_request":{"href":"https://api.github.com/repos/AzureRT/azure-sdk-tools/pulls/75"}}}}