Class: SafetyKit::Models::DataAddResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/safety_kit/models/data_add_response.rb,
sig/safety_kit/models/data_add_response.rbs

Overview

See Also:

  • SafetyKit::Resources::Data#add

Defined Under Namespace

Modules: Status

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(request_id:, status:) ⇒ Object

Some parameter documentations has been truncated, see SafetyKit::Models::DataAddResponse for more details.

Response confirming data was accepted for asynchronous processing. The requestId can be used for debugging and tracking.

Parameters:



# File 'lib/safety_kit/models/data_add_response.rb', line 20

Instance Attribute Details

#request_idString

Unique identifier for tracking this request. Data processing happens asynchronously after this response.

Parameters:

  • value (String)

Returns:

  • (String)


12
# File 'lib/safety_kit/models/data_add_response.rb', line 12

required :request_id, String, api_name: :requestId

#statusSymbol, SafetyKit::Models::DataAddResponse::Status

Request was accepted for processing

Parameters:

  • value (SafetyKit::Models::DataAddResponse::status)

Returns:



18
# File 'lib/safety_kit/models/data_add_response.rb', line 18

required :status, enum: -> { SafetyKit::Models::DataAddResponse::Status }

Instance Method Details

#to_hash{

Returns:

  • ({)


16
# File 'sig/safety_kit/models/data_add_response.rbs', line 16

def to_hash: -> {