Class: Imagekitio::Models::File
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Imagekitio::Models::File
- Defined in:
- lib/imagekitio/models/file.rb
Overview
Direct Known Subclasses
Defined Under Namespace
Modules: Type Classes: AITag, SelectedFieldsSchema, VersionInfo
Instance Attribute Summary collapse
-
#ai_tags ⇒ Array<Imagekitio::Models::File::AITag>?
An array of tags assigned to the file by auto tagging.
-
#created_at ⇒ Time?
Date and time when the file was uploaded.
-
#custom_coordinates ⇒ String?
An string with custom coordinates of the file.
-
#custom_metadata ⇒ Hash{Symbol=>Object}?
An object with custom metadata for the file.
-
#description ⇒ String?
Optional text to describe the contents of the file.
-
#file_id ⇒ String?
Unique identifier of the asset.
-
#file_path ⇒ String?
Path of the file.
-
#file_type ⇒ String?
Type of the file.
-
#has_alpha ⇒ Boolean?
Specifies if the image has an alpha channel.
-
#height ⇒ Float?
Height of the file.
-
#is_private_file ⇒ Boolean?
Specifies if the file is private or not.
-
#is_published ⇒ Boolean?
Specifies if the file is published or not.
-
#mime ⇒ String?
MIME type of the file.
-
#name ⇒ String?
Name of the asset.
-
#selected_fields_schema ⇒ Hash{Symbol=>Imagekitio::Models::File::SelectedFieldsSchema}?
This field is included in the response only if the Path policy feature is available in the plan.
-
#size ⇒ Float?
Size of the file in bytes.
-
#tags ⇒ Array<String>?
An array of tags assigned to the file.
-
#thumbnail ⇒ String?
URL of the thumbnail image.
-
#type ⇒ Symbol, ...
Type of the asset.
-
#updated_at ⇒ Time?
Date and time when the file was last updated.
-
#url ⇒ String?
URL of the file.
-
#version_info ⇒ Imagekitio::Models::File::VersionInfo?
An object with details of the file version.
-
#width ⇒ Float?
Width of the file.
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.rb', line 238
|
Instance Attribute Details
#ai_tags ⇒ Array<Imagekitio::Models::File::AITag>?
An array of tags assigned to the file by auto tagging.
11 12 13 14 |
# File 'lib/imagekitio/models/file.rb', line 11 optional :ai_tags, -> { Imagekitio::Internal::Type::ArrayOf[Imagekitio::File::AITag] }, api_name: :AITags, nil?: true |
#created_at ⇒ Time?
Date and time when the file was uploaded. The date and time is in ISO8601 format.
21 |
# File 'lib/imagekitio/models/file.rb', line 21 optional :created_at, Time, api_name: :createdAt |
#custom_coordinates ⇒ String?
An string with custom coordinates of the file.
27 |
# File 'lib/imagekitio/models/file.rb', line 27 optional :custom_coordinates, String, api_name: :customCoordinates, nil?: true |
#custom_metadata ⇒ Hash{Symbol=>Object}?
An object with custom metadata for the file.
33 34 35 |
# File 'lib/imagekitio/models/file.rb', line 33 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.
42 |
# File 'lib/imagekitio/models/file.rb', line 42 optional :description, String |
#file_id ⇒ String?
Unique identifier of the asset.
48 |
# File 'lib/imagekitio/models/file.rb', line 48 optional :file_id, String, api_name: :fileId |
#file_path ⇒ String?
Path of the file. This is the path you would use in the URL to access the file. For example, if the file is at the root of the media library, the path will be ‘/file.jpg`. If the file is inside a folder named `images`, the path will be `/images/file.jpg`.
57 |
# File 'lib/imagekitio/models/file.rb', line 57 optional :file_path, String, api_name: :filePath |
#file_type ⇒ String?
Type of the file. Possible values are ‘image`, `non-image`.
63 |
# File 'lib/imagekitio/models/file.rb', line 63 optional :file_type, String, api_name: :fileType |
#has_alpha ⇒ Boolean?
Specifies if the image has an alpha channel.
69 |
# File 'lib/imagekitio/models/file.rb', line 69 optional :has_alpha, Imagekitio::Internal::Type::Boolean, api_name: :hasAlpha |
#height ⇒ Float?
Height of the file.
75 |
# File 'lib/imagekitio/models/file.rb', line 75 optional :height, Float |
#is_private_file ⇒ Boolean?
Specifies if the file is private or not.
81 |
# File 'lib/imagekitio/models/file.rb', line 81 optional :is_private_file, Imagekitio::Internal::Type::Boolean, api_name: :isPrivateFile |
#is_published ⇒ Boolean?
Specifies if the file is published or not.
87 |
# File 'lib/imagekitio/models/file.rb', line 87 optional :is_published, Imagekitio::Internal::Type::Boolean, api_name: :isPublished |
#mime ⇒ String?
MIME type of the file.
93 |
# File 'lib/imagekitio/models/file.rb', line 93 optional :mime, String |
#name ⇒ String?
Name of the asset.
99 |
# File 'lib/imagekitio/models/file.rb', line 99 optional :name, String |
#selected_fields_schema ⇒ Hash{Symbol=>Imagekitio::Models::File::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.
111 112 113 |
# File 'lib/imagekitio/models/file.rb', line 111 optional :selected_fields_schema, -> { Imagekitio::Internal::Type::HashOf[Imagekitio::File::SelectedFieldsSchema] }, api_name: :selectedFieldsSchema |
#size ⇒ Float?
Size of the file in bytes.
119 |
# File 'lib/imagekitio/models/file.rb', line 119 optional :size, Float |
#tags ⇒ Array<String>?
An array of tags assigned to the file. Tags are used to search files in the media library.
126 |
# File 'lib/imagekitio/models/file.rb', line 126 optional :tags, Imagekitio::Internal::Type::ArrayOf[String], nil?: true |
#thumbnail ⇒ String?
URL of the thumbnail image. This URL is used to access the thumbnail image of the file in the media library.
133 |
# File 'lib/imagekitio/models/file.rb', line 133 optional :thumbnail, String |
#type ⇒ Symbol, ...
Type of the asset.
139 |
# File 'lib/imagekitio/models/file.rb', line 139 optional :type, enum: -> { Imagekitio::File::Type } |
#updated_at ⇒ Time?
Date and time when the file was last updated. The date and time is in ISO8601 format.
146 |
# File 'lib/imagekitio/models/file.rb', line 146 optional :updated_at, Time, api_name: :updatedAt |
#url ⇒ String?
URL of the file.
152 |
# File 'lib/imagekitio/models/file.rb', line 152 optional :url, String |
#version_info ⇒ Imagekitio::Models::File::VersionInfo?
An object with details of the file version.
158 |
# File 'lib/imagekitio/models/file.rb', line 158 optional :version_info, -> { Imagekitio::File::VersionInfo }, api_name: :versionInfo |
#width ⇒ Float?
Width of the file.
164 |
# File 'lib/imagekitio/models/file.rb', line 164 optional :width, Float |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/imagekitio/models/file.rb', line 470
|
.variants ⇒ Array(String, Float, Boolean)
|
|
# File 'lib/imagekitio/models/file.rb', line 456
|