Class: Moonbase::Models::Collections::FieldCreateParams::Field::FieldUriURL
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Moonbase::Models::Collections::FieldCreateParams::Field::FieldUriURL
- 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::URLValue>?
-
#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/uri/url"
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/uri/url") ⇒ Object
constructor
Some parameter documentations has been truncated, see FieldUriURL 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/uri/url") ⇒ Object
Some parameter documentations has been truncated, see Moonbase::Models::Collections::FieldCreateParams::Field::FieldUriURL for more details.
Parameters for creating a URL field.
|
|
# File 'lib/moonbase/models/collections/field_create_params.rb', line 853
|
Instance Attribute Details
#cardinality ⇒ Symbol, ...
Whether the field holds a single value (‘one`) or multiple values (`many`). Defaults to `one`.
827 828 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 827 optional :cardinality, enum: -> { Moonbase::Collections::FieldCreateParams::Field::FieldUriURL::Cardinality } |
#default_values ⇒ Array<Moonbase::Models::URLValue>?
833 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 833 optional :default_values, -> { Moonbase::Internal::Type::ArrayOf[Moonbase::URLValue] } |
#description ⇒ String?
An optional description of the field’s purpose.
839 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 839 optional :description, String |
#name ⇒ String
The human-readable name for the field.
814 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 814 required :name, String |
#required ⇒ Boolean?
If ‘true`, items must have a value for this field. Defaults to `false`.
845 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 845 optional :required, Moonbase::Internal::Type::Boolean |
#type ⇒ Symbol, :"field/uri/url"
The field type. Must be ‘field/uri/url`.
820 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 820 required :type, const: :"field/uri/url" |