| Copyright | (c) 2015 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.Table.Patch
Description
Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.
See: Fusion Tables API Reference for fusiontables.table.patch.
- type TablePatchResource = "fusiontables" :> ("v2" :> ("tables" :> (Capture "tableId" Text :> (QueryParam "replaceViewDefinition" Bool :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Table :> Patch `[JSON]` Table))))))
- tablePatch :: Table -> Text -> TablePatch
- data TablePatch
- tpPayload :: Lens' TablePatch Table
- tpReplaceViewDefinition :: Lens' TablePatch (Maybe Bool)
- tpTableId :: Lens' TablePatch Text
REST Resource
type TablePatchResource = "fusiontables" :> ("v2" :> ("tables" :> (Capture "tableId" Text :> (QueryParam "replaceViewDefinition" Bool :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Table :> Patch `[JSON]` Table)))))) Source
A resource alias for fusiontables.table.patch method which the
TablePatch request conforms to.
Creating a Request
Arguments
| :: Table | |
| -> Text | |
| -> TablePatch |
Creates a value of TablePatch with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TablePatch Source
Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.
See: tablePatch smart constructor.
Instances
Request Lenses
tpPayload :: Lens' TablePatch Table Source
Multipart request metadata.
tpReplaceViewDefinition :: Lens' TablePatch (Maybe Bool) Source
Whether the view definition is also updated. The specified view definition replaces the existing one. Only a view can be updated with a new definition.
tpTableId :: Lens' TablePatch Text Source
ID of the table that is being updated.