Class: VSphereAutomation::Appliance::ApplianceRecoveryBackupLocationType
- Inherits:
-
Object
- Object
- VSphereAutomation::Appliance::ApplianceRecoveryBackupLocationType
- 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
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
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 |