Class: Telnyx::Models::AI::Embeddings::BucketRetrieveResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ai/embeddings/bucket_retrieve_response.rb

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(created_at:, filename:, status:, error_reason: nil, last_embedded_at: nil, updated_at: nil) ⇒ Object

Parameters:

  • created_at (Time)
  • filename (String)
  • status (String)
  • error_reason (String) (defaults to: nil)
  • last_embedded_at (Time) (defaults to: nil)
  • updated_at (Time) (defaults to: nil)


18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/telnyx/models/ai/embeddings/bucket_retrieve_response.rb', line 18

class Data < Telnyx::Internal::Type::BaseModel
  # @!attribute created_at
  #
  #   @return [Time]
  required :created_at, Time

  # @!attribute filename
  #
  #   @return [String]
  required :filename, String

  # @!attribute status
  #
  #   @return [String]
  required :status, String

  # @!attribute error_reason
  #
  #   @return [String, nil]
  optional :error_reason, String

  # @!attribute last_embedded_at
  #
  #   @return [Time, nil]
  optional :last_embedded_at, Time

  # @!attribute updated_at
  #
  #   @return [Time, nil]
  optional :updated_at, Time

  # @!method initialize(created_at:, filename:, status:, error_reason: nil, last_embedded_at: nil, updated_at: nil)
  #   @param created_at [Time]
  #   @param filename [String]
  #   @param status [String]
  #   @param error_reason [String]
  #   @param last_embedded_at [Time]
  #   @param updated_at [Time]
end

Instance Attribute Details

#created_atTime

Returns:

  • (Time)


22
# File 'lib/telnyx/models/ai/embeddings/bucket_retrieve_response.rb', line 22

required :created_at, Time

#error_reasonString?

Returns:

  • (String, nil)


37
# File 'lib/telnyx/models/ai/embeddings/bucket_retrieve_response.rb', line 37

optional :error_reason, String

#filenameString

Returns:

  • (String)


27
# File 'lib/telnyx/models/ai/embeddings/bucket_retrieve_response.rb', line 27

required :filename, String

#last_embedded_atTime?

Returns:

  • (Time, nil)


42
# File 'lib/telnyx/models/ai/embeddings/bucket_retrieve_response.rb', line 42

optional :last_embedded_at, Time

#statusString

Returns:

  • (String)


32
# File 'lib/telnyx/models/ai/embeddings/bucket_retrieve_response.rb', line 32

required :status, String

#updated_atTime?

Returns:

  • (Time, nil)


47
# File 'lib/telnyx/models/ai/embeddings/bucket_retrieve_response.rb', line 47

optional :updated_at, Time