Sha256: 29b272affb85ce9431c03e320137b18dc32874eae5fa01639818ecc7c2723870

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

=begin
#CLOUD API

#An enterprise-grade Infrastructure is provided as a Service (IaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API.   The API allows you to perform a variety of management tasks such as spinning up additional servers, adding volumes, adjusting networking, and so forth. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.

The version of the OpenAPI document: 6.0-SDK.1

Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.0.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

1 entries across 1 versions & 1 rubygems

Version Path
ionoscloud-6.0.0.beta.3 lib/ionoscloud/models/nat_gateway_rule_protocol.rb