Class: NutanixClustermgmt::ClustermgmtV40ConfigSnmpProtocol
- Inherits:
-
Object
- Object
- NutanixClustermgmt::ClustermgmtV40ConfigSnmpProtocol
- Defined in:
- lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_protocol.rb
Constant Summary collapse
- UDP =
"UDP".freeze
- UDP6 =
"UDP6".freeze
- TCP =
"TCP".freeze
- TCP6 =
"TCP6".freeze
- UNKNOWN =
"$UNKNOWN".freeze
- REDACTED =
"$REDACTED".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
25 26 27 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_protocol.rb', line 25 def self.all_vars @all_vars ||= [UDP, UDP6, TCP, TCP6, UNKNOWN, REDACTED].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
32 33 34 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_protocol.rb', line 32 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
39 40 41 42 |
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_protocol.rb', line 39 def build_from_hash(value) return value if ClustermgmtV40ConfigSnmpProtocol.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ClustermgmtV40ConfigSnmpProtocol" end |