Sha256: 51dcfb6359931bd02426cb18e338c6afaec8ad4c45300d4a714ce213bef2ad4f

Contents?: true

Size: 1.17 KB

Versions: 3

Compression:

Stored size: 1.17 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 PulpPythonClient
  class PackageTypesEnum
    BDIST_DMG = "bdist_dmg".freeze
    BDIST_DUMB = "bdist_dumb".freeze
    BDIST_EGG = "bdist_egg".freeze
    BDIST_MSI = "bdist_msi".freeze
    BDIST_RPM = "bdist_rpm".freeze
    BDIST_WHEEL = "bdist_wheel".freeze
    BDIST_WININST = "bdist_wininst".freeze
    SDIST = "sdist".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 = PackageTypesEnum.constants.select { |c| PackageTypesEnum::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #PackageTypesEnum" if constantValues.empty?
      value
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pulp_python_client-3.4.0 lib/pulp_python_client/models/package_types_enum.rb
pulp_python_client-3.3.0 lib/pulp_python_client/models/package_types_enum.rb
pulp_python_client-3.2.0 lib/pulp_python_client/models/package_types_enum.rb