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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_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)


135
136
137
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 135

def data_type
  @data_type
end

#date_detailsGoogle::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

#idString

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

Returns:

  • (String)


145
146
147
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 145

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



152
153
154
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 152

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



158
159
160
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 158

def lookup_details
  @lookup_details
end

#multiple_values_disallowedBoolean 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

Returns:

  • (Boolean)


164
165
166
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 164

def multiple_values_disallowed
  @multiple_values_disallowed
end

#nameString

column name Corresponds to the JSON property name

Returns:

  • (String)


170
171
172
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 170

def name
  @name
end

#readonlyBoolean Also known as: readonly?

Optional. Indicates that values for the column cannot be set by the user. Corresponds to the JSON property readonly

Returns:

  • (Boolean)


175
176
177
# File 'lib/google/apis/area120tables_v1alpha1/classes.rb', line 175

def readonly
  @readonly
end

#relationship_detailsGoogle::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