lib/purecloudplatformclientv2/models/management_unit.rb in purecloudplatformclientv2-22.0.0 vs lib/purecloudplatformclientv2/models/management_unit.rb in purecloudplatformclientv2-23.0.0

- old
+ new

@@ -31,19 +31,22 @@ attr_accessor :time_zone # The configuration settings for this management unit attr_accessor :settings - # The version of the underlying entity + # The version of the underlying entity. Deprecated, use metadata field instead attr_accessor :version - # The date and time at which this entity was last modified. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ + # The date and time at which this entity was last modified. Deprecated, use metadata field 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 + # The user who last modified this entity. Deprecated, use metadata field instead attr_accessor :modified_by + # Version info metadata for this management unit + attr_accessor :metadata + # The URI for this object attr_accessor :self_uri # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -63,10 +66,12 @@ :'date_modified' => :'dateModified', :'modified_by' => :'modifiedBy', + :'metadata' => :'metadata', + :'self_uri' => :'selfUri' } end @@ -86,12 +91,14 @@ :'version' => :'Integer', :'date_modified' => :'DateTime', - :'modified_by' => :'User', + :'modified_by' => :'UserReference', + :'metadata' => :'WfmVersionedEntityMetadata', + :'self_uri' => :'String' } end @@ -174,10 +181,19 @@ end + if attributes.has_key?(:'metadata') + + + self.metadata = attributes[:'metadata'] + + + end + + if attributes.has_key?(:'selfUri') self.self_uri = attributes[:'selfUri'] @@ -241,13 +257,22 @@ + if @metadata.nil? + return false + end + + + + + + end @@ -301,10 +326,15 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && @@ -314,10 +344,11 @@ time_zone == o.time_zone && settings == o.settings && version == o.version && date_modified == o.date_modified && modified_by == o.modified_by && + metadata == o.metadata && self_uri == o.self_uri end # @see the `==` method # @param [Object] Object to be compared @@ -326,10 +357,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, name, start_day_of_week, time_zone, settings, version, date_modified, modified_by, self_uri].hash + [id, name, start_day_of_week, time_zone, settings, version, date_modified, modified_by, metadata, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)