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 |
Replaces rows of an existing table. Current rows remain visible until all replacement rows are ready.
See: Fusion Tables API Reference for fusiontables.table.replaceRows
.
Synopsis
- type TableReplaceRowsResource = ("fusiontables" :> ("v2" :> ("tables" :> (Capture "tableId" Text :> ("replace" :> (QueryParam "startLine" (Textual Int32) :> (QueryParam "endLine" (Textual Int32) :> (QueryParam "delimiter" Text :> (QueryParam "encoding" Text :> (QueryParam "isStrict" Bool :> (QueryParam "alt" AltJSON :> Post '[JSON] Task))))))))))) :<|> ("upload" :> ("fusiontables" :> ("v2" :> ("tables" :> (Capture "tableId" Text :> ("replace" :> (QueryParam "startLine" (Textual Int32) :> (QueryParam "endLine" (Textual Int32) :> (QueryParam "delimiter" Text :> (QueryParam "encoding" Text :> (QueryParam "isStrict" Bool :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" AltMedia :> (AltMedia :> Post '[JSON] Task))))))))))))))
- tableReplaceRows :: Text -> TableReplaceRows
- data TableReplaceRows
- trrStartLine :: Lens' TableReplaceRows (Maybe Int32)
- trrEndLine :: Lens' TableReplaceRows (Maybe Int32)
- trrTableId :: Lens' TableReplaceRows Text
- trrDelimiter :: Lens' TableReplaceRows (Maybe Text)
- trrEncoding :: Lens' TableReplaceRows (Maybe Text)
- trrIsStrict :: Lens' TableReplaceRows (Maybe Bool)
REST Resource
type TableReplaceRowsResource = ("fusiontables" :> ("v2" :> ("tables" :> (Capture "tableId" Text :> ("replace" :> (QueryParam "startLine" (Textual Int32) :> (QueryParam "endLine" (Textual Int32) :> (QueryParam "delimiter" Text :> (QueryParam "encoding" Text :> (QueryParam "isStrict" Bool :> (QueryParam "alt" AltJSON :> Post '[JSON] Task))))))))))) :<|> ("upload" :> ("fusiontables" :> ("v2" :> ("tables" :> (Capture "tableId" Text :> ("replace" :> (QueryParam "startLine" (Textual Int32) :> (QueryParam "endLine" (Textual Int32) :> (QueryParam "delimiter" Text :> (QueryParam "encoding" Text :> (QueryParam "isStrict" Bool :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" AltMedia :> (AltMedia :> Post '[JSON] Task)))))))))))))) Source #
A resource alias for fusiontables.table.replaceRows
method which the
TableReplaceRows
request conforms to.
Creating a Request
Creates a value of TableReplaceRows
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TableReplaceRows Source #
Replaces rows of an existing table. Current rows remain visible until all replacement rows are ready.
See: tableReplaceRows
smart constructor.
Instances
Request Lenses
trrStartLine :: Lens' TableReplaceRows (Maybe Int32) Source #
The index of the first line from which to start importing, inclusive. Default is 0.
trrEndLine :: Lens' TableReplaceRows (Maybe Int32) Source #
The index of the line up to which data will be imported. Default is to import the entire file. If endLine is negative, it is an offset from the end of the file; the imported content will exclude the last endLine lines.
trrTableId :: Lens' TableReplaceRows Text Source #
Table whose rows will be replaced.
trrDelimiter :: Lens' TableReplaceRows (Maybe Text) Source #
The delimiter used to separate cell values. This can only consist of a single character. Default is ,.
trrEncoding :: Lens' TableReplaceRows (Maybe Text) Source #
The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the encoding.
trrIsStrict :: Lens' TableReplaceRows (Maybe Bool) Source #
Whether the imported CSV must have the same number of column values for each row. If true, throws an exception if the CSV does not have the same number of columns. If false, rows with fewer column values will be padded with empty values. Default is true.