Class: VSphereAutomation::VAPI::VapiRestNavigationHttpMethod
- Inherits:
-
Object
- Object
- VSphereAutomation::VAPI::VapiRestNavigationHttpMethod
- Defined in:
- lib/vsphere-automation-vapi/models/vapi_rest_navigation_http_method.rb
Constant Summary collapse
- GET =
"GET".freeze
- POST =
"POST".freeze
- PUT =
"PUT".freeze
- DELETE =
"DELETE".freeze
- OPTIONS =
"OPTIONS".freeze
- PATCH =
"PATCH".freeze
- TRACE =
"TRACE".freeze
- CONNECT =
"CONNECT".freeze
- HEAD =
"HEAD".freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
28 29 30 31 32 |
# File 'lib/vsphere-automation-vapi/models/vapi_rest_navigation_http_method.rb', line 28 def build_from_hash(value) constantValues = VapiRestNavigationHttpMethod.constants.select { |c| VapiRestNavigationHttpMethod::const_get(c) == value } raise "Invalid ENUM value #{value} for class #VapiRestNavigationHttpMethod" if constantValues.empty? value end |