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 |
Tests a set of permissions on the given bucket to see which, if any, are held by the caller.
See: Cloud Storage JSON API Reference for storage.buckets.testIamPermissions
.
Synopsis
- type BucketsTestIAMPermissionsResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("iam" :> ("testPermissions" :> (QueryParams "permissions" Text :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] TestIAMPermissionsResponse))))))))
- bucketsTestIAMPermissions :: Text -> [Text] -> BucketsTestIAMPermissions
- data BucketsTestIAMPermissions
- btipBucket :: Lens' BucketsTestIAMPermissions Text
- btipUserProject :: Lens' BucketsTestIAMPermissions (Maybe Text)
- btipPermissions :: Lens' BucketsTestIAMPermissions [Text]
REST Resource
type BucketsTestIAMPermissionsResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("iam" :> ("testPermissions" :> (QueryParams "permissions" Text :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] TestIAMPermissionsResponse)))))))) Source #
A resource alias for storage.buckets.testIamPermissions
method which the
BucketsTestIAMPermissions
request conforms to.
Creating a Request
bucketsTestIAMPermissions Source #
Creates a value of BucketsTestIAMPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BucketsTestIAMPermissions Source #
Tests a set of permissions on the given bucket to see which, if any, are held by the caller.
See: bucketsTestIAMPermissions
smart constructor.
Instances
Request Lenses
btipBucket :: Lens' BucketsTestIAMPermissions Text Source #
Name of a bucket.
btipUserProject :: Lens' BucketsTestIAMPermissions (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.
btipPermissions :: Lens' BucketsTestIAMPermissions [Text] Source #
Permissions to test.