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 version for a site.
See: Firebase Hosting API Reference for firebasehosting.sites.versions.create
.
Synopsis
- type SitesVersionsCreateResource = "v1beta1" :> (Capture "parent" Text :> ("versions" :> (QueryParam "sizeBytes" (Textual Int64) :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "versionId" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Version :> Post '[JSON] Version)))))))))))
- sitesVersionsCreate :: Text -> Version -> SitesVersionsCreate
- data SitesVersionsCreate
- svcSizeBytes :: Lens' SitesVersionsCreate (Maybe Int64)
- svcParent :: Lens' SitesVersionsCreate Text
- svcXgafv :: Lens' SitesVersionsCreate (Maybe Xgafv)
- svcVersionId :: Lens' SitesVersionsCreate (Maybe Text)
- svcUploadProtocol :: Lens' SitesVersionsCreate (Maybe Text)
- svcAccessToken :: Lens' SitesVersionsCreate (Maybe Text)
- svcUploadType :: Lens' SitesVersionsCreate (Maybe Text)
- svcPayload :: Lens' SitesVersionsCreate Version
- svcCallback :: Lens' SitesVersionsCreate (Maybe Text)
REST Resource
type SitesVersionsCreateResource = "v1beta1" :> (Capture "parent" Text :> ("versions" :> (QueryParam "sizeBytes" (Textual Int64) :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "versionId" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Version :> Post '[JSON] Version))))))))))) Source #
A resource alias for firebasehosting.sites.versions.create
method which the
SitesVersionsCreate
request conforms to.
Creating a Request
Creates a value of SitesVersionsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SitesVersionsCreate Source #
Creates a new version for a site.
See: sitesVersionsCreate
smart constructor.
Instances
Request Lenses
svcSizeBytes :: Lens' SitesVersionsCreate (Maybe Int64) Source #
The self-reported size of the version. This value is used for a pre-emptive quota check for legacy version uploads.
svcParent :: Lens' SitesVersionsCreate Text Source #
Required. The parent to create the version for, in the format: 'sites\/site-name'
svcVersionId :: Lens' SitesVersionsCreate (Maybe Text) Source #
A unique id for the new version. This is only specified for legacy version creations.
svcUploadProtocol :: Lens' SitesVersionsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
svcAccessToken :: Lens' SitesVersionsCreate (Maybe Text) Source #
OAuth access token.
svcUploadType :: Lens' SitesVersionsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
svcPayload :: Lens' SitesVersionsCreate Version Source #
Multipart request metadata.
svcCallback :: Lens' SitesVersionsCreate (Maybe Text) Source #
JSONP