Class: Moonbase::Models::Collections::FieldUpdateParams::Field::FieldGeo
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Moonbase::Models::Collections::FieldUpdateParams::Field::FieldGeo
- Defined in:
- lib/moonbase/models/collections/field_update_params.rb
Defined Under Namespace
Modules: Cardinality
Instance Attribute Summary collapse
-
#cardinality ⇒ Symbol, ...
Updated cardinality: ‘one` or `many`.
- #default_values ⇒ Array<Moonbase::Models::GeoValue>?
-
#description ⇒ String?
An updated description, or ‘null` to clear it.
-
#name ⇒ String?
The new name for the field.
-
#required ⇒ Boolean?
If ‘true`, items must have a value for this field.
-
#type ⇒ Symbol, :"field/geo"
The field type.
-
#unique ⇒ Boolean?
If ‘true`, values must be unique across all items.
Instance Method Summary collapse
-
#initialize(cardinality: nil, default_values: nil, description: nil, name: nil, required: nil, unique: nil, type: :"field/geo") ⇒ Object
constructor
Parameters for updating a geographic location field.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(cardinality: nil, default_values: nil, description: nil, name: nil, required: nil, unique: nil, type: :"field/geo") ⇒ Object
Parameters for updating a geographic location field.
|
|
# File 'lib/moonbase/models/collections/field_update_params.rb', line 1228
|
Instance Attribute Details
#cardinality ⇒ Symbol, ...
Updated cardinality: ‘one` or `many`.
1197 |
# File 'lib/moonbase/models/collections/field_update_params.rb', line 1197 optional :cardinality, enum: -> { Moonbase::Collections::FieldUpdateParams::Field::FieldGeo::Cardinality } |
#default_values ⇒ Array<Moonbase::Models::GeoValue>?
1202 |
# File 'lib/moonbase/models/collections/field_update_params.rb', line 1202 optional :default_values, -> { Moonbase::Internal::Type::ArrayOf[Moonbase::GeoValue] }, nil?: true |
#description ⇒ String?
An updated description, or ‘null` to clear it.
1208 |
# File 'lib/moonbase/models/collections/field_update_params.rb', line 1208 optional :description, String, nil?: true |
#name ⇒ String?
The new name for the field.
1214 |
# File 'lib/moonbase/models/collections/field_update_params.rb', line 1214 optional :name, String |
#required ⇒ Boolean?
If ‘true`, items must have a value for this field.
1220 |
# File 'lib/moonbase/models/collections/field_update_params.rb', line 1220 optional :required, Moonbase::Internal::Type::Boolean |
#type ⇒ Symbol, :"field/geo"
The field type. Must be ‘field/geo`.
1191 |
# File 'lib/moonbase/models/collections/field_update_params.rb', line 1191 required :type, const: :"field/geo" |