lib/purecloudplatformclientv2/models/media_policies.rb in purecloudplatformclientv2-21.0.0 vs lib/purecloudplatformclientv2/models/media_policies.rb in purecloudplatformclientv2-22.0.0

- old
+ new

@@ -25,20 +25,25 @@ attr_accessor :chat_policy # Conditions and actions for emails attr_accessor :email_policy + # Conditions and actions for messages + attr_accessor :message_policy + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'call_policy' => :'callPolicy', :'chat_policy' => :'chatPolicy', - :'email_policy' => :'emailPolicy' + :'email_policy' => :'emailPolicy', + :'message_policy' => :'messagePolicy' + } end # Attribute type mapping. def self.swagger_types @@ -46,12 +51,14 @@ :'call_policy' => :'CallMediaPolicy', :'chat_policy' => :'ChatMediaPolicy', - :'email_policy' => :'EmailMediaPolicy' + :'email_policy' => :'EmailMediaPolicy', + :'message_policy' => :'MessageMediaPolicy' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -87,10 +94,19 @@ end + if attributes.has_key?(:'messagePolicy') + + + self.message_policy = attributes[:'messagePolicy'] + + + end + + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properies with the reasons def list_invalid_properties @@ -114,10 +130,14 @@ + + + + end @@ -132,18 +152,24 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && call_policy == o.call_policy && chat_policy == o.chat_policy && - email_policy == o.email_policy + email_policy == o.email_policy && + message_policy == o.message_policy end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -151,10 +177,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [call_policy, chat_policy, email_policy].hash + [call_policy, chat_policy, email_policy, message_policy].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)