class Google::Apis::FusiontablesV2::Column

Specifies the details of a column in a table.

Attributes

base_column[RW]

Identifier of the base column. If present, this column is derived from the specified base column. Corresponds to the JSON property `baseColumn` @return [Google::Apis::FusiontablesV2::Column::BaseColumn]

column_id[RW]

Identifier for the column. Corresponds to the JSON property `columnId` @return [Fixnum]

column_json_schema[RW]

JSON schema for interpreting JSON in this column. Corresponds to the JSON property `columnJsonSchema` @return [String]

column_properties_json[RW]

JSON object containing custom column properties. Corresponds to the JSON property `columnPropertiesJson` @return [String]

description[RW]

Column description. Corresponds to the JSON property `description` @return [String]

format_pattern[RW]

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 JSON editing of text 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` @return [String]

graph_predicate[RW]

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` @return [String]

kind[RW]

The kind of item this is. For a column, this is always fusiontables#column. Corresponds to the JSON property `kind` @return [String]

name[RW]

Name of the column. Corresponds to the JSON property `name` @return [String]

type[RW]

Type of the column. Corresponds to the JSON property `type` @return [String]

valid_values[RW]

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` @return [Array<String>]

validate_data[RW]

If true, data entered via the web application is validated. Corresponds to the JSON property `validateData` @return [Boolean]

validate_data?[RW]

If true, data entered via the web application is validated. Corresponds to the JSON property `validateData` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/fusiontables_v2/classes.rb, line 168
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/fusiontables_v2/classes.rb, line 173
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