Sha256: 13d505b5c03449c1430650f814822da12a28d72b1ff9d9c794d30285302736bf

Contents?: true

Size: 986 Bytes

Versions: 119

Compression:

Stored size: 986 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 PulpRpmClient
  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

119 entries across 119 versions & 1 rubygems

Version Path
pulp_rpm_client-3.21.0 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.17.18 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.19.6 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.18.16 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.20.0 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.18.15 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.19.5 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.18.14 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.17.17 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.19.4 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.18.13 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.19.3 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.19.2 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.18.12 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.19.1 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.17.16 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.18.11 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.19.0 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.18.10 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.17.15 lib/pulp_rpm_client/models/policy_enum.rb