Sha256: 7755ab1e5fc4be84bcfc7f4606108a85994174c35d24079360ac475069182c9d

Contents?: true

Size: 989 Bytes

Versions: 23

Compression:

Stored size: 989 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 PulpPythonClient
  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

23 entries across 23 versions & 1 rubygems

Version Path
pulp_python_client-3.12.5 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.12.4 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.12.3 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.12.2 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.11.3 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.12.1 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.11.2 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.12.0 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.11.1 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.11.0 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.10.0 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.9.0 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.8.0 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.7.3 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.6.1 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.7.2 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.7.1 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.7.0 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.6.0 lib/pulp_python_client/models/policy_enum.rb
pulp_python_client-3.5.2 lib/pulp_python_client/models/policy_enum.rb