Class: Moonbase::Models::Collections::FieldUpdateParams::Field::FieldGeo

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/moonbase/models/collections/field_update_params.rb

Defined Under Namespace

Modules: Cardinality

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • cardinality (Symbol, Moonbase::Models::Collections::FieldUpdateParams::Field::FieldGeo::Cardinality) (defaults to: nil)

    Updated cardinality: ‘one` or `many`.

  • default_values (Array<Moonbase::Models::GeoValue>, nil) (defaults to: nil)
  • description (String, nil) (defaults to: nil)

    An updated description, or ‘null` to clear it.

  • name (String) (defaults to: nil)

    The new name for the field.

  • required (Boolean) (defaults to: nil)

    If ‘true`, items must have a value for this field.

  • unique (Boolean) (defaults to: nil)

    If ‘true`, values must be unique across all items.

  • type (Symbol, :"field/geo") (defaults to: :"field/geo")

    The field type. Must be ‘field/geo`.



# File 'lib/moonbase/models/collections/field_update_params.rb', line 1228

Instance Attribute Details

#cardinalitySymbol, ...

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_valuesArray<Moonbase::Models::GeoValue>?

Returns:



1202
# File 'lib/moonbase/models/collections/field_update_params.rb', line 1202

optional :default_values, -> { Moonbase::Internal::Type::ArrayOf[Moonbase::GeoValue] }, nil?: true

#descriptionString?

An updated description, or ‘null` to clear it.

Returns:

  • (String, nil)


1208
# File 'lib/moonbase/models/collections/field_update_params.rb', line 1208

optional :description, String, nil?: true

#nameString?

The new name for the field.

Returns:

  • (String, nil)


1214
# File 'lib/moonbase/models/collections/field_update_params.rb', line 1214

optional :name, String

#requiredBoolean?

If ‘true`, items must have a value for this field.

Returns:

  • (Boolean, nil)


1220
# File 'lib/moonbase/models/collections/field_update_params.rb', line 1220

optional :required, Moonbase::Internal::Type::Boolean

#typeSymbol, :"field/geo"

The field type. Must be ‘field/geo`.

Returns:

  • (Symbol, :"field/geo")


1191
# File 'lib/moonbase/models/collections/field_update_params.rb', line 1191

required :type, const: :"field/geo"

#uniqueBoolean?

If ‘true`, values must be unique across all items.

Returns:

  • (Boolean, nil)


1226
# File 'lib/moonbase/models/collections/field_update_params.rb', line 1226

optional :unique, Moonbase::Internal::Type::Boolean