lib/purecloudplatformclientv2/models/user_authorization.rb in purecloudplatformclientv2-61.0.0 vs lib/purecloudplatformclientv2/models/user_authorization.rb in purecloudplatformclientv2-62.0.0

- old
+ new

@@ -18,10 +18,12 @@ module PureCloud class UserAuthorization attr_accessor :roles + attr_accessor :unused_roles + # A collection of the permissions granted by all assigned roles attr_accessor :permissions # The policies configured for assigned permissions. attr_accessor :permission_policies @@ -30,10 +32,12 @@ def self.attribute_map { :'roles' => :'roles', + :'unused_roles' => :'unusedRoles', + :'permissions' => :'permissions', :'permission_policies' => :'permissionPolicies' } @@ -43,10 +47,12 @@ def self.swagger_types { :'roles' => :'Array<DomainRole>', + :'unused_roles' => :'Array<DomainRole>', + :'permissions' => :'Array<String>', :'permission_policies' => :'Array<ResourcePermissionPolicy>' } @@ -70,10 +76,21 @@ end + if attributes.has_key?(:'unusedRoles') + + if (value = attributes[:'unusedRoles']).is_a?(Array) + self.unused_roles = value + end + + + + end + + if attributes.has_key?(:'permissions') if (value = attributes[:'permissions']).is_a?(Array) self.permissions = value end @@ -119,10 +136,14 @@ + + + + end @@ -137,16 +158,22 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && roles == o.roles && + unused_roles == o.unused_roles && permissions == o.permissions && permission_policies == o.permission_policies end # @see the `==` method @@ -156,10 +183,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [roles, permissions, permission_policies].hash + [roles, unused_roles, permissions, permission_policies].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)