lib/pulp_python_client/models/policy_enum.rb
=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 Generator version: 7.10.0 =end require 'date' require 'time' module PulpPythonClient class PolicyEnum IMMEDIATE = "immediate".freeze ON_DEMAND = "on_demand".freeze STREAMED = "streamed".freeze def self.all_vars @all_vars ||= [IMMEDIATE, ON_DEMAND, STREAMED].freeze end # 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) return value if PolicyEnum.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #PolicyEnum" end end end