lib/purecloudplatformclientv2/models/management_unit.rb in purecloudplatformclientv2-6.0.0 vs lib/purecloudplatformclientv2/models/management_unit.rb in purecloudplatformclientv2-7.0.0

- old
+ new

@@ -31,10 +31,13 @@ attr_accessor :timezone # The version of the underlying ManagementUnit object. Useful for handling eventual consistency issues. User must submit the current version they of the ManagementUnit in any write requests attr_accessor :version + # The date and time at which this management unit was last modified. 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 @@ -42,10 +45,11 @@ :'id' => :'id', :'name' => :'name', :'start_day_of_week' => :'startDayOfWeek', :'timezone' => :'timezone', :'version' => :'version', + :'date_modified' => :'dateModified', :'self_uri' => :'selfUri' } end # Attribute type mapping. @@ -54,10 +58,11 @@ :'id' => :'String', :'name' => :'String', :'start_day_of_week' => :'String', :'timezone' => :'String', :'version' => :'Integer', + :'date_modified' => :'DateTime', :'self_uri' => :'String' } end # Initializes the object @@ -86,10 +91,14 @@ if attributes.has_key?(:'version') self.version = attributes[:'version'] end + if attributes.has_key?(:'dateModified') + self.date_modified = attributes[:'dateModified'] + end + if attributes.has_key?(:'selfUri') self.self_uri = attributes[:'selfUri'] end end @@ -132,10 +141,11 @@ id == o.id && name == o.name && start_day_of_week == o.start_day_of_week && timezone == o.timezone && version == o.version && + date_modified == o.date_modified && self_uri == o.self_uri end # @see the `==` method # @param [Object] Object to be compared @@ -144,10 +154,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, name, start_day_of_week, timezone, version, self_uri].hash + [id, name, start_day_of_week, timezone, version, date_modified, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)