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 |
Creates a new release which makes the content of the specified version actively display on the site.
See: Firebase Hosting API Reference for firebasehosting.sites.releases.create
.
Synopsis
- type SitesReleasesCreateResource = "v1beta1" :> (Capture "parent" Text :> ("releases" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "versionName" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Release :> Post '[JSON] Release))))))))))
- sitesReleasesCreate :: Text -> Release -> SitesReleasesCreate
- data SitesReleasesCreate
- srcParent :: Lens' SitesReleasesCreate Text
- srcXgafv :: Lens' SitesReleasesCreate (Maybe Xgafv)
- srcUploadProtocol :: Lens' SitesReleasesCreate (Maybe Text)
- srcVersionName :: Lens' SitesReleasesCreate (Maybe Text)
- srcAccessToken :: Lens' SitesReleasesCreate (Maybe Text)
- srcUploadType :: Lens' SitesReleasesCreate (Maybe Text)
- srcPayload :: Lens' SitesReleasesCreate Release
- srcCallback :: Lens' SitesReleasesCreate (Maybe Text)
REST Resource
type SitesReleasesCreateResource = "v1beta1" :> (Capture "parent" Text :> ("releases" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "versionName" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Release :> Post '[JSON] Release)))))))))) Source #
A resource alias for firebasehosting.sites.releases.create
method which the
SitesReleasesCreate
request conforms to.
Creating a Request
Creates a value of SitesReleasesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SitesReleasesCreate Source #
Creates a new release which makes the content of the specified version actively display on the site.
See: sitesReleasesCreate
smart constructor.
Instances
Request Lenses
srcParent :: Lens' SitesReleasesCreate Text Source #
The site that the release belongs to, in the format: 'sites\/site-name'
srcUploadProtocol :: Lens' SitesReleasesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
srcVersionName :: Lens' SitesReleasesCreate (Maybe Text) Source #
The unique identifier for a version, in the format: '\/sites\/site-name\/versions\/versionID' The site-name in this version identifier must match the site-name in the `parent` parameter. This query parameter must be empty if the `type` field in the request body is `SITE_DISABLE`.
srcAccessToken :: Lens' SitesReleasesCreate (Maybe Text) Source #
OAuth access token.
srcUploadType :: Lens' SitesReleasesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
srcPayload :: Lens' SitesReleasesCreate Release Source #
Multipart request metadata.
srcCallback :: Lens' SitesReleasesCreate (Maybe Text) Source #
JSONP