gogol-storage-0.4.0: Google Cloud Storage JSON SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Storage.Objects.TestIAMPermissions

Contents

Description

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

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
Eq ObjectsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.TestIAMPermissions

Data ObjectsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.TestIAMPermissions

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ObjectsTestIAMPermissions -> c ObjectsTestIAMPermissions #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ObjectsTestIAMPermissions #

toConstr :: ObjectsTestIAMPermissions -> Constr #

dataTypeOf :: ObjectsTestIAMPermissions -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ObjectsTestIAMPermissions) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ObjectsTestIAMPermissions) #

gmapT :: (forall b. Data b => b -> b) -> ObjectsTestIAMPermissions -> ObjectsTestIAMPermissions #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ObjectsTestIAMPermissions -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ObjectsTestIAMPermissions -> r #

gmapQ :: (forall d. Data d => d -> u) -> ObjectsTestIAMPermissions -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ObjectsTestIAMPermissions -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ObjectsTestIAMPermissions -> m ObjectsTestIAMPermissions #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ObjectsTestIAMPermissions -> m ObjectsTestIAMPermissions #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ObjectsTestIAMPermissions -> m ObjectsTestIAMPermissions #

Show ObjectsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.TestIAMPermissions

Generic ObjectsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.TestIAMPermissions

Associated Types

type Rep ObjectsTestIAMPermissions :: Type -> Type #

GoogleRequest ObjectsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.TestIAMPermissions

type Rep ObjectsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.TestIAMPermissions

type Rep ObjectsTestIAMPermissions = D1 (MetaData "ObjectsTestIAMPermissions" "Network.Google.Resource.Storage.Objects.TestIAMPermissions" "gogol-storage-0.4.0-F1QXZopXJqf9Y2QJKwfuR3" False) (C1 (MetaCons "ObjectsTestIAMPermissions'" PrefixI True) ((S1 (MetaSel (Just "_otipBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_otipUserProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_otipObject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_otipPermissions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]) :*: S1 (MetaSel (Just "_otipGeneration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))))
type Scopes ObjectsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.TestIAMPermissions

type Scopes ObjectsTestIAMPermissions = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/cloud-platform.read-only" ': ("https://www.googleapis.com/auth/devstorage.full_control" ': ("https://www.googleapis.com/auth/devstorage.read_only" ': ("https://www.googleapis.com/auth/devstorage.read_write" ': ([] :: [Symbol])))))
type Rs ObjectsTestIAMPermissions Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.TestIAMPermissions

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.

otipGeneration :: Lens' ObjectsTestIAMPermissions (Maybe Int64) Source #

If present, selects a specific revision of this object (as opposed to the latest version, the default).