lib/eilam_test/models/snapshot.rb in eilam_test-1.1.15 vs lib/eilam_test/models/snapshot.rb in eilam_test-1.1.16
- old
+ new
@@ -11,11 +11,11 @@
=end
require 'date'
require 'time'
-module AutosdeOpenapiClient
+module EilamTest
# Define volume snapshot.
class Snapshot
# component_state
attr_accessor :component_state
@@ -87,17 +87,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 `AutosdeOpenapiClient::Snapshot` initialize method"
+ fail ArgumentError, "The input argument (attributes) must be a hash in `EilamTest::Snapshot` 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 `AutosdeOpenapiClient::Snapshot`. 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 `EilamTest::Snapshot`. 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')
@@ -240,10 +240,10 @@
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
end
end
else # model
# models (e.g. Pet) or oneOf
- klass = AutosdeOpenapiClient.const_get(type)
+ klass = EilamTest.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