lib/purecloudplatformclientv2/models/management_unit.rb in purecloudplatformclientv2-82.0.0 vs lib/purecloudplatformclientv2/models/management_unit.rb in purecloudplatformclientv2-83.0.0
- old
+ new
@@ -40,16 +40,16 @@
attr_accessor :metadata
# The version of the underlying entity. Deprecated, use field from settings.metadata instead
attr_accessor :version
- # The date and time at which this entity was last modified. Deprecated, use field from settings.metadata instead. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
- attr_accessor :date_modified
-
# The user who last modified this entity. Deprecated, use field from settings.metadata instead
attr_accessor :modified_by
+ # The date and time at which this entity was last modified. Deprecated, use field from settings.metadata instead. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ attr_accessor :date_modified
+
# The URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -69,14 +69,14 @@
:'metadata' => :'metadata',
:'version' => :'version',
- :'date_modified' => :'dateModified',
-
:'modified_by' => :'modifiedBy',
+ :'date_modified' => :'dateModified',
+
:'self_uri' => :'selfUri'
}
end
@@ -98,14 +98,14 @@
:'metadata' => :'WfmVersionedEntityMetadata',
:'version' => :'Integer',
- :'date_modified' => :'DateTime',
-
:'modified_by' => :'UserReference',
+ :'date_modified' => :'DateTime',
+
:'self_uri' => :'String'
}
end
@@ -188,23 +188,23 @@
end
- if attributes.has_key?(:'dateModified')
+ if attributes.has_key?(:'modifiedBy')
- self.date_modified = attributes[:'dateModified']
+ self.modified_by = attributes[:'modifiedBy']
end
- if attributes.has_key?(:'modifiedBy')
+ if attributes.has_key?(:'dateModified')
- self.modified_by = attributes[:'modifiedBy']
+ self.date_modified = attributes[:'dateModified']
end
@@ -359,12 +359,12 @@
start_day_of_week == o.start_day_of_week &&
time_zone == o.time_zone &&
settings == o.settings &&
metadata == o.metadata &&
version == o.version &&
- date_modified == o.date_modified &&
modified_by == o.modified_by &&
+ date_modified == o.date_modified &&
self_uri == o.self_uri
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -373,10 +373,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [id, name, division, start_day_of_week, time_zone, settings, metadata, version, date_modified, modified_by, self_uri].hash
+ [id, name, division, start_day_of_week, time_zone, settings, metadata, version, modified_by, date_modified, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)