Class: VSphereAutomation::Appliance::ApplianceRecoveryRestoreLocationType

Inherits:
Object
  • Object
show all
Defined in:
lib/vsphere-automation-appliance/models/appliance_recovery_restore_location_type.rb

Constant Summary collapse

FTP =
"FTP".freeze
HTTP =
"HTTP".freeze
FTPS =
"FTPS".freeze
HTTPS =
"HTTPS".freeze
SCP =
"SCP".freeze
NFS =
"NFS".freeze
SMB =
"SMB".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



26
27
28
29
30
# File 'lib/vsphere-automation-appliance/models/appliance_recovery_restore_location_type.rb', line 26

def build_from_hash(value)
  constantValues = ApplianceRecoveryRestoreLocationType.constants.select { |c| ApplianceRecoveryRestoreLocationType::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #ApplianceRecoveryRestoreLocationType" if constantValues.empty?
  value
end