lib/purecloudplatformclientv2/models/queue.rb in purecloudplatformclientv2-50.0.0 vs lib/purecloudplatformclientv2/models/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 @@ -86,12 +77,10 @@ # The messaging addresses for the queue. attr_accessor :outbound_messaging_addresses attr_accessor :outbound_email_address - 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 @@ -103,26 +92,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', @@ -143,12 +126,10 @@ :'outbound_messaging_addresses' => :'outboundMessagingAddresses', :'outbound_email_address' => :'outboundEmailAddress', - :'member_count' => :'memberCount', - :'self_uri' => :'selfUri' } end @@ -162,26 +143,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', @@ -202,12 +177,10 @@ :'outbound_messaging_addresses' => :'QueueMessagingAddresses', :'outbound_email_address' => :'QueueEmailAddress', - :'member_count' => :'Integer', - :'self_uri' => :'String' } end @@ -254,19 +227,10 @@ end - if attributes.has_key?(:'version') - - - self.version = attributes[:'version'] - - - end - - if attributes.has_key?(:'dateCreated') self.date_created = attributes[:'dateCreated'] @@ -299,37 +263,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 @@ -438,19 +384,10 @@ end - if attributes.has_key?(:'memberCount') - - - self.member_count = attributes[:'memberCount'] - - - end - - if attributes.has_key?(:'selfUri') self.self_uri = attributes[:'selfUri'] @@ -509,14 +446,10 @@ - allowed_values = ["active", "inactive", "deleted"] - if @state && !allowed_values.include?(@state) - return false - end @@ -525,38 +458,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 @@ -596,14 +501,10 @@ - - - - end @@ -649,20 +550,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 - @@ -674,24 +565,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) @@ -746,32 +623,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 && @@ -780,11 +649,10 @@ calling_party_name == o.calling_party_name && 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 && - member_count == o.member_count && self_uri == o.self_uri end # @see the `==` method # @param [Object] Object to be compared @@ -793,10 +661,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, auto_answer_only, calling_party_name, calling_party_number, default_scripts, outbound_messaging_addresses, outbound_email_address, 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, auto_answer_only, calling_party_name, calling_party_number, default_scripts, outbound_messaging_addresses, outbound_email_address, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)