Sha256: 392d8cd8b8866658039ca494403d1e1e8b241043746f403bf6c63e88e32e4cd5

Contents?: true

Size: 987 Bytes

Versions: 107

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.3.1

=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

107 entries across 107 versions & 1 rubygems

Version Path
pulp_file_client-3.49.30 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.63.7 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.49.29 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.49.28 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.63.6 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.69.0 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.63.5 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.68.2 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.49.27 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.49.26 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.63.4 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.68.1 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.49.25 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.63.3 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.49.24 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.68.0 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.67.1 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.63.2 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.66.1 lib/pulp_file_client/models/policy_enum.rb
pulp_file_client-3.49.23 lib/pulp_file_client/models/policy_enum.rb