Class: VSphereAutomation::VAPI::VapiRestNavigationHttpMethod

Inherits:
Object
  • Object
show all
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

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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