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 |
Imports more rows into a table.
See: Fusion Tables API Reference for fusiontables.table.importRows
.
Synopsis
- type TableImportRowsResource = ("fusiontables" :> ("v2" :> ("tables" :> (Capture "tableId" Text :> ("import" :> (QueryParam "startLine" (Textual Int32) :> (QueryParam "endLine" (Textual Int32) :> (QueryParam "delimiter" Text :> (QueryParam "encoding" Text :> (QueryParam "isStrict" Bool :> (QueryParam "alt" AltJSON :> Post '[JSON] Import))))))))))) :<|> ("upload" :> ("fusiontables" :> ("v2" :> ("tables" :> (Capture "tableId" Text :> ("import" :> (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] Import))))))))))))))
- tableImportRows :: Text -> TableImportRows
- data TableImportRows
- tirStartLine :: Lens' TableImportRows (Maybe Int32)
- tirEndLine :: Lens' TableImportRows (Maybe Int32)
- tirTableId :: Lens' TableImportRows Text
- tirDelimiter :: Lens' TableImportRows (Maybe Text)
- tirEncoding :: Lens' TableImportRows (Maybe Text)
- tirIsStrict :: Lens' TableImportRows (Maybe Bool)
REST Resource
type TableImportRowsResource = ("fusiontables" :> ("v2" :> ("tables" :> (Capture "tableId" Text :> ("import" :> (QueryParam "startLine" (Textual Int32) :> (QueryParam "endLine" (Textual Int32) :> (QueryParam "delimiter" Text :> (QueryParam "encoding" Text :> (QueryParam "isStrict" Bool :> (QueryParam "alt" AltJSON :> Post '[JSON] Import))))))))))) :<|> ("upload" :> ("fusiontables" :> ("v2" :> ("tables" :> (Capture "tableId" Text :> ("import" :> (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] Import)))))))))))))) Source #
A resource alias for fusiontables.table.importRows
method which the
TableImportRows
request conforms to.
Creating a Request
Creates a value of TableImportRows
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TableImportRows Source #
Imports more rows into a table.
See: tableImportRows
smart constructor.
Instances
Request Lenses
tirStartLine :: Lens' TableImportRows (Maybe Int32) Source #
The index of the first line from which to start importing, inclusive. Default is 0.
tirEndLine :: Lens' TableImportRows (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.
tirTableId :: Lens' TableImportRows Text Source #
The table into which new rows are being imported.
tirDelimiter :: Lens' TableImportRows (Maybe Text) Source #
The delimiter used to separate cell values. This can only consist of a single character. Default is ,.
tirEncoding :: Lens' TableImportRows (Maybe Text) Source #
The encoding of the content. Default is UTF-8. Use auto-detect if you are unsure of the encoding.
tirIsStrict :: Lens' TableImportRows (Maybe Bool) Source #
Whether the imported CSV must have the same number of values for each row. If false, rows with fewer values will be padded with empty values. Default is true.