Sha256: 15e14d42d88026ff2448ec39403323c588fd30677d89f774588f080aa23c204e

Contents?: true

Size: 1.4 KB

Versions: 24

Compression:

Stored size: 1.4 KB

Contents

=begin
#Fastly API

#Via the Fastly API you can perform any of the operations that are possible within the management console,  including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) 

The version of the OpenAPI document: 1.0.0
Contact: oss@fastly.com

=end

require 'date'
require 'time'

module Fastly
  class TypeResource
    OBJECT_STORE = "object-store".freeze
    SECRET_STORE = "secret-store".freeze
    CONFIG_STORE = "config-store".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 = TypeResource.constants.select { |c| TypeResource::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #TypeResource" if constantValues.empty?
      value
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
fastly-8.2.0 lib/fastly/models/type_resource.rb
fastly-8.1.0 lib/fastly/models/type_resource.rb
fastly-8.0.1 lib/fastly/models/type_resource.rb
fastly-8.0.0 lib/fastly/models/type_resource.rb
fastly-7.2.2 lib/fastly/models/type_resource.rb
fastly-7.2.1 lib/fastly/models/type_resource.rb
fastly-7.2.0 lib/fastly/models/type_resource.rb
fastly-7.1.1 lib/fastly/models/type_resource.rb
fastly-7.1.0 lib/fastly/models/type_resource.rb
fastly-7.0.0 lib/fastly/models/type_resource.rb
fastly-6.0.2 lib/fastly/models/type_resource.rb
fastly-6.0.1 lib/fastly/models/type_resource.rb
fastly-6.0.0 lib/fastly/models/type_resource.rb
fastly-5.3.1 lib/fastly/models/type_resource.rb
fastly-5.3.0 lib/fastly/models/type_resource.rb
fastly-5.2.2 lib/fastly/models/type_resource.rb
fastly-5.2.1 lib/fastly/models/type_resource.rb
fastly-5.2.0 lib/fastly/models/type_resource.rb
fastly-5.1.1 lib/fastly/models/type_resource.rb
fastly-5.1.0 lib/fastly/models/type_resource.rb