Sha256: 91ed9e3d6c702c5c4e893096d608fc8f827a5090963b5fc59e671985cc4b053c

Contents?: true

Size: 1.02 KB

Versions: 75

Compression:

Stored size: 1.02 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 PulpAnsibleClient
  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

75 entries across 75 versions & 1 rubygems

Version Path
pulp_ansible_client-0.20.10 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.16.6 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.23.1 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.22.3 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.23.0 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.15.6 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.16.5 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.18.3 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.20.9 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.21.9 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.22.2 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.16.4 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.21.8 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.20.8 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.22.1 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.21.7 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.22.0 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.20.7 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.21.6 lib/pulp_ansible_client/models/policy_enum.rb
pulp_ansible_client-0.20.5 lib/pulp_ansible_client/models/policy_enum.rb