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
@@ -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
|
@@ -140,6 +142,8 @@ module PureCloud
|
|
140
142
|
|
141
143
|
:'wrapup' => :'wrapup',
|
142
144
|
|
145
|
+
:'conversation_routing_data' => :'conversationRoutingData',
|
146
|
+
|
143
147
|
:'peer' => :'peer',
|
144
148
|
|
145
149
|
:'screen_recording_state' => :'screenRecordingState',
|
@@ -213,6 +217,8 @@ module PureCloud
|
|
213
217
|
|
214
218
|
:'wrapup' => :'QueueConversationScreenShareEventTopicWrapup',
|
215
219
|
|
220
|
+
:'conversation_routing_data' => :'QueueConversationScreenShareEventTopicConversationRoutingData',
|
221
|
+
|
216
222
|
:'peer' => :'String',
|
217
223
|
|
218
224
|
:'screen_recording_state' => :'String',
|
@@ -475,6 +481,15 @@ module PureCloud
|
|
475
481
|
end
|
476
482
|
|
477
483
|
|
484
|
+
if attributes.has_key?(:'conversationRoutingData')
|
485
|
+
|
486
|
+
|
487
|
+
self.conversation_routing_data = attributes[:'conversationRoutingData']
|
488
|
+
|
489
|
+
|
490
|
+
end
|
491
|
+
|
492
|
+
|
478
493
|
if attributes.has_key?(:'peer')
|
479
494
|
|
480
495
|
|
@@ -677,6 +692,10 @@ module PureCloud
|
|
677
692
|
|
678
693
|
|
679
694
|
|
695
|
+
|
696
|
+
|
697
|
+
|
698
|
+
|
680
699
|
|
681
700
|
|
682
701
|
|
@@ -870,6 +889,11 @@ module PureCloud
|
|
870
889
|
|
871
890
|
|
872
891
|
|
892
|
+
|
893
|
+
|
894
|
+
|
895
|
+
|
896
|
+
|
873
897
|
|
874
898
|
|
875
899
|
|
@@ -940,6 +964,7 @@ module PureCloud
|
|
940
964
|
external_contact == o.external_contact &&
|
941
965
|
external_organization == o.external_organization &&
|
942
966
|
wrapup == o.wrapup &&
|
967
|
+
conversation_routing_data == o.conversation_routing_data &&
|
943
968
|
peer == o.peer &&
|
944
969
|
screen_recording_state == o.screen_recording_state &&
|
945
970
|
flagged_reason == o.flagged_reason &&
|
@@ -958,7 +983,7 @@ module PureCloud
|
|
958
983
|
# Calculates hash code according to all attributes.
|
959
984
|
# @return [Fixnum] Hash code
|
960
985
|
def hash
|
961
|
-
[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, context, peer_count, sharing].hash
|
986
|
+
[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, context, peer_count, sharing].hash
|
962
987
|
end
|
963
988
|
|
964
989
|
# 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 QueueConversationSocialExpressionEventTopicConversationRoutingData
|
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' => :'QueueConversationSocialExpressionEventTopicUriReference',
|
53
|
+
|
54
|
+
:'language' => :'QueueConversationSocialExpressionEventTopicUriReference',
|
55
|
+
|
56
|
+
:'priority' => :'Integer',
|
57
|
+
|
58
|
+
:'skills' => :'Array<QueueConversationSocialExpressionEventTopicUriReference>',
|
59
|
+
|
60
|
+
:'scored_agents' => :'Array<QueueConversationSocialExpressionEventTopicScoredAgent>'
|
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
|
@@ -52,6 +52,8 @@ module PureCloud
|
|
52
52
|
|
53
53
|
attr_accessor :wrapup
|
54
54
|
|
55
|
+
attr_accessor :conversation_routing_data
|
56
|
+
|
55
57
|
attr_accessor :alerting_timeout_ms
|
56
58
|
|
57
59
|
attr_accessor :monitored_participant_id
|
@@ -120,6 +122,8 @@ module PureCloud
|
|
120
122
|
|
121
123
|
:'wrapup' => :'wrapup',
|
122
124
|
|
125
|
+
:'conversation_routing_data' => :'conversationRoutingData',
|
126
|
+
|
123
127
|
:'alerting_timeout_ms' => :'alertingTimeoutMs',
|
124
128
|
|
125
129
|
:'monitored_participant_id' => :'monitoredParticipantId',
|
@@ -191,6 +195,8 @@ module PureCloud
|
|
191
195
|
|
192
196
|
:'wrapup' => :'QueueConversationSocialExpressionEventTopicWrapup',
|
193
197
|
|
198
|
+
:'conversation_routing_data' => :'QueueConversationSocialExpressionEventTopicConversationRoutingData',
|
199
|
+
|
194
200
|
:'alerting_timeout_ms' => :'Integer',
|
195
201
|
|
196
202
|
:'monitored_participant_id' => :'String',
|
@@ -386,6 +392,15 @@ module PureCloud
|
|
386
392
|
end
|
387
393
|
|
388
394
|
|
395
|
+
if attributes.has_key?(:'conversationRoutingData')
|
396
|
+
|
397
|
+
|
398
|
+
self.conversation_routing_data = attributes[:'conversationRoutingData']
|
399
|
+
|
400
|
+
|
401
|
+
end
|
402
|
+
|
403
|
+
|
389
404
|
if attributes.has_key?(:'alertingTimeoutMs')
|
390
405
|
|
391
406
|
|
@@ -629,6 +644,10 @@ module PureCloud
|
|
629
644
|
|
630
645
|
|
631
646
|
|
647
|
+
|
648
|
+
|
649
|
+
|
650
|
+
|
632
651
|
|
633
652
|
|
634
653
|
|
@@ -782,6 +801,11 @@ module PureCloud
|
|
782
801
|
|
783
802
|
|
784
803
|
|
804
|
+
|
805
|
+
|
806
|
+
|
807
|
+
|
808
|
+
|
785
809
|
|
786
810
|
|
787
811
|
|
@@ -883,6 +907,7 @@ module PureCloud
|
|
883
907
|
wrapup_prompt == o.wrapup_prompt &&
|
884
908
|
wrapup_timeout_ms == o.wrapup_timeout_ms &&
|
885
909
|
wrapup == o.wrapup &&
|
910
|
+
conversation_routing_data == o.conversation_routing_data &&
|
886
911
|
alerting_timeout_ms == o.alerting_timeout_ms &&
|
887
912
|
monitored_participant_id == o.monitored_participant_id &&
|
888
913
|
screen_recording_state == o.screen_recording_state &&
|
@@ -909,7 +934,7 @@ module PureCloud
|
|
909
934
|
# Calculates hash code according to all attributes.
|
910
935
|
# @return [Fixnum] Hash code
|
911
936
|
def hash
|
912
|
-
[id, connected_time, end_time, user_id, external_contact_id, external_organization_id, name, queue_id, group_id, purpose, consult_participant_id, address, wrapup_required, wrapup_expected, wrapup_prompt, wrapup_timeout_ms, wrapup, alerting_timeout_ms, monitored_participant_id, screen_recording_state, flagged_reason, attributes, calls, callbacks, chats, cobrowsesessions, emails, messages, screenshares, social_expressions, videos, additional_properties].hash
|
937
|
+
[id, connected_time, end_time, user_id, external_contact_id, external_organization_id, name, queue_id, group_id, purpose, consult_participant_id, address, wrapup_required, wrapup_expected, wrapup_prompt, wrapup_timeout_ms, wrapup, conversation_routing_data, alerting_timeout_ms, monitored_participant_id, screen_recording_state, flagged_reason, attributes, calls, callbacks, chats, cobrowsesessions, emails, messages, screenshares, social_expressions, videos, additional_properties].hash
|
913
938
|
end
|
914
939
|
|
915
940
|
# build the object from hash
|