Class: Imagekitio::Models::Accounts::URLEndpointResponse

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

Overview

Defined Under Namespace

Modules: URLRewriter

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(id: , description: , origins: , url_prefix: , url_rewriter: nil) ⇒ Object

Some parameter documentations has been truncated, see Imagekitio::Models::Accounts::URLEndpointResponse for more details.

URL‑endpoint object as returned by the API.

Parameters:



# File 'lib/imagekitio/models/accounts/url_endpoint_response.rb', line 47


Instance Attribute Details

#descriptionString

Description of the URL endpoint.

Returns:

  • (String)


12
# File 'lib/imagekitio/models/accounts/url_endpoint_response.rb', line 12

required :description, String

#originsArray<String>

Ordered list of origin IDs to try when the file isn’t in the Media Library; ImageKit checks them in the sequence provided. Origin must be created before it can be used in a URL endpoint.

Returns:

  • (Array<String>)


20
# File 'lib/imagekitio/models/accounts/url_endpoint_response.rb', line 20

required :origins, Imagekitio::Internal::Type::ArrayOf[String]

#url_prefixString

Path segment appended to your base URL to form the endpoint (letters, digits, and hyphens only — or empty for the default endpoint).

Returns:

  • (String)


27
# File 'lib/imagekitio/models/accounts/url_endpoint_response.rb', line 27

required :url_prefix, String, api_name: :urlPrefix

#url_rewriterImagekitio::Models::Accounts::URLEndpointResponse::URLRewriter::Cloudinary, ...

Configuration for third-party URL rewriting.



33
34
35
# File 'lib/imagekitio/models/accounts/url_endpoint_response.rb', line 33

optional :url_rewriter,
union: -> { Imagekitio::Accounts::URLEndpointResponse::URLRewriter },
api_name: :urlRewriter