Class: Turbopuffer::Models::CopyFromNamespaceOperation::Finished

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

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(finish_time:, result:, start_time:, status: :finished) ⇒ Object

Parameters:



# File 'lib/turbopuffer/models/copy_from_namespace_operation.rb', line 70

Instance Attribute Details

#finish_timeTime

The time at which the operation finished.

Parameters:

  • value (Time)

Returns:

  • (Time)


52
# File 'lib/turbopuffer/models/copy_from_namespace_operation.rb', line 52

required :finish_time, Time

#resultTurbopuffer::Models::CopyFromNamespaceOperationResult::Success, Turbopuffer::Models::CopyFromNamespaceOperationResult::Error

Parameters:

  • value (Turbopuffer::Models::copy_from_namespace_operation_result)

Returns:



57
# File 'lib/turbopuffer/models/copy_from_namespace_operation.rb', line 57

required :result, union: -> { Turbopuffer::CopyFromNamespaceOperationResult }

#start_timeTime

The time at which the operation started.

Parameters:

  • value (Time)

Returns:

  • (Time)


63
# File 'lib/turbopuffer/models/copy_from_namespace_operation.rb', line 63

required :start_time, Time

#statusSymbol, :finished

Parameters:

  • value (:finished)

Returns:

  • (Symbol, :finished)


68
# File 'lib/turbopuffer/models/copy_from_namespace_operation.rb', line 68

required :status, const: :finished

Instance Method Details

#to_hash{

Returns:

  • ({)


54
# File 'sig/turbopuffer/models/copy_from_namespace_operation.rbs', line 54

def to_hash: -> {