Class: Cerca::Models::HTTPEndpoint

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cerca/models/http_endpoint.rb

Defined Under Namespace

Modules: Body, Method

Instance Attribute Summary collapse

Class Method 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(method_:, url:, body: nil, headers: nil, path: nil, query: nil) ⇒ Object

HTTP endpoint invoked when the tool is called.

Parameters:



# File 'lib/cerca/models/http_endpoint.rb', line 36

Instance Attribute Details

#bodySymbol, ...

Returns:



19
# File 'lib/cerca/models/http_endpoint.rb', line 19

optional :body, enum: -> { Cerca::HTTPEndpoint::Body }

#headersHash{Symbol=>String}?

Returns:

  • (Hash{Symbol=>String}, nil)


24
# File 'lib/cerca/models/http_endpoint.rb', line 24

optional :headers, Cerca::Internal::Type::HashOf[String]

#method_Symbol, Cerca::Models::HTTPEndpoint::Method



9
# File 'lib/cerca/models/http_endpoint.rb', line 9

required :method_, enum: -> { Cerca::HTTPEndpoint::Method }, api_name: :method

#pathHash{Symbol=>String}?

Returns:

  • (Hash{Symbol=>String}, nil)


29
# File 'lib/cerca/models/http_endpoint.rb', line 29

optional :path, Cerca::Internal::Type::HashOf[String]

#queryHash{Symbol=>String}?

Returns:

  • (Hash{Symbol=>String}, nil)


34
# File 'lib/cerca/models/http_endpoint.rb', line 34

optional :query, Cerca::Internal::Type::HashOf[String]

#urlString

Returns:

  • (String)


14
# File 'lib/cerca/models/http_endpoint.rb', line 14

required :url, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/cerca/models/http_endpoint.rb', line 56