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

Contents

Description

Patches 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.patch.

Synopsis

REST Resource

type BucketsPatchResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "predefinedAcl" BucketsPatchPredefinedACL :> (QueryParam "predefinedDefaultObjectAcl" BucketsPatchPredefinedDefaultObjectACL :> (QueryParam "userProject" Text :> (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 #

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

See: bucketsPatch smart constructor.

Instances
Eq BucketsPatch Source # 
Instance details

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

Data BucketsPatch Source # 
Instance details

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

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 # 
Instance details

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

Generic BucketsPatch Source # 
Instance details

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

Associated Types

type Rep BucketsPatch :: Type -> Type #

GoogleRequest BucketsPatch Source # 
Instance details

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

Associated Types

type Rs BucketsPatch :: Type #

type Scopes BucketsPatch :: [Symbol] #

type Rep BucketsPatch Source # 
Instance details

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

type Scopes BucketsPatch Source # 
Instance details

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

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

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

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.

bpUserProject :: Lens' BucketsPatch (Maybe Text) Source #

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

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.