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 |
Patches 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.patch
.
Synopsis
- type BucketsPatchResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "predefinedAcl" BucketsPatchPredefinedACL :> (QueryParam "predefinedDefaultObjectAcl" BucketsPatchPredefinedDefaultObjectACL :> (QueryParam "userProject" Text :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" BucketsPatchProjection :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Bucket :> Patch '[JSON] Bucket)))))))))))
- bucketsPatch :: Text -> Bucket -> BucketsPatch
- data BucketsPatch
- bpIfMetagenerationMatch :: Lens' BucketsPatch (Maybe Int64)
- bpPredefinedACL :: Lens' BucketsPatch (Maybe BucketsPatchPredefinedACL)
- bpBucket :: Lens' BucketsPatch Text
- bpPayload :: Lens' BucketsPatch Bucket
- bpPredefinedDefaultObjectACL :: Lens' BucketsPatch (Maybe BucketsPatchPredefinedDefaultObjectACL)
- bpUserProject :: Lens' BucketsPatch (Maybe Text)
- bpIfMetagenerationNotMatch :: Lens' BucketsPatch (Maybe Int64)
- bpProjection :: Lens' BucketsPatch (Maybe BucketsPatchProjection)
REST Resource
type BucketsPatchResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "predefinedAcl" BucketsPatchPredefinedACL :> (QueryParam "predefinedDefaultObjectAcl" BucketsPatchPredefinedDefaultObjectACL :> (QueryParam "userProject" Text :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" BucketsPatchProjection :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Bucket :> Patch '[JSON] Bucket))))))))))) Source #
A resource alias for storage.buckets.patch
method which the
BucketsPatch
request conforms to.
Creating a Request
Creates a value of BucketsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BucketsPatch Source #
Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
See: bucketsPatch
smart constructor.
Instances
Request Lenses
bpIfMetagenerationMatch :: Lens' BucketsPatch (Maybe Int64) Source #
Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
bpPredefinedACL :: Lens' BucketsPatch (Maybe BucketsPatchPredefinedACL) Source #
Apply a predefined set of access controls to this bucket.
bpPredefinedDefaultObjectACL :: Lens' BucketsPatch (Maybe BucketsPatchPredefinedDefaultObjectACL) Source #
Apply a predefined set of default object access controls to this bucket.
bpUserProject :: Lens' BucketsPatch (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.
bpIfMetagenerationNotMatch :: Lens' BucketsPatch (Maybe Int64) Source #
Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
bpProjection :: Lens' BucketsPatch (Maybe BucketsPatchProjection) Source #
Set of properties to return. Defaults to full.