Sha256: 5d405135b765ee9aa56362c76046412b99a3a91c064778669ae6a49e7e0af814

Contents?: true

Size: 987 Bytes

Versions: 13

Compression:

Stored size: 987 Bytes

Contents

=begin
#Pulp 3 API

#Fetch, Upload, Organize, and Distribute Software Packages

The version of the OpenAPI document: v3
Contact: pulp-list@redhat.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.2.3

=end

require 'date'

module PulpFileClient
  class PolicyEnum
    IMMEDIATE = "immediate".freeze
    ON_DEMAND = "on_demand".freeze
    STREAMED = "streamed".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 = PolicyEnum.constants.select { |c| PolicyEnum::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #PolicyEnum" if constantValues.empty?
      value
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pulp_file_client-1.8.0 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-1.7.0 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-1.6.1 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-1.6.0.post3 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-1.6.0.post2 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-1.6.0.post1 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-1.6.0.post0 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-1.5.0 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-1.4.0.post1 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-1.4.0.post0 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-1.4.0 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-1.3.0 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-1.2.0 lib/pulp_file_client/models/policy_enum.rb