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.FusionTables

Contents

Description

API for working with Fusion Tables data.

See: Fusion Tables API Reference

Synopsis

Service Configuration

fusionTablesService :: Service Source

Default request referring to version v2 of the Fusion Tables API. This contains the host and root path used as a starting point for constructing service requests.

API Declaration

Resources

fusiontables.column.delete

fusiontables.column.get

fusiontables.column.insert

fusiontables.column.list

fusiontables.column.patch

fusiontables.column.update

fusiontables.query.sql

fusiontables.query.sqlGet

fusiontables.style.delete

fusiontables.style.get

fusiontables.style.insert

fusiontables.style.list

fusiontables.style.patch

fusiontables.style.update

fusiontables.table.copy

fusiontables.table.delete

fusiontables.table.get

fusiontables.table.importRows

fusiontables.table.importTable

fusiontables.table.insert

fusiontables.table.list

fusiontables.table.patch

fusiontables.table.replaceRows

fusiontables.table.update

fusiontables.task.delete

fusiontables.task.get

fusiontables.task.list

fusiontables.template.delete

fusiontables.template.get

fusiontables.template.insert

fusiontables.template.list

fusiontables.template.patch

fusiontables.template.update

Types

ColumnList

columnList :: ColumnList Source

Creates a value of ColumnList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

clTotalItems :: Lens' ColumnList (Maybe Int32) Source

Total number of columns for the table.

clNextPageToken :: Lens' ColumnList (Maybe Text) Source

Token used to access the next page of this result. No token is displayed if there are no more pages left.

clKind :: Lens' ColumnList Text Source

The kind of item this is. For a column list, this is always fusiontables#columnList.

clItems :: Lens' ColumnList [Column] Source

List of all requested columns.

TableList

tableList :: TableList Source

Creates a value of TableList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tlNextPageToken :: Lens' TableList (Maybe Text) Source

Token used to access the next page of this result. No token is displayed if there are no more pages left.

tlKind :: Lens' TableList Text Source

The kind of item this is. For table list, this is always fusiontables#tableList.

tlItems :: Lens' TableList [Table] Source

List of all requested tables.

StyleFunction

styleFunction :: StyleFunction Source

Creates a value of StyleFunction with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

sfBuckets :: Lens' StyleFunction [Bucket] Source

Bucket function that assigns a style based on the range a column value falls into.

sfKind :: Lens' StyleFunction (Maybe Text) Source

Stylers can be one of three kinds: "fusiontables#fromColumn if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; fusiontables#gradient if the styling of the row is to be based on applying the gradient function on the column value; or fusiontables#buckets if the styling is to based on the bucket into which the the column value falls.

sfGradient :: Lens' StyleFunction (Maybe StyleFunctionGradient) Source

Gradient function that interpolates a range of colors based on column value.

sfColumnName :: Lens' StyleFunction (Maybe Text) Source

Name of the column whose value is used in the style.

ColumnBaseColumn

data ColumnBaseColumn Source

Identifier of the base column. If present, this column is derived from the specified base column.

See: columnBaseColumn smart constructor.

columnBaseColumn :: ColumnBaseColumn Source

Creates a value of ColumnBaseColumn with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

cbcTableIndex :: Lens' ColumnBaseColumn (Maybe Int32) Source

Offset to the entry in the list of base tables in the table definition.

cbcColumnId :: Lens' ColumnBaseColumn (Maybe Int32) Source

The id of the column in the base table from which this column is derived.

SQLresponse

sQLresponse :: SQLresponse Source

Creates a value of SQLresponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

sqlKind :: Lens' SQLresponse Text Source

The kind of item this is. For responses to SQL queries, this is always fusiontables#sqlresponse.

sqlRows :: Lens' SQLresponse [[JSONValue]] Source

The rows in the table. For each cell we print out whatever cell value (e.g., numeric, string) exists. Thus it is important that each cell contains only one value.

sqlColumns :: Lens' SQLresponse [Text] Source

Columns in the table.

StyleFunctionGradientColorsItem

styleFunctionGradientColorsItem :: StyleFunctionGradientColorsItem Source

Creates a value of StyleFunctionGradientColorsItem with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

sfgciOpacity :: Lens' StyleFunctionGradientColorsItem (Maybe Double) Source

Opacity of the color: 0.0 (transparent) to 1.0 (opaque).

StyleSettingList

styleSettingList :: StyleSettingList Source

Creates a value of StyleSettingList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

sslTotalItems :: Lens' StyleSettingList (Maybe Int32) Source

Total number of styles for the table.

sslNextPageToken :: Lens' StyleSettingList (Maybe Text) Source

Token used to access the next page of this result. No token is displayed if there are no more styles left.

sslKind :: Lens' StyleSettingList Text Source

The kind of item this is. For a style list, this is always fusiontables#styleSettingList .

sslItems :: Lens' StyleSettingList [StyleSetting] Source

All requested style settings.

Bucket

data Bucket Source

Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.

See: bucket smart constructor.

bucket :: Bucket Source

Creates a value of Bucket with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

bMax :: Lens' Bucket (Maybe Double) Source

Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.

bColor :: Lens' Bucket (Maybe Text) Source

Color of line or the interior of a polygon in #RRGGBB format.

bWeight :: Lens' Bucket (Maybe Int32) Source

Width of a line (in pixels).

bIcon :: Lens' Bucket (Maybe Text) Source

Icon name used for a point.

bOpacity :: Lens' Bucket (Maybe Double) Source

Opacity of the color: 0.0 (transparent) to 1.0 (opaque).

bMin :: Lens' Bucket (Maybe Double) Source

Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.

Line

data Line Source

Represents a line geometry.

See: line smart constructor.

line :: Line Source

Creates a value of Line with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

lCoordinates :: Lens' Line [[Double]] Source

The coordinates that define the line.

lType :: Lens' Line Text Source

Type: A line geometry.

StyleSetting

data StyleSetting Source

Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId.

See: styleSetting smart constructor.

styleSetting :: StyleSetting Source

Creates a value of StyleSetting with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ssPolylineOptions :: Lens' StyleSetting (Maybe LineStyle) Source

Style definition for lines in the table.

ssPolygonOptions :: Lens' StyleSetting (Maybe PolygonStyle) Source

Style definition for polygons in the table.

ssMarkerOptions :: Lens' StyleSetting (Maybe PointStyle) Source

Style definition for points in the table.

ssKind :: Lens' StyleSetting Text Source

The kind of item this is. A StyleSetting contains the style definitions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions.

ssName :: Lens' StyleSetting (Maybe Text) Source

Optional name for the style setting.

ssStyleId :: Lens' StyleSetting (Maybe Int32) Source

Identifier for the style setting (unique only within tables).

ssTableId :: Lens' StyleSetting (Maybe Text) Source

Identifier for the table.

Point

data Point Source

Represents a point object.

See: point smart constructor.

point :: Point Source

Creates a value of Point with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

pCoordinates :: Lens' Point [Double] Source

The coordinates that define the point.

pType :: Lens' Point Text Source

Point: A point geometry.

Polygon

data Polygon Source

Represents a polygon object.

See: polygon smart constructor.

polygon :: Polygon Source

Creates a value of Polygon with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

polCoordinates :: Lens' Polygon [[[Double]]] Source

The coordinates that define the polygon.

polType :: Lens' Polygon Text Source

Type: A polygon geometry.

TaskList

data TaskList Source

Represents a list of tasks for a table.

See: taskList smart constructor.

taskList :: TaskList Source

Creates a value of TaskList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tTotalItems :: Lens' TaskList (Maybe Int32) Source

Total number of tasks for the table.

tNextPageToken :: Lens' TaskList (Maybe Text) Source

Token used to access the next page of this result. No token is displayed if there are no more pages left.

tKind :: Lens' TaskList Text Source

Type of the resource. This is always "fusiontables#taskList".

tItems :: Lens' TaskList [Task] Source

List of all requested tasks.

Geometry

geometry :: Geometry Source

Creates a value of Geometry with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

gGeometries :: Lens' Geometry [JSONValue] Source

The list of geometries in this geometry collection.

gType :: Lens' Geometry Text Source

Type: A collection of geometries.

TemplateList

templateList :: TemplateList Source

Creates a value of TemplateList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

temTotalItems :: Lens' TemplateList (Maybe Int32) Source

Total number of templates for the table.

temNextPageToken :: Lens' TemplateList (Maybe Text) Source

Token used to access the next page of this result. No token is displayed if there are no more pages left.

temKind :: Lens' TemplateList Text Source

The kind of item this is. For a template list, this is always fusiontables#templateList .

temItems :: Lens' TemplateList [Template] Source

List of all requested templates.

Import

data Import Source

Represents an import request.

See: import' smart constructor.

import' :: Import Source

Creates a value of Import with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

iKind :: Lens' Import Text Source

The kind of item this is. For an import, this is always fusiontables#import.

iNumRowsReceived :: Lens' Import (Maybe Int64) Source

The number of rows received from the import request.

Task

data Task Source

A background task on a table, initiated for time- or resource-consuming operations such as changing column types or deleting all rows.

See: task smart constructor.

task :: Task Source

Creates a value of Task with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tasProgress :: Lens' Task (Maybe Text) Source

Task percentage completion.

tasTaskId :: Lens' Task (Maybe Int64) Source

Identifier for the task.

tasKind :: Lens' Task Text Source

Type of the resource. This is always "fusiontables#task".

tasType :: Lens' Task (Maybe Text) Source

Type of background task.

tasStarted :: Lens' Task (Maybe Bool) Source

false while the table is busy with some other task. true if this background task is currently running.

Template

data Template Source

Represents the contents of InfoWindow templates.

See: template smart constructor.

template :: Template Source

Creates a value of Template with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ttAutomaticColumnNames :: Lens' Template [Text] Source

List of columns from which the template is to be automatically constructed. Only one of body or automaticColumns can be specified.

ttTemplateId :: Lens' Template (Maybe Int32) Source

Identifier for the template, unique within the context of a particular table.

ttKind :: Lens' Template Text Source

The kind of item this is. For a template, this is always fusiontables#template.

ttBody :: Lens' Template (Maybe Text) Source

Body of the template. It contains HTML with {column_name} to insert values from a particular column. The body is sanitized to remove certain tags, e.g., script. Only one of body or automaticColumns can be specified.

ttName :: Lens' Template (Maybe Text) Source

Optional name assigned to a template.

ttTableId :: Lens' Template (Maybe Text) Source

Identifier for the table for which the template is defined.

PointStyle

data PointStyle Source

Represents a PointStyle within a StyleSetting

See: pointStyle smart constructor.

pointStyle :: PointStyle Source

Creates a value of PointStyle with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

psIconName :: Lens' PointStyle (Maybe Text) Source

Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519

psIconStyler :: Lens' PointStyle (Maybe StyleFunction) Source

Column or a bucket value from which the icon name is to be determined.

PolygonStyle

polygonStyle :: PolygonStyle Source

Creates a value of PolygonStyle with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

psFillColorStyler :: Lens' PolygonStyle (Maybe StyleFunction) Source

Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon.

psFillColor :: Lens' PolygonStyle (Maybe Text) Source

Color of the interior of the polygon in #RRGGBB format.

psStrokeColorStyler :: Lens' PolygonStyle (Maybe StyleFunction) Source

Column-value, gradient or buckets styler that is used to determine the border color and opacity.

psStrokeWeight :: Lens' PolygonStyle (Maybe Int32) Source

Width of the polyon border in pixels.

psStrokeOpacity :: Lens' PolygonStyle (Maybe Double) Source

Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).

psFillOpacity :: Lens' PolygonStyle (Maybe Double) Source

Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).

psStrokeWeightStyler :: Lens' PolygonStyle (Maybe StyleFunction) Source

Column-value or bucket styler that is used to determine the width of the polygon border.

psStrokeColor :: Lens' PolygonStyle (Maybe Text) Source

Color of the polygon border in #RRGGBB format.

StyleFunctionGradient

styleFunctionGradient :: StyleFunctionGradient Source

Creates a value of StyleFunctionGradient with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

sfgMax :: Lens' StyleFunctionGradient (Maybe Double) Source

Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].

sfgMin :: Lens' StyleFunctionGradient (Maybe Double) Source

Lower-end of the interpolation range: rows with this value will be assigned to colors[0].

Column

data Column Source

Specifies the details of a column in a table.

See: column smart constructor.

column :: Column Source

Creates a value of Column with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

cColumnJSONSchema :: Lens' Column (Maybe Text) Source

JSON schema for interpreting JSON in this column.

cGraphPredicate :: Lens' Column (Maybe Text) Source

Column graph predicate. Used to map table to graph data model (subject,predicate,object) See W3C Graph-based Data Model.

cKind :: Lens' Column Text Source

The kind of item this is. For a column, this is always fusiontables#column.

cBaseColumn :: Lens' Column (Maybe ColumnBaseColumn) Source

Identifier of the base column. If present, this column is derived from the specified base column.

cColumnPropertiesJSON :: Lens' Column (Maybe Text) Source

JSON object containing custom column properties.

cName :: Lens' Column (Maybe Text) Source

Name of the column.

cType :: Lens' Column (Maybe Text) Source

Type of the column.

cFormatPattern :: Lens' Column (Maybe Text) Source

Format pattern. Acceptable values are DT_DATE_MEDIUMe.g Dec 24, 2008 DT_DATE_SHORTfor example 12/24/08 DT_DATE_TIME_MEDIUMfor example Dec 24, 2008 8:30:45 PM DT_DATE_TIME_SHORTfor example 12/24/08 8:30 PM DT_DAY_MONTH_2_DIGIT_YEARfor example 24/12/08 DT_DAY_MONTH_2_DIGIT_YEAR_TIMEfor example 24/12/08 20:30 DT_DAY_MONTH_2_DIGIT_YEAR_TIME_MERIDIANfor example 24/12/08 8:30 PM DT_DAY_MONTH_4_DIGIT_YEARfor example 24/12/2008 DT_DAY_MONTH_4_DIGIT_YEAR_TIMEfor example 24/12/2008 20:30 DT_DAY_MONTH_4_DIGIT_YEAR_TIME_MERIDIANfor example 24/12/2008 8:30 PM DT_ISO_YEAR_MONTH_DAYfor example 2008-12-24 DT_ISO_YEAR_MONTH_DAY_TIMEfor example 2008-12-24 20:30:45 DT_MONTH_DAY_4_DIGIT_YEARfor example 12/24/2008 DT_TIME_LONGfor example 8:30:45 PM UTC-6 DT_TIME_MEDIUMfor example 8:30:45 PM DT_TIME_SHORTfor example 8:30 PM DT_YEAR_ONLYfor example 2008 HIGHLIGHT_UNTYPED_CELLSHighlight cell data that does not match the data type NONENo formatting (default) NUMBER_CURRENCYfor example $1234.56 NUMBER_DEFAULTfor example 1,234.56 NUMBER_INTEGERfor example 1235 NUMBER_NO_SEPARATORfor example 1234.56 NUMBER_PERCENTfor example 123,456% NUMBER_SCIENTIFICfor example 1E3 STRING_EIGHT_LINE_IMAGEDisplays thumbnail images as tall as eight lines of text STRING_FOUR_LINE_IMAGEDisplays thumbnail images as tall as four lines of text STRING_JSON_TEXTAllows JSON editing of text in UI STRING_LINKTreats cell as a link (must start with http:// or https://) STRING_ONE_LINE_IMAGEDisplays thumbnail images as tall as one line of text STRING_VIDEO_OR_MAPDisplay a video or map thumbnail

cColumnId :: Lens' Column (Maybe Int32) Source

Identifier for the column.

cValidValues :: Lens' Column [Text] Source

List of valid values used to validate data and supply a drop-down list of values in the web application.

cValidateData :: Lens' Column (Maybe Bool) Source

If true, data entered via the web application is validated.

cDescription :: Lens' Column (Maybe Text) Source

Column description.

Table

data Table Source

Represents a table.

See: table smart constructor.

tabaIsExportable :: Lens' Table (Maybe Bool) Source

Variable for whether table is exportable.

tabaKind :: Lens' Table Text Source

The kind of item this is. For a table, this is always fusiontables#table.

tabaColumnPropertiesJSONSchema :: Lens' Table (Maybe Text) Source

Default JSON schema for validating all JSON column properties.

tabaTablePropertiesJSONSchema :: Lens' Table (Maybe Text) Source

JSON schema for validating the JSON table properties.

tabaName :: Lens' Table (Maybe Text) Source

Name assigned to a table.

tabaTablePropertiesJSON :: Lens' Table (Maybe Text) Source

JSON object containing custom table properties.

tabaColumns :: Lens' Table [Column] Source

Columns in the table.

tabaBaseTableIds :: Lens' Table [Text] Source

Base table identifier if this table is a view or merged table.

tabaTableId :: Lens' Table (Maybe Text) Source

Encrypted unique alphanumeric identifier for the table.

tabaSQL :: Lens' Table (Maybe Text) Source

SQL that encodes the table definition for derived tables.

tabaDescription :: Lens' Table (Maybe Text) Source

Description assigned to the table.

tabaAttribution :: Lens' Table (Maybe Text) Source

Attribution assigned to the table.

tabaAttributionLink :: Lens' Table (Maybe Text) Source

Optional link for attribution.

LineStyle

data LineStyle Source

Represents a LineStyle within a StyleSetting

See: lineStyle smart constructor.

lineStyle :: LineStyle Source

Creates a value of LineStyle with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

lsStrokeColorStyler :: Lens' LineStyle (Maybe StyleFunction) Source

Column-value, gradient or buckets styler that is used to determine the line color and opacity.

lsStrokeWeight :: Lens' LineStyle (Maybe Int32) Source

Width of the line in pixels.

lsStrokeOpacity :: Lens' LineStyle (Maybe Double) Source

Opacity of the line : 0.0 (transparent) to 1.0 (opaque).

lsStrokeWeightStyler :: Lens' LineStyle (Maybe StyleFunction) Source

Column-value or bucket styler that is used to determine the width of the line.

lsStrokeColor :: Lens' LineStyle (Maybe Text) Source

Color of the line in #RRGGBB format.