Class: Imagekitio::Models::ExtensionConfig::AITasks::Task::YesNo::OnUnknown::SetMetadata
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Imagekitio::Models::ExtensionConfig::AITasks::Task::YesNo::OnUnknown::SetMetadata
- Defined in:
- lib/imagekitio/models/extension_config.rb
Defined Under Namespace
Modules: Value
Instance Attribute Summary collapse
-
#field ⇒ String
Name of the custom metadata field to set.
-
#value ⇒ String, ...
Value to set for the custom metadata field.
Instance Method Summary collapse
-
#initialize(field:, value:) ⇒ Object
constructor
Some parameter documentations has been truncated, see SetMetadata 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(field:, value:) ⇒ Object
Some parameter documentations has been truncated, see Imagekitio::Models::ExtensionConfig::AITasks::Task::YesNo::OnUnknown::SetMetadata for more details.
475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/imagekitio/models/extension_config.rb', line 475 class SetMetadata < 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::OnUnknown::SetMetadata::Value } # @!method initialize(field:, value:) # Some parameter documentations has been truncated, see # {Imagekitio::Models::ExtensionConfig::AITasks::Task::YesNo::OnUnknown::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::OnUnknown::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::OnUnknown::SetMetadata::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::OnUnknown::SetMetadata::Value::Mixed }] end end |
Instance Attribute Details
#field ⇒ String
Name of the custom metadata field to set.
480 |
# File 'lib/imagekitio/models/extension_config.rb', line 480 required :field, String |
#value ⇒ String, ...
Value to set for the custom metadata field. The value type should match the custom metadata field type.
487 488 |
# File 'lib/imagekitio/models/extension_config.rb', line 487 required :value, union: -> { Imagekitio::ExtensionConfig::AITasks::Task::YesNo::OnUnknown::SetMetadata::Value } |