gogol-storage-0.5.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.Buckets.LockRetentionPolicy

Contents

Description

Locks retention policy on a bucket.

See: Cloud Storage JSON API Reference for storage.buckets.lockRetentionPolicy.

Synopsis

REST Resource

type BucketsLockRetentionPolicyResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("lockRetentionPolicy" :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] Bucket))))))) Source #

A resource alias for storage.buckets.lockRetentionPolicy method which the BucketsLockRetentionPolicy request conforms to.

Creating a Request

bucketsLockRetentionPolicy Source #

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

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

data BucketsLockRetentionPolicy Source #

Locks retention policy on a bucket.

See: bucketsLockRetentionPolicy smart constructor.

Instances
Eq BucketsLockRetentionPolicy Source # 
Instance details

Defined in Network.Google.Resource.Storage.Buckets.LockRetentionPolicy

Data BucketsLockRetentionPolicy Source # 
Instance details

Defined in Network.Google.Resource.Storage.Buckets.LockRetentionPolicy

Methods

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

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

toConstr :: BucketsLockRetentionPolicy -> Constr #

dataTypeOf :: BucketsLockRetentionPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show BucketsLockRetentionPolicy Source # 
Instance details

Defined in Network.Google.Resource.Storage.Buckets.LockRetentionPolicy

Generic BucketsLockRetentionPolicy Source # 
Instance details

Defined in Network.Google.Resource.Storage.Buckets.LockRetentionPolicy

Associated Types

type Rep BucketsLockRetentionPolicy :: Type -> Type #

GoogleRequest BucketsLockRetentionPolicy Source # 
Instance details

Defined in Network.Google.Resource.Storage.Buckets.LockRetentionPolicy

type Rep BucketsLockRetentionPolicy Source # 
Instance details

Defined in Network.Google.Resource.Storage.Buckets.LockRetentionPolicy

type Rep BucketsLockRetentionPolicy = D1 (MetaData "BucketsLockRetentionPolicy" "Network.Google.Resource.Storage.Buckets.LockRetentionPolicy" "gogol-storage-0.5.0-5L0Ic6SP0Z527hp6WMOxG4" False) (C1 (MetaCons "BucketsLockRetentionPolicy'" PrefixI True) (S1 (MetaSel (Just "_blrpIfMetagenerationMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64)) :*: (S1 (MetaSel (Just "_blrpBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_blrpUserProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Scopes BucketsLockRetentionPolicy Source # 
Instance details

Defined in Network.Google.Resource.Storage.Buckets.LockRetentionPolicy

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

Defined in Network.Google.Resource.Storage.Buckets.LockRetentionPolicy

Request Lenses

blrpIfMetagenerationMatch :: Lens' BucketsLockRetentionPolicy Int64 Source #

Makes the operation conditional on whether bucket's current metageneration matches the given value.

blrpUserProject :: Lens' BucketsLockRetentionPolicy (Maybe Text) Source #

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