Class: Ionoscloud::Type
- Inherits:
-
Object
- Object
- Ionoscloud::Type
- Defined in:
- lib/ionoscloud/models/type.rb
Constant Summary collapse
- DATACENTER =
"datacenter".freeze
- SERVER =
"server".freeze
- VOLUME =
"volume".freeze
- NIC =
"nic".freeze
- LOADBALANCER =
"loadbalancer".freeze
- LOCATION =
"location".freeze
- FIREWALL_RULE =
"firewall-rule".freeze
- FLOW_LOG =
"flow-log".freeze
- IMAGE =
"image".freeze
- SNAPSHOT =
"snapshot".freeze
- LAN =
"lan".freeze
- IPBLOCK =
"ipblock".freeze
- PCC =
"pcc".freeze
- CONTRACT =
"contract".freeze
- USER =
"user".freeze
- GROUP =
"group".freeze
- COLLECTION =
"collection".freeze
- RESOURCE =
"resource".freeze
- REQUEST =
"request".freeze
- REQUEST_STATUS =
"request-status".freeze
- S3KEY =
"s3key".freeze
- BACKUPUNIT =
"backupunit".freeze
- LABEL =
"label".freeze
- K8S =
"k8s".freeze
- NODEPOOL =
"nodepool".freeze
- TEMPLATE =
"template".freeze
- NETWORKLOADBALANCER =
"networkloadbalancer".freeze
- FORWARDING_RULE =
"forwarding-rule".freeze
- NATGATEWAY =
"natgateway".freeze
- NATGATEWAY_RULE =
"natgateway-rule".freeze
- NODE =
"node".freeze
- APPLICATIONLOADBALANCER =
"applicationloadbalancer".freeze
- TARGET_GROUP =
"target-group".freeze
Class Method Summary collapse
-
.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
.build_from_hash(value) ⇒ String
Builds the enum from string
55 56 57 |
# File 'lib/ionoscloud/models/type.rb', line 55 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
62 63 64 65 66 |
# File 'lib/ionoscloud/models/type.rb', line 62 def build_from_hash(value) constantValues = Type.constants.select { |c| Type::const_get(c) == value } raise "Invalid ENUM value #{value} for class #Type" if constantValues.empty? value end |