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 |
Returns an IAM policy for the specified bucket.
See: Cloud Storage JSON API Reference for storage.buckets.getIamPolicy
.
Synopsis
- type BucketsGetIAMPolicyResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("iam" :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Policy))))))
- bucketsGetIAMPolicy :: Text -> BucketsGetIAMPolicy
- data BucketsGetIAMPolicy
- bgipBucket :: Lens' BucketsGetIAMPolicy Text
- bgipUserProject :: Lens' BucketsGetIAMPolicy (Maybe Text)
REST Resource
type BucketsGetIAMPolicyResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("iam" :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Policy)))))) Source #
A resource alias for storage.buckets.getIamPolicy
method which the
BucketsGetIAMPolicy
request conforms to.
Creating a Request
Creates a value of BucketsGetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BucketsGetIAMPolicy Source #
Returns an IAM policy for the specified bucket.
See: bucketsGetIAMPolicy
smart constructor.
Instances
Request Lenses
bgipBucket :: Lens' BucketsGetIAMPolicy Text Source #
Name of a bucket.
bgipUserProject :: Lens' BucketsGetIAMPolicy (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.