Class: Moonbase::Models::Collections::FieldCreateParams::Field::FieldBoolean
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Moonbase::Models::Collections::FieldCreateParams::Field::FieldBoolean
- Defined in:
- lib/moonbase/models/collections/field_create_params.rb
Defined Under Namespace
Modules: Cardinality
Instance Attribute Summary collapse
-
#cardinality ⇒ Symbol, ...
Whether the field holds a single value (‘one`) or multiple values (`many`).
- #default_values ⇒ Array<Moonbase::Models::BooleanValue>?
-
#description ⇒ String?
An optional description of the field’s purpose.
-
#name ⇒ String
The human-readable name for the field.
-
#required ⇒ Boolean?
If ‘true`, items must have a value for this field.
-
#type ⇒ Symbol, :"field/boolean"
The field type.
-
#unique ⇒ Boolean?
If ‘true`, values must be unique across all items.
Instance Method Summary collapse
-
#initialize(name:, cardinality: nil, default_values: nil, description: nil, required: nil, unique: nil, type: :"field/boolean") ⇒ Object
constructor
Some parameter documentations has been truncated, see FieldBoolean for more details.
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(name:, cardinality: nil, default_values: nil, description: nil, required: nil, unique: nil, type: :"field/boolean") ⇒ Object
Some parameter documentations has been truncated, see Moonbase::Models::Collections::FieldCreateParams::Field::FieldBoolean for more details.
Parameters for creating a boolean field.
|
|
# File 'lib/moonbase/models/collections/field_create_params.rb', line 693
|
Instance Attribute Details
#cardinality ⇒ Symbol, ...
Whether the field holds a single value (‘one`) or multiple values (`many`). Defaults to `one`.
667 668 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 667 optional :cardinality, enum: -> { Moonbase::Collections::FieldCreateParams::Field::FieldBoolean::Cardinality } |
#default_values ⇒ Array<Moonbase::Models::BooleanValue>?
673 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 673 optional :default_values, -> { Moonbase::Internal::Type::ArrayOf[Moonbase::BooleanValue] } |
#description ⇒ String?
An optional description of the field’s purpose.
679 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 679 optional :description, String |
#name ⇒ String
The human-readable name for the field.
654 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 654 required :name, String |
#required ⇒ Boolean?
If ‘true`, items must have a value for this field. Defaults to `false`.
685 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 685 optional :required, Moonbase::Internal::Type::Boolean |
#type ⇒ Symbol, :"field/boolean"
The field type. Must be ‘field/boolean`.
660 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 660 required :type, const: :"field/boolean" |