Class: Google::Apis::FusiontablesV1::Column

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

Specifies the id, name and type of a column in a table.

Defined Under Namespace

Classes: BaseColumn

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) ⇒ 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_columnGoogle::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_idFixnum

Identifier for the column. Corresponds to the JSON property columnId

Returns:

  • (Fixnum)


90
91
92
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 90

def column_id
  @column_id
end

#descriptionString

Optional column description. Corresponds to the JSON property description

Returns:

  • (String)


95
96
97
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 95

def description
  @description
end

#graph_predicateString

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

Returns:

  • (String)


102
103
104
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 102

def graph_predicate
  @graph_predicate
end

#kindString

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

Returns:

  • (String)


107
108
109
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 107

def kind
  @kind
end

#nameString

Required name of the column. Corresponds to the JSON property name

Returns:

  • (String)


112
113
114
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 112

def name
  @name
end

#typeString

Required type of the column. Corresponds to the JSON property type

Returns:

  • (String)


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