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 object to see which, if any, are held by the caller.
See: Cloud Storage JSON API Reference for storage.objects.testIamPermissions
.
Synopsis
- type ObjectsTestIAMPermissionsResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> ("iam" :> ("testPermissions" :> (QueryParams "permissions" Text :> (QueryParam "userProject" Text :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> Get '[JSON] TestIAMPermissionsResponse)))))))))))
- objectsTestIAMPermissions :: Text -> Text -> [Text] -> ObjectsTestIAMPermissions
- data ObjectsTestIAMPermissions
- otipBucket :: Lens' ObjectsTestIAMPermissions Text
- otipUserProject :: Lens' ObjectsTestIAMPermissions (Maybe Text)
- otipObject :: Lens' ObjectsTestIAMPermissions Text
- otipPermissions :: Lens' ObjectsTestIAMPermissions [Text]
- otipGeneration :: Lens' ObjectsTestIAMPermissions (Maybe Int64)
REST Resource
type ObjectsTestIAMPermissionsResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> ("iam" :> ("testPermissions" :> (QueryParams "permissions" Text :> (QueryParam "userProject" Text :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> Get '[JSON] TestIAMPermissionsResponse))))))))))) Source #
A resource alias for storage.objects.testIamPermissions
method which the
ObjectsTestIAMPermissions
request conforms to.
Creating a Request
objectsTestIAMPermissions Source #
Creates a value of ObjectsTestIAMPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ObjectsTestIAMPermissions Source #
Tests a set of permissions on the given object to see which, if any, are held by the caller.
See: objectsTestIAMPermissions
smart constructor.
Instances
Request Lenses
otipBucket :: Lens' ObjectsTestIAMPermissions Text Source #
Name of the bucket in which the object resides.
otipUserProject :: Lens' ObjectsTestIAMPermissions (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.
otipObject :: Lens' ObjectsTestIAMPermissions Text Source #
Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.
otipPermissions :: Lens' ObjectsTestIAMPermissions [Text] Source #
Permissions to test.
otipGeneration :: Lens' ObjectsTestIAMPermissions (Maybe Int64) Source #
If present, selects a specific revision of this object (as opposed to the latest version, the default).