Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Megan bucket access control #1177

Merged
merged 1 commit into from
Sep 25, 2019

Conversation

modular-magician
Copy link
Collaborator

@modular-magician modular-magician commented Sep 24, 2019

Original Author: @megan07

`google_storage_bucket_access_control`

Type: schema.TypeString,
Optional: true,
},
"project_team": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's my understanding that this field is read-only. Did you find that wasn't the case?

Type: schema.TypeString,
Required: true,
},
"entity_id": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's my understanding that this field is read-only. Did you find that wasn't the case?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is primarily based on https://cloud.google.com/storage/docs/json_api/v1/bucketAccessControls/insert, which says that only entity and role are configurable.

},

Schema: map[string]*schema.Schema{
"bucket": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect this needs to be marked input: true?

Required: true,
DiffSuppressFunc: compareSelfLinkOrResourceName,
},
"entity": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be input: true as well since Read calls out to {{bucket}}/acl/{{entity}}

@@ -0,0 +1,88 @@
// ----------------------------------------------------------------------------
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind adding a handwritten test as well, testing update?

Signed-off-by: Modular Magician <magic-modules@google.com>
@megan07 megan07 merged commit 74b7da5 into hashicorp:master Sep 25, 2019
@modular-magician modular-magician deleted the codegen-pr-2364 branch November 15, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants