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

Contents

Description

Creates a new bucket.

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

Synopsis

REST Resource

type BucketsInsertResource = "storage" :> ("v1" :> ("b" :> (QueryParam "project" Text :> (QueryParam "predefinedAcl" BucketsInsertPredefinedACL :> (QueryParam "predefinedDefaultObjectAcl" BucketsInsertPredefinedDefaultObjectACL :> (QueryParam "projection" BucketsInsertProjection :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Bucket :> Post '[JSON] Bucket)))))))) Source #

A resource alias for storage.buckets.insert method which the BucketsInsert request conforms to.

Creating a Request

bucketsInsert Source #

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

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

data BucketsInsert Source #

Creates a new bucket.

See: bucketsInsert smart constructor.

Instances

Eq BucketsInsert Source # 
Data BucketsInsert Source # 

Methods

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

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

toConstr :: BucketsInsert -> Constr #

dataTypeOf :: BucketsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show BucketsInsert Source # 
Generic BucketsInsert Source # 

Associated Types

type Rep BucketsInsert :: * -> * #

GoogleRequest BucketsInsert Source # 

Associated Types

type Rs BucketsInsert :: * #

type Scopes BucketsInsert :: [Symbol] #

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

Request Lenses

biProject :: Lens' BucketsInsert Text Source #

A valid API project identifier.

biPredefinedACL :: Lens' BucketsInsert (Maybe BucketsInsertPredefinedACL) Source #

Apply a predefined set of access controls to this bucket.

biPayload :: Lens' BucketsInsert Bucket Source #

Multipart request metadata.

biPredefinedDefaultObjectACL :: Lens' BucketsInsert (Maybe BucketsInsertPredefinedDefaultObjectACL) Source #

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

biProjection :: Lens' BucketsInsert (Maybe BucketsInsertProjection) Source #

Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.