lib/purecloudplatformclientv2/models/domain_permission.rb in purecloudplatformclientv2-32.0.0 vs lib/purecloudplatformclientv2/models/domain_permission.rb in purecloudplatformclientv2-33.0.0

- old
+ new

@@ -26,10 +26,12 @@ attr_accessor :label attr_accessor :allows_conditions + attr_accessor :division_aware + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'domain' => :'domain', @@ -38,12 +40,14 @@ :'action' => :'action', :'label' => :'label', - :'allows_conditions' => :'allowsConditions' + :'allows_conditions' => :'allowsConditions', + :'division_aware' => :'divisionAware' + } end # Attribute type mapping. def self.swagger_types @@ -55,12 +59,14 @@ :'action' => :'String', :'label' => :'String', - :'allows_conditions' => :'BOOLEAN' + :'allows_conditions' => :'BOOLEAN', + :'division_aware' => :'BOOLEAN' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -114,10 +120,19 @@ end + if attributes.has_key?(:'divisionAware') + + + self.division_aware = attributes[:'divisionAware'] + + + 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 @@ -149,10 +164,14 @@ + + + + end @@ -177,20 +196,26 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && domain == o.domain && entity_type == o.entity_type && action == o.action && label == o.label && - allows_conditions == o.allows_conditions + allows_conditions == o.allows_conditions && + division_aware == o.division_aware end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -198,10 +223,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [domain, entity_type, action, label, allows_conditions].hash + [domain, entity_type, action, label, allows_conditions, division_aware].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)