| 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 |
Network.Google.Resource.FusionTables.Template.Insert
Description
Creates a new template for the table.
See: Fusion Tables API Reference for fusiontables.template.insert.
Synopsis
- type TemplateInsertResource = "fusiontables" :> ("v2" :> ("tables" :> (Capture "tableId" Text :> ("templates" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Template :> Post '[JSON] Template))))))
- templateInsert :: Template -> Text -> TemplateInsert
- data TemplateInsert
- temPayload :: Lens' TemplateInsert Template
- temTableId :: Lens' TemplateInsert Text
REST Resource
type TemplateInsertResource = "fusiontables" :> ("v2" :> ("tables" :> (Capture "tableId" Text :> ("templates" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Template :> Post '[JSON] Template)))))) Source #
A resource alias for fusiontables.template.insert method which the
TemplateInsert request conforms to.
Creating a Request
Arguments
| :: Template | |
| -> Text | |
| -> TemplateInsert |
Creates a value of TemplateInsert with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TemplateInsert Source #
Creates a new template for the table.
See: templateInsert smart constructor.
Instances
Request Lenses
temPayload :: Lens' TemplateInsert Template Source #
Multipart request metadata.
temTableId :: Lens' TemplateInsert Text Source #
Table for which a new template is being created