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.ObjectAccessControls.Patch

Contents

Description

Patches an ACL entry on the specified object.

See: Cloud Storage JSON API Reference for storage.objectAccessControls.patch.

Synopsis

REST Resource

type ObjectAccessControlsPatchResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> ("acl" :> (Capture "entity" Text :> (QueryParam "userProject" Text :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ObjectAccessControl :> Patch '[JSON] ObjectAccessControl))))))))))) Source #

A resource alias for storage.objectAccessControls.patch method which the ObjectAccessControlsPatch request conforms to.

Creating a Request

objectAccessControlsPatch Source #

Creates a value of ObjectAccessControlsPatch with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ObjectAccessControlsPatch Source #

Patches an ACL entry on the specified object.

See: objectAccessControlsPatch smart constructor.

Instances
Eq ObjectAccessControlsPatch Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Patch

Data ObjectAccessControlsPatch Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Patch

Methods

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

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

toConstr :: ObjectAccessControlsPatch -> Constr #

dataTypeOf :: ObjectAccessControlsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ObjectAccessControlsPatch Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Patch

Generic ObjectAccessControlsPatch Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Patch

Associated Types

type Rep ObjectAccessControlsPatch :: Type -> Type #

GoogleRequest ObjectAccessControlsPatch Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Patch

type Rep ObjectAccessControlsPatch Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Patch

type Rep ObjectAccessControlsPatch = D1 (MetaData "ObjectAccessControlsPatch" "Network.Google.Resource.Storage.ObjectAccessControls.Patch" "gogol-storage-0.4.0-F1QXZopXJqf9Y2QJKwfuR3" False) (C1 (MetaCons "ObjectAccessControlsPatch'" PrefixI True) ((S1 (MetaSel (Just "_oacpBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_oacpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ObjectAccessControl) :*: S1 (MetaSel (Just "_oacpUserProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_oacpObject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_oacpEntity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_oacpGeneration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))))
type Scopes ObjectAccessControlsPatch Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Patch

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

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Patch

Request Lenses

oacpUserProject :: Lens' ObjectAccessControlsPatch (Maybe Text) Source #

The project to be billed for this request. Required for Requester Pays buckets.

oacpObject :: Lens' ObjectAccessControlsPatch Text Source #

Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.

oacpEntity :: Lens' ObjectAccessControlsPatch Text Source #

The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.

oacpGeneration :: Lens' ObjectAccessControlsPatch (Maybe Int64) Source #

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