Sha256: ea94584af0541dbbae562165ad997188ffae36316af31ec06406b5dc22a393c8

Contents?: true

Size: 1004 Bytes

Versions: 5

Compression:

Stored size: 1004 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 PulpContainerClient
  class Policy692Enum
    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 = Policy692Enum.constants.select { |c| Policy692Enum::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #Policy692Enum" if constantValues.empty?
      value
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pulp_container_client-2.22.1 lib/pulp_container_client/models/policy692_enum.rb
pulp_container_client-2.21.2 lib/pulp_container_client/models/policy692_enum.rb
pulp_container_client-2.22.0 lib/pulp_container_client/models/policy692_enum.rb
pulp_container_client-2.21.1 lib/pulp_container_client/models/policy692_enum.rb
pulp_container_client-2.21.0 lib/pulp_container_client/models/policy692_enum.rb