lib/purecloudplatformclientv2/models/available_topic.rb in purecloudplatformclientv2-94.0.0 vs lib/purecloudplatformclientv2/models/available_topic.rb in purecloudplatformclientv2-95.0.0
- old
+ new
@@ -31,10 +31,13 @@
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
+ # Transports that support events for the topic
+ attr_accessor :transports
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'description' => :'description',
@@ -45,12 +48,14 @@
:'schema' => :'schema',
:'requires_current_user' => :'requiresCurrentUser',
- :'requires_current_user_or_permission' => :'requiresCurrentUserOrPermission'
+ :'requires_current_user_or_permission' => :'requiresCurrentUserOrPermission',
+ :'transports' => :'transports'
+
}
end
# Attribute type mapping.
def self.swagger_types
@@ -64,12 +69,14 @@
:'schema' => :'Hash<String, Object>',
:'requires_current_user' => :'BOOLEAN',
- :'requires_current_user_or_permission' => :'BOOLEAN'
+ :'requires_current_user_or_permission' => :'BOOLEAN',
+ :'transports' => :'Array<String>'
+
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -136,10 +143,21 @@
end
+ if attributes.has_key?(:'transports')
+
+ if (value = attributes[:'transports']).is_a?(Array)
+ self.transports = value
+ end
+
+
+
+ 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
@@ -175,10 +193,14 @@
+
+
+
+
end
@@ -208,21 +230,27 @@
+
+
+
+
+
# 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 &&
requires_current_user == o.requires_current_user &&
- requires_current_user_or_permission == o.requires_current_user_or_permission
+ requires_current_user_or_permission == o.requires_current_user_or_permission &&
+ transports == o.transports
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -230,10 +258,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [description, id, requires_permissions, schema, requires_current_user, requires_current_user_or_permission].hash
+ [description, id, requires_permissions, schema, requires_current_user, requires_current_user_or_permission, transports].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)