gogol-fusiontables-0.4.0: Google Fusion Tables SDK.

Copyright(c) 2015-2016 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.ReplaceRows

Contents

Description

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

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

tableReplaceRows Source #

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
Eq TableReplaceRows Source # 
Instance details

Defined in Network.Google.Resource.FusionTables.Table.ReplaceRows

Data TableReplaceRows Source # 
Instance details

Defined in Network.Google.Resource.FusionTables.Table.ReplaceRows

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TableReplaceRows -> c TableReplaceRows #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TableReplaceRows #

toConstr :: TableReplaceRows -> Constr #

dataTypeOf :: TableReplaceRows -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TableReplaceRows) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TableReplaceRows) #

gmapT :: (forall b. Data b => b -> b) -> TableReplaceRows -> TableReplaceRows #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TableReplaceRows -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TableReplaceRows -> r #

gmapQ :: (forall d. Data d => d -> u) -> TableReplaceRows -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TableReplaceRows -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TableReplaceRows -> m TableReplaceRows #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TableReplaceRows -> m TableReplaceRows #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TableReplaceRows -> m TableReplaceRows #

Show TableReplaceRows Source # 
Instance details

Defined in Network.Google.Resource.FusionTables.Table.ReplaceRows

Generic TableReplaceRows Source # 
Instance details

Defined in Network.Google.Resource.FusionTables.Table.ReplaceRows

Associated Types

type Rep TableReplaceRows :: Type -> Type #

GoogleRequest TableReplaceRows Source # 
Instance details

Defined in Network.Google.Resource.FusionTables.Table.ReplaceRows

Associated Types

type Rs TableReplaceRows :: Type #

type Scopes TableReplaceRows :: [Symbol] #

GoogleRequest (MediaUpload TableReplaceRows) Source # 
Instance details

Defined in Network.Google.Resource.FusionTables.Table.ReplaceRows

type Rep TableReplaceRows Source # 
Instance details

Defined in Network.Google.Resource.FusionTables.Table.ReplaceRows

type Rep TableReplaceRows = D1 (MetaData "TableReplaceRows" "Network.Google.Resource.FusionTables.Table.ReplaceRows" "gogol-fusiontables-0.4.0-Jb8aaUwQ1vj5yEgIm76X5I" False) (C1 (MetaCons "TableReplaceRows'" PrefixI True) ((S1 (MetaSel (Just "_trrStartLine") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: (S1 (MetaSel (Just "_trrEndLine") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_trrTableId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: (S1 (MetaSel (Just "_trrDelimiter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_trrEncoding") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_trrIsStrict") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))))
type Scopes TableReplaceRows Source # 
Instance details

Defined in Network.Google.Resource.FusionTables.Table.ReplaceRows

type Scopes TableReplaceRows = "https://www.googleapis.com/auth/fusiontables" ': ([] :: [Symbol])
type Rs TableReplaceRows Source # 
Instance details

Defined in Network.Google.Resource.FusionTables.Table.ReplaceRows

type Scopes (MediaUpload TableReplaceRows) Source # 
Instance details

Defined in Network.Google.Resource.FusionTables.Table.ReplaceRows

type Rs (MediaUpload TableReplaceRows) Source # 
Instance details

Defined in Network.Google.Resource.FusionTables.Table.ReplaceRows

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.