-
Notifications
You must be signed in to change notification settings - Fork 264
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
Conversation
b9ac980
to
7897e57
Compare
Type: schema.TypeString, | ||
Optional: true, | ||
}, | ||
"project_team": { |
There was a problem hiding this comment.
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": { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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": { |
There was a problem hiding this comment.
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": { |
There was a problem hiding this comment.
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 @@ | |||
// ---------------------------------------------------------------------------- |
There was a problem hiding this comment.
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?
7897e57
to
c8ab1e2
Compare
Signed-off-by: Modular Magician <magic-modules@google.com>
c8ab1e2
to
8da8add
Compare
Original Author: @megan07