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.26.3 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.26.2 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.25.6 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.27.2 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.27.1 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.27.0 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.22.8 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.23.4 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.25.5 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.26.1 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.25.3 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.25.2 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.17.22 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.25.1 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.23.3 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.22.7 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.19.12 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.18.20 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.23.2 lib/pulp_rpm_client/models/policy_enum.rb
pulp_rpm_client-3.25.0 lib/pulp_rpm_client/models/policy_enum.rb