Class: Imagekitio::Models::ExtensionItem::AITasks::Task::YesNo::OnNo::SetMetadata
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Imagekitio::Models::ExtensionItem::AITasks::Task::YesNo::OnNo::SetMetadata
- Defined in:
- lib/imagekitio/models/extensions.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::ExtensionItem::AITasks::Task::YesNo::OnNo::SetMetadata for more details.
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 |
# File 'lib/imagekitio/models/extensions.rb', line 361 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::ExtensionItem::AITasks::Task::YesNo::OnNo::SetMetadata::Value } # @!method initialize(field:, value:) # Some parameter documentations has been truncated, see # {Imagekitio::Models::ExtensionItem::AITasks::Task::YesNo::OnNo::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::ExtensionItem::AITasks::Task::YesNo::OnNo::SetMetadata#value module Value extend Imagekitio::Internal::Type::Union variant String variant Float variant Imagekitio::Internal::Type::Boolean variant -> { Imagekitio::Models::ExtensionItem::AITasks::Task::YesNo::OnNo::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::ExtensionItem::AITasks::Task::YesNo::OnNo::SetMetadata::Value::Mixed }] end end |
Instance Attribute Details
#field ⇒ String
Name of the custom metadata field to set.
366 |
# File 'lib/imagekitio/models/extensions.rb', line 366 required :field, String |
#value ⇒ String, ...
Value to set for the custom metadata field. The value type should match the custom metadata field type.
373 |
# File 'lib/imagekitio/models/extensions.rb', line 373 required :value, union: -> { Imagekitio::ExtensionItem::AITasks::Task::YesNo::OnNo::SetMetadata::Value } |