gogol-storage-0.1.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.Get

Contents

Description

Returns metadata for the specified bucket.

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

Synopsis

REST Resource

type BucketsGetResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" BucketsGetProjection :> (QueryParam "alt" AltJSON :> Get '[JSON] Bucket))))))) Source #

A resource alias for storage.buckets.get method which the BucketsGet request conforms to.

Creating a Request

bucketsGet Source #

Arguments

:: Text

bgBucket

-> BucketsGet 

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

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

data BucketsGet Source #

Returns metadata for the specified bucket.

See: bucketsGet smart constructor.

Instances

Eq BucketsGet Source # 
Data BucketsGet Source # 

Methods

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

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

toConstr :: BucketsGet -> Constr #

dataTypeOf :: BucketsGet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show BucketsGet Source # 
Generic BucketsGet Source # 

Associated Types

type Rep BucketsGet :: * -> * #

GoogleRequest BucketsGet Source # 

Associated Types

type Rs BucketsGet :: * #

type Scopes BucketsGet :: [Symbol] #

type Rep BucketsGet Source # 
type Rep BucketsGet = D1 (MetaData "BucketsGet" "Network.Google.Resource.Storage.Buckets.Get" "gogol-storage-0.1.0-L0T4EMtUjHX8jDbB9PaYdJ" False) (C1 (MetaCons "BucketsGet'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_bgIfMetagenerationMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) (S1 (MetaSel (Just Symbol "_bgBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_bgIfMetagenerationNotMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) (S1 (MetaSel (Just Symbol "_bgProjection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe BucketsGetProjection))))))
type Scopes BucketsGet Source # 
type Scopes BucketsGet = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/cloud-platform.read-only" ((:) Symbol "https://www.googleapis.com/auth/devstorage.full_control" ((:) Symbol "https://www.googleapis.com/auth/devstorage.read_only" ((:) Symbol "https://www.googleapis.com/auth/devstorage.read_write" ([] Symbol)))))
type Rs BucketsGet Source # 

Request Lenses

bgIfMetagenerationMatch :: Lens' BucketsGet (Maybe Int64) Source #

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

bgBucket :: Lens' BucketsGet Text Source #

Name of a bucket.

bgIfMetagenerationNotMatch :: Lens' BucketsGet (Maybe Int64) Source #

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

bgProjection :: Lens' BucketsGet (Maybe BucketsGetProjection) Source #

Set of properties to return. Defaults to noAcl.