Class: TrieveRubyClient::EventTypeRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/trieve_ruby_client/models/event_type_request.rb

Constant Summary collapse

FILE_UPLOADED =
"file_uploaded".freeze
FILE_UPLOAD_FAILED =
"file_upload_failed".freeze
CHUNKS_UPLOADED =
"chunks_uploaded".freeze
CHUNK_ACTION_FAILED =
"chunk_action_failed".freeze
CHUNK_UPDATED =
"chunk_updated".freeze
BULK_CHUNKS_DELETED =
"bulk_chunks_deleted".freeze
DATASET_DELETE_FAILED =
"dataset_delete_failed".freeze
QDRANT_UPLOAD_FAILED =
"qdrant_upload_failed".freeze
BULK_CHUNK_UPLOAD_FAILED =
"bulk_chunk_upload_failed".freeze
GROUP_CHUNKS_UPDATED =
"group_chunks_updated".freeze
GROUP_CHUNKS_ACTION_FAILED =
"group_chunks_action_failed".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



30
31
32
# File 'lib/trieve_ruby_client/models/event_type_request.rb', line 30

def self.all_vars
  @all_vars ||= [FILE_UPLOADED, FILE_UPLOAD_FAILED, CHUNKS_UPLOADED, CHUNK_ACTION_FAILED, CHUNK_UPDATED, BULK_CHUNKS_DELETED, DATASET_DELETE_FAILED, QDRANT_UPLOAD_FAILED, BULK_CHUNK_UPLOAD_FAILED, GROUP_CHUNKS_UPDATED, GROUP_CHUNKS_ACTION_FAILED].freeze
end

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



37
38
39
# File 'lib/trieve_ruby_client/models/event_type_request.rb', line 37

def self.build_from_hash(value)
  new.build_from_hash(value)
end

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



44
45
46
47
# File 'lib/trieve_ruby_client/models/event_type_request.rb', line 44

def build_from_hash(value)
  return value if EventTypeRequest.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #EventTypeRequest"
end