Class: Moonbase::Models::Collections::FieldCreateParams::Field::FieldRelation::AllowedCollection
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Moonbase::Models::Collections::FieldCreateParams::Field::FieldRelation::AllowedCollection
- Defined in:
- lib/moonbase/models/collections/field_create_params.rb
Instance Attribute Summary collapse
-
#id ⇒ String?
Unique identifier of the collection.
-
#ref ⇒ String?
The stable, machine-readable reference identifier of the collection.
-
#type ⇒ Symbol, :collection
String representing the object’s type.
Instance Method Summary collapse
-
#initialize(allowed_collections:, name:, relation_type:, cardinality: nil, default_values: nil, description: nil, required: nil, reverse_field_name: nil, unique: nil, type: :"field/relation") ⇒ Object
constructor
Some parameter documentations has been truncated, see Moonbase::Models::Collections::FieldCreateParams::Field::FieldRelation 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(allowed_collections:, name:, relation_type:, cardinality: nil, default_values: nil, description: nil, required: nil, reverse_field_name: nil, unique: nil, type: :"field/relation") ⇒ Object
Some parameter documentations has been truncated, see Moonbase::Models::Collections::FieldCreateParams::Field::FieldRelation for more details.
Parameters for creating a relation field that links items across collections.
1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 1684 class AllowedCollection < Moonbase::Internal::Type::BaseModel # @!attribute type # String representing the object’s type. Always `collection` for this object. # # @return [Symbol, :collection] required :type, const: :collection # @!attribute id # Unique identifier of the collection. # # @return [String, nil] optional :id, String # @!attribute ref # The stable, machine-readable reference identifier of the collection. # # @return [String, nil] optional :ref, String # @!method initialize(id: nil, ref: nil, type: :collection) # A reference to a `Collection` used in request bodies. Provide at least one of # `id` or `ref` to identify the collection. # # @param id [String] Unique identifier of the collection. # # @param ref [String] The stable, machine-readable reference identifier of the collection. # # @param type [Symbol, :collection] String representing the object’s type. Always `collection` for this object. end |
Instance Attribute Details
#id ⇒ String?
Unique identifier of the collection.
1695 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 1695 optional :id, String |
#ref ⇒ String?
The stable, machine-readable reference identifier of the collection.
1701 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 1701 optional :ref, String |
#type ⇒ Symbol, :collection
String representing the object’s type. Always ‘collection` for this object.
1689 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 1689 required :type, const: :collection |