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.Buckets.Update

Contents

Description

Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.

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

Synopsis

REST Resource

type BucketsUpdateResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "predefinedAcl" BucketsUpdatePredefinedACL :> (QueryParam "predefinedDefaultObjectAcl" BucketsUpdatePredefinedDefaultObjectACL :> (QueryParam "userProject" Text :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" BucketsUpdateProjection :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Bucket :> Put '[JSON] Bucket))))))))))) Source #

A resource alias for storage.buckets.update method which the BucketsUpdate request conforms to.

Creating a Request

bucketsUpdate Source #

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

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

data BucketsUpdate Source #

Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.

See: bucketsUpdate smart constructor.

Instances
Eq BucketsUpdate Source # 
Instance details

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

Data BucketsUpdate Source # 
Instance details

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

Methods

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

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

toConstr :: BucketsUpdate -> Constr #

dataTypeOf :: BucketsUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show BucketsUpdate Source # 
Instance details

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

Generic BucketsUpdate Source # 
Instance details

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

Associated Types

type Rep BucketsUpdate :: Type -> Type #

GoogleRequest BucketsUpdate Source # 
Instance details

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

Associated Types

type Rs BucketsUpdate :: Type #

type Scopes BucketsUpdate :: [Symbol] #

type Rep BucketsUpdate Source # 
Instance details

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

type Scopes BucketsUpdate Source # 
Instance details

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

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

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

Request Lenses

buIfMetagenerationMatch :: Lens' BucketsUpdate (Maybe Int64) Source #

Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.

buPredefinedACL :: Lens' BucketsUpdate (Maybe BucketsUpdatePredefinedACL) Source #

Apply a predefined set of access controls to this bucket.

buBucket :: Lens' BucketsUpdate Text Source #

Name of a bucket.

buPayload :: Lens' BucketsUpdate Bucket Source #

Multipart request metadata.

buPredefinedDefaultObjectACL :: Lens' BucketsUpdate (Maybe BucketsUpdatePredefinedDefaultObjectACL) Source #

Apply a predefined set of default object access controls to this bucket.

buUserProject :: Lens' BucketsUpdate (Maybe Text) Source #

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

buIfMetagenerationNotMatch :: Lens' BucketsUpdate (Maybe Int64) Source #

Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.

buProjection :: Lens' BucketsUpdate (Maybe BucketsUpdateProjection) Source #

Set of properties to return. Defaults to full.