Class: Google::Apis::FusiontablesV1::Column
- Inherits:
-
Object
- Object
- Google::Apis::FusiontablesV1::Column
- 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
Specifies the id, name and type of a column in a table.
Defined Under Namespace
Classes: BaseColumn
Instance Attribute Summary collapse
-
#base_column ⇒ Google::Apis::FusiontablesV1::Column::BaseColumn
Optional identifier of the base column.
-
#column_id ⇒ Fixnum
Identifier for the column.
-
#description ⇒ String
Optional column description.
-
#graph_predicate ⇒ String
Optional column predicate.
-
#kind ⇒ String
Type name: a template for an individual column.
-
#name ⇒ String
Required name of the column.
-
#type ⇒ String
Required type of the column.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Column
constructor
A new instance of Column.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Column
Returns a new instance of Column
119 120 121 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 119 def initialize(**args) update!(**args) end |
Instance Attribute Details
#base_column ⇒ Google::Apis::FusiontablesV1::Column::BaseColumn
Optional identifier of the base column. If present, this column is derived
from the specified base column.
Corresponds to the JSON property baseColumn
85 86 87 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 85 def base_column @base_column end |
#column_id ⇒ Fixnum
Identifier for the column.
Corresponds to the JSON property columnId
90 91 92 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 90 def column_id @column_id end |
#description ⇒ String
Optional column description.
Corresponds to the JSON property description
95 96 97 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 95 def description @description end |
#graph_predicate ⇒ String
Optional column predicate. Used to map table to graph data model (subject,
predicate,object) See http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#
data-model
Corresponds to the JSON property graph_predicate
102 103 104 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 102 def graph_predicate @graph_predicate end |
#kind ⇒ String
Type name: a template for an individual column.
Corresponds to the JSON property kind
107 108 109 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 107 def kind @kind end |
#name ⇒ String
Required name of the column.
Corresponds to the JSON property name
112 113 114 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 112 def name @name end |
#type ⇒ String
Required type of the column.
Corresponds to the JSON property type
117 118 119 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 117 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
124 125 126 127 128 129 130 131 132 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 124 def update!(**args) @base_column = args[:base_column] if args.key?(:base_column) @column_id = args[:column_id] if args.key?(:column_id) @description = args[:description] if args.key?(:description) @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) end |