{"action":"created","comment":{"url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/pulls/comments/177941066","pull_request_review_id":107909503,"id":177941066,"diff_hunk":"@@ -0,0 +1,211 @@\n+package flexibleengine\n+\n+import (\n+\t\"fmt\"\n+\t\"log\"\n+\t\"time\"\n+\n+\t\"github.com/gophercloud/gophercloud\"\n+\t\"github.com/gophercloud/gophercloud/openstack/networking/v2/ports\"\n+\t\"github.com/hashicorp/terraform/helper/resource\"\n+\t\"github.com/hashicorp/terraform/helper/schema\"\n+)\n+\n+func resourceNetworkingVIPV2() *schema.Resource {\n+\treturn &schema.Resource{\n+\t\tCreate: resourceNetworkingVIPV2Create,\n+\t\tRead:   resourceNetworkingVIPV2Read,\n+\t\tDelete: resourceNetworkingVIPV2Delete,\n+\n+\t\tSchema: map[string]*schema.Schema{\n+\t\t\t\"network_id\": &schema.Schema{\n+\t\t\t\tType:     schema.TypeString,\n+\t\t\t\tRequired: true,\n+\t\t\t\tForceNew: true,\n+\t\t\t},\n+\t\t\t\"subnet_id\": &schema.Schema{\n+\t\t\t\tType:     schema.TypeString,\n+\t\t\t\tRequired: true,\n+\t\t\t\tForceNew: true,\n+\t\t\t},\n+\t\t\t\"ip_address\": &schema.Schema{\n+\t\t\t\tType:     schema.TypeString,\n+\t\t\t\tOptional: true,","path":"flexibleengine/resource_flexibleengine_networking_vip_v2.go","position":33,"original_position":33,"commit_id":"748ff4c25e3d387b6912f1160ac697bac7d0da5a","original_commit_id":"748ff4c25e3d387b6912f1160ac697bac7d0da5a","user":{"login":"freesky-edward","id":20735889,"avatar_url":"https://avatars0.githubusercontent.com/u/20735889?v=4","gravatar_id":"","url":"https://api.github.com/users/freesky-edward","html_url":"https://github.com/freesky-edward","followers_url":"https://api.github.com/users/freesky-edward/followers","following_url":"https://api.github.com/users/freesky-edward/following{/other_user}","gists_url":"https://api.github.com/users/freesky-edward/gists{/gist_id}","starred_url":"https://api.github.com/users/freesky-edward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freesky-edward/subscriptions","organizations_url":"https://api.github.com/users/freesky-edward/orgs","repos_url":"https://api.github.com/users/freesky-edward/repos","events_url":"https://api.github.com/users/freesky-edward/events{/privacy}","received_events_url":"https://api.github.com/users/freesky-edward/received_events","type":"User","site_admin":false},"body":"doesn't need","created_at":"2018-03-29T02:44:28Z","updated_at":"2018-03-29T02:47:05Z","html_url":"https://github.com/huaweicloud/terraform-provider-flexibleengine/pull/12#discussion_r177941066","pull_request_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/pulls/12","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/pulls/comments/177941066"},"html":{"href":"https://github.com/huaweicloud/terraform-provider-flexibleengine/pull/12#discussion_r177941066"},"pull_request":{"href":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/pulls/12","id":177341153,"html_url":"https://github.com/huaweicloud/terraform-provider-flexibleengine/pull/12","diff_url":"https://github.com/huaweicloud/terraform-provider-flexibleengine/pull/12.diff","patch_url":"https://github.com/huaweicloud/terraform-provider-flexibleengine/pull/12.patch","issue_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/issues/12","number":12,"state":"open","locked":false,"title":"add networking vip","user":{"login":"edisonxiang","id":28946359,"avatar_url":"https://avatars0.githubusercontent.com/u/28946359?v=4","gravatar_id":"","url":"https://api.github.com/users/edisonxiang","html_url":"https://github.com/edisonxiang","followers_url":"https://api.github.com/users/edisonxiang/followers","following_url":"https://api.github.com/users/edisonxiang/following{/other_user}","gists_url":"https://api.github.com/users/edisonxiang/gists{/gist_id}","starred_url":"https://api.github.com/users/edisonxiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edisonxiang/subscriptions","organizations_url":"https://api.github.com/users/edisonxiang/orgs","repos_url":"https://api.github.com/users/edisonxiang/repos","events_url":"https://api.github.com/users/edisonxiang/events{/privacy}","received_events_url":"https://api.github.com/users/edisonxiang/received_events","type":"User","site_admin":false},"body":"add networking vip","created_at":"2018-03-26T04:41:36Z","updated_at":"2018-03-29T02:47:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4483dbf334c695936874642c2e3887234d1d997e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/pulls/12/commits","review_comments_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/pulls/12/comments","review_comment_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/issues/12/comments","statuses_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/statuses/748ff4c25e3d387b6912f1160ac697bac7d0da5a","head":{"label":"edisonxiang:addvip","ref":"addvip","sha":"748ff4c25e3d387b6912f1160ac697bac7d0da5a","user":{"login":"edisonxiang","id":28946359,"avatar_url":"https://avatars0.githubusercontent.com/u/28946359?v=4","gravatar_id":"","url":"https://api.github.com/users/edisonxiang","html_url":"https://github.com/edisonxiang","followers_url":"https://api.github.com/users/edisonxiang/followers","following_url":"https://api.github.com/users/edisonxiang/following{/other_user}","gists_url":"https://api.github.com/users/edisonxiang/gists{/gist_id}","starred_url":"https://api.github.com/users/edisonxiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edisonxiang/subscriptions","organizations_url":"https://api.github.com/users/edisonxiang/orgs","repos_url":"https://api.github.com/users/edisonxiang/repos","events_url":"https://api.github.com/users/edisonxiang/events{/privacy}","received_events_url":"https://api.github.com/users/edisonxiang/received_events","type":"User","site_admin":false},"repo":{"id":122940820,"name":"terraform-provider-flexibleengine","full_name":"edisonxiang/terraform-provider-flexibleengine","owner":{"login":"edisonxiang","id":28946359,"avatar_url":"https://avatars0.githubusercontent.com/u/28946359?v=4","gravatar_id":"","url":"https://api.github.com/users/edisonxiang","html_url":"https://github.com/edisonxiang","followers_url":"https://api.github.com/users/edisonxiang/followers","following_url":"https://api.github.com/users/edisonxiang/following{/other_user}","gists_url":"https://api.github.com/users/edisonxiang/gists{/gist_id}","starred_url":"https://api.github.com/users/edisonxiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edisonxiang/subscriptions","organizations_url":"https://api.github.com/users/edisonxiang/orgs","repos_url":"https://api.github.com/users/edisonxiang/repos","events_url":"https://api.github.com/users/edisonxiang/events{/privacy}","received_events_url":"https://api.github.com/users/edisonxiang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edisonxiang/terraform-provider-flexibleengine","description":null,"fork":true,"url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine","forks_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/forks","keys_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/teams","hooks_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/hooks","issue_events_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/issues/events{/number}","events_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/events","assignees_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/assignees{/user}","branches_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/branches{/branch}","tags_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/tags","blobs_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/git/refs{/sha}","trees_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/statuses/{sha}","languages_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/languages","stargazers_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/stargazers","contributors_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/contributors","subscribers_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/subscribers","subscription_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/subscription","commits_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/commits{/sha}","git_commits_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/git/commits{/sha}","comments_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/comments{/number}","issue_comment_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/issues/comments{/number}","contents_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/contents/{+path}","compare_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/merges","archive_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/downloads","issues_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/issues{/number}","pulls_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/pulls{/number}","milestones_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/milestones{/number}","notifications_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/labels{/name}","releases_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/releases{/id}","deployments_url":"https://api.github.com/repos/edisonxiang/terraform-provider-flexibleengine/deployments","created_at":"2018-02-26T08:51:32Z","updated_at":"2018-02-26T08:51:35Z","pushed_at":"2018-03-27T07:15:22Z","git_url":"git://github.com/edisonxiang/terraform-provider-flexibleengine.git","ssh_url":"git@github.com:edisonxiang/terraform-provider-flexibleengine.git","clone_url":"https://github.com/edisonxiang/terraform-provider-flexibleengine.git","svn_url":"https://github.com/edisonxiang/terraform-provider-flexibleengine","homepage":null,"size":10410,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"huaweicloud:master","ref":"master","sha":"60e1e996f2323e23a823682fa9fce4e3bb2051fb","user":{"login":"huaweicloud","id":36578213,"avatar_url":"https://avatars3.githubusercontent.com/u/36578213?v=4","gravatar_id":"","url":"https://api.github.com/users/huaweicloud","html_url":"https://github.com/huaweicloud","followers_url":"https://api.github.com/users/huaweicloud/followers","following_url":"https://api.github.com/users/huaweicloud/following{/other_user}","gists_url":"https://api.github.com/users/huaweicloud/gists{/gist_id}","starred_url":"https://api.github.com/users/huaweicloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huaweicloud/subscriptions","organizations_url":"https://api.github.com/users/huaweicloud/orgs","repos_url":"https://api.github.com/users/huaweicloud/repos","events_url":"https://api.github.com/users/huaweicloud/events{/privacy}","received_events_url":"https://api.github.com/users/huaweicloud/received_events","type":"Organization","site_admin":false},"repo":{"id":122935065,"name":"terraform-provider-flexibleengine","full_name":"huaweicloud/terraform-provider-flexibleengine","owner":{"login":"huaweicloud","id":36578213,"avatar_url":"https://avatars3.githubusercontent.com/u/36578213?v=4","gravatar_id":"","url":"https://api.github.com/users/huaweicloud","html_url":"https://github.com/huaweicloud","followers_url":"https://api.github.com/users/huaweicloud/followers","following_url":"https://api.github.com/users/huaweicloud/following{/other_user}","gists_url":"https://api.github.com/users/huaweicloud/gists{/gist_id}","starred_url":"https://api.github.com/users/huaweicloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huaweicloud/subscriptions","organizations_url":"https://api.github.com/users/huaweicloud/orgs","repos_url":"https://api.github.com/users/huaweicloud/repos","events_url":"https://api.github.com/users/huaweicloud/events{/privacy}","received_events_url":"https://api.github.com/users/huaweicloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/huaweicloud/terraform-provider-flexibleengine","description":"Terraform FlexibleEngine provider","fork":false,"url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine","forks_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/forks","keys_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/teams","hooks_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/hooks","issue_events_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/issues/events{/number}","events_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/events","assignees_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/assignees{/user}","branches_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/branches{/branch}","tags_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/tags","blobs_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/git/refs{/sha}","trees_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/statuses/{sha}","languages_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/languages","stargazers_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/stargazers","contributors_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/contributors","subscribers_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/subscribers","subscription_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/subscription","commits_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/commits{/sha}","git_commits_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/git/commits{/sha}","comments_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/comments{/number}","issue_comment_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/issues/comments{/number}","contents_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/contents/{+path}","compare_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/merges","archive_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/downloads","issues_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/issues{/number}","pulls_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/pulls{/number}","milestones_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/milestones{/number}","notifications_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/labels{/name}","releases_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/releases{/id}","deployments_url":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/deployments","created_at":"2018-02-26T08:05:42Z","updated_at":"2018-03-28T04:43:26Z","pushed_at":"2018-03-28T04:43:25Z","git_url":"git://github.com/huaweicloud/terraform-provider-flexibleengine.git","ssh_url":"git@github.com:huaweicloud/terraform-provider-flexibleengine.git","clone_url":"https://github.com/huaweicloud/terraform-provider-flexibleengine.git","svn_url":"https://github.com/huaweicloud/terraform-provider-flexibleengine","homepage":"","size":10393,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":5,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/pulls/12"},"html":{"href":"https://github.com/huaweicloud/terraform-provider-flexibleengine/pull/12"},"issue":{"href":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/issues/12"},"comments":{"href":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/huaweicloud/terraform-provider-flexibleengine/statuses/748ff4c25e3d387b6912f1160ac697bac7d0da5a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"freesky-edward"}}