Class: DaytonaToolboxApiClient::DaemonErrorCode

Inherits:
Object
  • Object
show all
Defined in:
lib/daytona_toolbox_api_client/models/daemon_error_code.rb

Constant Summary collapse

CodeGitAuthFailed =
"GIT_AUTH_FAILED".freeze
CodeGitRepoNotFound =
"GIT_REPO_NOT_FOUND".freeze
CodeGitBranchNotFound =
"GIT_BRANCH_NOT_FOUND".freeze
CodeGitBranchExists =
"GIT_BRANCH_EXISTS".freeze
CodeGitPushRejected =
"GIT_PUSH_REJECTED".freeze
CodeGitDirtyWorktree =
"GIT_DIRTY_WORKTREE".freeze
CodeGitMergeConflict =
"GIT_MERGE_CONFLICT".freeze
CodeFileNotFound =
"FILE_NOT_FOUND".freeze
CodeFileAccessDenied =
"FILE_ACCESS_DENIED".freeze
CodeLspServerNotInitialized =
"LSP_SERVER_NOT_INITIALIZED".freeze
CodeProcessExecutionTimeout =
"PROCESS_EXECUTION_TIMEOUT".freeze
CodeProcessNotFound =
"PROCESS_NOT_FOUND".freeze
CodeSessionEnded =
"SESSION_ENDED".freeze
CodeCommandAlreadyCompleted =
"COMMAND_ALREADY_COMPLETED".freeze
CodeA11yUnavailable =
"A11Y_UNAVAILABLE".freeze
CodeRecordingStillActive =
"RECORDING_STILL_ACTIVE".freeze
CodeRecordingFfmpegNotFound =
"RECORDING_FFMPEG_NOT_FOUND".freeze
UNKNOWN_DEFAULT_OPEN_API =
"unknown_default_open_api".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class 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
# File 'lib/daytona_toolbox_api_client/models/daemon_error_code.rb', line 44

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



51
52
53
54
# File 'lib/daytona_toolbox_api_client/models/daemon_error_code.rb', line 51

def build_from_hash(value)
  return value if DaemonErrorCode.all_vars.include?(value)
  UNKNOWN_DEFAULT_OPEN_API
end