Class: Google::Apis::FusiontablesV1::Table

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

Overview

Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.

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



747
748
749
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 747

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

Instance Attribute Details

#attributionString

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

Returns:

  • (String)


699
700
701
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 699

def attribution
  @attribution
end

Optional link for attribution. Corresponds to the JSON property attributionLink

Returns:

  • (String)


704
705
706
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 704

def attribution_link
  @attribution_link
end

#base_table_idsArray<String>

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

Returns:

  • (Array<String>)


709
710
711
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 709

def base_table_ids
  @base_table_ids
end

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

Columns in the table. Corresponds to the JSON property columns



714
715
716
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 714

def columns
  @columns
end

#descriptionString

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

Returns:

  • (String)


719
720
721
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 719

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)


724
725
726
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 724

def is_exportable
  @is_exportable
end

#kindString

Type name: a template for an individual table. Corresponds to the JSON property kind

Returns:

  • (String)


730
731
732
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 730

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


735
736
737
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 735

def name
  @name
end

#sqlString

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

Returns:

  • (String)


740
741
742
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 740

def sql
  @sql
end

#table_idString

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

Returns:

  • (String)


745
746
747
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 745

def table_id
  @table_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



752
753
754
755
756
757
758
759
760
761
762
763
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 752

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)
  @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)
end