Class: Moonbase::Models::Collections::FieldUpdateParams::Field::FieldUriDomain

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/uri/domain") ⇒ Object

Parameters for updating a domain field.

Parameters:

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

    Updated cardinality: ‘one` or `many`.

  • default_values (Array<Moonbase::Models::DomainValue>, 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/uri/domain") (defaults to: :"field/uri/domain")

    The field type. Must be ‘field/uri/domain`.



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

Instance Attribute Details

#cardinalitySymbol, ...

Updated cardinality: ‘one` or `many`.



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

optional :cardinality,
enum: -> { Moonbase::Collections::FieldUpdateParams::Field::FieldUriDomain::Cardinality }

#default_valuesArray<Moonbase::Models::DomainValue>?

Returns:



895
896
897
898
899
# File 'lib/moonbase/models/collections/field_update_params.rb', line 895

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

#descriptionString?

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

Returns:

  • (String, nil)


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

optional :description, String, nil?: true

#nameString?

The new name for the field.

Returns:

  • (String, nil)


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

optional :name, String

#requiredBoolean?

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

Returns:

  • (Boolean, nil)


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

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

#typeSymbol, :"field/uri/domain"

The field type. Must be ‘field/uri/domain`.

Returns:

  • (Symbol, :"field/uri/domain")


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

required :type, const: :"field/uri/domain"

#uniqueBoolean?

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

Returns:

  • (Boolean, nil)


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

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