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 |
Permanently deletes an empty bucket.
See: Cloud Storage JSON API Reference for storage.buckets.delete
.
Synopsis
- type BucketsDeleteResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "userProject" Text :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "alt" AltJSON :> Delete '[JSON] ())))))))
- bucketsDelete :: Text -> BucketsDelete
- data BucketsDelete
- bdIfMetagenerationMatch :: Lens' BucketsDelete (Maybe Int64)
- bdBucket :: Lens' BucketsDelete Text
- bdUserProject :: Lens' BucketsDelete (Maybe Text)
- bdIfMetagenerationNotMatch :: Lens' BucketsDelete (Maybe Int64)
REST Resource
type BucketsDeleteResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "userProject" Text :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "alt" AltJSON :> Delete '[JSON] ()))))))) Source #
A resource alias for storage.buckets.delete
method which the
BucketsDelete
request conforms to.
Creating a Request
Creates a value of BucketsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BucketsDelete Source #
Permanently deletes an empty bucket.
See: bucketsDelete
smart constructor.
Instances
Request Lenses
bdIfMetagenerationMatch :: Lens' BucketsDelete (Maybe Int64) Source #
If set, only deletes the bucket if its metageneration matches this value.
bdUserProject :: Lens' BucketsDelete (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.
bdIfMetagenerationNotMatch :: Lens' BucketsDelete (Maybe Int64) Source #
If set, only deletes the bucket if its metageneration does not match this value.