gogol-storage-0.3.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.Patch

Contents

Description

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

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

Synopsis

REST Resource

type BucketsPatchResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "predefinedAcl" BucketsPatchPredefinedACL :> (QueryParam "predefinedDefaultObjectAcl" BucketsPatchPredefinedDefaultObjectACL :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" BucketsPatchProjection :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Bucket :> Patch '[JSON] Bucket)))))))))) Source #

A resource alias for storage.buckets.patch method which the BucketsPatch request conforms to.

Creating a Request

bucketsPatch Source #

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

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

data BucketsPatch Source #

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

See: bucketsPatch smart constructor.

Instances

Eq BucketsPatch Source # 
Data BucketsPatch Source # 

Methods

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

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

toConstr :: BucketsPatch -> Constr #

dataTypeOf :: BucketsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show BucketsPatch Source # 
Generic BucketsPatch Source # 

Associated Types

type Rep BucketsPatch :: * -> * #

GoogleRequest BucketsPatch Source # 

Associated Types

type Rs BucketsPatch :: * #

type Scopes BucketsPatch :: [Symbol] #

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

Request Lenses

bpIfMetagenerationMatch :: Lens' BucketsPatch (Maybe Int64) Source #

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

bpPredefinedACL :: Lens' BucketsPatch (Maybe BucketsPatchPredefinedACL) Source #

Apply a predefined set of access controls to this bucket.

bpBucket :: Lens' BucketsPatch Text Source #

Name of a bucket.

bpPayload :: Lens' BucketsPatch Bucket Source #

Multipart request metadata.

bpPredefinedDefaultObjectACL :: Lens' BucketsPatch (Maybe BucketsPatchPredefinedDefaultObjectACL) Source #

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

bpIfMetagenerationNotMatch :: Lens' BucketsPatch (Maybe Int64) Source #

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

bpProjection :: Lens' BucketsPatch (Maybe BucketsPatchProjection) Source #

Set of properties to return. Defaults to full.