Class: Google::Apis::Area120tablesV1alpha1::ColumnDescription

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

Overview

Details on a column in the table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ColumnDescription

Returns a new instance of ColumnDescription.



144
145
146
# File 'generated/google/apis/area120tables_v1alpha1/classes.rb', line 144

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

Instance Attribute Details

#data_typeString

Data type of the column Supported types are auto_id, boolean, boolean_list, creator, create_timestamp, date, dropdown, location, integer, integer_list, number, number_list, person, person_list, tags, check_list, text, text_list, update_timestamp, updater, relationship, file_attachment_list. These types directly map to the column types supported on Tables website. Corresponds to the JSON property dataType

Returns:

  • (String)


114
115
116
# File 'generated/google/apis/area120tables_v1alpha1/classes.rb', line 114

def data_type
  @data_type
end

#idString

Internal id for a column. Corresponds to the JSON property id

Returns:

  • (String)


119
120
121
# File 'generated/google/apis/area120tables_v1alpha1/classes.rb', line 119

def id
  @id
end

#labelsArray<Google::Apis::Area120tablesV1alpha1::LabeledItem>

Optional. Range of labeled values for the column. Some columns like tags and drop-downs limit the values to a set of possible values. We return the range of values in such cases to help clients implement better user data validation. Corresponds to the JSON property labels



126
127
128
# File 'generated/google/apis/area120tables_v1alpha1/classes.rb', line 126

def labels
  @labels
end

#lookup_detailsGoogle::Apis::Area120tablesV1alpha1::LookupDetails

Details about a lookup column whose value comes from the associated relationship. Corresponds to the JSON property lookupDetails



132
133
134
# File 'generated/google/apis/area120tables_v1alpha1/classes.rb', line 132

def lookup_details
  @lookup_details
end

#nameString

column name Corresponds to the JSON property name

Returns:

  • (String)


137
138
139
# File 'generated/google/apis/area120tables_v1alpha1/classes.rb', line 137

def name
  @name
end

#relationship_detailsGoogle::Apis::Area120tablesV1alpha1::RelationshipDetails

Details about a relationship column. Corresponds to the JSON property relationshipDetails



142
143
144
# File 'generated/google/apis/area120tables_v1alpha1/classes.rb', line 142

def relationship_details
  @relationship_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



149
150
151
152
153
154
155
156
# File 'generated/google/apis/area120tables_v1alpha1/classes.rb', line 149

def update!(**args)
  @data_type = args[:data_type] if args.key?(:data_type)
  @id = args[:id] if args.key?(:id)
  @labels = args[:labels] if args.key?(:labels)
  @lookup_details = args[:lookup_details] if args.key?(:lookup_details)
  @name = args[:name] if args.key?(:name)
  @relationship_details = args[:relationship_details] if args.key?(:relationship_details)
end