Sha256: 9da07a720cf7c7a2e74e268b61c2764bcf107a2baee2ab18e50570011f7d157c
Contents?: true
Size: 1.01 KB
Versions: 107
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 PulpRpmClient class SyncPolicyEnum ADDITIVE = "additive".freeze MIRROR_COMPLETE = "mirror_complete".freeze MIRROR_CONTENT_ONLY = "mirror_content_only".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 = SyncPolicyEnum.constants.select { |c| SyncPolicyEnum::const_get(c) == value } raise "Invalid ENUM value #{value} for class #SyncPolicyEnum" if constantValues.empty? value end end end
Version data entries
107 entries across 107 versions & 1 rubygems