Class: Google::Apis::FusiontablesV2::Column

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

Specifies the details 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



169
170
171
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 169

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

Instance Attribute Details

#base_columnGoogle::Apis::FusiontablesV2::Column::BaseColumn

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_v2/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_v2/classes.rb', line 90

def column_id
  @column_id
end

#column_json_schemaString

JSON schema for interpreting JSON in this column. Corresponds to the JSON property columnJsonSchema

Returns:

  • (String)


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

def column_json_schema
  @column_json_schema
end

#column_properties_jsonString

JSON object containing custom column properties. Corresponds to the JSON property columnPropertiesJson

Returns:

  • (String)


100
101
102
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 100

def column_properties_json
  @column_properties_json
end

#descriptionString

Column description. Corresponds to the JSON property description

Returns:

  • (String)


105
106
107
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 105

def description
  @description
end

#format_patternString

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

Returns:

  • (String)


133
134
135
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 133

def format_pattern
  @format_pattern
end

#graph_predicateString

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

Returns:

  • (String)


140
141
142
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 140

def graph_predicate
  @graph_predicate
end

#kindString

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

Returns:

  • (String)


145
146
147
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 145

def kind
  @kind
end

#nameString

Name of the column. Corresponds to the JSON property name

Returns:

  • (String)


150
151
152
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 150

def name
  @name
end

#typeString

Type of the column. Corresponds to the JSON property type

Returns:

  • (String)


155
156
157
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 155

def type
  @type
end

#valid_valuesArray<String>

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

Returns:

  • (Array<String>)


161
162
163
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 161

def valid_values
  @valid_values
end

#validate_dataBoolean Also known as: validate_data?

If true, data entered via the web application is validated. Corresponds to the JSON property validateData

Returns:

  • (Boolean)


166
167
168
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 166

def validate_data
  @validate_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 174

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