purecloudplatformclientv2 58.0.0 → 58.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/ConversationCallEventTopicCallMediaParticipant.md +1 -0
- data/docs/ConversationCallEventTopicConversationRoutingData.md +17 -0
- data/docs/ConversationCallEventTopicScoredAgent.md +14 -0
- data/docs/ConversationCallbackEventTopicCallbackMediaParticipant.md +1 -0
- data/docs/ConversationCallbackEventTopicConversationRoutingData.md +17 -0
- data/docs/ConversationCallbackEventTopicScoredAgent.md +14 -0
- data/docs/ConversationChatEventTopicChatMediaParticipant.md +1 -0
- data/docs/ConversationChatEventTopicConversationRoutingData.md +17 -0
- data/docs/ConversationChatEventTopicScoredAgent.md +14 -0
- data/docs/ConversationCobrowseEventTopicCobrowseMediaParticipant.md +1 -0
- data/docs/ConversationCobrowseEventTopicConversationRoutingData.md +17 -0
- data/docs/ConversationCobrowseEventTopicScoredAgent.md +14 -0
- data/docs/ConversationEmailEventTopicConversationRoutingData.md +17 -0
- data/docs/ConversationEmailEventTopicEmailMediaParticipant.md +1 -0
- data/docs/ConversationEmailEventTopicScoredAgent.md +14 -0
- data/docs/ConversationEventTopicConversationRoutingData.md +17 -0
- data/docs/ConversationEventTopicParticipant.md +1 -0
- data/docs/ConversationEventTopicScoredAgent.md +14 -0
- data/docs/ConversationEventTopicUriReference.md +14 -0
- data/docs/ConversationMessageEventTopicConversationRoutingData.md +17 -0
- data/docs/ConversationMessageEventTopicMessageMediaParticipant.md +1 -0
- data/docs/ConversationMessageEventTopicScoredAgent.md +14 -0
- data/docs/ConversationScreenShareEventTopicConversationRoutingData.md +17 -0
- data/docs/ConversationScreenShareEventTopicScoredAgent.md +14 -0
- data/docs/ConversationScreenShareEventTopicScreenShareMediaParticipant.md +1 -0
- data/docs/ConversationSocialExpressionEventTopicConversationRoutingData.md +17 -0
- data/docs/ConversationSocialExpressionEventTopicScoredAgent.md +14 -0
- data/docs/ConversationSocialExpressionEventTopicSocialMediaParticipant.md +1 -0
- data/docs/ConversationVideoEventTopicConversationRoutingData.md +17 -0
- data/docs/ConversationVideoEventTopicScoredAgent.md +14 -0
- data/docs/ConversationVideoEventTopicVideoMediaParticipant.md +1 -0
- data/docs/QueueConversationCallEventTopicCallMediaParticipant.md +1 -0
- data/docs/QueueConversationCallEventTopicConversationRoutingData.md +17 -0
- data/docs/QueueConversationCallEventTopicScoredAgent.md +14 -0
- data/docs/QueueConversationCallbackEventTopicCallbackMediaParticipant.md +1 -0
- data/docs/QueueConversationCallbackEventTopicConversationRoutingData.md +17 -0
- data/docs/QueueConversationCallbackEventTopicScoredAgent.md +14 -0
- data/docs/QueueConversationChatEventTopicChatMediaParticipant.md +1 -0
- data/docs/QueueConversationChatEventTopicConversationRoutingData.md +17 -0
- data/docs/QueueConversationChatEventTopicScoredAgent.md +14 -0
- data/docs/QueueConversationCobrowseEventTopicCobrowseMediaParticipant.md +1 -0
- data/docs/QueueConversationCobrowseEventTopicConversationRoutingData.md +17 -0
- data/docs/QueueConversationCobrowseEventTopicScoredAgent.md +14 -0
- data/docs/QueueConversationEmailEventTopicConversationRoutingData.md +17 -0
- data/docs/QueueConversationEmailEventTopicEmailMediaParticipant.md +1 -0
- data/docs/QueueConversationEmailEventTopicScoredAgent.md +14 -0
- data/docs/QueueConversationEventTopicConversationRoutingData.md +17 -0
- data/docs/QueueConversationEventTopicParticipant.md +1 -0
- data/docs/QueueConversationEventTopicScoredAgent.md +14 -0
- data/docs/QueueConversationEventTopicUriReference.md +14 -0
- data/docs/QueueConversationMessageEventTopicConversationRoutingData.md +17 -0
- data/docs/QueueConversationMessageEventTopicMessageMediaParticipant.md +1 -0
- data/docs/QueueConversationMessageEventTopicScoredAgent.md +14 -0
- data/docs/QueueConversationScreenShareEventTopicConversationRoutingData.md +17 -0
- data/docs/QueueConversationScreenShareEventTopicScoredAgent.md +14 -0
- data/docs/QueueConversationScreenShareEventTopicScreenShareMediaParticipant.md +1 -0
- data/docs/QueueConversationSocialExpressionEventTopicConversationRoutingData.md +17 -0
- data/docs/QueueConversationSocialExpressionEventTopicParticipant.md +1 -0
- data/docs/QueueConversationSocialExpressionEventTopicScoredAgent.md +14 -0
- data/docs/QueueConversationSocialExpressionEventTopicUriReference.md +14 -0
- data/docs/QueueConversationVideoEventTopicConversationRoutingData.md +17 -0
- data/docs/QueueConversationVideoEventTopicParticipant.md +1 -0
- data/docs/QueueConversationVideoEventTopicScoredAgent.md +14 -0
- data/docs/QueueConversationVideoEventTopicUriReference.md +14 -0
- data/lib/purecloudplatformclientv2.rb +44 -0
- data/lib/purecloudplatformclientv2/api_client.rb +1 -1
- data/lib/purecloudplatformclientv2/models/conversation_call_event_topic_call_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_call_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/conversation_call_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/conversation_callback_event_topic_callback_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_callback_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/conversation_callback_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/conversation_chat_event_topic_chat_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_chat_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/conversation_chat_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/conversation_cobrowse_event_topic_cobrowse_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_cobrowse_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/conversation_cobrowse_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/conversation_email_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/conversation_email_event_topic_email_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_email_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/conversation_event_topic_uri_reference.rb +226 -0
- data/lib/purecloudplatformclientv2/models/conversation_message_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/conversation_message_event_topic_message_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_message_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/conversation_screen_share_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/conversation_screen_share_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/conversation_screen_share_event_topic_screen_share_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_social_expression_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/conversation_social_expression_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/conversation_social_expression_event_topic_social_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/conversation_video_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/conversation_video_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/conversation_video_event_topic_video_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_call_event_topic_call_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_call_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_call_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_callback_event_topic_callback_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_callback_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_callback_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_chat_event_topic_chat_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_chat_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_chat_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_cobrowse_event_topic_cobrowse_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_cobrowse_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_cobrowse_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_email_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_email_event_topic_email_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_email_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_event_topic_uri_reference.rb +226 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_message_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_message_event_topic_message_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_message_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_screen_share_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_screen_share_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_screen_share_event_topic_screen_share_media_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_social_expression_event_topic_uri_reference.rb +226 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_conversation_routing_data.rb +305 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_participant.rb +26 -1
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_scored_agent.rb +226 -0
- data/lib/purecloudplatformclientv2/models/queue_conversation_video_event_topic_uri_reference.rb +226 -0
- data/lib/purecloudplatformclientv2/models/reporting_data_export_topic_data_export_notification.rb +2 -2
- data/lib/purecloudplatformclientv2/version.rb +1 -1
- metadata +90 -2
data/lib/purecloudplatformclientv2/models/conversation_video_event_topic_video_media_participant.rb
CHANGED
@@ -70,6 +70,8 @@ module PureCloud
|
|
70
70
|
|
71
71
|
attr_accessor :wrapup
|
72
72
|
|
73
|
+
attr_accessor :conversation_routing_data
|
74
|
+
|
73
75
|
attr_accessor :peer
|
74
76
|
|
75
77
|
attr_accessor :screen_recording_state
|
@@ -146,6 +148,8 @@ module PureCloud
|
|
146
148
|
|
147
149
|
:'wrapup' => :'wrapup',
|
148
150
|
|
151
|
+
:'conversation_routing_data' => :'conversationRoutingData',
|
152
|
+
|
149
153
|
:'peer' => :'peer',
|
150
154
|
|
151
155
|
:'screen_recording_state' => :'screenRecordingState',
|
@@ -225,6 +229,8 @@ module PureCloud
|
|
225
229
|
|
226
230
|
:'wrapup' => :'ConversationVideoEventTopicWrapup',
|
227
231
|
|
232
|
+
:'conversation_routing_data' => :'ConversationVideoEventTopicConversationRoutingData',
|
233
|
+
|
228
234
|
:'peer' => :'String',
|
229
235
|
|
230
236
|
:'screen_recording_state' => :'String',
|
@@ -493,6 +499,15 @@ module PureCloud
|
|
493
499
|
end
|
494
500
|
|
495
501
|
|
502
|
+
if attributes.has_key?(:'conversationRoutingData')
|
503
|
+
|
504
|
+
|
505
|
+
self.conversation_routing_data = attributes[:'conversationRoutingData']
|
506
|
+
|
507
|
+
|
508
|
+
end
|
509
|
+
|
510
|
+
|
496
511
|
if attributes.has_key?(:'peer')
|
497
512
|
|
498
513
|
|
@@ -724,6 +739,10 @@ module PureCloud
|
|
724
739
|
|
725
740
|
|
726
741
|
|
742
|
+
|
743
|
+
|
744
|
+
|
745
|
+
|
727
746
|
|
728
747
|
|
729
748
|
|
@@ -929,6 +948,11 @@ module PureCloud
|
|
929
948
|
|
930
949
|
|
931
950
|
|
951
|
+
|
952
|
+
|
953
|
+
|
954
|
+
|
955
|
+
|
932
956
|
|
933
957
|
|
934
958
|
|
@@ -1014,6 +1038,7 @@ module PureCloud
|
|
1014
1038
|
external_contact == o.external_contact &&
|
1015
1039
|
external_organization == o.external_organization &&
|
1016
1040
|
wrapup == o.wrapup &&
|
1041
|
+
conversation_routing_data == o.conversation_routing_data &&
|
1017
1042
|
peer == o.peer &&
|
1018
1043
|
screen_recording_state == o.screen_recording_state &&
|
1019
1044
|
flagged_reason == o.flagged_reason &&
|
@@ -1035,7 +1060,7 @@ module PureCloud
|
|
1035
1060
|
# Calculates hash code according to all attributes.
|
1036
1061
|
# @return [Fixnum] Hash code
|
1037
1062
|
def hash
|
1038
|
-
[id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, alerting_timeout_ms, provider, external_contact, external_organization, wrapup, peer, screen_recording_state, flagged_reason, journey_context, audio_muted, video_muted, sharing_screen, peer_count, context, msids].hash
|
1063
|
+
[id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, alerting_timeout_ms, provider, external_contact, external_organization, wrapup, conversation_routing_data, peer, screen_recording_state, flagged_reason, journey_context, audio_muted, video_muted, sharing_screen, peer_count, context, msids].hash
|
1039
1064
|
end
|
1040
1065
|
|
1041
1066
|
# build the object from hash
|
@@ -70,6 +70,8 @@ module PureCloud
|
|
70
70
|
|
71
71
|
attr_accessor :wrapup
|
72
72
|
|
73
|
+
attr_accessor :conversation_routing_data
|
74
|
+
|
73
75
|
attr_accessor :peer
|
74
76
|
|
75
77
|
attr_accessor :screen_recording_state
|
@@ -156,6 +158,8 @@ module PureCloud
|
|
156
158
|
|
157
159
|
:'wrapup' => :'wrapup',
|
158
160
|
|
161
|
+
:'conversation_routing_data' => :'conversationRoutingData',
|
162
|
+
|
159
163
|
:'peer' => :'peer',
|
160
164
|
|
161
165
|
:'screen_recording_state' => :'screenRecordingState',
|
@@ -245,6 +249,8 @@ module PureCloud
|
|
245
249
|
|
246
250
|
:'wrapup' => :'QueueConversationCallEventTopicWrapup',
|
247
251
|
|
252
|
+
:'conversation_routing_data' => :'QueueConversationCallEventTopicConversationRoutingData',
|
253
|
+
|
248
254
|
:'peer' => :'String',
|
249
255
|
|
250
256
|
:'screen_recording_state' => :'String',
|
@@ -523,6 +529,15 @@ module PureCloud
|
|
523
529
|
end
|
524
530
|
|
525
531
|
|
532
|
+
if attributes.has_key?(:'conversationRoutingData')
|
533
|
+
|
534
|
+
|
535
|
+
self.conversation_routing_data = attributes[:'conversationRoutingData']
|
536
|
+
|
537
|
+
|
538
|
+
end
|
539
|
+
|
540
|
+
|
526
541
|
if attributes.has_key?(:'peer')
|
527
542
|
|
528
543
|
|
@@ -797,6 +812,10 @@ module PureCloud
|
|
797
812
|
|
798
813
|
|
799
814
|
|
815
|
+
|
816
|
+
|
817
|
+
|
818
|
+
|
800
819
|
|
801
820
|
|
802
821
|
|
@@ -1027,6 +1046,11 @@ module PureCloud
|
|
1027
1046
|
|
1028
1047
|
|
1029
1048
|
|
1049
|
+
|
1050
|
+
|
1051
|
+
|
1052
|
+
|
1053
|
+
|
1030
1054
|
|
1031
1055
|
|
1032
1056
|
|
@@ -1146,6 +1170,7 @@ module PureCloud
|
|
1146
1170
|
external_contact == o.external_contact &&
|
1147
1171
|
external_organization == o.external_organization &&
|
1148
1172
|
wrapup == o.wrapup &&
|
1173
|
+
conversation_routing_data == o.conversation_routing_data &&
|
1149
1174
|
peer == o.peer &&
|
1150
1175
|
screen_recording_state == o.screen_recording_state &&
|
1151
1176
|
flagged_reason == o.flagged_reason &&
|
@@ -1172,7 +1197,7 @@ module PureCloud
|
|
1172
1197
|
# Calculates hash code according to all attributes.
|
1173
1198
|
# @return [Fixnum] Hash code
|
1174
1199
|
def hash
|
1175
|
-
[id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, alerting_timeout_ms, provider, external_contact, external_organization, wrapup, peer, screen_recording_state, flagged_reason, journey_context, muted, confined, recording, recording_state, group, ani, dnis, document_id, monitored_participant_id, consult_participant_id, fax_status].hash
|
1200
|
+
[id, name, address, start_time, connected_time, end_time, start_hold_time, purpose, state, direction, disconnect_type, held, wrapup_required, wrapup_prompt, user, queue, attributes, error_info, script, wrapup_timeout_ms, wrapup_skipped, alerting_timeout_ms, provider, external_contact, external_organization, wrapup, conversation_routing_data, peer, screen_recording_state, flagged_reason, journey_context, muted, confined, recording, recording_state, group, ani, dnis, document_id, monitored_participant_id, consult_participant_id, fax_status].hash
|
1176
1201
|
end
|
1177
1202
|
|
1178
1203
|
# build the object from hash
|
@@ -0,0 +1,305 @@
|
|
1
|
+
=begin
|
2
|
+
PureCloud Platform API
|
3
|
+
|
4
|
+
With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: DeveloperEvangelists@genesys.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
License: UNLICENSED
|
11
|
+
https://help.mypurecloud.com/articles/terms-and-conditions/
|
12
|
+
|
13
|
+
Terms of Service: https://help.mypurecloud.com/articles/terms-and-conditions/
|
14
|
+
|
15
|
+
=end
|
16
|
+
|
17
|
+
require 'date'
|
18
|
+
|
19
|
+
module PureCloud
|
20
|
+
class QueueConversationCallEventTopicConversationRoutingData
|
21
|
+
attr_accessor :queue
|
22
|
+
|
23
|
+
attr_accessor :language
|
24
|
+
|
25
|
+
attr_accessor :priority
|
26
|
+
|
27
|
+
attr_accessor :skills
|
28
|
+
|
29
|
+
attr_accessor :scored_agents
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
|
35
|
+
:'queue' => :'queue',
|
36
|
+
|
37
|
+
:'language' => :'language',
|
38
|
+
|
39
|
+
:'priority' => :'priority',
|
40
|
+
|
41
|
+
:'skills' => :'skills',
|
42
|
+
|
43
|
+
:'scored_agents' => :'scoredAgents'
|
44
|
+
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Attribute type mapping.
|
49
|
+
def self.swagger_types
|
50
|
+
{
|
51
|
+
|
52
|
+
:'queue' => :'QueueConversationCallEventTopicUriReference',
|
53
|
+
|
54
|
+
:'language' => :'QueueConversationCallEventTopicUriReference',
|
55
|
+
|
56
|
+
:'priority' => :'Integer',
|
57
|
+
|
58
|
+
:'skills' => :'Array<QueueConversationCallEventTopicUriReference>',
|
59
|
+
|
60
|
+
:'scored_agents' => :'Array<QueueConversationCallEventTopicScoredAgent>'
|
61
|
+
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Initializes the object
|
66
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
67
|
+
def initialize(attributes = {})
|
68
|
+
return unless attributes.is_a?(Hash)
|
69
|
+
|
70
|
+
# convert string to symbol for hash key
|
71
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
72
|
+
|
73
|
+
|
74
|
+
if attributes.has_key?(:'queue')
|
75
|
+
|
76
|
+
|
77
|
+
self.queue = attributes[:'queue']
|
78
|
+
|
79
|
+
|
80
|
+
end
|
81
|
+
|
82
|
+
|
83
|
+
if attributes.has_key?(:'language')
|
84
|
+
|
85
|
+
|
86
|
+
self.language = attributes[:'language']
|
87
|
+
|
88
|
+
|
89
|
+
end
|
90
|
+
|
91
|
+
|
92
|
+
if attributes.has_key?(:'priority')
|
93
|
+
|
94
|
+
|
95
|
+
self.priority = attributes[:'priority']
|
96
|
+
|
97
|
+
|
98
|
+
end
|
99
|
+
|
100
|
+
|
101
|
+
if attributes.has_key?(:'skills')
|
102
|
+
|
103
|
+
if (value = attributes[:'skills']).is_a?(Array)
|
104
|
+
self.skills = value
|
105
|
+
end
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
end
|
110
|
+
|
111
|
+
|
112
|
+
if attributes.has_key?(:'scoredAgents')
|
113
|
+
|
114
|
+
if (value = attributes[:'scoredAgents']).is_a?(Array)
|
115
|
+
self.scored_agents = value
|
116
|
+
end
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
end
|
121
|
+
|
122
|
+
|
123
|
+
end
|
124
|
+
|
125
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
126
|
+
# @return Array for valid properies with the reasons
|
127
|
+
def list_invalid_properties
|
128
|
+
invalid_properties = Array.new
|
129
|
+
|
130
|
+
|
131
|
+
return invalid_properties
|
132
|
+
end
|
133
|
+
|
134
|
+
# Check to see if the all the properties in the model are valid
|
135
|
+
# @return true if the model is valid
|
136
|
+
def valid?
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
end
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
# Checks equality by comparing each attribute.
|
187
|
+
# @param [Object] Object to be compared
|
188
|
+
def ==(o)
|
189
|
+
return true if self.equal?(o)
|
190
|
+
self.class == o.class &&
|
191
|
+
queue == o.queue &&
|
192
|
+
language == o.language &&
|
193
|
+
priority == o.priority &&
|
194
|
+
skills == o.skills &&
|
195
|
+
scored_agents == o.scored_agents
|
196
|
+
end
|
197
|
+
|
198
|
+
# @see the `==` method
|
199
|
+
# @param [Object] Object to be compared
|
200
|
+
def eql?(o)
|
201
|
+
self == o
|
202
|
+
end
|
203
|
+
|
204
|
+
# Calculates hash code according to all attributes.
|
205
|
+
# @return [Fixnum] Hash code
|
206
|
+
def hash
|
207
|
+
[queue, language, priority, skills, scored_agents].hash
|
208
|
+
end
|
209
|
+
|
210
|
+
# build the object from hash
|
211
|
+
def build_from_hash(attributes)
|
212
|
+
return nil unless attributes.is_a?(Hash)
|
213
|
+
self.class.swagger_types.each_pair do |key, type|
|
214
|
+
if type =~ /^Array<(.*)>/i
|
215
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
216
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
217
|
+
else
|
218
|
+
#TODO show warning in debug mode
|
219
|
+
end
|
220
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
221
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
222
|
+
else
|
223
|
+
# data not found in attributes(hash), not an issue as the data can be optional
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
self
|
228
|
+
end
|
229
|
+
|
230
|
+
def _deserialize(type, value)
|
231
|
+
case type.to_sym
|
232
|
+
when :DateTime
|
233
|
+
DateTime.parse(value)
|
234
|
+
when :Date
|
235
|
+
Date.parse(value)
|
236
|
+
when :String
|
237
|
+
value.to_s
|
238
|
+
when :Integer
|
239
|
+
value.to_i
|
240
|
+
when :Float
|
241
|
+
value.to_f
|
242
|
+
when :BOOLEAN
|
243
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
244
|
+
true
|
245
|
+
else
|
246
|
+
false
|
247
|
+
end
|
248
|
+
when :Object
|
249
|
+
# generic object (usually a Hash), return directly
|
250
|
+
value
|
251
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
252
|
+
inner_type = Regexp.last_match[:inner_type]
|
253
|
+
value.map { |v| _deserialize(inner_type, v) }
|
254
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
255
|
+
k_type = Regexp.last_match[:k_type]
|
256
|
+
v_type = Regexp.last_match[:v_type]
|
257
|
+
{}.tap do |hash|
|
258
|
+
value.each do |k, v|
|
259
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
260
|
+
end
|
261
|
+
end
|
262
|
+
else # model
|
263
|
+
_model = Object.const_get("PureCloud").const_get(type).new
|
264
|
+
_model.build_from_hash(value)
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
def to_s
|
269
|
+
to_hash.to_s
|
270
|
+
end
|
271
|
+
|
272
|
+
# to_body is an alias to to_body (backward compatibility))
|
273
|
+
def to_body
|
274
|
+
to_hash
|
275
|
+
end
|
276
|
+
|
277
|
+
# return the object in the form of hash
|
278
|
+
def to_hash
|
279
|
+
hash = {}
|
280
|
+
self.class.attribute_map.each_pair do |attr, param|
|
281
|
+
value = self.send(attr)
|
282
|
+
next if value.nil?
|
283
|
+
hash[param] = _to_hash(value)
|
284
|
+
end
|
285
|
+
hash
|
286
|
+
end
|
287
|
+
|
288
|
+
# Method to output non-array value in the form of hash
|
289
|
+
# For object, use to_hash. Otherwise, just return the value
|
290
|
+
def _to_hash(value)
|
291
|
+
if value.is_a?(Array)
|
292
|
+
value.compact.map{ |v| _to_hash(v) }
|
293
|
+
elsif value.is_a?(Hash)
|
294
|
+
{}.tap do |hash|
|
295
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
296
|
+
end
|
297
|
+
elsif value.respond_to? :to_hash
|
298
|
+
value.to_hash
|
299
|
+
else
|
300
|
+
value
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
304
|
+
end
|
305
|
+
end
|