Copyright | (c) 2015 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 |
Updates a bucket.
See: Cloud Storage JSON API Reference for storage.buckets.update
.
- type BucketsUpdateResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "predefinedAcl" BucketsUpdatePredefinedACL :> (QueryParam "predefinedDefaultObjectAcl" BucketsUpdatePredefinedDefaultObjectACL :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" BucketsUpdateProjection :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Bucket :> Put `[JSON]` Bucket))))))))))
- bucketsUpdate :: Text -> Bucket -> BucketsUpdate
- data BucketsUpdate
- buIfMetagenerationMatch :: Lens' BucketsUpdate (Maybe Int64)
- buPredefinedACL :: Lens' BucketsUpdate (Maybe BucketsUpdatePredefinedACL)
- buBucket :: Lens' BucketsUpdate Text
- buPayload :: Lens' BucketsUpdate Bucket
- buPredefinedDefaultObjectACL :: Lens' BucketsUpdate (Maybe BucketsUpdatePredefinedDefaultObjectACL)
- buIfMetagenerationNotMatch :: Lens' BucketsUpdate (Maybe Int64)
- buProjection :: Lens' BucketsUpdate (Maybe BucketsUpdateProjection)
REST Resource
type BucketsUpdateResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "predefinedAcl" BucketsUpdatePredefinedACL :> (QueryParam "predefinedDefaultObjectAcl" BucketsUpdatePredefinedDefaultObjectACL :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" BucketsUpdateProjection :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Bucket :> Put `[JSON]` Bucket)))))))))) Source
A resource alias for storage.buckets.update
method which the
BucketsUpdate
request conforms to.
Creating a Request
Creates a value of BucketsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BucketsUpdate Source
Updates a bucket.
See: bucketsUpdate
smart constructor.
Request Lenses
buIfMetagenerationMatch :: Lens' BucketsUpdate (Maybe Int64) Source
Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
buPredefinedACL :: Lens' BucketsUpdate (Maybe BucketsUpdatePredefinedACL) Source
Apply a predefined set of access controls to this bucket.
buBucket :: Lens' BucketsUpdate Text Source
Name of a bucket.
buPayload :: Lens' BucketsUpdate Bucket Source
Multipart request metadata.
buPredefinedDefaultObjectACL :: Lens' BucketsUpdate (Maybe BucketsUpdatePredefinedDefaultObjectACL) Source
Apply a predefined set of default object access controls to this bucket.
buIfMetagenerationNotMatch :: Lens' BucketsUpdate (Maybe Int64) Source
Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
buProjection :: Lens' BucketsUpdate (Maybe BucketsUpdateProjection) Source
Set of properties to return. Defaults to full.