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 an object's metadata.
See: Cloud Storage JSON API Reference for storage.objects.patch
.
Synopsis
- type ObjectsPatchResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "ifGenerationNotMatch" (Textual Int64) :> (QueryParam "ifGenerationMatch" (Textual Int64) :> (QueryParam "predefinedAcl" ObjectsPatchPredefinedACL :> (QueryParam "userProject" Text :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" ObjectsPatchProjection :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Object :> Patch '[JSON] Object)))))))))))))))
- objectsPatch :: Text -> Object -> Text -> ObjectsPatch
- data ObjectsPatch
- opIfMetagenerationMatch :: Lens' ObjectsPatch (Maybe Int64)
- opIfGenerationNotMatch :: Lens' ObjectsPatch (Maybe Int64)
- opIfGenerationMatch :: Lens' ObjectsPatch (Maybe Int64)
- opPredefinedACL :: Lens' ObjectsPatch (Maybe ObjectsPatchPredefinedACL)
- opBucket :: Lens' ObjectsPatch Text
- opPayload :: Lens' ObjectsPatch Object
- opUserProject :: Lens' ObjectsPatch (Maybe Text)
- opIfMetagenerationNotMatch :: Lens' ObjectsPatch (Maybe Int64)
- opObject :: Lens' ObjectsPatch Text
- opProjection :: Lens' ObjectsPatch (Maybe ObjectsPatchProjection)
- opGeneration :: Lens' ObjectsPatch (Maybe Int64)
REST Resource
type ObjectsPatchResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "ifGenerationNotMatch" (Textual Int64) :> (QueryParam "ifGenerationMatch" (Textual Int64) :> (QueryParam "predefinedAcl" ObjectsPatchPredefinedACL :> (QueryParam "userProject" Text :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" ObjectsPatchProjection :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Object :> Patch '[JSON] Object))))))))))))))) Source #
A resource alias for storage.objects.patch
method which the
ObjectsPatch
request conforms to.
Creating a Request
Creates a value of ObjectsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ObjectsPatch Source #
Patches an object's metadata.
See: objectsPatch
smart constructor.
Instances
Request Lenses
opIfMetagenerationMatch :: Lens' ObjectsPatch (Maybe Int64) Source #
Makes the operation conditional on whether the object's current metageneration matches the given value.
opIfGenerationNotMatch :: Lens' ObjectsPatch (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.
opIfGenerationMatch :: Lens' ObjectsPatch (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.
opPredefinedACL :: Lens' ObjectsPatch (Maybe ObjectsPatchPredefinedACL) Source #
Apply a predefined set of access controls to this object.
opUserProject :: Lens' ObjectsPatch (Maybe Text) Source #
The project to be billed for this request, for Requester Pays buckets.
opIfMetagenerationNotMatch :: Lens' ObjectsPatch (Maybe Int64) Source #
Makes the operation conditional on whether the object's current metageneration does not match the given value.
opObject :: Lens' ObjectsPatch Text Source #
Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.
opProjection :: Lens' ObjectsPatch (Maybe ObjectsPatchProjection) Source #
Set of properties to return. Defaults to full.
opGeneration :: Lens' ObjectsPatch (Maybe Int64) Source #
If present, selects a specific revision of this object (as opposed to the latest version, the default).