lib/eilam_test/models/host.rb in eilam_test-1.1.14 vs lib/eilam_test/models/host.rb in eilam_test-1.1.15

- old
+ new

@@ -11,11 +11,11 @@ =end require 'date' require 'time' -module EilamTest +module AutosdeOpenapiClient # doc-todo: what 'host' is this defining or being filled in for? Fill in host properties: name, UUID, management IP address, and IQN. class Host # component_state attr_accessor :component_state @@ -98,17 +98,17 @@ # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `EilamTest::Host` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::Host` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `EilamTest::Host`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::Host`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'component_state') @@ -275,10 +275,10 @@ hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf - klass = EilamTest.const_get(type) + klass = AutosdeOpenapiClient.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end # Returns the string representation of the object