Sha256: 85b1b7a501d86ea472a91a2e6b5dcb176399c081938fbae481ed30e7e00bb033

Contents?: true

Size: 1.01 KB

Versions: 256

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

=end

require 'date'

module PulpcoreClient
  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

256 entries across 256 versions & 1 rubygems

Version Path
pulpcore_client-3.63.4 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.22.34 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.68.1 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.28.35 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.49.25 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.39.24 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.63.3 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.28.34 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.22.33 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.49.24 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.68.0 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.67.1 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.39.23 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.63.2 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.66.1 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.22.32 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.28.33 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.39.22 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.49.23 lib/pulpcore_client/models/policy_enum.rb
pulpcore_client-3.67.0 lib/pulpcore_client/models/policy_enum.rb