Class: Google::Apis::Area120tablesV1alpha1::ColumnDescription
- Inherits:
-
Object
- Object
- Google::Apis::Area120tablesV1alpha1::ColumnDescription
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/area120tables_v1alpha1/classes.rb,
lib/google/apis/area120tables_v1alpha1/representations.rb,
lib/google/apis/area120tables_v1alpha1/representations.rb
Overview
Details on a column in the table.
Instance Attribute Summary collapse
-
#data_type ⇒ String
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.
-
#id ⇒ String
Internal id for a column.
-
#labels ⇒ Array<Google::Apis::Area120tablesV1alpha1::LabeledItem>
Optional.
-
#lookup_details ⇒ Google::Apis::Area120tablesV1alpha1::LookupDetails
Details about a lookup column whose value comes from the associated relationship.
-
#multiple_values_disallowed ⇒ Boolean
(also: #multiple_values_disallowed?)
Optional.
-
#name ⇒ String
column name Corresponds to the JSON property
name. -
#relationship_details ⇒ Google::Apis::Area120tablesV1alpha1::RelationshipDetails
Details about a relationship column.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ColumnDescription
constructor
A new instance of ColumnDescription.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ColumnDescription
Returns a new instance of ColumnDescription.
172 173 174 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 172 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_type ⇒ String
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
135 136 137 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 135 def data_type @data_type end |
#id ⇒ String
Internal id for a column.
Corresponds to the JSON property id
140 141 142 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 140 def id @id end |
#labels ⇒ Array<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
147 148 149 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 147 def labels @labels end |
#lookup_details ⇒ Google::Apis::Area120tablesV1alpha1::LookupDetails
Details about a lookup column whose value comes from the associated
relationship.
Corresponds to the JSON property lookupDetails
153 154 155 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 153 def lookup_details @lookup_details end |
#multiple_values_disallowed ⇒ Boolean Also known as: multiple_values_disallowed?
Optional. Indicates whether or not multiple values are allowed for array types
where such a restriction is possible.
Corresponds to the JSON property multipleValuesDisallowed
159 160 161 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 159 def multiple_values_disallowed @multiple_values_disallowed end |
#name ⇒ String
column name
Corresponds to the JSON property name
165 166 167 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 165 def name @name end |
#relationship_details ⇒ Google::Apis::Area120tablesV1alpha1::RelationshipDetails
Details about a relationship column.
Corresponds to the JSON property relationshipDetails
170 171 172 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 170 def relationship_details @relationship_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
177 178 179 180 181 182 183 184 185 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 177 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) @multiple_values_disallowed = args[:multiple_values_disallowed] if args.key?(:multiple_values_disallowed) @name = args[:name] if args.key?(:name) @relationship_details = args[:relationship_details] if args.key?(:relationship_details) end |