gogol-storage-0.0.1: Google Cloud Storage JSON SDK.

Copyright(c) 2015 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. 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. This method supports patch semantics.

See: bucketsPatch smart constructor.

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.