{"action":"created","comment":{"url":"https://api.github.com/repos/vmware/go-vcloud-director/pulls/comments/233533883","pull_request_review_id":174970540,"id":233533883,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzUzMzg4Mw==","diff_hunk":"@@ -0,0 +1,283 @@\n+/*\n+ * Copyright 2018 VMware, Inc.  All rights reserved.  Licensed under the Apache v2 License.\n+ */\n+\n+package govcd\n+\n+import (\n+\t\"bytes\"\n+\t\"encoding/xml\"\n+\t\"fmt\"\n+\t\"github.com/vmware/go-vcloud-director/types/v56\"\n+\t\"net/http\"\n+\t\"net/url\"\n+)\n+\n+// Independent disk\n+type Disk struct {\n+\tDisk   *types.Disk\n+\tclient *Client\n+}\n+\n+// Init independent disk struct\n+func NewDisk(cli *Client) *Disk {\n+\treturn &Disk{\n+\t\tDisk:   new(types.Disk),\n+\t\tclient: cli,\n+\t}\n+}\n+\n+// Create an independent disk in VDC\n+// Reference: vCloud API Programming Guide for Service Providers vCloud API 30.0 PDF Page 102 - 103,\n+// https://vdc-download.vmware.com/vmwb-repository/dcr-public/1b6cf07d-adb3-4dba-8c47-9c1c92b04857/\n+// 241956dd-e128-4fcc-8131-bf66e1edd895/vcloud_sp_api_guide_30_0.pdf\n+func (vdc *Vdc) CreateDisk(diskCreateParams *types.DiskCreateParams) (*Disk, error) {","path":"govcd/disk.go","position":null,"original_position":34,"commit_id":"ac5db6fca488630793f98d200e1e358316d41030","original_commit_id":"a9f0803768653ef12a7d40c1dea1cbc9a3d4e69e","user":{"login":"ty2","id":3875727,"node_id":"MDQ6VXNlcjM4NzU3Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/3875727?v=4","gravatar_id":"","url":"https://api.github.com/users/ty2","html_url":"https://github.com/ty2","followers_url":"https://api.github.com/users/ty2/followers","following_url":"https://api.github.com/users/ty2/following{/other_user}","gists_url":"https://api.github.com/users/ty2/gists{/gist_id}","starred_url":"https://api.github.com/users/ty2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ty2/subscriptions","organizations_url":"https://api.github.com/users/ty2/orgs","repos_url":"https://api.github.com/users/ty2/repos","events_url":"https://api.github.com/users/ty2/events{/privacy}","received_events_url":"https://api.github.com/users/ty2/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2018-11-14T16:58:40Z","updated_at":"2018-11-14T16:58:41Z","html_url":"https://github.com/vmware/go-vcloud-director/pull/104#discussion_r233533883","pull_request_url":"https://api.github.com/repos/vmware/go-vcloud-director/pulls/104","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/vmware/go-vcloud-director/pulls/comments/233533883"},"html":{"href":"https://github.com/vmware/go-vcloud-director/pull/104#discussion_r233533883"},"pull_request":{"href":"https://api.github.com/repos/vmware/go-vcloud-director/pulls/104"}},"in_reply_to_id":231495938},"pull_request":{"url":"https://api.github.com/repos/vmware/go-vcloud-director/pulls/104","id":221510345,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNTEwMzQ1","html_url":"https://github.com/vmware/go-vcloud-director/pull/104","diff_url":"https://github.com/vmware/go-vcloud-director/pull/104.diff","patch_url":"https://github.com/vmware/go-vcloud-director/pull/104.patch","issue_url":"https://api.github.com/repos/vmware/go-vcloud-director/issues/104","number":104,"state":"open","locked":false,"title":"Implement Independent Disk Operations","user":{"login":"ty2","id":3875727,"node_id":"MDQ6VXNlcjM4NzU3Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/3875727?v=4","gravatar_id":"","url":"https://api.github.com/users/ty2","html_url":"https://github.com/ty2","followers_url":"https://api.github.com/users/ty2/followers","following_url":"https://api.github.com/users/ty2/following{/other_user}","gists_url":"https://api.github.com/users/ty2/gists{/gist_id}","starred_url":"https://api.github.com/users/ty2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ty2/subscriptions","organizations_url":"https://api.github.com/users/ty2/orgs","repos_url":"https://api.github.com/users/ty2/repos","events_url":"https://api.github.com/users/ty2/events{/privacy}","received_events_url":"https://api.github.com/users/ty2/received_events","type":"User","site_admin":false},"body":"Related issue: #103 \r\n\r\n- govcd/disk.go\r\n  - create disk, update disk and delete disk implementation\r\n- govcd/vm.go\r\n  - attach disk to VM and detach disk from VM implementation\r\n- govcd/disk_test.go\r\n  -  Independent disk operations test case\r\n","created_at":"2018-10-09T16:44:12Z","updated_at":"2018-11-14T16:58:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a58da66a79181a52b47fd6cc8d0523429389407e","assignee":{"login":"ty2","id":3875727,"node_id":"MDQ6VXNlcjM4NzU3Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/3875727?v=4","gravatar_id":"","url":"https://api.github.com/users/ty2","html_url":"https://github.com/ty2","followers_url":"https://api.github.com/users/ty2/followers","following_url":"https://api.github.com/users/ty2/following{/other_user}","gists_url":"https://api.github.com/users/ty2/gists{/gist_id}","starred_url":"https://api.github.com/users/ty2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ty2/subscriptions","organizations_url":"https://api.github.com/users/ty2/orgs","repos_url":"https://api.github.com/users/ty2/repos","events_url":"https://api.github.com/users/ty2/events{/privacy}","received_events_url":"https://api.github.com/users/ty2/received_events","type":"User","site_admin":false},"assignees":[{"login":"ty2","id":3875727,"node_id":"MDQ6VXNlcjM4NzU3Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/3875727?v=4","gravatar_id":"","url":"https://api.github.com/users/ty2","html_url":"https://github.com/ty2","followers_url":"https://api.github.com/users/ty2/followers","following_url":"https://api.github.com/users/ty2/following{/other_user}","gists_url":"https://api.github.com/users/ty2/gists{/gist_id}","starred_url":"https://api.github.com/users/ty2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ty2/subscriptions","organizations_url":"https://api.github.com/users/ty2/orgs","repos_url":"https://api.github.com/users/ty2/repos","events_url":"https://api.github.com/users/ty2/events{/privacy}","received_events_url":"https://api.github.com/users/ty2/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":992100765,"node_id":"MDU6TGFiZWw5OTIxMDA3NjU=","url":"https://api.github.com/repos/vmware/go-vcloud-director/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/vmware/go-vcloud-director/pulls/104/commits","review_comments_url":"https://api.github.com/repos/vmware/go-vcloud-director/pulls/104/comments","review_comment_url":"https://api.github.com/repos/vmware/go-vcloud-director/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vmware/go-vcloud-director/issues/104/comments","statuses_url":"https://api.github.com/repos/vmware/go-vcloud-director/statuses/ac5db6fca488630793f98d200e1e358316d41030","head":{"label":"ty2:master","ref":"master","sha":"ac5db6fca488630793f98d200e1e358316d41030","user":{"login":"ty2","id":3875727,"node_id":"MDQ6VXNlcjM4NzU3Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/3875727?v=4","gravatar_id":"","url":"https://api.github.com/users/ty2","html_url":"https://github.com/ty2","followers_url":"https://api.github.com/users/ty2/followers","following_url":"https://api.github.com/users/ty2/following{/other_user}","gists_url":"https://api.github.com/users/ty2/gists{/gist_id}","starred_url":"https://api.github.com/users/ty2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ty2/subscriptions","organizations_url":"https://api.github.com/users/ty2/orgs","repos_url":"https://api.github.com/users/ty2/repos","events_url":"https://api.github.com/users/ty2/events{/privacy}","received_events_url":"https://api.github.com/users/ty2/received_events","type":"User","site_admin":false},"repo":{"id":152187574,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIxODc1NzQ=","name":"go-vcloud-director","full_name":"ty2/go-vcloud-director","private":false,"owner":{"login":"ty2","id":3875727,"node_id":"MDQ6VXNlcjM4NzU3Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/3875727?v=4","gravatar_id":"","url":"https://api.github.com/users/ty2","html_url":"https://github.com/ty2","followers_url":"https://api.github.com/users/ty2/followers","following_url":"https://api.github.com/users/ty2/following{/other_user}","gists_url":"https://api.github.com/users/ty2/gists{/gist_id}","starred_url":"https://api.github.com/users/ty2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ty2/subscriptions","organizations_url":"https://api.github.com/users/ty2/orgs","repos_url":"https://api.github.com/users/ty2/repos","events_url":"https://api.github.com/users/ty2/events{/privacy}","received_events_url":"https://api.github.com/users/ty2/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ty2/go-vcloud-director","description":"Golang SDK for vCloud Director","fork":true,"url":"https://api.github.com/repos/ty2/go-vcloud-director","forks_url":"https://api.github.com/repos/ty2/go-vcloud-director/forks","keys_url":"https://api.github.com/repos/ty2/go-vcloud-director/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ty2/go-vcloud-director/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ty2/go-vcloud-director/teams","hooks_url":"https://api.github.com/repos/ty2/go-vcloud-director/hooks","issue_events_url":"https://api.github.com/repos/ty2/go-vcloud-director/issues/events{/number}","events_url":"https://api.github.com/repos/ty2/go-vcloud-director/events","assignees_url":"https://api.github.com/repos/ty2/go-vcloud-director/assignees{/user}","branches_url":"https://api.github.com/repos/ty2/go-vcloud-director/branches{/branch}","tags_url":"https://api.github.com/repos/ty2/go-vcloud-director/tags","blobs_url":"https://api.github.com/repos/ty2/go-vcloud-director/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ty2/go-vcloud-director/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ty2/go-vcloud-director/git/refs{/sha}","trees_url":"https://api.github.com/repos/ty2/go-vcloud-director/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ty2/go-vcloud-director/statuses/{sha}","languages_url":"https://api.github.com/repos/ty2/go-vcloud-director/languages","stargazers_url":"https://api.github.com/repos/ty2/go-vcloud-director/stargazers","contributors_url":"https://api.github.com/repos/ty2/go-vcloud-director/contributors","subscribers_url":"https://api.github.com/repos/ty2/go-vcloud-director/subscribers","subscription_url":"https://api.github.com/repos/ty2/go-vcloud-director/subscription","commits_url":"https://api.github.com/repos/ty2/go-vcloud-director/commits{/sha}","git_commits_url":"https://api.github.com/repos/ty2/go-vcloud-director/git/commits{/sha}","comments_url":"https://api.github.com/repos/ty2/go-vcloud-director/comments{/number}","issue_comment_url":"https://api.github.com/repos/ty2/go-vcloud-director/issues/comments{/number}","contents_url":"https://api.github.com/repos/ty2/go-vcloud-director/contents/{+path}","compare_url":"https://api.github.com/repos/ty2/go-vcloud-director/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ty2/go-vcloud-director/merges","archive_url":"https://api.github.com/repos/ty2/go-vcloud-director/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ty2/go-vcloud-director/downloads","issues_url":"https://api.github.com/repos/ty2/go-vcloud-director/issues{/number}","pulls_url":"https://api.github.com/repos/ty2/go-vcloud-director/pulls{/number}","milestones_url":"https://api.github.com/repos/ty2/go-vcloud-director/milestones{/number}","notifications_url":"https://api.github.com/repos/ty2/go-vcloud-director/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ty2/go-vcloud-director/labels{/name}","releases_url":"https://api.github.com/repos/ty2/go-vcloud-director/releases{/id}","deployments_url":"https://api.github.com/repos/ty2/go-vcloud-director/deployments","created_at":"2018-10-09T04:26:57Z","updated_at":"2018-11-14T16:56:23Z","pushed_at":"2018-11-14T16:56:20Z","git_url":"git://github.com/ty2/go-vcloud-director.git","ssh_url":"git@github.com:ty2/go-vcloud-director.git","clone_url":"https://github.com/ty2/go-vcloud-director.git","svn_url":"https://github.com/ty2/go-vcloud-director","homepage":"","size":728,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vmware:master","ref":"master","sha":"076c6005f13d04f7bc7579a61bb0343f58df5ddf","user":{"login":"vmware","id":473334,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzMzNA==","avatar_url":"https://avatars0.githubusercontent.com/u/473334?v=4","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":140753907,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA3NTM5MDc=","name":"go-vcloud-director","full_name":"vmware/go-vcloud-director","private":false,"owner":{"login":"vmware","id":473334,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzMzNA==","avatar_url":"https://avatars0.githubusercontent.com/u/473334?v=4","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},"html_url":"https://github.com/vmware/go-vcloud-director","description":"Golang SDK for vCloud Director","fork":false,"url":"https://api.github.com/repos/vmware/go-vcloud-director","forks_url":"https://api.github.com/repos/vmware/go-vcloud-director/forks","keys_url":"https://api.github.com/repos/vmware/go-vcloud-director/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vmware/go-vcloud-director/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vmware/go-vcloud-director/teams","hooks_url":"https://api.github.com/repos/vmware/go-vcloud-director/hooks","issue_events_url":"https://api.github.com/repos/vmware/go-vcloud-director/issues/events{/number}","events_url":"https://api.github.com/repos/vmware/go-vcloud-director/events","assignees_url":"https://api.github.com/repos/vmware/go-vcloud-director/assignees{/user}","branches_url":"https://api.github.com/repos/vmware/go-vcloud-director/branches{/branch}","tags_url":"https://api.github.com/repos/vmware/go-vcloud-director/tags","blobs_url":"https://api.github.com/repos/vmware/go-vcloud-director/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vmware/go-vcloud-director/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vmware/go-vcloud-director/git/refs{/sha}","trees_url":"https://api.github.com/repos/vmware/go-vcloud-director/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vmware/go-vcloud-director/statuses/{sha}","languages_url":"https://api.github.com/repos/vmware/go-vcloud-director/languages","stargazers_url":"https://api.github.com/repos/vmware/go-vcloud-director/stargazers","contributors_url":"https://api.github.com/repos/vmware/go-vcloud-director/contributors","subscribers_url":"https://api.github.com/repos/vmware/go-vcloud-director/subscribers","subscription_url":"https://api.github.com/repos/vmware/go-vcloud-director/subscription","commits_url":"https://api.github.com/repos/vmware/go-vcloud-director/commits{/sha}","git_commits_url":"https://api.github.com/repos/vmware/go-vcloud-director/git/commits{/sha}","comments_url":"https://api.github.com/repos/vmware/go-vcloud-director/comments{/number}","issue_comment_url":"https://api.github.com/repos/vmware/go-vcloud-director/issues/comments{/number}","contents_url":"https://api.github.com/repos/vmware/go-vcloud-director/contents/{+path}","compare_url":"https://api.github.com/repos/vmware/go-vcloud-director/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vmware/go-vcloud-director/merges","archive_url":"https://api.github.com/repos/vmware/go-vcloud-director/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vmware/go-vcloud-director/downloads","issues_url":"https://api.github.com/repos/vmware/go-vcloud-director/issues{/number}","pulls_url":"https://api.github.com/repos/vmware/go-vcloud-director/pulls{/number}","milestones_url":"https://api.github.com/repos/vmware/go-vcloud-director/milestones{/number}","notifications_url":"https://api.github.com/repos/vmware/go-vcloud-director/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vmware/go-vcloud-director/labels{/name}","releases_url":"https://api.github.com/repos/vmware/go-vcloud-director/releases{/id}","deployments_url":"https://api.github.com/repos/vmware/go-vcloud-director/deployments","created_at":"2018-07-12T19:04:07Z","updated_at":"2018-11-08T07:47:44Z","pushed_at":"2018-11-14T16:56:22Z","git_url":"git://github.com/vmware/go-vcloud-director.git","ssh_url":"git@github.com:vmware/go-vcloud-director.git","clone_url":"https://github.com/vmware/go-vcloud-director.git","svn_url":"https://github.com/vmware/go-vcloud-director","homepage":"","size":651,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":10,"open_issues":35,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vmware/go-vcloud-director/pulls/104"},"html":{"href":"https://github.com/vmware/go-vcloud-director/pull/104"},"issue":{"href":"https://api.github.com/repos/vmware/go-vcloud-director/issues/104"},"comments":{"href":"https://api.github.com/repos/vmware/go-vcloud-director/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/vmware/go-vcloud-director/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/vmware/go-vcloud-director/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vmware/go-vcloud-director/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/vmware/go-vcloud-director/statuses/ac5db6fca488630793f98d200e1e358316d41030"}},"author_association":"NONE"}}
{"actor":{"display_login":"ty2"}}