Sha256: 4a695f1477f319d88c2d75aac5a902234405465f973850b4c9b84e569b3643bc
Contents?: true
Size: 1.35 KB
Versions: 6
Compression:
Stored size: 1.35 KB
Contents
=begin #CLOUD API #IONOS Enterprise-grade Infrastructure as a Service (IaaS) solutions can be managed through the Cloud API, in addition or as an alternative to the \"Data Center Designer\" (DCD) browser-based tool. Both methods employ consistent concepts and features, deliver similar power and flexibility, and can be used to perform a multitude of management tasks, including adding servers, volumes, configuring networks, and so on. The version of the OpenAPI document: 6.0 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.2.1-SNAPSHOT =end require 'date' require 'time' module Ionoscloud class NatGatewayRuleProtocol TCP = "TCP".freeze UDP = "UDP".freeze ICMP = "ICMP".freeze ALL = "ALL".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 = NatGatewayRuleProtocol.constants.select { |c| NatGatewayRuleProtocol::const_get(c) == value } raise "Invalid ENUM value #{value} for class #NatGatewayRuleProtocol" if constantValues.empty? value end end end
Version data entries
6 entries across 6 versions & 1 rubygems