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

Contents

Description

Updates a bucket.

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 "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:

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.

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.