Class: Imagekitio::Models::UpdateFileRequest::UpdateFileDetails

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

Defined Under Namespace

Modules: RemoveAITags

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(custom_coordinates: nil, custom_metadata: nil, description: nil, extensions: nil, remove_ai_tags: nil, tags: nil, webhook_url: nil) ⇒ Object

Some parameter documentations has been truncated, see Imagekitio::Models::UpdateFileRequest::UpdateFileDetails for more details.

Parameters:

  • custom_coordinates (String, nil) (defaults to: nil)

    Define an important area in the image in the format ‘x,y,width,height` e.g. `10,

  • custom_metadata (Hash{Symbol=>Object}) (defaults to: nil)

    A key-value data to be associated with the asset. To unset a key, send ‘null` va

  • description (String) (defaults to: nil)

    Optional text to describe the contents of the file.

  • extensions (Array<Imagekitio::Models::ExtensionItem::RemoveBg, Imagekitio::Models::ExtensionItem::AIAutoDescription, Imagekitio::Models::ExtensionItem::AutoTaggingExtension>) (defaults to: nil)

    Array of extensions to be applied to the asset. Each extension can be configured

  • remove_ai_tags (Array<String>, Symbol, :all) (defaults to: nil)

    An array of AITags associated with the file that you want to remove, e.g. ‘[“car

  • tags (Array<String>, nil) (defaults to: nil)

    An array of tags associated with the file, such as ‘[“tag1”, “tag2”]`. Send `nul

  • webhook_url (String) (defaults to: nil)

    The final status of extensions after they have completed execution will be deliv



# File 'lib/imagekitio/models/update_file_request.rb', line 75

Instance Attribute Details

#custom_coordinatesString?

Define an important area in the image in the format ‘x,y,width,height` e.g. `10,10,100,100`. Send `null` to unset this value.

Returns:

  • (String, nil)


19
# File 'lib/imagekitio/models/update_file_request.rb', line 19

optional :custom_coordinates, String, api_name: :customCoordinates, nil?: true

#custom_metadataHash{Symbol=>Object}?

A key-value data to be associated with the asset. To unset a key, send ‘null` value for that key. Before setting any custom metadata on an asset you have to create the field using custom metadata fields API.

Returns:

  • (Hash{Symbol=>Object}, nil)


27
28
29
# File 'lib/imagekitio/models/update_file_request.rb', line 27

optional :custom_metadata,
Imagekitio::Internal::Type::HashOf[Imagekitio::Internal::Type::Unknown],
api_name: :customMetadata

#descriptionString?

Optional text to describe the contents of the file.

Returns:

  • (String, nil)


35
# File 'lib/imagekitio/models/update_file_request.rb', line 35

optional :description, String

#extensionsArray<Imagekitio::Models::ExtensionItem::RemoveBg, Imagekitio::Models::ExtensionItem::AIAutoDescription, Imagekitio::Models::ExtensionItem::AutoTaggingExtension>?

Array of extensions to be applied to the asset. Each extension can be configured with specific parameters based on the extension type.



42
# File 'lib/imagekitio/models/update_file_request.rb', line 42

optional :extensions, -> { Imagekitio::Internal::Type::ArrayOf[union: Imagekitio::ExtensionItem] }

#remove_ai_tagsArray<String>, ...

An array of AITags associated with the file that you want to remove, e.g. ‘[“car”, “vehicle”, “motorsports”]`.

If you want to remove all AITags associated with the file, send a string - “all”.

Note: The remove operation for ‘AITags` executes before any of the `extensions` are processed.

Returns:

  • (Array<String>, Symbol, :all, nil)


55
56
57
# File 'lib/imagekitio/models/update_file_request.rb', line 55

optional :remove_ai_tags,
union: -> { Imagekitio::UpdateFileRequest::UpdateFileDetails::RemoveAITags },
api_name: :removeAITags

#tagsArray<String>?

An array of tags associated with the file, such as ‘[“tag1”, “tag2”]`. Send `null` to unset all tags associated with the file.

Returns:

  • (Array<String>, nil)


64
# File 'lib/imagekitio/models/update_file_request.rb', line 64

optional :tags, Imagekitio::Internal::Type::ArrayOf[String], nil?: true

#webhook_urlString?

The final status of extensions after they have completed execution will be delivered to this endpoint as a POST request. [Learn more](/docs/api-reference/digital-asset-management-dam/managing-assets/update-file-details#webhook-payload-structure) about the webhook payload structure.

Returns:

  • (String, nil)


73
# File 'lib/imagekitio/models/update_file_request.rb', line 73

optional :webhook_url, String, api_name: :webhookUrl