Sha256: 9680be219078af22303fd11535bea3dc9529d9d7443e81d34918a65ab14eaf0b

Contents?: true

Size: 1.37 KB

Versions: 2

Compression:

Stored size: 1.37 KB

Contents

=begin
#Network Storage API

#Create, list, edit, and delete storage networks with the Network Storage API. Use storage networks to expand storage capacity on a private network. <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/bare-metal-cloud-storage' target='_blank'>here</a> </span> <br> <b>All URLs are relative to (https://api.phoenixnap.com/network-storage/v1/)</b> 

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

=end

require 'date'
require 'time'

module NetworkStorageApi
  class Status
    READY = "READY".freeze
    BUSY = "BUSY".freeze
    DELETING = "DELETING".freeze
    ERROR = "ERROR".freeze

    def self.all_vars
      @all_vars ||= [READY, BUSY, DELETING, ERROR].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 Status.all_vars.include?(value)
      raise "Invalid ENUM value #{value} for class #Status"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pnap_network_storage_api-2.0.1 lib/pnap_network_storage_api/models/status.rb
pnap_network_storage_api-2.0.0 lib/pnap_network_storage_api/models/status.rb