Sha256: 7160bc0112b770d1e433e818d9252a3938dd0741568734055b6a0c9346a0e58e

Contents?: true

Size: 1.31 KB

Versions: 5

Compression:

Stored size: 1.31 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: 6.1.0

=end

require 'date'
require 'time'

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

    # 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)
      constantValues = Status.constants.select { |c| Status::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #Status" if constantValues.empty?
      value
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pnap_network_storage_api-1.4.0 lib/pnap_network_storage_api/models/status.rb
pnap_network_storage_api-1.3.0 lib/pnap_network_storage_api/models/status.rb
pnap_network_storage_api-1.2.0 lib/pnap_network_storage_api/models/status.rb
pnap_network_storage_api-1.1.0 lib/pnap_network_storage_api/models/status.rb
pnap_network_storage_api-1.0.1 lib/pnap_network_storage_api/models/status.rb