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 |
Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
See: Cloud Storage JSON API Reference for storage.buckets.update
.
Synopsis
- type BucketsUpdateResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "predefinedAcl" BucketsUpdatePredefinedACL :> (QueryParam "predefinedDefaultObjectAcl" BucketsUpdatePredefinedDefaultObjectACL :> (QueryParam "userProject" Text :> (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)
- buUserProject :: Lens' BucketsUpdate (Maybe Text)
- 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 "userProject" Text :> (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. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
See: bucketsUpdate
smart constructor.
Instances
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.
buPredefinedDefaultObjectACL :: Lens' BucketsUpdate (Maybe BucketsUpdatePredefinedDefaultObjectACL) Source #
Apply a predefined set of default object access controls to this bucket.
buUserProject :: Lens' BucketsUpdate (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.
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.