=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 VolumeState
    CREATING = "creating".freeze
    READY = "ready".freeze
    PENDING_CREATE = "pending_create".freeze
    PENDING_DELETE = "pending_delete".freeze
    DELETING = "deleting".freeze
    DELETED = "deleted".freeze
    ERROR = "error".freeze
    UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze

    def self.all_vars
      @all_vars ||= [CREATING, READY, PENDING_CREATE, PENDING_DELETE, DELETING, DELETED, ERROR, 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 VolumeState.all_vars.include?(value)
      UNKNOWN_DEFAULT_OPEN_API
    end
  end
end
