Class: Imagekitio::Models::FileRenameParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Imagekitio::Models::FileRenameParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/imagekitio/models/file_rename_params.rb
Overview
Instance Attribute Summary collapse
-
#file_path ⇒ String
The full path of the file you want to rename.
-
#new_file_name ⇒ String
The new name of the file.
-
#purge_cache ⇒ Boolean?
Option to purge cache for the old file and its versions’ URLs.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(file_path: , new_file_name: , purge_cache: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see FileRenameParams for more details.
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(file_path: , new_file_name: , purge_cache: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Imagekitio::Models::FileRenameParams for more details.
|
|
# File 'lib/imagekitio/models/file_rename_params.rb', line 48
|
Instance Attribute Details
#file_path ⇒ String
The full path of the file you want to rename.
14 |
# File 'lib/imagekitio/models/file_rename_params.rb', line 14 required :file_path, String, api_name: :filePath |
#new_file_name ⇒ String
The new name of the file. A filename can contain:
Alphanumeric Characters: ‘a-z`, `A-Z`, `0-9` (including Unicode letters, marks, and numerals in other languages). Special Characters: `.`, `_`, and `-`.
Any other character, including space, will be replaced by ‘_`.
25 |
# File 'lib/imagekitio/models/file_rename_params.rb', line 25 required :new_file_name, String, api_name: :newFileName |
#purge_cache ⇒ Boolean?
Option to purge cache for the old file and its versions’ URLs.
When set to true, it will internally issue a purge cache request on CDN to remove cached content of old file and its versions. This purge request is counted against your monthly purge quota.
Note: If the old file were accessible at ‘
`, a purge cache request would be issued against `
*` (with a wildcard at the end). It will remove the file and its versions’ URLs and any transformations made using query parameters on this file or its versions. However, the cache for file transformations made using path parameters will persist. You can purge them using the purge API. For more details, refer to the purge API documentation.
Default value - ‘false`
46 |
# File 'lib/imagekitio/models/file_rename_params.rb', line 46 optional :purge_cache, Imagekitio::Internal::Type::Boolean, api_name: :purgeCache |