Sha256: a6b2c6fb78948d0f3874cb2df74c4d7cd3d0c0aed50c4ad8250db417adc7f822

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

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.2.3

=end

require 'date'

module PulpMavenClient
  class PolicyEnum
    IMMEDIATE = "immediate".freeze
    WHEN_SYNCING_DOWNLOAD_ALL_METADATA_AND_CONTENT_NOW = "When syncing, download all metadata and content now.".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

2 entries across 2 versions & 1 rubygems

Version Path
pulp_maven_client-0.3.0 lib/pulp_maven_client/models/policy_enum.rb
pulp_maven_client-0.2.0 lib/pulp_maven_client/models/policy_enum.rb