google-api-ruby-client/generated/google/apis/fusiontables_v2/classes.rb

1049 lines
39 KiB
Ruby

# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module FusiontablesV2
# Specifies the minimum and maximum values, the color, opacity, icon and weight
# of a bucket within a StyleSetting.
class Bucket
include Google::Apis::Core::Hashable
# Color of line or the interior of a polygon in #RRGGBB format.
# Corresponds to the JSON property `color`
# @return [String]
attr_accessor :color
# Icon name used for a point.
# Corresponds to the JSON property `icon`
# @return [String]
attr_accessor :icon
# Maximum value in the selected column for a row to be styled according to the
# bucket color, opacity, icon, or weight.
# Corresponds to the JSON property `max`
# @return [Float]
attr_accessor :max
# Minimum value in the selected column for a row to be styled according to the
# bucket color, opacity, icon, or weight.
# Corresponds to the JSON property `min`
# @return [Float]
attr_accessor :min
# Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
# Corresponds to the JSON property `opacity`
# @return [Float]
attr_accessor :opacity
# Width of a line (in pixels).
# Corresponds to the JSON property `weight`
# @return [Fixnum]
attr_accessor :weight
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@color = args[:color] unless args[:color].nil?
@icon = args[:icon] unless args[:icon].nil?
@max = args[:max] unless args[:max].nil?
@min = args[:min] unless args[:min].nil?
@opacity = args[:opacity] unless args[:opacity].nil?
@weight = args[:weight] unless args[:weight].nil?
end
end
# Specifies the details of a column in a table.
class Column
include Google::Apis::Core::Hashable
# Identifier of the base column. If present, this column is derived from the
# specified base column.
# Corresponds to the JSON property `baseColumn`
# @return [Google::Apis::FusiontablesV2::Column::BaseColumn]
attr_accessor :base_column
# Identifier for the column.
# Corresponds to the JSON property `columnId`
# @return [Fixnum]
attr_accessor :column_id
# JSON schema for interpreting JSON in this column.
# Corresponds to the JSON property `columnJsonSchema`
# @return [String]
attr_accessor :column_json_schema
# JSON object containing custom column properties.
# Corresponds to the JSON property `columnPropertiesJson`
# @return [String]
attr_accessor :column_properties_json
# Column description.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# 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
# Corresponds to the JSON property `formatPattern`
# @return [String]
attr_accessor :format_pattern
# Column graph predicate.
# Used to map table to graph data model (subject,predicate,object)
# See W3C Graph-based Data Model.
# Corresponds to the JSON property `graphPredicate`
# @return [String]
attr_accessor :graph_predicate
# The kind of item this is. For a column, this is always fusiontables#column.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the column.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Type of the column.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# List of valid values used to validate data and supply a drop-down list of
# values in the web application.
# Corresponds to the JSON property `validValues`
# @return [Array<String>]
attr_accessor :valid_values
# If true, data entered via the web application is validated.
# Corresponds to the JSON property `validateData`
# @return [Boolean]
attr_accessor :validate_data
alias_method :validate_data?, :validate_data
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@base_column = args[:base_column] unless args[:base_column].nil?
@column_id = args[:column_id] unless args[:column_id].nil?
@column_json_schema = args[:column_json_schema] unless args[:column_json_schema].nil?
@column_properties_json = args[:column_properties_json] unless args[:column_properties_json].nil?
@description = args[:description] unless args[:description].nil?
@format_pattern = args[:format_pattern] unless args[:format_pattern].nil?
@graph_predicate = args[:graph_predicate] unless args[:graph_predicate].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@type = args[:type] unless args[:type].nil?
@valid_values = args[:valid_values] unless args[:valid_values].nil?
@validate_data = args[:validate_data] unless args[:validate_data].nil?
end
# Identifier of the base column. If present, this column is derived from the
# specified base column.
class BaseColumn
include Google::Apis::Core::Hashable
# The id of the column in the base table from which this column is derived.
# Corresponds to the JSON property `columnId`
# @return [Fixnum]
attr_accessor :column_id
# Offset to the entry in the list of base tables in the table definition.
# Corresponds to the JSON property `tableIndex`
# @return [Fixnum]
attr_accessor :table_index
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@column_id = args[:column_id] unless args[:column_id].nil?
@table_index = args[:table_index] unless args[:table_index].nil?
end
end
end
# Represents a list of columns in a table.
class ColumnList
include Google::Apis::Core::Hashable
# List of all requested columns.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::FusiontablesV2::Column>]
attr_accessor :items
# The kind of item this is. For a column list, this is always fusiontables#
# columnList.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Token used to access the next page of this result. No token is displayed if
# there are no more pages left.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Total number of columns for the table.
# Corresponds to the JSON property `totalItems`
# @return [Fixnum]
attr_accessor :total_items
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@total_items = args[:total_items] unless args[:total_items].nil?
end
end
# Represents a Geometry object.
class Geometry
include Google::Apis::Core::Hashable
# The list of geometries in this geometry collection.
# Corresponds to the JSON property `geometries`
# @return [Array<Object>]
attr_accessor :geometries
#
# Corresponds to the JSON property `geometry`
# @return [Object]
attr_accessor :geometry
# Type: A collection of geometries.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@geometries = args[:geometries] unless args[:geometries].nil?
@geometry = args[:geometry] unless args[:geometry].nil?
@type = args[:type] unless args[:type].nil?
end
end
# Represents an import request.
class Import
include Google::Apis::Core::Hashable
# The kind of item this is. For an import, this is always fusiontables#import.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The number of rows received from the import request.
# Corresponds to the JSON property `numRowsReceived`
# @return [String]
attr_accessor :num_rows_received
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@num_rows_received = args[:num_rows_received] unless args[:num_rows_received].nil?
end
end
# Represents a line geometry.
class Line
include Google::Apis::Core::Hashable
# The coordinates that define the line.
# Corresponds to the JSON property `coordinates`
# @return [Array<Array<Float>>]
attr_accessor :coordinates
# Type: A line geometry.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@coordinates = args[:coordinates] unless args[:coordinates].nil?
@type = args[:type] unless args[:type].nil?
end
end
# Represents a LineStyle within a StyleSetting
class LineStyle
include Google::Apis::Core::Hashable
# Color of the line in #RRGGBB format.
# Corresponds to the JSON property `strokeColor`
# @return [String]
attr_accessor :stroke_color
# Represents a StyleFunction within a StyleSetting
# Corresponds to the JSON property `strokeColorStyler`
# @return [Google::Apis::FusiontablesV2::StyleFunction]
attr_accessor :stroke_color_styler
# Opacity of the line : 0.0 (transparent) to 1.0 (opaque).
# Corresponds to the JSON property `strokeOpacity`
# @return [Float]
attr_accessor :stroke_opacity
# Width of the line in pixels.
# Corresponds to the JSON property `strokeWeight`
# @return [Fixnum]
attr_accessor :stroke_weight
# Represents a StyleFunction within a StyleSetting
# Corresponds to the JSON property `strokeWeightStyler`
# @return [Google::Apis::FusiontablesV2::StyleFunction]
attr_accessor :stroke_weight_styler
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@stroke_color = args[:stroke_color] unless args[:stroke_color].nil?
@stroke_color_styler = args[:stroke_color_styler] unless args[:stroke_color_styler].nil?
@stroke_opacity = args[:stroke_opacity] unless args[:stroke_opacity].nil?
@stroke_weight = args[:stroke_weight] unless args[:stroke_weight].nil?
@stroke_weight_styler = args[:stroke_weight_styler] unless args[:stroke_weight_styler].nil?
end
end
# Represents a point object.
class Point
include Google::Apis::Core::Hashable
# The coordinates that define the point.
# Corresponds to the JSON property `coordinates`
# @return [Array<Float>]
attr_accessor :coordinates
# Point: A point geometry.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@coordinates = args[:coordinates] unless args[:coordinates].nil?
@type = args[:type] unless args[:type].nil?
end
end
# Represents a PointStyle within a StyleSetting
class PointStyle
include Google::Apis::Core::Hashable
# Name of the icon. Use values defined in http://www.google.com/fusiontables/
# DataSource?dsrcid=308519
# Corresponds to the JSON property `iconName`
# @return [String]
attr_accessor :icon_name
# Represents a StyleFunction within a StyleSetting
# Corresponds to the JSON property `iconStyler`
# @return [Google::Apis::FusiontablesV2::StyleFunction]
attr_accessor :icon_styler
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@icon_name = args[:icon_name] unless args[:icon_name].nil?
@icon_styler = args[:icon_styler] unless args[:icon_styler].nil?
end
end
# Represents a polygon object.
class Polygon
include Google::Apis::Core::Hashable
# The coordinates that define the polygon.
# Corresponds to the JSON property `coordinates`
# @return [Array<Array<Array<Float>>>]
attr_accessor :coordinates
# Type: A polygon geometry.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@coordinates = args[:coordinates] unless args[:coordinates].nil?
@type = args[:type] unless args[:type].nil?
end
end
# Represents a PolygonStyle within a StyleSetting
class PolygonStyle
include Google::Apis::Core::Hashable
# Color of the interior of the polygon in #RRGGBB format.
# Corresponds to the JSON property `fillColor`
# @return [String]
attr_accessor :fill_color
# Represents a StyleFunction within a StyleSetting
# Corresponds to the JSON property `fillColorStyler`
# @return [Google::Apis::FusiontablesV2::StyleFunction]
attr_accessor :fill_color_styler
# Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
# Corresponds to the JSON property `fillOpacity`
# @return [Float]
attr_accessor :fill_opacity
# Color of the polygon border in #RRGGBB format.
# Corresponds to the JSON property `strokeColor`
# @return [String]
attr_accessor :stroke_color
# Represents a StyleFunction within a StyleSetting
# Corresponds to the JSON property `strokeColorStyler`
# @return [Google::Apis::FusiontablesV2::StyleFunction]
attr_accessor :stroke_color_styler
# Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).
# Corresponds to the JSON property `strokeOpacity`
# @return [Float]
attr_accessor :stroke_opacity
# Width of the polyon border in pixels.
# Corresponds to the JSON property `strokeWeight`
# @return [Fixnum]
attr_accessor :stroke_weight
# Represents a StyleFunction within a StyleSetting
# Corresponds to the JSON property `strokeWeightStyler`
# @return [Google::Apis::FusiontablesV2::StyleFunction]
attr_accessor :stroke_weight_styler
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@fill_color = args[:fill_color] unless args[:fill_color].nil?
@fill_color_styler = args[:fill_color_styler] unless args[:fill_color_styler].nil?
@fill_opacity = args[:fill_opacity] unless args[:fill_opacity].nil?
@stroke_color = args[:stroke_color] unless args[:stroke_color].nil?
@stroke_color_styler = args[:stroke_color_styler] unless args[:stroke_color_styler].nil?
@stroke_opacity = args[:stroke_opacity] unless args[:stroke_opacity].nil?
@stroke_weight = args[:stroke_weight] unless args[:stroke_weight].nil?
@stroke_weight_styler = args[:stroke_weight_styler] unless args[:stroke_weight_styler].nil?
end
end
# Represents a response to a SQL statement.
class Sqlresponse
include Google::Apis::Core::Hashable
# Columns in the table.
# Corresponds to the JSON property `columns`
# @return [Array<String>]
attr_accessor :columns
# The kind of item this is. For responses to SQL queries, this is always
# fusiontables#sqlresponse.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# 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.
# Corresponds to the JSON property `rows`
# @return [Array<Array<Object>>]
attr_accessor :rows
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@columns = args[:columns] unless args[:columns].nil?
@kind = args[:kind] unless args[:kind].nil?
@rows = args[:rows] unless args[:rows].nil?
end
end
# Represents a StyleFunction within a StyleSetting
class StyleFunction
include Google::Apis::Core::Hashable
# Bucket function that assigns a style based on the range a column value falls
# into.
# Corresponds to the JSON property `buckets`
# @return [Array<Google::Apis::FusiontablesV2::Bucket>]
attr_accessor :buckets
# Name of the column whose value is used in the style.
# Corresponds to the JSON property `columnName`
# @return [String]
attr_accessor :column_name
# Gradient function that interpolates a range of colors based on column value.
# Corresponds to the JSON property `gradient`
# @return [Google::Apis::FusiontablesV2::StyleFunction::Gradient]
attr_accessor :gradient
# 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.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@buckets = args[:buckets] unless args[:buckets].nil?
@column_name = args[:column_name] unless args[:column_name].nil?
@gradient = args[:gradient] unless args[:gradient].nil?
@kind = args[:kind] unless args[:kind].nil?
end
# Gradient function that interpolates a range of colors based on column value.
class Gradient
include Google::Apis::Core::Hashable
# Array with two or more colors.
# Corresponds to the JSON property `colors`
# @return [Array<Google::Apis::FusiontablesV2::StyleFunction::Gradient::Color>]
attr_accessor :colors
# Higher-end of the interpolation range: rows with this value will be assigned
# to colors[n-1].
# Corresponds to the JSON property `max`
# @return [Float]
attr_accessor :max
# Lower-end of the interpolation range: rows with this value will be assigned to
# colors[0].
# Corresponds to the JSON property `min`
# @return [Float]
attr_accessor :min
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@colors = args[:colors] unless args[:colors].nil?
@max = args[:max] unless args[:max].nil?
@min = args[:min] unless args[:min].nil?
end
#
class Color
include Google::Apis::Core::Hashable
# Color in #RRGGBB format.
# Corresponds to the JSON property `color`
# @return [String]
attr_accessor :color
# Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
# Corresponds to the JSON property `opacity`
# @return [Float]
attr_accessor :opacity
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@color = args[:color] unless args[:color].nil?
@opacity = args[:opacity] unless args[:opacity].nil?
end
end
end
end
# Represents a complete StyleSettings object. The primary key is a combination
# of the tableId and a styleId.
class StyleSetting
include Google::Apis::Core::Hashable
# 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.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Represents a PointStyle within a StyleSetting
# Corresponds to the JSON property `markerOptions`
# @return [Google::Apis::FusiontablesV2::PointStyle]
attr_accessor :marker_options
# Optional name for the style setting.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Represents a PolygonStyle within a StyleSetting
# Corresponds to the JSON property `polygonOptions`
# @return [Google::Apis::FusiontablesV2::PolygonStyle]
attr_accessor :polygon_options
# Represents a LineStyle within a StyleSetting
# Corresponds to the JSON property `polylineOptions`
# @return [Google::Apis::FusiontablesV2::LineStyle]
attr_accessor :polyline_options
# Identifier for the style setting (unique only within tables).
# Corresponds to the JSON property `styleId`
# @return [Fixnum]
attr_accessor :style_id
# Identifier for the table.
# Corresponds to the JSON property `tableId`
# @return [String]
attr_accessor :table_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@marker_options = args[:marker_options] unless args[:marker_options].nil?
@name = args[:name] unless args[:name].nil?
@polygon_options = args[:polygon_options] unless args[:polygon_options].nil?
@polyline_options = args[:polyline_options] unless args[:polyline_options].nil?
@style_id = args[:style_id] unless args[:style_id].nil?
@table_id = args[:table_id] unless args[:table_id].nil?
end
end
# Represents a list of styles for a given table.
class StyleSettingList
include Google::Apis::Core::Hashable
# All requested style settings.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::FusiontablesV2::StyleSetting>]
attr_accessor :items
# The kind of item this is. For a style list, this is always fusiontables#
# styleSettingList .
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Token used to access the next page of this result. No token is displayed if
# there are no more styles left.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Total number of styles for the table.
# Corresponds to the JSON property `totalItems`
# @return [Fixnum]
attr_accessor :total_items
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@total_items = args[:total_items] unless args[:total_items].nil?
end
end
# Represents a table.
class Table
include Google::Apis::Core::Hashable
# Attribution assigned to the table.
# Corresponds to the JSON property `attribution`
# @return [String]
attr_accessor :attribution
# Optional link for attribution.
# Corresponds to the JSON property `attributionLink`
# @return [String]
attr_accessor :attribution_link
# Base table identifier if this table is a view or merged table.
# Corresponds to the JSON property `baseTableIds`
# @return [Array<String>]
attr_accessor :base_table_ids
# Default JSON schema for validating all JSON column properties.
# Corresponds to the JSON property `columnPropertiesJsonSchema`
# @return [String]
attr_accessor :column_properties_json_schema
# Columns in the table.
# Corresponds to the JSON property `columns`
# @return [Array<Google::Apis::FusiontablesV2::Column>]
attr_accessor :columns
# Description assigned to the table.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Variable for whether table is exportable.
# Corresponds to the JSON property `isExportable`
# @return [Boolean]
attr_accessor :is_exportable
alias_method :is_exportable?, :is_exportable
# The kind of item this is. For a table, this is always fusiontables#table.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name assigned to a table.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# SQL that encodes the table definition for derived tables.
# Corresponds to the JSON property `sql`
# @return [String]
attr_accessor :sql
# Encrypted unique alphanumeric identifier for the table.
# Corresponds to the JSON property `tableId`
# @return [String]
attr_accessor :table_id
# JSON object containing custom table properties.
# Corresponds to the JSON property `tablePropertiesJson`
# @return [String]
attr_accessor :table_properties_json
# JSON schema for validating the JSON table properties.
# Corresponds to the JSON property `tablePropertiesJsonSchema`
# @return [String]
attr_accessor :table_properties_json_schema
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@attribution = args[:attribution] unless args[:attribution].nil?
@attribution_link = args[:attribution_link] unless args[:attribution_link].nil?
@base_table_ids = args[:base_table_ids] unless args[:base_table_ids].nil?
@column_properties_json_schema = args[:column_properties_json_schema] unless args[:column_properties_json_schema].nil?
@columns = args[:columns] unless args[:columns].nil?
@description = args[:description] unless args[:description].nil?
@is_exportable = args[:is_exportable] unless args[:is_exportable].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@sql = args[:sql] unless args[:sql].nil?
@table_id = args[:table_id] unless args[:table_id].nil?
@table_properties_json = args[:table_properties_json] unless args[:table_properties_json].nil?
@table_properties_json_schema = args[:table_properties_json_schema] unless args[:table_properties_json_schema].nil?
end
end
# Represents a list of tables.
class TableList
include Google::Apis::Core::Hashable
# List of all requested tables.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::FusiontablesV2::Table>]
attr_accessor :items
# The kind of item this is. For table list, this is always fusiontables#
# tableList.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Token used to access the next page of this result. No token is displayed if
# there are no more pages left.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
end
end
# A background task on a table, initiated for time- or resource-consuming
# operations such as changing column types or deleting all rows.
class Task
include Google::Apis::Core::Hashable
# Type of the resource. This is always "fusiontables#task".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Task percentage completion.
# Corresponds to the JSON property `progress`
# @return [String]
attr_accessor :progress
# false while the table is busy with some other task. true if this background
# task is currently running.
# Corresponds to the JSON property `started`
# @return [Boolean]
attr_accessor :started
alias_method :started?, :started
# Identifier for the task.
# Corresponds to the JSON property `taskId`
# @return [String]
attr_accessor :task_id
# Type of background task.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@progress = args[:progress] unless args[:progress].nil?
@started = args[:started] unless args[:started].nil?
@task_id = args[:task_id] unless args[:task_id].nil?
@type = args[:type] unless args[:type].nil?
end
end
# Represents a list of tasks for a table.
class TaskList
include Google::Apis::Core::Hashable
# List of all requested tasks.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::FusiontablesV2::Task>]
attr_accessor :items
# Type of the resource. This is always "fusiontables#taskList".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Token used to access the next page of this result. No token is displayed if
# there are no more pages left.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Total number of tasks for the table.
# Corresponds to the JSON property `totalItems`
# @return [Fixnum]
attr_accessor :total_items
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@total_items = args[:total_items] unless args[:total_items].nil?
end
end
# Represents the contents of InfoWindow templates.
class Template
include Google::Apis::Core::Hashable
# List of columns from which the template is to be automatically constructed.
# Only one of body or automaticColumns can be specified.
# Corresponds to the JSON property `automaticColumnNames`
# @return [Array<String>]
attr_accessor :automatic_column_names
# 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.
# Corresponds to the JSON property `body`
# @return [String]
attr_accessor :body
# The kind of item this is. For a template, this is always fusiontables#template.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Optional name assigned to a template.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Identifier for the table for which the template is defined.
# Corresponds to the JSON property `tableId`
# @return [String]
attr_accessor :table_id
# Identifier for the template, unique within the context of a particular table.
# Corresponds to the JSON property `templateId`
# @return [Fixnum]
attr_accessor :template_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@automatic_column_names = args[:automatic_column_names] unless args[:automatic_column_names].nil?
@body = args[:body] unless args[:body].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@table_id = args[:table_id] unless args[:table_id].nil?
@template_id = args[:template_id] unless args[:template_id].nil?
end
end
# Represents a list of templates for a given table.
class TemplateList
include Google::Apis::Core::Hashable
# List of all requested templates.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::FusiontablesV2::Template>]
attr_accessor :items
# The kind of item this is. For a template list, this is always fusiontables#
# templateList .
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Token used to access the next page of this result. No token is displayed if
# there are no more pages left.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Total number of templates for the table.
# Corresponds to the JSON property `totalItems`
# @return [Fixnum]
attr_accessor :total_items
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
@total_items = args[:total_items] unless args[:total_items].nil?
end
end
end
end
end