lib/purecloudplatformclientv2/models/available_topic.rb in purecloudplatformclientv2-78.1.0 vs lib/purecloudplatformclientv2/models/available_topic.rb in purecloudplatformclientv2-79.0.0
- old
+ new
@@ -20,26 +20,37 @@
class AvailableTopic
attr_accessor :description
attr_accessor :id
+ # Permissions required to subscribe to the topic
attr_accessor :requires_permissions
attr_accessor :schema
+ # True if the topic user ID is required to match the subscribing user ID
+ attr_accessor :requires_current_user
+
+ # True if permissions are only required when the topic user ID does not match the subscribing user ID
+ attr_accessor :requires_current_user_or_permission
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'description' => :'description',
:'id' => :'id',
:'requires_permissions' => :'requiresPermissions',
- :'schema' => :'schema'
+ :'schema' => :'schema',
+ :'requires_current_user' => :'requiresCurrentUser',
+
+ :'requires_current_user_or_permission' => :'requiresCurrentUserOrPermission'
+
}
end
# Attribute type mapping.
def self.swagger_types
@@ -49,12 +60,16 @@
:'id' => :'String',
:'requires_permissions' => :'Array<String>',
- :'schema' => :'Hash<String, Object>'
+ :'schema' => :'Hash<String, Object>',
+ :'requires_current_user' => :'BOOLEAN',
+
+ :'requires_current_user_or_permission' => :'BOOLEAN'
+
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -103,10 +118,28 @@
end
+ if attributes.has_key?(:'requiresCurrentUser')
+
+
+ self.requires_current_user = attributes[:'requiresCurrentUser']
+
+
+ end
+
+
+ if attributes.has_key?(:'requiresCurrentUserOrPermission')
+
+
+ self.requires_current_user_or_permission = attributes[:'requiresCurrentUserOrPermission']
+
+
+ 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
@@ -134,10 +167,18 @@
+
+
+
+
+
+
+
+
end
@@ -157,19 +198,31 @@
+
+
+
+
+
+
+
+
+
+
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
description == o.description &&
id == o.id &&
requires_permissions == o.requires_permissions &&
- schema == o.schema
+ schema == o.schema &&
+ requires_current_user == o.requires_current_user &&
+ requires_current_user_or_permission == o.requires_current_user_or_permission
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -177,10 +230,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [description, id, requires_permissions, schema].hash
+ [description, id, requires_permissions, schema, requires_current_user, requires_current_user_or_permission].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)