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 |
Sets the Hosting metadata for a specific site.
See: Firebase Hosting API Reference for firebasehosting.sites.updateConfig
.
Synopsis
- type SitesUpdateConfigResource = "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] SiteConfig :> Patch '[JSON] SiteConfig)))))))))
- sitesUpdateConfig :: SiteConfig -> Text -> SitesUpdateConfig
- data SitesUpdateConfig
- sucXgafv :: Lens' SitesUpdateConfig (Maybe Xgafv)
- sucUploadProtocol :: Lens' SitesUpdateConfig (Maybe Text)
- sucUpdateMask :: Lens' SitesUpdateConfig (Maybe GFieldMask)
- sucAccessToken :: Lens' SitesUpdateConfig (Maybe Text)
- sucUploadType :: Lens' SitesUpdateConfig (Maybe Text)
- sucPayload :: Lens' SitesUpdateConfig SiteConfig
- sucName :: Lens' SitesUpdateConfig Text
- sucCallback :: Lens' SitesUpdateConfig (Maybe Text)
REST Resource
type SitesUpdateConfigResource = "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] SiteConfig :> Patch '[JSON] SiteConfig))))))))) Source #
A resource alias for firebasehosting.sites.updateConfig
method which the
SitesUpdateConfig
request conforms to.
Creating a Request
Creates a value of SitesUpdateConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SitesUpdateConfig Source #
Sets the Hosting metadata for a specific site.
See: sitesUpdateConfig
smart constructor.
Instances
Request Lenses
sucUploadProtocol :: Lens' SitesUpdateConfig (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
sucUpdateMask :: Lens' SitesUpdateConfig (Maybe GFieldMask) Source #
A set of field names from your site configuration that you want to update. A field will be overwritten if, and only if, it's in the mask. If a mask is not provided then a default mask of only `max_versions` will be used.
sucAccessToken :: Lens' SitesUpdateConfig (Maybe Text) Source #
OAuth access token.
sucUploadType :: Lens' SitesUpdateConfig (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sucPayload :: Lens' SitesUpdateConfig SiteConfig Source #
Multipart request metadata.
sucName :: Lens' SitesUpdateConfig Text Source #
Required. The site for which to update the SiteConfig, in the format: 'sites\/site-name\/config'
sucCallback :: Lens' SitesUpdateConfig (Maybe Text) Source #
JSONP