Class: Imagekitio::Models::ExtensionConfig::AITasks::Task::YesNo::OnYes::SetMetadata

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/imagekitio/models/extension_config.rb

Defined Under Namespace

Modules: Value

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(field:, value:) ⇒ Object

Some parameter documentations has been truncated, see Imagekitio::Models::ExtensionConfig::AITasks::Task::YesNo::OnYes::SetMetadata for more details.

Parameters:

  • Name of the custom metadata field to set.

  • Value to set for the custom metadata field. The value type should match the cust



589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
# File 'lib/imagekitio/models/extension_config.rb', line 589

class  < Imagekitio::Internal::Type::BaseModel
  # @!attribute field
  #   Name of the custom metadata field to set.
  #
  #   @return [String]
  required :field, String

  # @!attribute value
  #   Value to set for the custom metadata field. The value type should match the
  #   custom metadata field type.
  #
  #   @return [String, Float, Boolean, Array<String, Float, Boolean>]
  required :value,
           union: -> { Imagekitio::ExtensionConfig::AITasks::Task::YesNo::OnYes::::Value }

  # @!method initialize(field:, value:)
  #   Some parameter documentations has been truncated, see
  #   {Imagekitio::Models::ExtensionConfig::AITasks::Task::YesNo::OnYes::SetMetadata}
  #   for more details.
  #
  #   @param field [String] Name of the custom metadata field to set.
  #
  #   @param value [String, Float, Boolean, Array<String, Float, Boolean>] Value to set for the custom metadata field. The value type should match the cust

  # Value to set for the custom metadata field. The value type should match the
  # custom metadata field type.
  #
  # @see Imagekitio::Models::ExtensionConfig::AITasks::Task::YesNo::OnYes::SetMetadata#value
  module Value
    extend Imagekitio::Internal::Type::Union

    variant String

    variant Float

    variant Imagekitio::Internal::Type::Boolean

    variant -> { Imagekitio::Models::ExtensionConfig::AITasks::Task::YesNo::OnYes::::Value::MixedArray }

    module Mixed
      extend Imagekitio::Internal::Type::Union

      variant String

      variant Float

      variant Imagekitio::Internal::Type::Boolean

      # @!method self.variants
      #   @return [Array(String, Float, Boolean)]
    end

    # @!method self.variants
    #   @return [Array(String, Float, Boolean, Array<String, Float, Boolean>)]

    # @type [Imagekitio::Internal::Type::Converter]
    MixedArray =
      Imagekitio::Internal::Type::ArrayOf[union: -> {
        Imagekitio::ExtensionConfig::AITasks::Task::YesNo::OnYes::::Value::Mixed
      }]
  end
end

Instance Attribute Details

#fieldString

Name of the custom metadata field to set.

Returns:



594
# File 'lib/imagekitio/models/extension_config.rb', line 594

required :field, String

#valueString, ...

Value to set for the custom metadata field. The value type should match the custom metadata field type.

Returns:



601
602
# File 'lib/imagekitio/models/extension_config.rb', line 601

required :value,
union: -> { Imagekitio::ExtensionConfig::AITasks::Task::YesNo::OnYes::::Value }