lib/purecloudplatformclientv2/models/token_info.rb in purecloudplatformclientv2-60.0.0 vs lib/purecloudplatformclientv2/models/token_info.rb in purecloudplatformclientv2-61.0.0
- old
+ new
@@ -22,20 +22,25 @@
attr_accessor :organization
# The token's home organization
attr_accessor :home_organization
+ # The list of scopes authorized for the OAuth client
+ attr_accessor :authorized_scope
+
attr_accessor :o_auth_client
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'organization' => :'organization',
:'home_organization' => :'homeOrganization',
+ :'authorized_scope' => :'authorizedScope',
+
:'o_auth_client' => :'OAuthClient'
}
end
@@ -45,10 +50,12 @@
:'organization' => :'NamedEntity',
:'home_organization' => :'NamedEntity',
+ :'authorized_scope' => :'Array<String>',
+
:'o_auth_client' => :'OrgOAuthClient'
}
end
@@ -77,10 +84,21 @@
end
+ if attributes.has_key?(:'authorizedScope')
+
+ if (value = attributes[:'authorizedScope']).is_a?(Array)
+ self.authorized_scope = value
+ end
+
+
+
+ end
+
+
if attributes.has_key?(:'OAuthClient')
self.o_auth_client = attributes[:'OAuthClient']
@@ -113,10 +131,14 @@
+
+
+
+
end
@@ -131,17 +153,23 @@
+
+
+
+
+
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
organization == o.organization &&
home_organization == o.home_organization &&
+ authorized_scope == o.authorized_scope &&
o_auth_client == o.o_auth_client
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -150,10 +178,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [organization, home_organization, o_auth_client].hash
+ [organization, home_organization, authorized_scope, o_auth_client].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)