=begin
#Daytona

#Daytona AI platform API Docs

The version of the OpenAPI document: 1.0
Contact: support@daytona.com
Generated by: https://openapi-generator.tech
Generator version: 7.21.0

=end

require 'date'
require 'time'

module DaytonaApiClient
  class RunnerState
    INITIALIZING = "initializing".freeze
    READY = "ready".freeze
    DISABLED = "disabled".freeze
    DECOMMISSIONED = "decommissioned".freeze
    UNRESPONSIVE = "unresponsive".freeze
    UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze

    def self.all_vars
      @all_vars ||= [INITIALIZING, READY, DISABLED, DECOMMISSIONED, UNRESPONSIVE, UNKNOWN_DEFAULT_OPEN_API].freeze
    end

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def self.build_from_hash(value)
      new.build_from_hash(value)
    end

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def build_from_hash(value)
      return value if RunnerState.all_vars.include?(value)
      UNKNOWN_DEFAULT_OPEN_API
    end
  end
end
