Class: Turbopuffer::Models::OperationError
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Turbopuffer::Models::OperationError
- Defined in:
- lib/turbopuffer/models/operation_error.rb,
sig/turbopuffer/models/operation_error.rbs
Defined Under Namespace
Classes: Detail
Instance Attribute Summary collapse
-
#detail ⇒ Turbopuffer::Models::OperationError::Detail
The response to an unsuccessful request.
-
#status_code ⇒ Integer
The HTTP status code of the operation's error.
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(detail:, status_code:) ⇒ Object
|
|
# File 'lib/turbopuffer/models/operation_error.rb', line 18
|
Instance Attribute Details
#detail ⇒ Turbopuffer::Models::OperationError::Detail
The response to an unsuccessful request.
10 |
# File 'lib/turbopuffer/models/operation_error.rb', line 10 required :detail, -> { Turbopuffer::OperationError::Detail } |
#status_code ⇒ Integer
The HTTP status code of the operation's error.
16 |
# File 'lib/turbopuffer/models/operation_error.rb', line 16 required :status_code, Integer |
Instance Method Details
#to_hash ⇒ {
16 |
# File 'sig/turbopuffer/models/operation_error.rbs', line 16
def to_hash: -> {
|