lib/purecloudplatformclientv2/models/user_queue.rb in purecloudplatformclientv2-50.0.0 vs lib/purecloudplatformclientv2/models/user_queue.rb in purecloudplatformclientv2-51.0.0
- old
+ new
@@ -27,13 +27,10 @@
attr_accessor :division
# The queue description.
attr_accessor :description
- # The current version of the queue.
- attr_accessor :version
-
# The date the queue was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :date_created
# The date of the last modification to the queue. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :date_modified
@@ -42,20 +39,14 @@
attr_accessor :modified_by
# The ID of the user that created the queue.
attr_accessor :created_by
- # Indicates if the queue is active, inactive, or deleted.
- attr_accessor :state
+ # The number of users in the queue.
+ attr_accessor :member_count
- # The application that last modified the queue.
- attr_accessor :modified_by_app
-
- # The application that created the queue.
- attr_accessor :created_by_app
-
- # The media settings for the queue. Valid Key Values: CALL, CALLBACK, CHAT, EMAIL, SOCIAL_EXPRESSION
+ # The media settings for the queue. Valid key values: CALL, CALLBACK, CHAT, EMAIL, MESSAGE, SOCIAL_EXPRESSION, VIDEO_COMM
attr_accessor :media_settings
# The bulls-eye settings for the queue.
attr_accessor :bullseye
@@ -85,12 +76,10 @@
attr_accessor :outbound_email_address
attr_accessor :joined
- attr_accessor :member_count
-
# The URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -102,26 +91,20 @@
:'division' => :'division',
:'description' => :'description',
- :'version' => :'version',
-
:'date_created' => :'dateCreated',
:'date_modified' => :'dateModified',
:'modified_by' => :'modifiedBy',
:'created_by' => :'createdBy',
- :'state' => :'state',
+ :'member_count' => :'memberCount',
- :'modified_by_app' => :'modifiedByApp',
-
- :'created_by_app' => :'createdByApp',
-
:'media_settings' => :'mediaSettings',
:'bullseye' => :'bullseye',
:'acw_settings' => :'acwSettings',
@@ -142,12 +125,10 @@
:'outbound_email_address' => :'outboundEmailAddress',
:'joined' => :'joined',
- :'member_count' => :'memberCount',
-
:'self_uri' => :'selfUri'
}
end
@@ -161,26 +142,20 @@
:'division' => :'Division',
:'description' => :'String',
- :'version' => :'Integer',
-
:'date_created' => :'DateTime',
:'date_modified' => :'DateTime',
:'modified_by' => :'String',
:'created_by' => :'String',
- :'state' => :'String',
+ :'member_count' => :'Integer',
- :'modified_by_app' => :'String',
-
- :'created_by_app' => :'String',
-
:'media_settings' => :'Hash<String, MediaSetting>',
:'bullseye' => :'Bullseye',
:'acw_settings' => :'AcwSettings',
@@ -201,12 +176,10 @@
:'outbound_email_address' => :'QueueEmailAddress',
:'joined' => :'BOOLEAN',
- :'member_count' => :'Integer',
-
:'self_uri' => :'String'
}
end
@@ -253,19 +226,10 @@
end
- if attributes.has_key?(:'version')
-
-
- self.version = attributes[:'version']
-
-
- end
-
-
if attributes.has_key?(:'dateCreated')
self.date_created = attributes[:'dateCreated']
@@ -298,37 +262,19 @@
end
- if attributes.has_key?(:'state')
+ if attributes.has_key?(:'memberCount')
- self.state = attributes[:'state']
+ self.member_count = attributes[:'memberCount']
end
- if attributes.has_key?(:'modifiedByApp')
-
-
- self.modified_by_app = attributes[:'modifiedByApp']
-
-
- end
-
-
- if attributes.has_key?(:'createdByApp')
-
-
- self.created_by_app = attributes[:'createdByApp']
-
-
- end
-
-
if attributes.has_key?(:'mediaSettings')
if (value = attributes[:'mediaSettings']).is_a?(Array)
self.media_settings = value
end
@@ -437,19 +383,10 @@
end
- if attributes.has_key?(:'memberCount')
-
-
- self.member_count = attributes[:'memberCount']
-
-
- end
-
-
if attributes.has_key?(:'selfUri')
self.self_uri = attributes[:'selfUri']
@@ -508,14 +445,10 @@
- allowed_values = ["active", "inactive", "deleted"]
- if @state && !allowed_values.include?(@state)
- return false
- end
@@ -524,38 +457,10 @@
- if @media_settings.nil?
- return false
- end
-
-
-
-
-
-
-
-
-
-
- if @acw_settings.nil?
- return false
- end
-
-
-
-
-
-
- if @skill_evaluation_method.nil?
- return false
- end
-
-
-
allowed_values = ["NONE", "BEST", "ALL"]
if @skill_evaluation_method && !allowed_values.include?(@skill_evaluation_method)
return false
end
@@ -595,14 +500,10 @@
-
-
-
-
end
@@ -648,20 +549,10 @@
- # Custom attribute writer method checking allowed values (enum).
- # @param [Object] state Object to be assigned
- def state=(state)
- allowed_values = ["active", "inactive", "deleted"]
- if state && !allowed_values.include?(state)
- fail ArgumentError, "invalid value for 'state', must be one of #{allowed_values}."
- end
- @state = state
- end
-
@@ -673,24 +564,10 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
# Custom attribute writer method checking allowed values (enum).
# @param [Object] skill_evaluation_method Object to be assigned
def skill_evaluation_method=(skill_evaluation_method)
allowed_values = ["NONE", "BEST", "ALL"]
if skill_evaluation_method && !allowed_values.include?(skill_evaluation_method)
@@ -745,32 +622,24 @@
-
-
-
-
-
# 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 &&
name == o.name &&
division == o.division &&
description == o.description &&
- version == o.version &&
date_created == o.date_created &&
date_modified == o.date_modified &&
modified_by == o.modified_by &&
created_by == o.created_by &&
- state == o.state &&
- modified_by_app == o.modified_by_app &&
- created_by_app == o.created_by_app &&
+ member_count == o.member_count &&
media_settings == o.media_settings &&
bullseye == o.bullseye &&
acw_settings == o.acw_settings &&
skill_evaluation_method == o.skill_evaluation_method &&
queue_flow == o.queue_flow &&
@@ -779,11 +648,10 @@
calling_party_number == o.calling_party_number &&
default_scripts == o.default_scripts &&
outbound_messaging_addresses == o.outbound_messaging_addresses &&
outbound_email_address == o.outbound_email_address &&
joined == o.joined &&
- member_count == o.member_count &&
self_uri == o.self_uri
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -792,10 +660,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [id, name, division, description, version, date_created, date_modified, modified_by, created_by, state, modified_by_app, created_by_app, media_settings, bullseye, acw_settings, skill_evaluation_method, queue_flow, whisper_prompt, calling_party_name, calling_party_number, default_scripts, outbound_messaging_addresses, outbound_email_address, joined, member_count, self_uri].hash
+ [id, name, division, description, date_created, date_modified, modified_by, created_by, member_count, media_settings, bullseye, acw_settings, skill_evaluation_method, queue_flow, whisper_prompt, calling_party_name, calling_party_number, default_scripts, outbound_messaging_addresses, outbound_email_address, joined, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)