Class: Google::Apis::FusiontablesV2::Table

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/fusiontables_v2/classes.rb,
generated/google/apis/fusiontables_v2/representations.rb,
generated/google/apis/fusiontables_v2/representations.rb

Overview

Represents a table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Table

Returns a new instance of Table.



818
819
820
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 818

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attributionString

Attribution assigned to the table. Corresponds to the JSON property attribution

Returns:

  • (String)


755
756
757
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 755

def attribution
  @attribution
end

Optional link for attribution. Corresponds to the JSON property attributionLink

Returns:

  • (String)


760
761
762
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 760

def attribution_link
  @attribution_link
end

#base_table_idsArray<String>

Base table identifier if this table is a view or merged table. Corresponds to the JSON property baseTableIds

Returns:

  • (Array<String>)


765
766
767
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 765

def base_table_ids
  @base_table_ids
end

#column_properties_json_schemaString

Default JSON schema for validating all JSON column properties. Corresponds to the JSON property columnPropertiesJsonSchema

Returns:

  • (String)


770
771
772
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 770

def column_properties_json_schema
  @column_properties_json_schema
end

#columnsArray<Google::Apis::FusiontablesV2::Column>

Columns in the table. Corresponds to the JSON property columns



775
776
777
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 775

def columns
  @columns
end

#descriptionString

Description assigned to the table. Corresponds to the JSON property description

Returns:

  • (String)


780
781
782
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 780

def description
  @description
end

#is_exportableBoolean Also known as: is_exportable?

Variable for whether table is exportable. Corresponds to the JSON property isExportable

Returns:

  • (Boolean)


785
786
787
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 785

def is_exportable
  @is_exportable
end

#kindString

The kind of item this is. For a table, this is always fusiontables#table. Corresponds to the JSON property kind

Returns:

  • (String)


791
792
793
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 791

def kind
  @kind
end

#nameString

Name assigned to a table. Corresponds to the JSON property name

Returns:

  • (String)


796
797
798
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 796

def name
  @name
end

#sqlString

SQL that encodes the table definition for derived tables. Corresponds to the JSON property sql

Returns:

  • (String)


801
802
803
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 801

def sql
  @sql
end

#table_idString

Encrypted unique alphanumeric identifier for the table. Corresponds to the JSON property tableId

Returns:

  • (String)


806
807
808
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 806

def table_id
  @table_id
end

#table_properties_jsonString

JSON object containing custom table properties. Corresponds to the JSON property tablePropertiesJson

Returns:

  • (String)


811
812
813
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 811

def table_properties_json
  @table_properties_json
end

#table_properties_json_schemaString

JSON schema for validating the JSON table properties. Corresponds to the JSON property tablePropertiesJsonSchema

Returns:

  • (String)


816
817
818
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 816

def table_properties_json_schema
  @table_properties_json_schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 823

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