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

- old
+ new

@@ -31,10 +31,13 @@ attr_accessor :trustee # The list of trustee users that are requesting access. attr_accessor :users + # The list of trustee groups that are requesting access. + attr_accessor :groups + # The URI for this object attr_accessor :self_uri # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -48,10 +51,12 @@ :'trustee' => :'trustee', :'users' => :'users', + :'groups' => :'groups', + :'self_uri' => :'selfUri' } end @@ -67,10 +72,12 @@ :'trustee' => :'Organization', :'users' => :'Array<OrgUser>', + :'groups' => :'Array<TrustGroup>', + :'self_uri' => :'String' } end @@ -128,10 +135,21 @@ end + if attributes.has_key?(:'groups') + + if (value = attributes[:'groups']).is_a?(Array) + self.groups = value + end + + + + end + + if attributes.has_key?(:'selfUri') self.self_uri = attributes[:'selfUri'] @@ -174,22 +192,21 @@ - if @users.nil? - return false - end - + + + end @@ -219,20 +236,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 && id == o.id && created_by == o.created_by && date_created == o.date_created && trustee == o.trustee && users == o.users && + groups == o.groups && self_uri == o.self_uri end # @see the `==` method # @param [Object] Object to be compared @@ -241,10 +264,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, created_by, date_created, trustee, users, self_uri].hash + [id, created_by, date_created, trustee, users, groups, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)