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 |
Locks retention policy on a bucket.
See: Cloud Storage JSON API Reference for storage.buckets.lockRetentionPolicy
.
Synopsis
- type BucketsLockRetentionPolicyResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("lockRetentionPolicy" :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] Bucket)))))))
- bucketsLockRetentionPolicy :: Int64 -> Text -> BucketsLockRetentionPolicy
- data BucketsLockRetentionPolicy
- blrpIfMetagenerationMatch :: Lens' BucketsLockRetentionPolicy Int64
- blrpBucket :: Lens' BucketsLockRetentionPolicy Text
- blrpUserProject :: Lens' BucketsLockRetentionPolicy (Maybe Text)
REST Resource
type BucketsLockRetentionPolicyResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("lockRetentionPolicy" :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] Bucket))))))) Source #
A resource alias for storage.buckets.lockRetentionPolicy
method which the
BucketsLockRetentionPolicy
request conforms to.
Creating a Request
bucketsLockRetentionPolicy Source #
Creates a value of BucketsLockRetentionPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BucketsLockRetentionPolicy Source #
Locks retention policy on a bucket.
See: bucketsLockRetentionPolicy
smart constructor.
Instances
Request Lenses
blrpIfMetagenerationMatch :: Lens' BucketsLockRetentionPolicy Int64 Source #
Makes the operation conditional on whether bucket's current metageneration matches the given value.
blrpBucket :: Lens' BucketsLockRetentionPolicy Text Source #
Name of a bucket.
blrpUserProject :: Lens' BucketsLockRetentionPolicy (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.