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 an object's metadata.
See: Cloud Storage JSON API Reference for storage.objects.update
.
Synopsis
- type ObjectsUpdateResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "ifGenerationNotMatch" (Textual Int64) :> (QueryParam "ifGenerationMatch" (Textual Int64) :> (QueryParam "predefinedAcl" ObjectsUpdatePredefinedACL :> (QueryParam "userProject" Text :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" ObjectsUpdateProjection :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Object :> Put '[JSON] Object)))))))))))))))
- objectsUpdate :: Text -> Object -> Text -> ObjectsUpdate
- data ObjectsUpdate
- ouIfMetagenerationMatch :: Lens' ObjectsUpdate (Maybe Int64)
- ouIfGenerationNotMatch :: Lens' ObjectsUpdate (Maybe Int64)
- ouIfGenerationMatch :: Lens' ObjectsUpdate (Maybe Int64)
- ouPredefinedACL :: Lens' ObjectsUpdate (Maybe ObjectsUpdatePredefinedACL)
- ouBucket :: Lens' ObjectsUpdate Text
- ouPayload :: Lens' ObjectsUpdate Object
- ouUserProject :: Lens' ObjectsUpdate (Maybe Text)
- ouIfMetagenerationNotMatch :: Lens' ObjectsUpdate (Maybe Int64)
- ouObject :: Lens' ObjectsUpdate Text
- ouProjection :: Lens' ObjectsUpdate (Maybe ObjectsUpdateProjection)
- ouGeneration :: Lens' ObjectsUpdate (Maybe Int64)
REST Resource
type ObjectsUpdateResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "ifGenerationNotMatch" (Textual Int64) :> (QueryParam "ifGenerationMatch" (Textual Int64) :> (QueryParam "predefinedAcl" ObjectsUpdatePredefinedACL :> (QueryParam "userProject" Text :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" ObjectsUpdateProjection :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Object :> Put '[JSON] Object))))))))))))))) Source #
A resource alias for storage.objects.update
method which the
ObjectsUpdate
request conforms to.
Creating a Request
Creates a value of ObjectsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ObjectsUpdate Source #
Updates an object's metadata.
See: objectsUpdate
smart constructor.
Instances
Request Lenses
ouIfMetagenerationMatch :: Lens' ObjectsUpdate (Maybe Int64) Source #
Makes the operation conditional on whether the object's current metageneration matches the given value.
ouIfGenerationNotMatch :: Lens' ObjectsUpdate (Maybe Int64) Source #
Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
ouIfGenerationMatch :: Lens' ObjectsUpdate (Maybe Int64) Source #
Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
ouPredefinedACL :: Lens' ObjectsUpdate (Maybe ObjectsUpdatePredefinedACL) Source #
Apply a predefined set of access controls to this object.
ouUserProject :: Lens' ObjectsUpdate (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.
ouIfMetagenerationNotMatch :: Lens' ObjectsUpdate (Maybe Int64) Source #
Makes the operation conditional on whether the object's current metageneration does not match the given value.
ouObject :: Lens' ObjectsUpdate Text Source #
Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.
ouProjection :: Lens' ObjectsUpdate (Maybe ObjectsUpdateProjection) Source #
Set of properties to return. Defaults to full.
ouGeneration :: Lens' ObjectsUpdate (Maybe Int64) Source #
If present, selects a specific revision of this object (as opposed to the latest version, the default).