gogol-fusiontables-0.0.1: Google Fusion Tables SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.FusionTables.Table.ImportRows

Contents

Description

Imports more rows into a table.

See: Fusion Tables API Reference for fusiontables.table.importRows.

Synopsis

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 :> (ReqBody `[OctetStream]` RequestBody :> Post `[JSON]` Import)))))))))))))) Source

A resource alias for fusiontables.table.importRows method which the TableImportRows request conforms to.

Creating a Request

tableImportRows Source

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:

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.