Class: VSphereAutomation::Appliance::ApplianceRecoveryBackupLocationType

Inherits:
Object
  • Object
show all
Defined in:
lib/vsphere-automation-appliance/models/appliance_recovery_backup_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_backup_location_type.rb', line 26

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