Class: Telnyx::Models::WebSearchContentsParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/telnyx/models/web_search_contents_params.rb,
sig/telnyx/models/web_search_contents_params.rbs

Overview

See Also:

  • Telnyx::Resources::WebSearch#contents

Defined Under Namespace

Modules: Format

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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

#initializeObject



30
# File 'sig/telnyx/models/web_search_contents_params.rbs', line 30

def initialize: (

Instance Attribute Details

#crawl_timeoutInteger?

Timeout for crawling each URL, in seconds (1-60).

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


20
# File 'lib/telnyx/models/web_search_contents_params.rb', line 20

optional :crawl_timeout, Integer

#formatsArray<Symbol, Telnyx::Models::WebSearchContentsParams::Format>?

Content formats to return. If omitted, html and metadata are returned by default. Retrieval is best-effort per URL: a format field appears only when that content could be produced, and a freshly crawled page may also include html even when not requested.

Returns:



29
# File 'lib/telnyx/models/web_search_contents_params.rb', line 29

optional :formats, -> { Telnyx::Internal::Type::ArrayOf[enum: Telnyx::WebSearchContentsParams::Format] }

#max_ageInteger?

Maximum age of cached content in seconds. null means no limit.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


35
# File 'lib/telnyx/models/web_search_contents_params.rb', line 35

optional :max_age, Integer, nil?: true

#urlsArray<String>

List of URLs to retrieve content from (max 20 for public API).

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


14
# File 'lib/telnyx/models/web_search_contents_params.rb', line 14

required :urls, Telnyx::Internal::Type::ArrayOf[String]

Instance Method Details

#to_hash{

Returns:

  • ({)


38
# File 'sig/telnyx/models/web_search_contents_params.rbs', line 38

def to_hash: -> {