Class: Telnyx::Models::WebSearchCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::WebSearchCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/telnyx/models/web_search_create_params.rb,
sig/telnyx/models/web_search_create_params.rbs
Overview
Defined Under Namespace
Modules: Safesearch
Instance Attribute Summary collapse
-
#count ⇒ Integer?
Number of results to return (1-100).
-
#country ⇒ String?
Two-letter country code (ISO 3166-1 alpha-2) to bias results.
-
#exclude_domains ⇒ Array<String>?
Exclude results from these domains (bare hostnames, e.g.
pinterest.com). -
#freshness ⇒ String?
Time-based filter for results.
-
#include_domains ⇒ Array<String>?
Restrict results to these domains (bare hostnames, e.g.
arxiv.org). -
#livecrawl ⇒ Boolean?
When true, the provider crawls pages in real-time for fresh content.
-
#query ⇒ String
The search query text.
-
#safesearch ⇒ Symbol, ...
Safe search filter level.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(query:, count: nil, country: nil, exclude_domains: nil, freshness: nil, include_domains: nil, livecrawl: nil, safesearch: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see WebSearchCreateParams for more details.
- #to_hash ⇒ {
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(query:, count: nil, country: nil, exclude_domains: nil, freshness: nil, include_domains: nil, livecrawl: nil, safesearch: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Telnyx::Models::WebSearchCreateParams for more details.
|
|
# File 'lib/telnyx/models/web_search_create_params.rb', line 60
|
Instance Attribute Details
#count ⇒ Integer?
Number of results to return (1-100).
20 |
# File 'lib/telnyx/models/web_search_create_params.rb', line 20 optional :count, Integer |
#country ⇒ String?
Two-letter country code (ISO 3166-1 alpha-2) to bias results.
26 |
# File 'lib/telnyx/models/web_search_create_params.rb', line 26 optional :country, String |
#exclude_domains ⇒ Array<String>?
Exclude results from these domains (bare hostnames, e.g. pinterest.com).
32 |
# File 'lib/telnyx/models/web_search_create_params.rb', line 32 optional :exclude_domains, Telnyx::Internal::Type::ArrayOf[String] |
#freshness ⇒ String?
Time-based filter for results. Common values: day, week, month, year.
38 |
# File 'lib/telnyx/models/web_search_create_params.rb', line 38 optional :freshness, String |
#include_domains ⇒ Array<String>?
Restrict results to these domains (bare hostnames, e.g. arxiv.org).
44 |
# File 'lib/telnyx/models/web_search_create_params.rb', line 44 optional :include_domains, Telnyx::Internal::Type::ArrayOf[String] |
#livecrawl ⇒ Boolean?
When true, the provider crawls pages in real-time for fresh content. The boolean
is translated to the provider's internal enum internally; callers always pass
true or false.
52 |
# File 'lib/telnyx/models/web_search_create_params.rb', line 52 optional :livecrawl, Telnyx::Internal::Type::Boolean |
#query ⇒ String
The search query text.
14 |
# File 'lib/telnyx/models/web_search_create_params.rb', line 14 required :query, String |
#safesearch ⇒ Symbol, ...
Safe search filter level.
58 |
# File 'lib/telnyx/models/web_search_create_params.rb', line 58 optional :safesearch, enum: -> { Telnyx::WebSearchCreateParams::Safesearch } |
Instance Method Details
#to_hash ⇒ {
64 |
# File 'sig/telnyx/models/web_search_create_params.rbs', line 64
def to_hash: -> {
|