Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Updates an IAM policy for the specified bucket.
See: Cloud Storage JSON API Reference for storage.buckets.setIamPolicy
.
Synopsis
- type BucketsSetIAMPolicyResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("iam" :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Policy :> Put '[JSON] Policy)))))))
- bucketsSetIAMPolicy :: Text -> Policy -> BucketsSetIAMPolicy
- data BucketsSetIAMPolicy
- bsipBucket :: Lens' BucketsSetIAMPolicy Text
- bsipPayload :: Lens' BucketsSetIAMPolicy Policy
- bsipUserProject :: Lens' BucketsSetIAMPolicy (Maybe Text)
REST Resource
type BucketsSetIAMPolicyResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("iam" :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Policy :> Put '[JSON] Policy))))))) Source #
A resource alias for storage.buckets.setIamPolicy
method which the
BucketsSetIAMPolicy
request conforms to.
Creating a Request
Creates a value of BucketsSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BucketsSetIAMPolicy Source #
Updates an IAM policy for the specified bucket.
See: bucketsSetIAMPolicy
smart constructor.
Instances
Request Lenses
bsipBucket :: Lens' BucketsSetIAMPolicy Text Source #
Name of a bucket.
bsipPayload :: Lens' BucketsSetIAMPolicy Policy Source #
Multipart request metadata.
bsipUserProject :: Lens' BucketsSetIAMPolicy (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.