-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support iam conditions (#2416)
* support IAM condition * update Storage JSON definition, rev,. 20190913 * throw InvalidOperationException if version is greater than 1 * nit: doc * do not cache Iam instance on bucket; make $version arg a key in $options array * revert version argument from IAM constructor * docs: document optionsRequestedPolicyVersion * revert stored $iam instance on bucket * docs: add example of a policy in PolicyBuilder * more docs * fix link * map requestedPolicyVersion arg to optionsRequestedPolicyVersion in Storage req opts * fix(docs): optionsRequestedPolicyVersion => requestedPolicyVersion * fix * test: validate policy version and conditions * test: assert requestedPolicyVersion arg is mapped to optionsRequestedPolicyVersion * merge Storage definition from master * fix: lint * lint * fix * docs: update inline sample to use prefix condition * add IAM get/set system tests * add conditional policy system test * fix docs Co-Authored-By: David Supplee <dwsupplee@gmail.com> * fix @see markdown links * fix ; * add @deprecated tag * use BadMethodCallException * fix style * fix style * add snippet coverage * update bucket->iam snippet tests * fix snippet parsing issue * Update Storage/tests/System/IamTest.php Co-Authored-By: David Supplee <dwsupplee@gmail.com> * Update Core/src/Iam/PolicyBuilder.php Co-Authored-By: David Supplee <dwsupplee@gmail.com> Co-authored-by: David Supplee <dwsupplee@gmail.com>
- Loading branch information
Showing
9 changed files
with
338 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.