Class: Imagekitio::Models::FileUploadResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Imagekitio::Models::FileUploadResponse
- Defined in:
- lib/imagekitio/models/file_upload_response.rb
Overview
Defined Under Namespace
Classes: AITag, ExtensionStatus, SelectedFieldsSchema, VersionInfo
Instance Attribute Summary collapse
-
#ai_tags ⇒ Array<Imagekitio::Models::FileUploadResponse::AITag>?
An array of tags assigned to the uploaded file by auto tagging.
-
#audio_codec ⇒ String?
The audio codec used in the video (only for video).
-
#bit_rate ⇒ Integer?
The bit rate of the video in kbps (only for video).
-
#custom_coordinates ⇒ String?
Value of custom coordinates associated with the image in the format ‘x,y,width,height`.
-
#custom_metadata ⇒ Hash{Symbol=>Object}?
A key-value data associated with the asset.
-
#description ⇒ String?
Optional text to describe the contents of the file.
-
#duration ⇒ Integer?
The duration of the video in seconds (only for video).
-
#embedded_metadata ⇒ Hash{Symbol=>Object}?
Consolidated embedded metadata associated with the file.
-
#extension_status ⇒ Imagekitio::Models::FileUploadResponse::ExtensionStatus?
Extension names with their processing status at the time of completion of the request.
-
#file_id ⇒ String?
Unique fileId.
-
#file_path ⇒ String?
The relative path of the file in the media library e.g.
-
#file_type ⇒ String?
Type of the uploaded file.
-
#height ⇒ Float?
Height of the image in pixels (Only for images).
-
#is_private_file ⇒ Boolean?
Is the file marked as private.
-
#is_published ⇒ Boolean?
Is the file published or in draft state.
-
#metadata ⇒ Imagekitio::Models::Metadata?
Legacy metadata.
-
#name ⇒ String?
Name of the asset.
-
#selected_fields_schema ⇒ Hash{Symbol=>Imagekitio::Models::FileUploadResponse::SelectedFieldsSchema}?
This field is included in the response only if the Path policy feature is available in the plan.
-
#size ⇒ Float?
Size of the image file in Bytes.
-
#tags ⇒ Array<String>?
The array of tags associated with the asset.
-
#thumbnail_url ⇒ String?
In the case of an image, a small thumbnail URL.
-
#url ⇒ String?
A publicly accessible URL of the file.
-
#version_info ⇒ Imagekitio::Models::FileUploadResponse::VersionInfo?
An object containing the file or file version’s ‘id` (versionId) and `name`.
-
#video_codec ⇒ String?
The video codec used in the video (only for video).
-
#width ⇒ Float?
Width of the image in pixels (Only for Images).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(confidence: nil, name: nil, source: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see AITag 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(confidence: nil, name: nil, source: nil) ⇒ Object
Some parameter documentations has been truncated, see AITag for more details.
|
|
# File 'lib/imagekitio/models/file_upload_response.rb', line 278
|
Instance Attribute Details
#ai_tags ⇒ Array<Imagekitio::Models::FileUploadResponse::AITag>?
An array of tags assigned to the uploaded file by auto tagging.
11 12 13 14 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 11 optional :ai_tags, -> { Imagekitio::Internal::Type::ArrayOf[Imagekitio::Models::FileUploadResponse::AITag] }, api_name: :AITags, nil?: true |
#audio_codec ⇒ String?
The audio codec used in the video (only for video).
20 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 20 optional :audio_codec, String, api_name: :audioCodec |
#bit_rate ⇒ Integer?
The bit rate of the video in kbps (only for video).
26 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 26 optional :bit_rate, Integer, api_name: :bitRate |
#custom_coordinates ⇒ String?
Value of custom coordinates associated with the image in the format ‘x,y,width,height`. If `customCoordinates` are not defined, then it is `null`. Send `customCoordinates` in `responseFields` in API request to get the value of this field.
35 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 35 optional :custom_coordinates, String, api_name: :customCoordinates, nil?: true |
#custom_metadata ⇒ Hash{Symbol=>Object}?
A key-value data associated with the asset. Use ‘responseField` in API request to get `customMetadata` in the upload API response. Before setting any custom metadata on an asset, you have to create the field using custom metadata fields API. Send `customMetadata` in `responseFields` in API request to get the value of this field.
45 46 47 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 45 optional :custom_metadata, Imagekitio::Internal::Type::HashOf[Imagekitio::Internal::Type::Unknown], api_name: :customMetadata |
#description ⇒ String?
Optional text to describe the contents of the file. Can be set by the user or the ai-auto-description extension.
54 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 54 optional :description, String |
#duration ⇒ Integer?
The duration of the video in seconds (only for video).
60 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 60 optional :duration, Integer |
#embedded_metadata ⇒ Hash{Symbol=>Object}?
Consolidated embedded metadata associated with the file. It includes exif, iptc, and xmp data. Send ‘embeddedMetadata` in `responseFields` in API request to get embeddedMetadata in the upload API response.
68 69 70 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 68 optional :embedded_metadata, Imagekitio::Internal::Type::HashOf[Imagekitio::Internal::Type::Unknown], api_name: :embeddedMetadata |
#extension_status ⇒ Imagekitio::Models::FileUploadResponse::ExtensionStatus?
Extension names with their processing status at the time of completion of the request. It could have one of the following status values:
‘success`: The extension has been successfully applied. `failed`: The extension has failed and will not be retried. `pending`: The extension will finish processing in some time. On completion, the final status (success / failed) will be sent to the `webhookUrl` provided.
If no extension was requested, then this parameter is not returned.
84 85 86 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 84 optional :extension_status, -> { Imagekitio::Models::FileUploadResponse::ExtensionStatus }, api_name: :extensionStatus |
#file_id ⇒ String?
Unique fileId. Store this fileld in your database, as this will be used to perform update action on this file.
93 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 93 optional :file_id, String, api_name: :fileId |
#file_path ⇒ String?
The relative path of the file in the media library e.g. ‘/marketing-assets/new-banner.jpg`.
100 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 100 optional :file_path, String, api_name: :filePath |
#file_type ⇒ String?
Type of the uploaded file. Possible values are ‘image`, `non-image`.
106 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 106 optional :file_type, String, api_name: :fileType |
#height ⇒ Float?
Height of the image in pixels (Only for images)
112 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 112 optional :height, Float |
#is_private_file ⇒ Boolean?
Is the file marked as private. It can be either ‘true` or `false`. Send `isPrivateFile` in `responseFields` in API request to get the value of this field.
120 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 120 optional :is_private_file, Imagekitio::Internal::Type::Boolean, api_name: :isPrivateFile |
#is_published ⇒ Boolean?
Is the file published or in draft state. It can be either ‘true` or `false`. Send `isPublished` in `responseFields` in API request to get the value of this field.
128 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 128 optional :is_published, Imagekitio::Internal::Type::Boolean, api_name: :isPublished |
#metadata ⇒ Imagekitio::Models::Metadata?
Legacy metadata. Send ‘metadata` in `responseFields` in API request to get metadata in the upload API response.
135 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 135 optional :metadata, -> { Imagekitio::Metadata } |
#name ⇒ String?
Name of the asset.
141 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 141 optional :name, String |
#selected_fields_schema ⇒ Hash{Symbol=>Imagekitio::Models::FileUploadResponse::SelectedFieldsSchema}?
This field is included in the response only if the Path policy feature is available in the plan. It contains schema definitions for the custom metadata fields selected for the specified file path. Field selection can only be done when the Path policy feature is enabled.
Keys are the names of the custom metadata fields; the value object has details about the custom metadata schema.
153 154 155 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 153 optional :selected_fields_schema, -> { Imagekitio::Internal::Type::HashOf[Imagekitio::Models::FileUploadResponse::SelectedFieldsSchema] }, api_name: :selectedFieldsSchema |
#size ⇒ Float?
Size of the image file in Bytes.
161 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 161 optional :size, Float |
#tags ⇒ Array<String>?
The array of tags associated with the asset. If no tags are set, it will be ‘null`. Send `tags` in `responseFields` in API request to get the value of this field.
169 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 169 optional :tags, Imagekitio::Internal::Type::ArrayOf[String], nil?: true |
#thumbnail_url ⇒ String?
In the case of an image, a small thumbnail URL.
175 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 175 optional :thumbnail_url, String, api_name: :thumbnailUrl |
#url ⇒ String?
A publicly accessible URL of the file.
181 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 181 optional :url, String |
#version_info ⇒ Imagekitio::Models::FileUploadResponse::VersionInfo?
An object containing the file or file version’s ‘id` (versionId) and `name`.
187 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 187 optional :version_info, -> { Imagekitio::Models::FileUploadResponse::VersionInfo }, api_name: :versionInfo |
#video_codec ⇒ String?
The video codec used in the video (only for video).
193 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 193 optional :video_codec, String, api_name: :videoCodec |
#width ⇒ Float?
Width of the image in pixels (Only for Images)
199 |
# File 'lib/imagekitio/models/file_upload_response.rb', line 199 optional :width, Float |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/imagekitio/models/file_upload_response.rb', line 379
|
.variants ⇒ Array(String, Float, Boolean)
|
|
# File 'lib/imagekitio/models/file_upload_response.rb', line 583
|