{"action":"created","comment":{"url":"https://api.github.com/repos/alibaba/terraform-provider/pulls/comments/210501130","pull_request_review_id":146727768,"id":210501130,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDUwMTEzMA==","diff_hunk":"@@ -0,0 +1,242 @@\n+package alicloud\n+\n+import (\n+\t\"fmt\"\n+\t\"strconv\"\n+\t\"strings\"\n+\t\"time\"\n+\n+\t\"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests\"\n+\t\"github.com/aliyun/alibaba-cloud-sdk-go/services/pvtz\"\n+\t\"github.com/hashicorp/terraform/helper/resource\"\n+\t\"github.com/hashicorp/terraform/helper/schema\"\n+)\n+\n+func resourceAlicloudPvtzZoneRecord() *schema.Resource {\n+\treturn &schema.Resource{\n+\t\tCreate: resourceAlicloudPvtzZoneRecordCreate,\n+\t\tRead:   resourceAlicloudPvtzZoneRecordRead,\n+\t\tUpdate: resourceAlicloudPvtzZoneRecordUpdate,\n+\t\tDelete: resourceAlicloudPvtzZoneRecordDelete,\n+\t\tImporter: &schema.ResourceImporter{\n+\t\t\tState: schema.ImportStatePassthrough,\n+\t\t},\n+\t\tSchema: map[string]*schema.Schema{\n+\t\t\t\"status\": &schema.Schema{\n+\t\t\t\tType:     schema.TypeString,\n+\t\t\t\tRequired: true,\n+\t\t\t},\n+\t\t\t\"rr\": &schema.Schema{\n+\t\t\t\tType:     schema.TypeString,\n+\t\t\t\tRequired: true,\n+\t\t\t},\n+\t\t\t\"type\": &schema.Schema{\n+\t\t\t\tType:     schema.TypeString,\n+\t\t\t\tRequired: true,\n+\t\t\t},\n+\t\t\t\"value\": &schema.Schema{\n+\t\t\t\tType:     schema.TypeString,\n+\t\t\t\tRequired: true,\n+\t\t\t},\n+\t\t\t\"zone_id\": &schema.Schema{\n+\t\t\t\tType:     schema.TypeString,\n+\t\t\t\tRequired: true,\n+\t\t\t},\n+\t\t\t\"priority\": &schema.Schema{\n+\t\t\t\tType:         schema.TypeInt,\n+\t\t\t\tOptional:     true,\n+\t\t\t\tValidateFunc: validatePrivateZoneRecordPriority,\n+\t\t\t},\n+\t\t\t\"ttl\": &schema.Schema{\n+\t\t\t\tType:     schema.TypeInt,\n+\t\t\t\tOptional: true,\n+\t\t\t\tDefault:  60,\n+\t\t\t},\n+\t\t},\n+\t}\n+}\n+\n+func resourceAlicloudPvtzZoneRecordCreate(d *schema.ResourceData, meta interface{}) error {\n+\tclient := meta.(*AliyunClient)\n+\tconn := client.pvtzconn\n+\n+\targs := pvtz.CreateAddZoneRecordRequest()\n+\n+\tif v, ok := d.GetOk(\"rr\"); ok && v.(string) != \"\" {\n+\t\targs.Rr = v.(string)\n+\t}\n+\n+\tif v, ok := d.GetOk(\"type\"); ok && v.(string) != \"\" {\n+\t\targs.Type = v.(string)\n+\t}\n+\n+\tif v, ok := d.GetOk(\"value\"); ok && v.(string) != \"\" {\n+\t\targs.Value = v.(string)\n+\t}\n+\n+\tif v, ok := d.GetOk(\"zone_id\"); ok && v.(string) != \"\" {\n+\t\targs.ZoneId = v.(string)\n+\t}\n+\n+\tif v, ok := d.GetOk(\"priority\"); ok && v != \"\" {\n+\t\targs.Priority = requests.NewInteger(d.Get(\"priority\").(int))\n+\t}\n+\n+\tif v, ok := d.GetOk(\"ttl\"); ok && v != \"\" {\n+\t\targs.Ttl = requests.NewInteger(d.Get(\"ttl\").(int))\n+\t}\n+\n+\tresp, err := conn.AddZoneRecord(args)\n+\n+\tif err != nil {\n+\t\treturn fmt.Errorf(\"AddZoneRecord got a error: %#v\", err)\n+\t}\n+\tif resp == nil {\n+\t\treturn fmt.Errorf(\"AddZoneRecord got a nil response: %#v\", resp)\n+\t}\n+\n+\td.SetId(strconv.Itoa(resp.RecordId) + \":\" + args.ZoneId + \":\" + args.Rr)\n+\n+\treturn resourceAlicloudPvtzZoneRecordUpdate(d, meta)\n+}\n+\n+func resourceAlicloudPvtzZoneRecordUpdate(d *schema.ResourceData, meta interface{}) error {\n+\td.Partial(true)\n+\n+\tattributeUpdate := false\n+\n+\targs := pvtz.CreateUpdateZoneRecordRequest()\n+\trecordIdStr, _, _, _ := getRecordIdAndZoneIdAndRr(d, meta)\n+\trecordId, _ := strconv.Atoi(recordIdStr)\n+\targs.RecordId = requests.NewInteger(recordId)\n+\targs.Rr = d.Get(\"rr\").(string)\n+\n+\tif d.HasChange(\"type\") {\n+\t\td.SetPartial(\"type\")\n+\t\targs.Type = d.Get(\"type\").(string)\n+\n+\t\tattributeUpdate = true\n+\t}\n+\n+\tif d.HasChange(\"value\") {\n+\t\td.SetPartial(\"value\")\n+\t\targs.Value = d.Get(\"value\").(string)\n+\n+\t\tattributeUpdate = true\n+\t}\n+\n+\tif d.HasChange(\"priority\") {\n+\t\td.SetPartial(\"priority\")\n+\t\targs.Priority = requests.NewInteger(d.Get(\"priority\").(int))\n+\n+\t\tattributeUpdate = true\n+\t}\n+\n+\tif d.HasChange(\"ttl\") {\n+\t\td.SetPartial(\"ttl\")\n+\t\targs.Ttl = requests.NewInteger(d.Get(\"ttl\").(int))\n+\n+\t\tattributeUpdate = true\n+\t}\n+\n+\tif attributeUpdate {\n+\t\tif _, err := meta.(*AliyunClient).pvtzconn.UpdateZoneRecord(args); err != nil {\n+\t\t\treturn err\n+\t\t}\n+\t}\n+\n+\tif d.HasChange(\"status\") {\n+\t\trequest := pvtz.CreateSetZoneRecordStatusRequest()\n+\t\td.SetPartial(\"status\")\n+\n+\t\trequest.RecordId = args.RecordId\n+\t\trequest.Status = d.Get(\"status\").(string)\n+\n+\t\tif _, err := meta.(*AliyunClient).pvtzconn.SetZoneRecordStatus(request); err != nil {\n+\t\t\treturn err\n+\t\t}\n+\t}\n+\n+\td.Partial(false)\n+\n+\treturn resourceAlicloudPvtzZoneRecordRead(d, meta)\n+\n+}\n+\n+func resourceAlicloudPvtzZoneRecordRead(d *schema.ResourceData, meta interface{}) error {\n+\tclient := meta.(*AliyunClient)\n+\tconn := client.pvtzconn\n+\n+\trequest := pvtz.CreateDescribeZoneRecordsRequest()\n+\t_, zoneId, rr, _ := getRecordIdAndZoneIdAndRr(d, meta)\n+\trequest.ZoneId = zoneId\n+\trequest.Keyword = rr\n+\n+\tresponse, err := conn.DescribeZoneRecords(request)\n+\tif err != nil {\n+\t\tif NotFoundError(err) {\n+\t\t\td.SetId(\"\")\n+\t\t\treturn nil\n+\t\t}\n+\n+\t\treturn err\n+\t}\n+\n+\tif len(response.Records.Record) == 0 {\n+\t\treturn nil\n+\t}\n+\n+\trecord := response.Records.Record[0]\n+\td.Set(\"record_id\", record.RecordId)\n+\td.Set(\"zone_id\", zoneId)\n+\td.Set(\"rr\", record.Rr)\n+\td.Set(\"type\", record.Type)\n+\td.Set(\"value\", record.Value)\n+\td.Set(\"ttl\", record.Ttl)\n+\td.Set(\"priority\", record.Priority)\n+\td.Set(\"status\", record.Status)\n+\n+\treturn nil\n+}\n+\n+func resourceAlicloudPvtzZoneRecordDelete(d *schema.ResourceData, meta interface{}) error {\n+\tclient := meta.(*AliyunClient)\n+\tconn := client.pvtzconn\n+\n+\trequest := pvtz.CreateDeleteZoneRecordRequest()\n+\trecordIdStr, zoneId, rr, _ := getRecordIdAndZoneIdAndRr(d, meta)\n+\trecordId, _ := strconv.Atoi(recordIdStr)\n+\trequest.RecordId = requests.NewInteger(recordId)\n+\n+\treturn resource.Retry(5*time.Minute, func() *resource.RetryError {\n+\t\t_, err := conn.DeleteZoneRecord(request)\n+\n+\t\tif err != nil {\n+\t\t\treturn resource.NonRetryableError(fmt.Errorf(\"Error deleting zone record failed: %#v\", err))\n+\t\t}\n+\n+\t\treturn nil\n+\n+\t\tif _, e := client.DescribeZoneRecord(recordId, zoneId, rr); e != nil {\n+\t\t\tif NotFoundError(e) {\n+\t\t\t\treturn nil\n+\t\t\t}\n+\n+\t\t\treturn resource.NonRetryableError(e)\n+\t\t}\n+\n+\t\treturn nil\n+\t})\n+}\n+\n+func getRecordIdAndZoneIdAndRr(d *schema.ResourceData, meta interface{}) (string, string, string, error) {\n+\treturn splitRecordIdAndZoneIdAndRr(d.Id())\n+}\n+\n+func splitRecordIdAndZoneIdAndRr(s string) (string, string, string, error) {\n+\tparts := strings.Split(s, \":\")\n+\tif len(parts) != 3 {\n+\t\treturn \"\", \"\", \"\", fmt.Errorf(\"invalid resource id\")\n+\t}\n+\treturn parts[0], parts[1], parts[2], nil","path":"alicloud/resource_alicloud_pvtz_zone_record.go","position":241,"original_position":241,"commit_id":"913bf88835a7ce3781730b06664b30a0b08effd5","original_commit_id":"2a7b741aff96171980450badb33b894e7240fd0d","user":{"login":"forcoder","id":5011087,"node_id":"MDQ6VXNlcjUwMTEwODc=","avatar_url":"https://avatars1.githubusercontent.com/u/5011087?v=4","gravatar_id":"","url":"https://api.github.com/users/forcoder","html_url":"https://github.com/forcoder","followers_url":"https://api.github.com/users/forcoder/followers","following_url":"https://api.github.com/users/forcoder/following{/other_user}","gists_url":"https://api.github.com/users/forcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/forcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forcoder/subscriptions","organizations_url":"https://api.github.com/users/forcoder/orgs","repos_url":"https://api.github.com/users/forcoder/repos","events_url":"https://api.github.com/users/forcoder/events{/privacy}","received_events_url":"https://api.github.com/users/forcoder/received_events","type":"User","site_admin":false},"body":"因为我有场景不是直接使用getRecordIdAndZoneIdAndRr，而是需要使用splitRecordIdAndZoneIdAndRr，所以拆分成两个方法","created_at":"2018-08-16T07:35:42Z","updated_at":"2018-08-16T07:35:42Z","html_url":"https://github.com/alibaba/terraform-provider/pull/604#discussion_r210501130","pull_request_url":"https://api.github.com/repos/alibaba/terraform-provider/pulls/604","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/alibaba/terraform-provider/pulls/comments/210501130"},"html":{"href":"https://github.com/alibaba/terraform-provider/pull/604#discussion_r210501130"},"pull_request":{"href":"https://api.github.com/repos/alibaba/terraform-provider/pulls/604"}},"in_reply_to_id":210488086},"pull_request":{"url":"https://api.github.com/repos/alibaba/terraform-provider/pulls/604","id":208598328,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NTk4MzI4","html_url":"https://github.com/alibaba/terraform-provider/pull/604","diff_url":"https://github.com/alibaba/terraform-provider/pull/604.diff","patch_url":"https://github.com/alibaba/terraform-provider/pull/604.patch","issue_url":"https://api.github.com/repos/alibaba/terraform-provider/issues/604","number":604,"state":"open","locked":false,"title":"privatezone接入","user":{"login":"forcoder","id":5011087,"node_id":"MDQ6VXNlcjUwMTEwODc=","avatar_url":"https://avatars1.githubusercontent.com/u/5011087?v=4","gravatar_id":"","url":"https://api.github.com/users/forcoder","html_url":"https://github.com/forcoder","followers_url":"https://api.github.com/users/forcoder/followers","following_url":"https://api.github.com/users/forcoder/following{/other_user}","gists_url":"https://api.github.com/users/forcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/forcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forcoder/subscriptions","organizations_url":"https://api.github.com/users/forcoder/orgs","repos_url":"https://api.github.com/users/forcoder/repos","events_url":"https://api.github.com/users/forcoder/events{/privacy}","received_events_url":"https://api.github.com/users/forcoder/received_events","type":"User","site_admin":false},"body":"privatezone接入","created_at":"2018-08-15T15:34:15Z","updated_at":"2018-08-16T07:35:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9996d1ecc8b6412503041890a858f0a316b561bc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alibaba/terraform-provider/pulls/604/commits","review_comments_url":"https://api.github.com/repos/alibaba/terraform-provider/pulls/604/comments","review_comment_url":"https://api.github.com/repos/alibaba/terraform-provider/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alibaba/terraform-provider/issues/604/comments","statuses_url":"https://api.github.com/repos/alibaba/terraform-provider/statuses/913bf88835a7ce3781730b06664b30a0b08effd5","head":{"label":"forcoder:master","ref":"master","sha":"913bf88835a7ce3781730b06664b30a0b08effd5","user":{"login":"forcoder","id":5011087,"node_id":"MDQ6VXNlcjUwMTEwODc=","avatar_url":"https://avatars1.githubusercontent.com/u/5011087?v=4","gravatar_id":"","url":"https://api.github.com/users/forcoder","html_url":"https://github.com/forcoder","followers_url":"https://api.github.com/users/forcoder/followers","following_url":"https://api.github.com/users/forcoder/following{/other_user}","gists_url":"https://api.github.com/users/forcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/forcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forcoder/subscriptions","organizations_url":"https://api.github.com/users/forcoder/orgs","repos_url":"https://api.github.com/users/forcoder/repos","events_url":"https://api.github.com/users/forcoder/events{/privacy}","received_events_url":"https://api.github.com/users/forcoder/received_events","type":"User","site_admin":false},"repo":{"id":136809176,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY4MDkxNzY=","name":"terraform-provider","full_name":"forcoder/terraform-provider","owner":{"login":"forcoder","id":5011087,"node_id":"MDQ6VXNlcjUwMTEwODc=","avatar_url":"https://avatars1.githubusercontent.com/u/5011087?v=4","gravatar_id":"","url":"https://api.github.com/users/forcoder","html_url":"https://github.com/forcoder","followers_url":"https://api.github.com/users/forcoder/followers","following_url":"https://api.github.com/users/forcoder/following{/other_user}","gists_url":"https://api.github.com/users/forcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/forcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forcoder/subscriptions","organizations_url":"https://api.github.com/users/forcoder/orgs","repos_url":"https://api.github.com/users/forcoder/repos","events_url":"https://api.github.com/users/forcoder/events{/privacy}","received_events_url":"https://api.github.com/users/forcoder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/forcoder/terraform-provider","description":"Terraform for Alibaba Cloud, Support ECS, Block Storage, SLB, VPC, Nat Gateway, RDS, ESS, OSS etc. ","fork":true,"url":"https://api.github.com/repos/forcoder/terraform-provider","forks_url":"https://api.github.com/repos/forcoder/terraform-provider/forks","keys_url":"https://api.github.com/repos/forcoder/terraform-provider/keys{/key_id}","collaborators_url":"https://api.github.com/repos/forcoder/terraform-provider/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/forcoder/terraform-provider/teams","hooks_url":"https://api.github.com/repos/forcoder/terraform-provider/hooks","issue_events_url":"https://api.github.com/repos/forcoder/terraform-provider/issues/events{/number}","events_url":"https://api.github.com/repos/forcoder/terraform-provider/events","assignees_url":"https://api.github.com/repos/forcoder/terraform-provider/assignees{/user}","branches_url":"https://api.github.com/repos/forcoder/terraform-provider/branches{/branch}","tags_url":"https://api.github.com/repos/forcoder/terraform-provider/tags","blobs_url":"https://api.github.com/repos/forcoder/terraform-provider/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/forcoder/terraform-provider/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/forcoder/terraform-provider/git/refs{/sha}","trees_url":"https://api.github.com/repos/forcoder/terraform-provider/git/trees{/sha}","statuses_url":"https://api.github.com/repos/forcoder/terraform-provider/statuses/{sha}","languages_url":"https://api.github.com/repos/forcoder/terraform-provider/languages","stargazers_url":"https://api.github.com/repos/forcoder/terraform-provider/stargazers","contributors_url":"https://api.github.com/repos/forcoder/terraform-provider/contributors","subscribers_url":"https://api.github.com/repos/forcoder/terraform-provider/subscribers","subscription_url":"https://api.github.com/repos/forcoder/terraform-provider/subscription","commits_url":"https://api.github.com/repos/forcoder/terraform-provider/commits{/sha}","git_commits_url":"https://api.github.com/repos/forcoder/terraform-provider/git/commits{/sha}","comments_url":"https://api.github.com/repos/forcoder/terraform-provider/comments{/number}","issue_comment_url":"https://api.github.com/repos/forcoder/terraform-provider/issues/comments{/number}","contents_url":"https://api.github.com/repos/forcoder/terraform-provider/contents/{+path}","compare_url":"https://api.github.com/repos/forcoder/terraform-provider/compare/{base}...{head}","merges_url":"https://api.github.com/repos/forcoder/terraform-provider/merges","archive_url":"https://api.github.com/repos/forcoder/terraform-provider/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/forcoder/terraform-provider/downloads","issues_url":"https://api.github.com/repos/forcoder/terraform-provider/issues{/number}","pulls_url":"https://api.github.com/repos/forcoder/terraform-provider/pulls{/number}","milestones_url":"https://api.github.com/repos/forcoder/terraform-provider/milestones{/number}","notifications_url":"https://api.github.com/repos/forcoder/terraform-provider/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/forcoder/terraform-provider/labels{/name}","releases_url":"https://api.github.com/repos/forcoder/terraform-provider/releases{/id}","deployments_url":"https://api.github.com/repos/forcoder/terraform-provider/deployments","created_at":"2018-06-10T13:00:19Z","updated_at":"2018-08-16T07:10:57Z","pushed_at":"2018-08-16T07:10:55Z","git_url":"git://github.com/forcoder/terraform-provider.git","ssh_url":"git@github.com:forcoder/terraform-provider.git","clone_url":"https://github.com/forcoder/terraform-provider.git","svn_url":"https://github.com/forcoder/terraform-provider","homepage":"","size":55064,"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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"alibaba:master","ref":"master","sha":"a7ec954809779544374f6a1c2f6938d5bb6fbca9","user":{"login":"alibaba","id":1961952,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NjE5NTI=","avatar_url":"https://avatars1.githubusercontent.com/u/1961952?v=4","gravatar_id":"","url":"https://api.github.com/users/alibaba","html_url":"https://github.com/alibaba","followers_url":"https://api.github.com/users/alibaba/followers","following_url":"https://api.github.com/users/alibaba/following{/other_user}","gists_url":"https://api.github.com/users/alibaba/gists{/gist_id}","starred_url":"https://api.github.com/users/alibaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alibaba/subscriptions","organizations_url":"https://api.github.com/users/alibaba/orgs","repos_url":"https://api.github.com/users/alibaba/repos","events_url":"https://api.github.com/users/alibaba/events{/privacy}","received_events_url":"https://api.github.com/users/alibaba/received_events","type":"Organization","site_admin":false},"repo":{"id":75266602,"node_id":"MDEwOlJlcG9zaXRvcnk3NTI2NjYwMg==","name":"terraform-provider","full_name":"alibaba/terraform-provider","owner":{"login":"alibaba","id":1961952,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NjE5NTI=","avatar_url":"https://avatars1.githubusercontent.com/u/1961952?v=4","gravatar_id":"","url":"https://api.github.com/users/alibaba","html_url":"https://github.com/alibaba","followers_url":"https://api.github.com/users/alibaba/followers","following_url":"https://api.github.com/users/alibaba/following{/other_user}","gists_url":"https://api.github.com/users/alibaba/gists{/gist_id}","starred_url":"https://api.github.com/users/alibaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alibaba/subscriptions","organizations_url":"https://api.github.com/users/alibaba/orgs","repos_url":"https://api.github.com/users/alibaba/repos","events_url":"https://api.github.com/users/alibaba/events{/privacy}","received_events_url":"https://api.github.com/users/alibaba/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alibaba/terraform-provider","description":"Terraform for Alibaba Cloud, Support ECS, Block Storage, SLB, VPC, Nat Gateway, RDS, ESS, OSS etc. ","fork":false,"url":"https://api.github.com/repos/alibaba/terraform-provider","forks_url":"https://api.github.com/repos/alibaba/terraform-provider/forks","keys_url":"https://api.github.com/repos/alibaba/terraform-provider/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alibaba/terraform-provider/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alibaba/terraform-provider/teams","hooks_url":"https://api.github.com/repos/alibaba/terraform-provider/hooks","issue_events_url":"https://api.github.com/repos/alibaba/terraform-provider/issues/events{/number}","events_url":"https://api.github.com/repos/alibaba/terraform-provider/events","assignees_url":"https://api.github.com/repos/alibaba/terraform-provider/assignees{/user}","branches_url":"https://api.github.com/repos/alibaba/terraform-provider/branches{/branch}","tags_url":"https://api.github.com/repos/alibaba/terraform-provider/tags","blobs_url":"https://api.github.com/repos/alibaba/terraform-provider/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alibaba/terraform-provider/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alibaba/terraform-provider/git/refs{/sha}","trees_url":"https://api.github.com/repos/alibaba/terraform-provider/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alibaba/terraform-provider/statuses/{sha}","languages_url":"https://api.github.com/repos/alibaba/terraform-provider/languages","stargazers_url":"https://api.github.com/repos/alibaba/terraform-provider/stargazers","contributors_url":"https://api.github.com/repos/alibaba/terraform-provider/contributors","subscribers_url":"https://api.github.com/repos/alibaba/terraform-provider/subscribers","subscription_url":"https://api.github.com/repos/alibaba/terraform-provider/subscription","commits_url":"https://api.github.com/repos/alibaba/terraform-provider/commits{/sha}","git_commits_url":"https://api.github.com/repos/alibaba/terraform-provider/git/commits{/sha}","comments_url":"https://api.github.com/repos/alibaba/terraform-provider/comments{/number}","issue_comment_url":"https://api.github.com/repos/alibaba/terraform-provider/issues/comments{/number}","contents_url":"https://api.github.com/repos/alibaba/terraform-provider/contents/{+path}","compare_url":"https://api.github.com/repos/alibaba/terraform-provider/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alibaba/terraform-provider/merges","archive_url":"https://api.github.com/repos/alibaba/terraform-provider/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alibaba/terraform-provider/downloads","issues_url":"https://api.github.com/repos/alibaba/terraform-provider/issues{/number}","pulls_url":"https://api.github.com/repos/alibaba/terraform-provider/pulls{/number}","milestones_url":"https://api.github.com/repos/alibaba/terraform-provider/milestones{/number}","notifications_url":"https://api.github.com/repos/alibaba/terraform-provider/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alibaba/terraform-provider/labels{/name}","releases_url":"https://api.github.com/repos/alibaba/terraform-provider/releases{/id}","deployments_url":"https://api.github.com/repos/alibaba/terraform-provider/deployments","created_at":"2016-12-01T07:21:01Z","updated_at":"2018-08-15T08:09:17Z","pushed_at":"2018-08-16T07:10:57Z","git_url":"git://github.com/alibaba/terraform-provider.git","ssh_url":"git@github.com:alibaba/terraform-provider.git","clone_url":"https://github.com/alibaba/terraform-provider.git","svn_url":"https://github.com/alibaba/terraform-provider","homepage":"","size":55053,"stargazers_count":299,"watchers_count":299,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":92,"mirror_url":null,"archived":false,"open_issues_count":45,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":92,"open_issues":45,"watchers":299,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alibaba/terraform-provider/pulls/604"},"html":{"href":"https://github.com/alibaba/terraform-provider/pull/604"},"issue":{"href":"https://api.github.com/repos/alibaba/terraform-provider/issues/604"},"comments":{"href":"https://api.github.com/repos/alibaba/terraform-provider/issues/604/comments"},"review_comments":{"href":"https://api.github.com/repos/alibaba/terraform-provider/pulls/604/comments"},"review_comment":{"href":"https://api.github.com/repos/alibaba/terraform-provider/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alibaba/terraform-provider/pulls/604/commits"},"statuses":{"href":"https://api.github.com/repos/alibaba/terraform-provider/statuses/913bf88835a7ce3781730b06664b30a0b08effd5"}},"author_association":"NONE"}}
{"actor":{"display_login":"forcoder"}}