-
Notifications
You must be signed in to change notification settings - Fork 438
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
[BC Break] Storage IAM #395
Conversation
|
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.
Could you strikeout the note in the description about test permissions returning null since that has changed? The refactor we discussed LGTM. Just a few notes, otherwise consider this signed off. 👍
src/Core/Iam/Iam.php
Outdated
* @param array $options Configuration Options | ||
* @return array An array of policy data | ||
* @throws BadMethodCallException If the given policy is not an array or PolicyBuilder. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/Core/Iam/Iam.php
Outdated
} | ||
|
||
if (!is_array($policy)) { | ||
throw new \BadMethodCallException('Given policy data must be an array or an instance of PolicyBuilder.'); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@dwsupplee all set! |
Closes #386.
Here is the implementation of IAM for GCS. It's a bit more involved than I expected. The storage IAM resources are just different enough to require modifications to the IAM system.
I also modified the Pub/Sub classes which implement IAM slightly, to delay creating the IAM objects until they're actually needed.
NOTE The return value of
Iam::testPermissions()
has changed. Where it previously returned the API result, now it only returns the value of thepermissions
key on that result, or an empty array.todo