{"action":"created","comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/pulls/comments/202851933","pull_request_review_id":137628440,"id":202851933,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjg1MTkzMw==","diff_hunk":"@@ -0,0 +1,45 @@\n+---\n+layout: \"heroku\"\n+page_title: \"Heroku: heroku_space_app_access\"\n+sidebar_current: \"docs-heroku-resource-space-app-access\"\n+description: |-\n+  Provides a Heroku Space resource for managing app permissions for the entire space. Note that members with the admin role will\n+  always have full permissions to a Heroku Space. The provided member must already exist in your Heroku organization.\n+---\n+\n+# heroku\\_space\\_member\n+\n+Provides a Heroku Space resource for managing app permissions for the entire space. Note that members with the admin role will\n+always have full permissions to a Heroku Space. The provided member must already exist in your Heroku organization. The provided member must already exist in your Heroku organization. Currently the only supported permission is `create_apps`.\n+\n+## Example Usage\n+\n+```hcl\n+// Create a new Heroku space\n+resource \"heroku_space\" \"default\" {\n+  name = \"test-space\"\n+  organization = \"my-company\"\n+  region = \"virginia\"\n+}\n+\n+// Give an existing team member create_apps permissions to the space\n+resource \"heroku_space_app_access\" \"member1\" {\n+  space = \"${heroku_space.default.name}\"\n+  email = \"member1@foobar.com\"\n+  permissions = [\"create_apps\"]\n+}\n+\n+// Remove an existing team members permissions to the space\n+resource \"heroku_space_app_access\" \"member2\" {\n+  space = \"${heroku_space.default.name}\"\n+  email = \"member2@foobar.com\"\n+}\n+```\n+\n+## Argument Reference\n+\n+The following arguments are supported:\n+\n+* `space` - (Required) The name of the space.\n+* `email` - (Required) The email of the team member to set permissions for.\n+* `permissions` - (Optional) The permissions to grant the team member for the space. Currently `create_apps` is the only supported permission. If not provided the member will have no permissions to the space. Members with admin role will always have `create_apps` permissions, which cannot be removed.","path":"website/docs/r/space_app_access.markdown","position":45,"original_position":45,"commit_id":"3de7445d9c679af40e3159eafbebbd0def559c9a","original_commit_id":"3de7445d9c679af40e3159eafbebbd0def559c9a","user":{"login":"davidji99","id":3991975,"node_id":"MDQ6VXNlcjM5OTE5NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/3991975?v=4","gravatar_id":"","url":"https://api.github.com/users/davidji99","html_url":"https://github.com/davidji99","followers_url":"https://api.github.com/users/davidji99/followers","following_url":"https://api.github.com/users/davidji99/following{/other_user}","gists_url":"https://api.github.com/users/davidji99/gists{/gist_id}","starred_url":"https://api.github.com/users/davidji99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidji99/subscriptions","organizations_url":"https://api.github.com/users/davidji99/orgs","repos_url":"https://api.github.com/users/davidji99/repos","events_url":"https://api.github.com/users/davidji99/events{/privacy}","received_events_url":"https://api.github.com/users/davidji99/received_events","type":"User","site_admin":false},"body":"Ah yeah, follow the API naming convention. Scratch my suggestions.","created_at":"2018-07-16T23:05:46Z","updated_at":"2018-07-16T23:05:46Z","html_url":"https://github.com/terraform-providers/terraform-provider-heroku/pull/83#discussion_r202851933","pull_request_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/pulls/83","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/pulls/comments/202851933"},"html":{"href":"https://github.com/terraform-providers/terraform-provider-heroku/pull/83#discussion_r202851933"},"pull_request":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/pulls/83"}},"in_reply_to_id":202749596},"pull_request":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/pulls/83","id":198049724,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MDQ5NzI0","html_url":"https://github.com/terraform-providers/terraform-provider-heroku/pull/83","diff_url":"https://github.com/terraform-providers/terraform-provider-heroku/pull/83.diff","patch_url":"https://github.com/terraform-providers/terraform-provider-heroku/pull/83.patch","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/issues/83","number":83,"state":"open","locked":false,"title":"WIP: Create a resource for managing space access","user":{"login":"talbright","id":212177,"node_id":"MDQ6VXNlcjIxMjE3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/212177?v=4","gravatar_id":"","url":"https://api.github.com/users/talbright","html_url":"https://github.com/talbright","followers_url":"https://api.github.com/users/talbright/followers","following_url":"https://api.github.com/users/talbright/following{/other_user}","gists_url":"https://api.github.com/users/talbright/gists{/gist_id}","starred_url":"https://api.github.com/users/talbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talbright/subscriptions","organizations_url":"https://api.github.com/users/talbright/orgs","repos_url":"https://api.github.com/users/talbright/repos","events_url":"https://api.github.com/users/talbright/events{/privacy}","received_events_url":"https://api.github.com/users/talbright/received_events","type":"User","site_admin":false},"body":"TODO\r\n\r\n- [x] documentation for HCL\r\n- [x] Create\r\n- [x] Read\r\n- [x] Update\r\n- [x] Delete\r\n- [x] Get fix for Heroku API merged (heroku/api#9602)\r\n- [x] Get update to `heroku-go` merged (cyberdelia/heroku-go/pull/27) \r\n- [x] Code cleanup\r\n- [x] Integration testing\r\n- [ ] Acceptance tests","created_at":"2018-06-28T14:31:05Z","updated_at":"2018-07-16T23:05:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b35e2fff28b0be754aec51cb14b684704731e9a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/pulls/83/commits","review_comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/pulls/83/comments","review_comment_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/pulls/comments{/number}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/issues/83/comments","statuses_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/statuses/3de7445d9c679af40e3159eafbebbd0def559c9a","head":{"label":"talbright:issues/77-manage-space-access","ref":"issues/77-manage-space-access","sha":"3de7445d9c679af40e3159eafbebbd0def559c9a","user":{"login":"talbright","id":212177,"node_id":"MDQ6VXNlcjIxMjE3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/212177?v=4","gravatar_id":"","url":"https://api.github.com/users/talbright","html_url":"https://github.com/talbright","followers_url":"https://api.github.com/users/talbright/followers","following_url":"https://api.github.com/users/talbright/following{/other_user}","gists_url":"https://api.github.com/users/talbright/gists{/gist_id}","starred_url":"https://api.github.com/users/talbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talbright/subscriptions","organizations_url":"https://api.github.com/users/talbright/orgs","repos_url":"https://api.github.com/users/talbright/repos","events_url":"https://api.github.com/users/talbright/events{/privacy}","received_events_url":"https://api.github.com/users/talbright/received_events","type":"User","site_admin":false},"repo":{"id":138890216,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg4OTAyMTY=","name":"terraform-provider-heroku","full_name":"talbright/terraform-provider-heroku","owner":{"login":"talbright","id":212177,"node_id":"MDQ6VXNlcjIxMjE3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/212177?v=4","gravatar_id":"","url":"https://api.github.com/users/talbright","html_url":"https://github.com/talbright","followers_url":"https://api.github.com/users/talbright/followers","following_url":"https://api.github.com/users/talbright/following{/other_user}","gists_url":"https://api.github.com/users/talbright/gists{/gist_id}","starred_url":"https://api.github.com/users/talbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talbright/subscriptions","organizations_url":"https://api.github.com/users/talbright/orgs","repos_url":"https://api.github.com/users/talbright/repos","events_url":"https://api.github.com/users/talbright/events{/privacy}","received_events_url":"https://api.github.com/users/talbright/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/talbright/terraform-provider-heroku","description":"Terraform Heroku provider","fork":true,"url":"https://api.github.com/repos/talbright/terraform-provider-heroku","forks_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/forks","keys_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/keys{/key_id}","collaborators_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/teams","hooks_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/hooks","issue_events_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/issues/events{/number}","events_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/events","assignees_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/assignees{/user}","branches_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/branches{/branch}","tags_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/tags","blobs_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/git/refs{/sha}","trees_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/git/trees{/sha}","statuses_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/statuses/{sha}","languages_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/languages","stargazers_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/stargazers","contributors_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/contributors","subscribers_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/subscribers","subscription_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/subscription","commits_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/commits{/sha}","git_commits_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/git/commits{/sha}","comments_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/comments{/number}","issue_comment_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/issues/comments{/number}","contents_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/contents/{+path}","compare_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/compare/{base}...{head}","merges_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/merges","archive_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/downloads","issues_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/issues{/number}","pulls_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/pulls{/number}","milestones_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/milestones{/number}","notifications_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/labels{/name}","releases_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/releases{/id}","deployments_url":"https://api.github.com/repos/talbright/terraform-provider-heroku/deployments","created_at":"2018-06-27T14:07:17Z","updated_at":"2018-07-08T21:10:37Z","pushed_at":"2018-07-16T16:12:38Z","git_url":"git://github.com/talbright/terraform-provider-heroku.git","ssh_url":"git@github.com:talbright/terraform-provider-heroku.git","clone_url":"https://github.com/talbright/terraform-provider-heroku.git","svn_url":"https://github.com/talbright/terraform-provider-heroku","homepage":"https://www.terraform.io/docs/providers/heroku/","size":2294,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"terraform-providers:master","ref":"master","sha":"289aa856c06c13277e842e7208e4b0f6aa589669","user":{"login":"terraform-providers","id":29154831,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTU0ODMx","avatar_url":"https://avatars0.githubusercontent.com/u/29154831?v=4","gravatar_id":"","url":"https://api.github.com/users/terraform-providers","html_url":"https://github.com/terraform-providers","followers_url":"https://api.github.com/users/terraform-providers/followers","following_url":"https://api.github.com/users/terraform-providers/following{/other_user}","gists_url":"https://api.github.com/users/terraform-providers/gists{/gist_id}","starred_url":"https://api.github.com/users/terraform-providers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terraform-providers/subscriptions","organizations_url":"https://api.github.com/users/terraform-providers/orgs","repos_url":"https://api.github.com/users/terraform-providers/repos","events_url":"https://api.github.com/users/terraform-providers/events{/privacy}","received_events_url":"https://api.github.com/users/terraform-providers/received_events","type":"Organization","site_admin":false},"repo":{"id":93446103,"node_id":"MDEwOlJlcG9zaXRvcnk5MzQ0NjEwMw==","name":"terraform-provider-heroku","full_name":"terraform-providers/terraform-provider-heroku","owner":{"login":"terraform-providers","id":29154831,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTU0ODMx","avatar_url":"https://avatars0.githubusercontent.com/u/29154831?v=4","gravatar_id":"","url":"https://api.github.com/users/terraform-providers","html_url":"https://github.com/terraform-providers","followers_url":"https://api.github.com/users/terraform-providers/followers","following_url":"https://api.github.com/users/terraform-providers/following{/other_user}","gists_url":"https://api.github.com/users/terraform-providers/gists{/gist_id}","starred_url":"https://api.github.com/users/terraform-providers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terraform-providers/subscriptions","organizations_url":"https://api.github.com/users/terraform-providers/orgs","repos_url":"https://api.github.com/users/terraform-providers/repos","events_url":"https://api.github.com/users/terraform-providers/events{/privacy}","received_events_url":"https://api.github.com/users/terraform-providers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/terraform-providers/terraform-provider-heroku","description":"Terraform Heroku provider","fork":false,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku","forks_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/forks","keys_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/keys{/key_id}","collaborators_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/teams","hooks_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/hooks","issue_events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/issues/events{/number}","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/events","assignees_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/assignees{/user}","branches_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/branches{/branch}","tags_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/tags","blobs_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/git/refs{/sha}","trees_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/git/trees{/sha}","statuses_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/statuses/{sha}","languages_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/languages","stargazers_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/stargazers","contributors_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/contributors","subscribers_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/subscribers","subscription_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/subscription","commits_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/commits{/sha}","git_commits_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/git/commits{/sha}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/comments{/number}","issue_comment_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/issues/comments{/number}","contents_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/contents/{+path}","compare_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/compare/{base}...{head}","merges_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/merges","archive_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/downloads","issues_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/issues{/number}","pulls_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/pulls{/number}","milestones_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/milestones{/number}","notifications_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/labels{/name}","releases_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/releases{/id}","deployments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/deployments","created_at":"2017-06-05T20:54:09Z","updated_at":"2018-07-16T19:24:24Z","pushed_at":"2018-07-16T19:24:25Z","git_url":"git://github.com/terraform-providers/terraform-provider-heroku.git","ssh_url":"git@github.com:terraform-providers/terraform-provider-heroku.git","clone_url":"https://github.com/terraform-providers/terraform-provider-heroku.git","svn_url":"https://github.com/terraform-providers/terraform-provider-heroku","homepage":"https://www.terraform.io/docs/providers/heroku/","size":2294,"stargazers_count":22,"watchers_count":22,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":28,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":27,"open_issues":28,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/pulls/83"},"html":{"href":"https://github.com/terraform-providers/terraform-provider-heroku/pull/83"},"issue":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/issues/83"},"comments":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-heroku/statuses/3de7445d9c679af40e3159eafbebbd0def559c9a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"davidji99"}}