Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- 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 "userProject" Text :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> Delete '[JSON] ()))))))))))))
- objectsDelete :: Text -> Text -> ObjectsDelete
- data ObjectsDelete
- odIfMetagenerationMatch :: Lens' ObjectsDelete (Maybe Int64)
- odIfGenerationNotMatch :: Lens' ObjectsDelete (Maybe Int64)
- odIfGenerationMatch :: Lens' ObjectsDelete (Maybe Int64)
- odBucket :: Lens' ObjectsDelete Text
- odUserProject :: Lens' ObjectsDelete (Maybe Text)
- odIfMetagenerationNotMatch :: Lens' ObjectsDelete (Maybe Int64)
- odObject :: Lens' ObjectsDelete Text
- odGeneration :: Lens' ObjectsDelete (Maybe Int64)
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 "userProject" Text :> (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
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
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. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
odIfGenerationMatch :: Lens' ObjectsDelete (Maybe Int64) Source #
Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
odUserProject :: Lens' ObjectsDelete (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.
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).