Method: EilamTest::SystemType#valid?

Defined in:
lib/eilam_test/models/system_type.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



148
149
150
151
152
153
154
155
156
157
# File 'lib/eilam_test/models/system_type.rb', line 148

def valid?
  component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
  return false unless component_state_validator.valid?(@component_state)
  return false if !@component_state.nil? && @component_state.to_s.length > 32
  name_validator = EnumAttributeValidator.new('String', ["IBM_FlashSystems", "a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00"])
  return false unless name_validator.valid?(@name)
  return false if !@name.nil? && @name.to_s.length > 255
  return false if !@short_version.nil? && @short_version.to_s.length > 255
  true
end