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 the specified metadata for a version. Note that this method will fail with `FAILED_PRECONDITION` in the event of an invalid state transition. The only valid transition for a version is currently from a `CREATED` status to a `FINALIZED` status. Use `DeleteVersion` to set the status of a version to `DELETED`.
See: Firebase Hosting API Reference for firebasehosting.sites.versions.patch
.
Synopsis
- type SitesVersionsPatchResource = "v1beta1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Version :> Patch '[JSON] Version)))))))))
- sitesVersionsPatch :: Version -> Text -> SitesVersionsPatch
- data SitesVersionsPatch
- svpXgafv :: Lens' SitesVersionsPatch (Maybe Xgafv)
- svpUploadProtocol :: Lens' SitesVersionsPatch (Maybe Text)
- svpUpdateMask :: Lens' SitesVersionsPatch (Maybe GFieldMask)
- svpAccessToken :: Lens' SitesVersionsPatch (Maybe Text)
- svpUploadType :: Lens' SitesVersionsPatch (Maybe Text)
- svpPayload :: Lens' SitesVersionsPatch Version
- svpName :: Lens' SitesVersionsPatch Text
- svpCallback :: Lens' SitesVersionsPatch (Maybe Text)
REST Resource
type SitesVersionsPatchResource = "v1beta1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Version :> Patch '[JSON] Version))))))))) Source #
A resource alias for firebasehosting.sites.versions.patch
method which the
SitesVersionsPatch
request conforms to.
Creating a Request
Creates a value of SitesVersionsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SitesVersionsPatch Source #
Updates the specified metadata for a version. Note that this method will fail with `FAILED_PRECONDITION` in the event of an invalid state transition. The only valid transition for a version is currently from a `CREATED` status to a `FINALIZED` status. Use `DeleteVersion` to set the status of a version to `DELETED`.
See: sitesVersionsPatch
smart constructor.
Instances
Request Lenses
svpUploadProtocol :: Lens' SitesVersionsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
svpAccessToken :: Lens' SitesVersionsPatch (Maybe Text) Source #
OAuth access token.
svpUploadType :: Lens' SitesVersionsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
svpPayload :: Lens' SitesVersionsPatch Version Source #
Multipart request metadata.
svpName :: Lens' SitesVersionsPatch Text Source #
The unique identifier for a version, in the format: 'sites\/site-name\/versions\/versionID' This name is provided in the response body when you call the `CreateVersion` endpoint.
svpCallback :: Lens' SitesVersionsPatch (Maybe Text) Source #
JSONP