{"action":"created","comment":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/comments/77109592","id":77109592,"diff_hunk":"@@ -0,0 +1,160 @@\n+package rabbitmq\n+\n+import (\n+\t\"fmt\"\n+\t\"log\"\n+\t\"strings\"\n+\n+\t\"github.com/michaelklishin/rabbit-hole\"\n+\n+\t\"github.com/hashicorp/terraform/helper/schema\"\n+)\n+\n+func resourceBinding() *schema.Resource {\n+\treturn &schema.Resource{\n+\t\tCreate: CreateBinding,\n+\t\tUpdate: nil,\n+\t\tRead:   ReadBinding,\n+\t\tDelete: DeleteBinding,\n+\t\tImporter: &schema.ResourceImporter{\n+\t\t\tState: schema.ImportStatePassthrough,\n+\t\t},\n+\n+\t\tSchema: map[string]*schema.Schema{\n+\t\t\t\"source\": &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+\n+\t\t\t\"vhost\": &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+\n+\t\t\t\"destination\": &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+\n+\t\t\t\"destination_type\": &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+\n+\t\t\t\"properties_key\": &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+\n+\t\t\t\"routing_key\": &schema.Schema{\n+\t\t\t\tType:     schema.TypeString,\n+\t\t\t\tOptional: true,\n+\t\t\t\tForceNew: true,\n+\t\t\t},\n+\n+\t\t\t\"arguments\": &schema.Schema{\n+\t\t\t\tType:     schema.TypeMap,\n+\t\t\t\tOptional: true,\n+\t\t\t\tForceNew: true,\n+\t\t\t},\n+\t\t},\n+\t}\n+}\n+\n+func CreateBinding(d *schema.ResourceData, meta interface{}) error {\n+\trmqc := meta.(*rabbithole.Client)\n+\tvhost := d.Get(\"vhost\").(string)\n+\n+\tbindingInfo := rabbithole.BindingInfo{\n+\t\tSource:          d.Get(\"source\").(string),\n+\t\tDestination:     d.Get(\"destination\").(string),\n+\t\tDestinationType: d.Get(\"destination_type\").(string),\n+\t\tRoutingKey:      d.Get(\"routing_key\").(string),\n+\t\tPropertiesKey:   d.Get(\"properties_key\").(string),\n+\t\tArguments:       d.Get(\"arguments\").(map[string]interface{}),","path":"builtin/providers/rabbitmq/resource_binding.go","position":78,"original_position":79,"commit_id":"ad35cec9421545fd83aab1709df835a8bd184686","original_commit_id":"102298a657c3f0bc9c3b77ae441c114eeb3c2be2","user":{"login":"jtopjian","id":46959,"avatar_url":"https://avatars.githubusercontent.com/u/46959?v=3","gravatar_id":"","url":"https://api.github.com/users/jtopjian","html_url":"https://github.com/jtopjian","followers_url":"https://api.github.com/users/jtopjian/followers","following_url":"https://api.github.com/users/jtopjian/following{/other_user}","gists_url":"https://api.github.com/users/jtopjian/gists{/gist_id}","starred_url":"https://api.github.com/users/jtopjian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtopjian/subscriptions","organizations_url":"https://api.github.com/users/jtopjian/orgs","repos_url":"https://api.github.com/users/jtopjian/repos","events_url":"https://api.github.com/users/jtopjian/events{/privacy}","received_events_url":"https://api.github.com/users/jtopjian/received_events","type":"User","site_admin":false},"body":"confirmed this is OK","created_at":"2016-09-01T03:30:12Z","updated_at":"2016-09-01T03:30:12Z","html_url":"https://github.com/hashicorp/terraform/pull/7694#discussion_r77109592","pull_request_url":"https://api.github.com/repos/hashicorp/terraform/pulls/7694","_links":{"self":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/comments/77109592"},"html":{"href":"https://github.com/hashicorp/terraform/pull/7694#discussion_r77109592"},"pull_request":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/7694"}}},"pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/7694","id":77916930,"html_url":"https://github.com/hashicorp/terraform/pull/7694","diff_url":"https://github.com/hashicorp/terraform/pull/7694.diff","patch_url":"https://github.com/hashicorp/terraform/pull/7694.patch","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/7694","number":7694,"state":"open","locked":false,"title":"RabbitMQ Provider","user":{"login":"jtopjian","id":46959,"avatar_url":"https://avatars.githubusercontent.com/u/46959?v=3","gravatar_id":"","url":"https://api.github.com/users/jtopjian","html_url":"https://github.com/jtopjian","followers_url":"https://api.github.com/users/jtopjian/followers","following_url":"https://api.github.com/users/jtopjian/following{/other_user}","gists_url":"https://api.github.com/users/jtopjian/gists{/gist_id}","starred_url":"https://api.github.com/users/jtopjian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtopjian/subscriptions","organizations_url":"https://api.github.com/users/jtopjian/orgs","repos_url":"https://api.github.com/users/jtopjian/repos","events_url":"https://api.github.com/users/jtopjian/events{/privacy}","received_events_url":"https://api.github.com/users/jtopjian/received_events","type":"User","site_admin":false},"body":"This commit adds support for a RabbitMQ provider. Included are the following resources:\r\n\r\n* `rabbitmq_binding`\r\n* `rabbitmq_exchange`\r\n* `rabbitmq_permissions`\r\n* `rabbitmq_policy`\r\n* `rabbitmq_queue`\r\n* `rabbitmq_user`\r\n* `rabbitmq_vhost`\r\n\r\nImporting of resources is also supported.\r\n\r\nDocs included.","created_at":"2016-07-19T04:40:49Z","updated_at":"2016-09-01T03:30:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2595a9e2e5bd196cb0e64d11d641c2ed7be2f7d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hashicorp/terraform/pulls/7694/commits","review_comments_url":"https://api.github.com/repos/hashicorp/terraform/pulls/7694/comments","review_comment_url":"https://api.github.com/repos/hashicorp/terraform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/7694/comments","statuses_url":"https://api.github.com/repos/hashicorp/terraform/statuses/ad35cec9421545fd83aab1709df835a8bd184686","head":{"label":"jtopjian:provider-rabbitmq","ref":"provider-rabbitmq","sha":"ad35cec9421545fd83aab1709df835a8bd184686","user":{"login":"jtopjian","id":46959,"avatar_url":"https://avatars.githubusercontent.com/u/46959?v=3","gravatar_id":"","url":"https://api.github.com/users/jtopjian","html_url":"https://github.com/jtopjian","followers_url":"https://api.github.com/users/jtopjian/followers","following_url":"https://api.github.com/users/jtopjian/following{/other_user}","gists_url":"https://api.github.com/users/jtopjian/gists{/gist_id}","starred_url":"https://api.github.com/users/jtopjian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtopjian/subscriptions","organizations_url":"https://api.github.com/users/jtopjian/orgs","repos_url":"https://api.github.com/users/jtopjian/repos","events_url":"https://api.github.com/users/jtopjian/events{/privacy}","received_events_url":"https://api.github.com/users/jtopjian/received_events","type":"User","site_admin":false},"repo":{"id":45695659,"name":"terraform","full_name":"jtopjian/terraform","owner":{"login":"jtopjian","id":46959,"avatar_url":"https://avatars.githubusercontent.com/u/46959?v=3","gravatar_id":"","url":"https://api.github.com/users/jtopjian","html_url":"https://github.com/jtopjian","followers_url":"https://api.github.com/users/jtopjian/followers","following_url":"https://api.github.com/users/jtopjian/following{/other_user}","gists_url":"https://api.github.com/users/jtopjian/gists{/gist_id}","starred_url":"https://api.github.com/users/jtopjian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtopjian/subscriptions","organizations_url":"https://api.github.com/users/jtopjian/orgs","repos_url":"https://api.github.com/users/jtopjian/repos","events_url":"https://api.github.com/users/jtopjian/events{/privacy}","received_events_url":"https://api.github.com/users/jtopjian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jtopjian/terraform","description":"Terraform is a tool for building, changing, and combining infrastructure safely and efficiently.","fork":true,"url":"https://api.github.com/repos/jtopjian/terraform","forks_url":"https://api.github.com/repos/jtopjian/terraform/forks","keys_url":"https://api.github.com/repos/jtopjian/terraform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jtopjian/terraform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jtopjian/terraform/teams","hooks_url":"https://api.github.com/repos/jtopjian/terraform/hooks","issue_events_url":"https://api.github.com/repos/jtopjian/terraform/issues/events{/number}","events_url":"https://api.github.com/repos/jtopjian/terraform/events","assignees_url":"https://api.github.com/repos/jtopjian/terraform/assignees{/user}","branches_url":"https://api.github.com/repos/jtopjian/terraform/branches{/branch}","tags_url":"https://api.github.com/repos/jtopjian/terraform/tags","blobs_url":"https://api.github.com/repos/jtopjian/terraform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jtopjian/terraform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jtopjian/terraform/git/refs{/sha}","trees_url":"https://api.github.com/repos/jtopjian/terraform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jtopjian/terraform/statuses/{sha}","languages_url":"https://api.github.com/repos/jtopjian/terraform/languages","stargazers_url":"https://api.github.com/repos/jtopjian/terraform/stargazers","contributors_url":"https://api.github.com/repos/jtopjian/terraform/contributors","subscribers_url":"https://api.github.com/repos/jtopjian/terraform/subscribers","subscription_url":"https://api.github.com/repos/jtopjian/terraform/subscription","commits_url":"https://api.github.com/repos/jtopjian/terraform/commits{/sha}","git_commits_url":"https://api.github.com/repos/jtopjian/terraform/git/commits{/sha}","comments_url":"https://api.github.com/repos/jtopjian/terraform/comments{/number}","issue_comment_url":"https://api.github.com/repos/jtopjian/terraform/issues/comments{/number}","contents_url":"https://api.github.com/repos/jtopjian/terraform/contents/{+path}","compare_url":"https://api.github.com/repos/jtopjian/terraform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jtopjian/terraform/merges","archive_url":"https://api.github.com/repos/jtopjian/terraform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jtopjian/terraform/downloads","issues_url":"https://api.github.com/repos/jtopjian/terraform/issues{/number}","pulls_url":"https://api.github.com/repos/jtopjian/terraform/pulls{/number}","milestones_url":"https://api.github.com/repos/jtopjian/terraform/milestones{/number}","notifications_url":"https://api.github.com/repos/jtopjian/terraform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jtopjian/terraform/labels{/name}","releases_url":"https://api.github.com/repos/jtopjian/terraform/releases{/id}","deployments_url":"https://api.github.com/repos/jtopjian/terraform/deployments","created_at":"2015-11-06T17:11:56Z","updated_at":"2015-11-06T17:12:02Z","pushed_at":"2016-09-01T03:19:39Z","git_url":"git://github.com/jtopjian/terraform.git","ssh_url":"git@github.com:jtopjian/terraform.git","clone_url":"https://github.com/jtopjian/terraform.git","svn_url":"https://github.com/jtopjian/terraform","homepage":"http://www.terraform.io","size":53689,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hashicorp:master","ref":"master","sha":"92a9a7c8b88c8627b926a523051e01499fa88bfc","user":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"repo":{"id":17728164,"name":"terraform","full_name":"hashicorp/terraform","owner":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashicorp/terraform","description":"Terraform is a tool for building, changing, and combining infrastructure safely and efficiently.","fork":false,"url":"https://api.github.com/repos/hashicorp/terraform","forks_url":"https://api.github.com/repos/hashicorp/terraform/forks","keys_url":"https://api.github.com/repos/hashicorp/terraform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashicorp/terraform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashicorp/terraform/teams","hooks_url":"https://api.github.com/repos/hashicorp/terraform/hooks","issue_events_url":"https://api.github.com/repos/hashicorp/terraform/issues/events{/number}","events_url":"https://api.github.com/repos/hashicorp/terraform/events","assignees_url":"https://api.github.com/repos/hashicorp/terraform/assignees{/user}","branches_url":"https://api.github.com/repos/hashicorp/terraform/branches{/branch}","tags_url":"https://api.github.com/repos/hashicorp/terraform/tags","blobs_url":"https://api.github.com/repos/hashicorp/terraform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashicorp/terraform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashicorp/terraform/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashicorp/terraform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashicorp/terraform/statuses/{sha}","languages_url":"https://api.github.com/repos/hashicorp/terraform/languages","stargazers_url":"https://api.github.com/repos/hashicorp/terraform/stargazers","contributors_url":"https://api.github.com/repos/hashicorp/terraform/contributors","subscribers_url":"https://api.github.com/repos/hashicorp/terraform/subscribers","subscription_url":"https://api.github.com/repos/hashicorp/terraform/subscription","commits_url":"https://api.github.com/repos/hashicorp/terraform/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashicorp/terraform/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashicorp/terraform/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashicorp/terraform/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashicorp/terraform/contents/{+path}","compare_url":"https://api.github.com/repos/hashicorp/terraform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashicorp/terraform/merges","archive_url":"https://api.github.com/repos/hashicorp/terraform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashicorp/terraform/downloads","issues_url":"https://api.github.com/repos/hashicorp/terraform/issues{/number}","pulls_url":"https://api.github.com/repos/hashicorp/terraform/pulls{/number}","milestones_url":"https://api.github.com/repos/hashicorp/terraform/milestones{/number}","notifications_url":"https://api.github.com/repos/hashicorp/terraform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashicorp/terraform/labels{/name}","releases_url":"https://api.github.com/repos/hashicorp/terraform/releases{/id}","deployments_url":"https://api.github.com/repos/hashicorp/terraform/deployments","created_at":"2014-03-13T22:25:48Z","updated_at":"2016-08-31T23:45:49Z","pushed_at":"2016-09-01T03:19:40Z","git_url":"git://github.com/hashicorp/terraform.git","ssh_url":"git@github.com:hashicorp/terraform.git","clone_url":"https://github.com/hashicorp/terraform.git","svn_url":"https://github.com/hashicorp/terraform","homepage":"https://www.terraform.io/","size":119530,"stargazers_count":5581,"watchers_count":5581,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1821,"mirror_url":null,"open_issues_count":1505,"forks":1821,"open_issues":1505,"watchers":5581,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/7694"},"html":{"href":"https://github.com/hashicorp/terraform/pull/7694"},"issue":{"href":"https://api.github.com/repos/hashicorp/terraform/issues/7694"},"comments":{"href":"https://api.github.com/repos/hashicorp/terraform/issues/7694/comments"},"review_comments":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/7694/comments"},"review_comment":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/7694/commits"},"statuses":{"href":"https://api.github.com/repos/hashicorp/terraform/statuses/ad35cec9421545fd83aab1709df835a8bd184686"}}}}
{"actor":{"display_login":"jtopjian"}}