# 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] if args.key?(:color) @icon = args[:icon] if args.key?(:icon) @max = args[:max] if args.key?(:max) @min = args[:min] if args.key?(:min) @opacity = args[:opacity] if args.key?(:opacity) @weight = args[:weight] if args.key?(:weight) 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 editing of text as # JSON in UI STRING_JSON_LISTAllows editing of text as a JSON list 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] 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] if args.key?(:base_column) @column_id = args[:column_id] if args.key?(:column_id) @column_json_schema = args[:column_json_schema] if args.key?(:column_json_schema) @column_properties_json = args[:column_properties_json] if args.key?(:column_properties_json) @description = args[:description] if args.key?(:description) @format_pattern = args[:format_pattern] if args.key?(:format_pattern) @graph_predicate = args[:graph_predicate] if args.key?(:graph_predicate) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) @valid_values = args[:valid_values] if args.key?(:valid_values) @validate_data = args[:validate_data] if args.key?(:validate_data) 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] if args.key?(:column_id) @table_index = args[:table_index] if args.key?(:table_index) 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] 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] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @total_items = args[:total_items] if args.key?(:total_items) 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] 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] if args.key?(:geometries) @geometry = args[:geometry] if args.key?(:geometry) @type = args[:type] if args.key?(:type) 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 [Fixnum] attr_accessor :num_rows_received def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) @num_rows_received = args[:num_rows_received] if args.key?(:num_rows_received) 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>] 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] if args.key?(:coordinates) @type = args[:type] if args.key?(:type) 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] if args.key?(:stroke_color) @stroke_color_styler = args[:stroke_color_styler] if args.key?(:stroke_color_styler) @stroke_opacity = args[:stroke_opacity] if args.key?(:stroke_opacity) @stroke_weight = args[:stroke_weight] if args.key?(:stroke_weight) @stroke_weight_styler = args[:stroke_weight_styler] if args.key?(:stroke_weight_styler) 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] 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] if args.key?(:coordinates) @type = args[:type] if args.key?(:type) 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] if args.key?(:icon_name) @icon_styler = args[:icon_styler] if args.key?(:icon_styler) 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>>] 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] if args.key?(:coordinates) @type = args[:type] if args.key?(:type) 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] if args.key?(:fill_color) @fill_color_styler = args[:fill_color_styler] if args.key?(:fill_color_styler) @fill_opacity = args[:fill_opacity] if args.key?(:fill_opacity) @stroke_color = args[:stroke_color] if args.key?(:stroke_color) @stroke_color_styler = args[:stroke_color_styler] if args.key?(:stroke_color_styler) @stroke_opacity = args[:stroke_opacity] if args.key?(:stroke_opacity) @stroke_weight = args[:stroke_weight] if args.key?(:stroke_weight) @stroke_weight_styler = args[:stroke_weight_styler] if args.key?(:stroke_weight_styler) 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] 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>] attr_accessor :rows def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @columns = args[:columns] if args.key?(:columns) @kind = args[:kind] if args.key?(:kind) @rows = args[:rows] if args.key?(:rows) 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] 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] if args.key?(:buckets) @column_name = args[:column_name] if args.key?(:column_name) @gradient = args[:gradient] if args.key?(:gradient) @kind = args[:kind] if args.key?(:kind) 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] 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] if args.key?(:colors) @max = args[:max] if args.key?(:max) @min = args[:min] if args.key?(:min) 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] if args.key?(:color) @opacity = args[:opacity] if args.key?(:opacity) 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] if args.key?(:kind) @marker_options = args[:marker_options] if args.key?(:marker_options) @name = args[:name] if args.key?(:name) @polygon_options = args[:polygon_options] if args.key?(:polygon_options) @polyline_options = args[:polyline_options] if args.key?(:polyline_options) @style_id = args[:style_id] if args.key?(:style_id) @table_id = args[:table_id] if args.key?(:table_id) 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] 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] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @total_items = args[:total_items] if args.key?(:total_items) 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] 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] 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] if args.key?(:attribution) @attribution_link = args[:attribution_link] if args.key?(:attribution_link) @base_table_ids = args[:base_table_ids] if args.key?(:base_table_ids) @column_properties_json_schema = args[:column_properties_json_schema] if args.key?(:column_properties_json_schema) @columns = args[:columns] if args.key?(:columns) @description = args[:description] if args.key?(:description) @is_exportable = args[:is_exportable] if args.key?(:is_exportable) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @sql = args[:sql] if args.key?(:sql) @table_id = args[:table_id] if args.key?(:table_id) @table_properties_json = args[:table_properties_json] if args.key?(:table_properties_json) @table_properties_json_schema = args[:table_properties_json_schema] if args.key?(:table_properties_json_schema) 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] 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] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) 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 [Fixnum] 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] if args.key?(:kind) @progress = args[:progress] if args.key?(:progress) @started = args[:started] if args.key?(:started) @task_id = args[:task_id] if args.key?(:task_id) @type = args[:type] if args.key?(:type) 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] 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] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @total_items = args[:total_items] if args.key?(:total_items) 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] 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] if args.key?(:automatic_column_names) @body = args[:body] if args.key?(:body) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @table_id = args[:table_id] if args.key?(:table_id) @template_id = args[:template_id] if args.key?(:template_id) 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] 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] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @total_items = args[:total_items] if args.key?(:total_items) end end end end end