{"action":"created","comment":{"url":"https://api.github.com/repos/vmware/govmomi/pulls/comments/36781606","id":36781606,"diff_hunk":"@@ -0,0 +1,95 @@\n+/*\n+Copyright (c) 2014 VMware, Inc. All Rights Reserved.\n+\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+\n+    http://www.apache.org/licenses/LICENSE-2.0\n+\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+package fields\n+\n+import (\n+\t\"flag\"\n+\n+\t\"github.com/vmware/govmomi/govc/cli\"\n+\t\"github.com/vmware/govmomi/govc/flags\"\n+\t\"github.com/vmware/govmomi/list\"\n+\t\"github.com/vmware/govmomi/object\"\n+\t\"golang.org/x/net/context\"\n+)\n+\n+type set struct {\n+\t*flags.DatacenterFlag\n+}\n+\n+func init() {\n+\tcli.Register(\"fields.set\", &set{})\n+}\n+\n+func (cmd *set) Register(f *flag.FlagSet) {}\n+\n+func (cmd *set) Process() error { return nil }\n+\n+func (cmd *set) Usage() string {\n+\treturn \"KEY VALUE PATH...\"","path":"govc/fields/set.go","position":42,"original_position":42,"commit_id":"51fcf62fd6571ed7569a50c50ebccdf0a4366779","original_commit_id":"51fcf62fd6571ed7569a50c50ebccdf0a4366779","user":{"login":"pietern","id":9845,"avatar_url":"https://avatars.githubusercontent.com/u/9845?v=3","gravatar_id":"","url":"https://api.github.com/users/pietern","html_url":"https://github.com/pietern","followers_url":"https://api.github.com/users/pietern/followers","following_url":"https://api.github.com/users/pietern/following{/other_user}","gists_url":"https://api.github.com/users/pietern/gists{/gist_id}","starred_url":"https://api.github.com/users/pietern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pietern/subscriptions","organizations_url":"https://api.github.com/users/pietern/orgs","repos_url":"https://api.github.com/users/pietern/repos","events_url":"https://api.github.com/users/pietern/events{/privacy}","received_events_url":"https://api.github.com/users/pietern/received_events","type":"User","site_admin":false},"body":"If the changes above are also done then this should also be `NAME` instead of `KEY`.","created_at":"2015-08-11T18:37:05Z","updated_at":"2015-08-11T18:37:05Z","html_url":"https://github.com/vmware/govmomi/pull/300#discussion_r36781606","pull_request_url":"https://api.github.com/repos/vmware/govmomi/pulls/300","_links":{"self":{"href":"https://api.github.com/repos/vmware/govmomi/pulls/comments/36781606"},"html":{"href":"https://github.com/vmware/govmomi/pull/300#discussion_r36781606"},"pull_request":{"href":"https://api.github.com/repos/vmware/govmomi/pulls/300"}}},"pull_request":{"url":"https://api.github.com/repos/vmware/govmomi/pulls/300","id":42159628,"html_url":"https://github.com/vmware/govmomi/pull/300","diff_url":"https://github.com/vmware/govmomi/pull/300.diff","patch_url":"https://github.com/vmware/govmomi/pull/300.patch","issue_url":"https://api.github.com/repos/vmware/govmomi/issues/300","number":300,"state":"open","locked":false,"title":"Add CustomFieldsManager wrapper and cli commands","user":{"login":"dougm","id":30171,"avatar_url":"https://avatars.githubusercontent.com/u/30171?v=3","gravatar_id":"","url":"https://api.github.com/users/dougm","html_url":"https://github.com/dougm","followers_url":"https://api.github.com/users/dougm/followers","following_url":"https://api.github.com/users/dougm/following{/other_user}","gists_url":"https://api.github.com/users/dougm/gists{/gist_id}","starred_url":"https://api.github.com/users/dougm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougm/subscriptions","organizations_url":"https://api.github.com/users/dougm/orgs","repos_url":"https://api.github.com/users/dougm/repos","events_url":"https://api.github.com/users/dougm/events{/privacy}","received_events_url":"https://api.github.com/users/dougm/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-11T18:13:21Z","updated_at":"2015-08-11T18:37:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b037f397aa7fc4a90865441a49480bef9471715","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vmware/govmomi/pulls/300/commits","review_comments_url":"https://api.github.com/repos/vmware/govmomi/pulls/300/comments","review_comment_url":"https://api.github.com/repos/vmware/govmomi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vmware/govmomi/issues/300/comments","statuses_url":"https://api.github.com/repos/vmware/govmomi/statuses/51fcf62fd6571ed7569a50c50ebccdf0a4366779","head":{"label":"dougm:fields","ref":"fields","sha":"51fcf62fd6571ed7569a50c50ebccdf0a4366779","user":{"login":"dougm","id":30171,"avatar_url":"https://avatars.githubusercontent.com/u/30171?v=3","gravatar_id":"","url":"https://api.github.com/users/dougm","html_url":"https://github.com/dougm","followers_url":"https://api.github.com/users/dougm/followers","following_url":"https://api.github.com/users/dougm/following{/other_user}","gists_url":"https://api.github.com/users/dougm/gists{/gist_id}","starred_url":"https://api.github.com/users/dougm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougm/subscriptions","organizations_url":"https://api.github.com/users/dougm/orgs","repos_url":"https://api.github.com/users/dougm/repos","events_url":"https://api.github.com/users/dougm/events{/privacy}","received_events_url":"https://api.github.com/users/dougm/received_events","type":"User","site_admin":false},"repo":{"id":23294324,"name":"govmomi","full_name":"dougm/govmomi","owner":{"login":"dougm","id":30171,"avatar_url":"https://avatars.githubusercontent.com/u/30171?v=3","gravatar_id":"","url":"https://api.github.com/users/dougm","html_url":"https://github.com/dougm","followers_url":"https://api.github.com/users/dougm/followers","following_url":"https://api.github.com/users/dougm/following{/other_user}","gists_url":"https://api.github.com/users/dougm/gists{/gist_id}","starred_url":"https://api.github.com/users/dougm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougm/subscriptions","organizations_url":"https://api.github.com/users/dougm/orgs","repos_url":"https://api.github.com/users/dougm/repos","events_url":"https://api.github.com/users/dougm/events{/privacy}","received_events_url":"https://api.github.com/users/dougm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dougm/govmomi","description":"Go library for the VMware vSphere API","fork":true,"url":"https://api.github.com/repos/dougm/govmomi","forks_url":"https://api.github.com/repos/dougm/govmomi/forks","keys_url":"https://api.github.com/repos/dougm/govmomi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dougm/govmomi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dougm/govmomi/teams","hooks_url":"https://api.github.com/repos/dougm/govmomi/hooks","issue_events_url":"https://api.github.com/repos/dougm/govmomi/issues/events{/number}","events_url":"https://api.github.com/repos/dougm/govmomi/events","assignees_url":"https://api.github.com/repos/dougm/govmomi/assignees{/user}","branches_url":"https://api.github.com/repos/dougm/govmomi/branches{/branch}","tags_url":"https://api.github.com/repos/dougm/govmomi/tags","blobs_url":"https://api.github.com/repos/dougm/govmomi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dougm/govmomi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dougm/govmomi/git/refs{/sha}","trees_url":"https://api.github.com/repos/dougm/govmomi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dougm/govmomi/statuses/{sha}","languages_url":"https://api.github.com/repos/dougm/govmomi/languages","stargazers_url":"https://api.github.com/repos/dougm/govmomi/stargazers","contributors_url":"https://api.github.com/repos/dougm/govmomi/contributors","subscribers_url":"https://api.github.com/repos/dougm/govmomi/subscribers","subscription_url":"https://api.github.com/repos/dougm/govmomi/subscription","commits_url":"https://api.github.com/repos/dougm/govmomi/commits{/sha}","git_commits_url":"https://api.github.com/repos/dougm/govmomi/git/commits{/sha}","comments_url":"https://api.github.com/repos/dougm/govmomi/comments{/number}","issue_comment_url":"https://api.github.com/repos/dougm/govmomi/issues/comments{/number}","contents_url":"https://api.github.com/repos/dougm/govmomi/contents/{+path}","compare_url":"https://api.github.com/repos/dougm/govmomi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dougm/govmomi/merges","archive_url":"https://api.github.com/repos/dougm/govmomi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dougm/govmomi/downloads","issues_url":"https://api.github.com/repos/dougm/govmomi/issues{/number}","pulls_url":"https://api.github.com/repos/dougm/govmomi/pulls{/number}","milestones_url":"https://api.github.com/repos/dougm/govmomi/milestones{/number}","notifications_url":"https://api.github.com/repos/dougm/govmomi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dougm/govmomi/labels{/name}","releases_url":"https://api.github.com/repos/dougm/govmomi/releases{/id}","created_at":"2014-08-24T22:10:09Z","updated_at":"2014-09-02T17:54:52Z","pushed_at":"2015-08-11T18:12:45Z","git_url":"git://github.com/dougm/govmomi.git","ssh_url":"git@github.com:dougm/govmomi.git","clone_url":"https://github.com/dougm/govmomi.git","svn_url":"https://github.com/dougm/govmomi","homepage":"","size":1782,"stargazers_count":1,"watchers_count":1,"language":null,"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":1,"default_branch":"master"}},"base":{"label":"vmware:master","ref":"master","sha":"7a8b0e85f74f313d5b5453b12df81dd199942916","user":{"login":"vmware","id":473334,"avatar_url":"https://avatars.githubusercontent.com/u/473334?v=3","gravatar_id":"","url":"https://api.github.com/users/vmware","html_url":"https://github.com/vmware","followers_url":"https://api.github.com/users/vmware/followers","following_url":"https://api.github.com/users/vmware/following{/other_user}","gists_url":"https://api.github.com/users/vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmware/subscriptions","organizations_url":"https://api.github.com/users/vmware/orgs","repos_url":"https://api.github.com/users/vmware/repos","events_url":"https://api.github.com/users/vmware/events{/privacy}","received_events_url":"https://api.github.com/users/vmware/received_events","type":"Organization","site_admin":false},"repo":{"id":22883982,"name":"govmomi","full_name":"vmware/govmomi","owner":{"login":"vmware","id":473334,"avatar_url":"https://avatars.githubusercontent.com/u/473334?v=3","gravatar_id":"","url":"https://api.github.com/users/vmware","html_url":"https://github.com/vmware","followers_url":"https://api.github.com/users/vmware/followers","following_url":"https://api.github.com/users/vmware/following{/other_user}","gists_url":"https://api.github.com/users/vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmware/subscriptions","organizations_url":"https://api.github.com/users/vmware/orgs","repos_url":"https://api.github.com/users/vmware/repos","events_url":"https://api.github.com/users/vmware/events{/privacy}","received_events_url":"https://api.github.com/users/vmware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vmware/govmomi","description":"Go library for the VMware vSphere API","fork":false,"url":"https://api.github.com/repos/vmware/govmomi","forks_url":"https://api.github.com/repos/vmware/govmomi/forks","keys_url":"https://api.github.com/repos/vmware/govmomi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vmware/govmomi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vmware/govmomi/teams","hooks_url":"https://api.github.com/repos/vmware/govmomi/hooks","issue_events_url":"https://api.github.com/repos/vmware/govmomi/issues/events{/number}","events_url":"https://api.github.com/repos/vmware/govmomi/events","assignees_url":"https://api.github.com/repos/vmware/govmomi/assignees{/user}","branches_url":"https://api.github.com/repos/vmware/govmomi/branches{/branch}","tags_url":"https://api.github.com/repos/vmware/govmomi/tags","blobs_url":"https://api.github.com/repos/vmware/govmomi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vmware/govmomi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vmware/govmomi/git/refs{/sha}","trees_url":"https://api.github.com/repos/vmware/govmomi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vmware/govmomi/statuses/{sha}","languages_url":"https://api.github.com/repos/vmware/govmomi/languages","stargazers_url":"https://api.github.com/repos/vmware/govmomi/stargazers","contributors_url":"https://api.github.com/repos/vmware/govmomi/contributors","subscribers_url":"https://api.github.com/repos/vmware/govmomi/subscribers","subscription_url":"https://api.github.com/repos/vmware/govmomi/subscription","commits_url":"https://api.github.com/repos/vmware/govmomi/commits{/sha}","git_commits_url":"https://api.github.com/repos/vmware/govmomi/git/commits{/sha}","comments_url":"https://api.github.com/repos/vmware/govmomi/comments{/number}","issue_comment_url":"https://api.github.com/repos/vmware/govmomi/issues/comments{/number}","contents_url":"https://api.github.com/repos/vmware/govmomi/contents/{+path}","compare_url":"https://api.github.com/repos/vmware/govmomi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vmware/govmomi/merges","archive_url":"https://api.github.com/repos/vmware/govmomi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vmware/govmomi/downloads","issues_url":"https://api.github.com/repos/vmware/govmomi/issues{/number}","pulls_url":"https://api.github.com/repos/vmware/govmomi/pulls{/number}","milestones_url":"https://api.github.com/repos/vmware/govmomi/milestones{/number}","notifications_url":"https://api.github.com/repos/vmware/govmomi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vmware/govmomi/labels{/name}","releases_url":"https://api.github.com/repos/vmware/govmomi/releases{/id}","created_at":"2014-08-12T16:15:08Z","updated_at":"2015-08-11T08:35:47Z","pushed_at":"2015-08-11T18:13:22Z","git_url":"git://github.com/vmware/govmomi.git","ssh_url":"git@github.com:vmware/govmomi.git","clone_url":"https://github.com/vmware/govmomi.git","svn_url":"https://github.com/vmware/govmomi","homepage":"","size":3043,"stargazers_count":155,"watchers_count":155,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":27,"forks":40,"open_issues":27,"watchers":155,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vmware/govmomi/pulls/300"},"html":{"href":"https://github.com/vmware/govmomi/pull/300"},"issue":{"href":"https://api.github.com/repos/vmware/govmomi/issues/300"},"comments":{"href":"https://api.github.com/repos/vmware/govmomi/issues/300/comments"},"review_comments":{"href":"https://api.github.com/repos/vmware/govmomi/pulls/300/comments"},"review_comment":{"href":"https://api.github.com/repos/vmware/govmomi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vmware/govmomi/pulls/300/commits"},"statuses":{"href":"https://api.github.com/repos/vmware/govmomi/statuses/51fcf62fd6571ed7569a50c50ebccdf0a4366779"}}}}