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.
-
#date_details ⇒ Google::Apis::Area120tablesV1alpha1::DateDetails
Details about a date column.
-
#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
. -
#readonly ⇒ Boolean
(also: #readonly?)
Optional.
-
#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.
183 184 185 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 183 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 |
#date_details ⇒ Google::Apis::Area120tablesV1alpha1::DateDetails
Details about a date column.
Corresponds to the JSON property dateDetails
140 141 142 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 140 def date_details @date_details end |
#id ⇒ String
Internal id for a column.
Corresponds to the JSON property id
145 146 147 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 145 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
152 153 154 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 152 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
158 159 160 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 158 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
164 165 166 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 164 def multiple_values_disallowed @multiple_values_disallowed end |
#name ⇒ String
column name
Corresponds to the JSON property name
170 171 172 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 170 def name @name end |
#readonly ⇒ Boolean Also known as: readonly?
Optional. Indicates that values for the column cannot be set by the user.
Corresponds to the JSON property readonly
175 176 177 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 175 def readonly @readonly end |
#relationship_details ⇒ Google::Apis::Area120tablesV1alpha1::RelationshipDetails
Details about a relationship column.
Corresponds to the JSON property relationshipDetails
181 182 183 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 181 def relationship_details @relationship_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 188 def update!(**args) @data_type = args[:data_type] if args.key?(:data_type) @date_details = args[:date_details] if args.key?(:date_details) @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) @readonly = args[:readonly] if args.key?(:readonly) @relationship_details = args[:relationship_details] if args.key?(:relationship_details) end |