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.Objects.Delete

Contents

Description

Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.

See: Cloud Storage JSON API Reference for storage.objects.delete.

Synopsis

REST Resource

type ObjectsDeleteResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "ifGenerationNotMatch" (Textual Int64) :> (QueryParam "ifGenerationMatch" (Textual Int64) :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> Delete '[JSON] ()))))))))))) Source #

A resource alias for storage.objects.delete method which the ObjectsDelete request conforms to.

Creating a Request

objectsDelete Source #

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

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

data ObjectsDelete Source #

Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.

See: objectsDelete smart constructor.

Instances

Eq ObjectsDelete Source # 
Data ObjectsDelete Source # 

Methods

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

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

toConstr :: ObjectsDelete -> Constr #

dataTypeOf :: ObjectsDelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ObjectsDelete Source # 
Generic ObjectsDelete Source # 

Associated Types

type Rep ObjectsDelete :: * -> * #

GoogleRequest ObjectsDelete Source # 

Associated Types

type Rs ObjectsDelete :: * #

type Scopes ObjectsDelete :: [Symbol] #

type Rep ObjectsDelete Source # 
type Rep ObjectsDelete = D1 (MetaData "ObjectsDelete" "Network.Google.Resource.Storage.Objects.Delete" "gogol-storage-0.1.0-L0T4EMtUjHX8jDbB9PaYdJ" False) (C1 (MetaCons "ObjectsDelete'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_odIfMetagenerationMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) ((:*:) (S1 (MetaSel (Just Symbol "_odIfGenerationNotMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) (S1 (MetaSel (Just Symbol "_odIfGenerationMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_odBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_odIfMetagenerationNotMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))))) ((:*:) (S1 (MetaSel (Just Symbol "_odObject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_odGeneration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))))))))
type Scopes ObjectsDelete Source # 
type Scopes ObjectsDelete = (:) 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 ObjectsDelete Source # 
type Rs ObjectsDelete = ()

Request Lenses

odIfMetagenerationMatch :: Lens' ObjectsDelete (Maybe Int64) Source #

Makes the operation conditional on whether the object's current metageneration matches the given value.

odIfGenerationNotMatch :: Lens' ObjectsDelete (Maybe Int64) Source #

Makes the operation conditional on whether the object's current generation does not match the given value.

odIfGenerationMatch :: Lens' ObjectsDelete (Maybe Int64) Source #

Makes the operation conditional on whether the object's current generation matches the given value.

odBucket :: Lens' ObjectsDelete Text Source #

Name of the bucket in which the object resides.

odIfMetagenerationNotMatch :: Lens' ObjectsDelete (Maybe Int64) Source #

Makes the operation conditional on whether the object's current metageneration does not match the given value.

odObject :: Lens' ObjectsDelete Text Source #

Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.

odGeneration :: Lens' ObjectsDelete (Maybe Int64) Source #

If present, permanently deletes a specific revision of this object (as opposed to the latest version, the default).