purecloud 0.53.1 → 0.54.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (260) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/bin/notificationMappings.json +12 -0
  4. data/config-ruby.json +1 -1
  5. data/doc_out/ADFS.html.md +1 -1
  6. data/doc_out/Adjacents.html.md +15 -0
  7. data/doc_out/AgentActivityEntityListing.html.md +2 -2
  8. data/doc_out/AttemptLimitsEntityListing.html.md +2 -2
  9. data/doc_out/AttributeEntityListing.html.md +2 -2
  10. data/doc_out/CalibrationEntityListing.html.md +2 -2
  11. data/doc_out/CallConversationEntityListing.html.md +2 -2
  12. data/doc_out/CallConversationNotificationCallMediaParticipant.html.md +2 -0
  13. data/doc_out/CallConversationNotificationParticipants.html.md +3 -1
  14. data/doc_out/CallableTimeSetEntityListing.html.md +2 -2
  15. data/doc_out/CallbackConversationEntityListing.html.md +2 -2
  16. data/doc_out/CallbackConversationNotificationCallbackMediaParticipant.html.md +2 -0
  17. data/doc_out/CallbackConversationNotificationParticipants.html.md +2 -0
  18. data/doc_out/CampaignEntityListing.html.md +2 -2
  19. data/doc_out/CampaignSequenceEntityListing.html.md +2 -2
  20. data/doc_out/CertificateAuthorityEntityListing.html.md +2 -2
  21. data/doc_out/ChannelEntityListing.html.md +2 -2
  22. data/doc_out/ChatConversationEntityListing.html.md +2 -2
  23. data/doc_out/ChatConversationNotificationChatMediaParticipant.html.md +2 -0
  24. data/doc_out/ChatConversationNotificationParticipants.html.md +2 -0
  25. data/doc_out/CobrowseConversationEntityListing.html.md +2 -2
  26. data/doc_out/CobrowseConversationNotificationCobrowseMediaParticipant.html.md +2 -0
  27. data/doc_out/CobrowseConversationNotificationParticipants.html.md +2 -0
  28. data/doc_out/CommandStatusEntityListing.html.md +2 -2
  29. data/doc_out/ContactListEntityListing.html.md +2 -2
  30. data/doc_out/ConversationEntityListing.html.md +2 -2
  31. data/doc_out/ConversationNotificationParticipant.html.md +1 -0
  32. data/doc_out/ConversationNotificationParticipants.html.md +14 -13
  33. data/doc_out/CustomerInteractionCenter.html.md +1 -1
  34. data/doc_out/DIDEntityListing.html.md +2 -2
  35. data/doc_out/DIDPoolEntityListing.html.md +2 -2
  36. data/doc_out/DncListEntityListing.html.md +2 -2
  37. data/doc_out/DocumentAuditEntityListing.html.md +2 -2
  38. data/doc_out/DocumentEntityListing.html.md +2 -2
  39. data/doc_out/DomainEdgeSoftwareVersionDtoEntityListing.html.md +2 -2
  40. data/doc_out/DomainEntityListing.html.md +2 -2
  41. data/doc_out/DomainEntityListingEvaluationForm.html.md +2 -2
  42. data/doc_out/DomainEntityListingQueryResult.html.md +2 -2
  43. data/doc_out/EdgeEntityListing.html.md +2 -2
  44. data/doc_out/EdgeGroupEntityListing.html.md +2 -2
  45. data/doc_out/EdgeLineEntityListing.html.md +2 -2
  46. data/doc_out/EmailConversationEntityListing.html.md +2 -2
  47. data/doc_out/EmailConversationNotificationEmailMediaParticipant.html.md +2 -0
  48. data/doc_out/EmailConversationNotificationParticipants.html.md +12 -10
  49. data/doc_out/EmailMessageListing.html.md +2 -2
  50. data/doc_out/EncryptionKeyEntityListing.html.md +2 -2
  51. data/doc_out/EndpointEntityListing.html.md +2 -2
  52. data/doc_out/EvaluationEntityListing.html.md +2 -2
  53. data/doc_out/EvaluationFormEntityListing.html.md +2 -2
  54. data/doc_out/EvaluatorActivityEntityListing.html.md +2 -2
  55. data/doc_out/ExtensionEntityListing.html.md +2 -2
  56. data/doc_out/ExtensionPoolEntityListing.html.md +2 -2
  57. data/doc_out/FaxDocumentEntityListing.html.md +2 -2
  58. data/doc_out/GroupEntityListing.html.md +2 -2
  59. data/doc_out/HeartBeatAlertContainer.html.md +2 -2
  60. data/doc_out/HeartBeatRuleContainer.html.md +2 -2
  61. data/doc_out/InboundDomainEntityListing.html.md +2 -2
  62. data/doc_out/InboundRouteEntityListing.html.md +2 -2
  63. data/doc_out/InteractionStatsAlertContainer.html.md +2 -2
  64. data/doc_out/InteractionStatsRuleContainer.html.md +2 -2
  65. data/doc_out/JsonNode.html.md +1 -1
  66. data/doc_out/KeywordSetEntityListing.html.md +2 -2
  67. data/doc_out/LanguageEntityListing.html.md +2 -2
  68. data/doc_out/LibraryEntityListing.html.md +2 -2
  69. data/doc_out/LineBaseEntityListing.html.md +2 -2
  70. data/doc_out/LineEntityListing.html.md +2 -2
  71. data/doc_out/LogicalInterfaceEntityListing.html.md +2 -2
  72. data/doc_out/OAuthClientEntityListing.html.md +2 -2
  73. data/doc_out/OAuthProviderEntityListing.html.md +2 -2
  74. data/doc_out/Okta.html.md +1 -1
  75. data/doc_out/OneLogin.html.md +1 -1
  76. data/doc_out/OrganizationPresenceEntityListing.html.md +2 -2
  77. data/doc_out/OrganizationRoleEntityListing.html.md +2 -2
  78. data/doc_out/OrphanRecordingListing.html.md +2 -2
  79. data/doc_out/OutboundRouteEntityListing.html.md +2 -2
  80. data/doc_out/PermissionCollectionEntityListing.html.md +2 -2
  81. data/doc_out/PhoneBaseEntityListing.html.md +2 -2
  82. data/doc_out/PhoneEntityListing.html.md +2 -2
  83. data/doc_out/PhoneMetaBaseEntityListing.html.md +2 -2
  84. data/doc_out/PhysicalInterfaceEntityListing.html.md +2 -2
  85. data/doc_out/PolicyEntityListing.html.md +2 -2
  86. data/doc_out/QualityAuditPage.html.md +2 -2
  87. data/doc_out/QueueEntityListing.html.md +2 -2
  88. data/doc_out/QueueMemberEntityListing.html.md +2 -2
  89. data/doc_out/QueueMemberNotification.html.md +16 -0
  90. data/doc_out/ReportMetaDataEntityListing.html.md +2 -2
  91. data/doc_out/ReportRunEntryEntityDomainListing.html.md +2 -2
  92. data/doc_out/ReportScheduleEntityListing.html.md +2 -2
  93. data/doc_out/ResponseEntityList.html.md +2 -2
  94. data/doc_out/ResponseEntityListing.html.md +2 -2
  95. data/doc_out/ResponseSetEntityListing.html.md +2 -2
  96. data/doc_out/RuleSetEntityListing.html.md +2 -2
  97. data/doc_out/Salesforce.html.md +1 -1
  98. data/doc_out/SchemaCategoryEntityListing.html.md +2 -2
  99. data/doc_out/SchemaReferenceEntityListing.html.md +2 -2
  100. data/doc_out/ScreenRecordingSessionListing.html.md +2 -2
  101. data/doc_out/ScreenShareConversationNotificationParticipants.html.md +3 -1
  102. data/doc_out/ScreenShareConversationNotificationScreenShareMediaParticipant.html.md +2 -0
  103. data/doc_out/SecurityProfileEntityListing.html.md +2 -2
  104. data/doc_out/ShareEntityListing.html.md +2 -2
  105. data/doc_out/SiteEntityListing.html.md +2 -2
  106. data/doc_out/SkillEntityListing.html.md +2 -2
  107. data/doc_out/SocialConversationNotificationParticipants.html.md +2 -0
  108. data/doc_out/SocialConversationNotificationSocialMediaParticipant.html.md +2 -0
  109. data/doc_out/StationEntityListing.html.md +2 -2
  110. data/doc_out/TagValueEntityListing.html.md +2 -2
  111. data/doc_out/TimeZoneEntityListing.html.md +2 -2
  112. data/doc_out/TrunkEntityListing.html.md +2 -2
  113. data/doc_out/TrunkMetabaseEntityListing.html.md +2 -2
  114. data/doc_out/UserEntityListing.html.md +2 -2
  115. data/doc_out/UserMe.html.md +4 -0
  116. data/doc_out/UserQueueEntityListing.html.md +2 -2
  117. data/doc_out/UserRecordingEntityListing.html.md +2 -2
  118. data/doc_out/UserRoutingStatusNotification.html.md +13 -0
  119. data/doc_out/UserRoutingStatusNotificationRoutingStatus.html.md +14 -0
  120. data/doc_out/UserSkillEntityListing.html.md +2 -2
  121. data/doc_out/UsersApi.html.md +246 -0
  122. data/doc_out/UsersEntityListing.html.md +2 -2
  123. data/doc_out/VideoConversationNotificationParticipants.html.md +2 -0
  124. data/doc_out/VideoConversationNotificationVideoMediaParticipant.html.md +2 -0
  125. data/doc_out/VoicemailMessageNotification.html.md +20 -0
  126. data/doc_out/WorkspaceEntityListing.html.md +2 -2
  127. data/doc_out/WorkspaceMemberEntityListing.html.md +2 -2
  128. data/doc_out/WrapupCodeEntityListing.html.md +2 -2
  129. data/doc_out/index.html.md +3 -3
  130. data/lib/purecloud.rb +5 -0
  131. data/lib/purecloud/api/users_api.rb +257 -0
  132. data/lib/purecloud/api_client.rb +1 -1
  133. data/lib/purecloud/models/adfs.rb +11 -11
  134. data/lib/purecloud/models/adjacents.rb +191 -0
  135. data/lib/purecloud/models/agent_activity_entity_listing.rb +21 -21
  136. data/lib/purecloud/models/attempt_limits_entity_listing.rb +21 -21
  137. data/lib/purecloud/models/attribute_entity_listing.rb +21 -21
  138. data/lib/purecloud/models/calibration_entity_listing.rb +21 -21
  139. data/lib/purecloud/models/call_conversation_entity_listing.rb +21 -21
  140. data/lib/purecloud/models/call_conversation_notification_call_media_participant.rb +21 -1
  141. data/lib/purecloud/models/call_conversation_notification_participants.rb +27 -7
  142. data/lib/purecloud/models/callable_time_set_entity_listing.rb +21 -21
  143. data/lib/purecloud/models/callback_conversation_entity_listing.rb +21 -21
  144. data/lib/purecloud/models/callback_conversation_notification_callback_media_participant.rb +21 -1
  145. data/lib/purecloud/models/callback_conversation_notification_participants.rb +21 -1
  146. data/lib/purecloud/models/campaign_entity_listing.rb +21 -21
  147. data/lib/purecloud/models/campaign_sequence_entity_listing.rb +21 -21
  148. data/lib/purecloud/models/certificate_authority_entity_listing.rb +21 -21
  149. data/lib/purecloud/models/channel_entity_listing.rb +21 -21
  150. data/lib/purecloud/models/chat_conversation_entity_listing.rb +21 -21
  151. data/lib/purecloud/models/chat_conversation_notification_chat_media_participant.rb +21 -1
  152. data/lib/purecloud/models/chat_conversation_notification_participants.rb +21 -1
  153. data/lib/purecloud/models/cobrowse_conversation_entity_listing.rb +21 -21
  154. data/lib/purecloud/models/cobrowse_conversation_notification_cobrowse_media_participant.rb +21 -1
  155. data/lib/purecloud/models/cobrowse_conversation_notification_participants.rb +21 -1
  156. data/lib/purecloud/models/command_status_entity_listing.rb +21 -21
  157. data/lib/purecloud/models/contact_list_entity_listing.rb +21 -21
  158. data/lib/purecloud/models/conversation_entity_listing.rb +21 -21
  159. data/lib/purecloud/models/conversation_notification_participant.rb +11 -1
  160. data/lib/purecloud/models/conversation_notification_participants.rb +138 -128
  161. data/lib/purecloud/models/customer_interaction_center.rb +11 -11
  162. data/lib/purecloud/models/did_entity_listing.rb +21 -21
  163. data/lib/purecloud/models/did_pool_entity_listing.rb +21 -21
  164. data/lib/purecloud/models/dnc_list_entity_listing.rb +21 -21
  165. data/lib/purecloud/models/document_audit_entity_listing.rb +21 -21
  166. data/lib/purecloud/models/document_entity_listing.rb +21 -21
  167. data/lib/purecloud/models/domain_edge_software_version_dto_entity_listing.rb +21 -21
  168. data/lib/purecloud/models/domain_entity_listing.rb +21 -21
  169. data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +21 -21
  170. data/lib/purecloud/models/domain_entity_listing_query_result.rb +21 -21
  171. data/lib/purecloud/models/edge_entity_listing.rb +21 -21
  172. data/lib/purecloud/models/edge_group_entity_listing.rb +21 -21
  173. data/lib/purecloud/models/edge_line_entity_listing.rb +21 -21
  174. data/lib/purecloud/models/email_conversation_entity_listing.rb +21 -21
  175. data/lib/purecloud/models/email_conversation_notification_email_media_participant.rb +21 -1
  176. data/lib/purecloud/models/email_conversation_notification_participants.rb +113 -93
  177. data/lib/purecloud/models/email_message_listing.rb +21 -21
  178. data/lib/purecloud/models/encryption_key_entity_listing.rb +21 -21
  179. data/lib/purecloud/models/endpoint_entity_listing.rb +21 -21
  180. data/lib/purecloud/models/evaluation_entity_listing.rb +21 -21
  181. data/lib/purecloud/models/evaluation_form_entity_listing.rb +21 -21
  182. data/lib/purecloud/models/evaluator_activity_entity_listing.rb +21 -21
  183. data/lib/purecloud/models/extension_entity_listing.rb +21 -21
  184. data/lib/purecloud/models/extension_pool_entity_listing.rb +21 -21
  185. data/lib/purecloud/models/fax_document_entity_listing.rb +21 -21
  186. data/lib/purecloud/models/group_entity_listing.rb +21 -21
  187. data/lib/purecloud/models/heart_beat_alert_container.rb +21 -21
  188. data/lib/purecloud/models/heart_beat_rule_container.rb +21 -21
  189. data/lib/purecloud/models/inbound_domain_entity_listing.rb +21 -21
  190. data/lib/purecloud/models/inbound_route_entity_listing.rb +21 -21
  191. data/lib/purecloud/models/interaction_stats_alert_container.rb +21 -21
  192. data/lib/purecloud/models/interaction_stats_rule_container.rb +21 -21
  193. data/lib/purecloud/models/json_node.rb +13 -13
  194. data/lib/purecloud/models/keyword_set_entity_listing.rb +21 -21
  195. data/lib/purecloud/models/language_entity_listing.rb +21 -21
  196. data/lib/purecloud/models/library_entity_listing.rb +21 -21
  197. data/lib/purecloud/models/line_base_entity_listing.rb +21 -21
  198. data/lib/purecloud/models/line_entity_listing.rb +21 -21
  199. data/lib/purecloud/models/logical_interface_entity_listing.rb +21 -21
  200. data/lib/purecloud/models/o_auth_client_entity_listing.rb +21 -21
  201. data/lib/purecloud/models/o_auth_provider_entity_listing.rb +21 -21
  202. data/lib/purecloud/models/okta.rb +11 -11
  203. data/lib/purecloud/models/one_login.rb +11 -11
  204. data/lib/purecloud/models/organization_presence_entity_listing.rb +21 -21
  205. data/lib/purecloud/models/organization_role_entity_listing.rb +21 -21
  206. data/lib/purecloud/models/orphan_recording_listing.rb +21 -21
  207. data/lib/purecloud/models/outbound_route_entity_listing.rb +21 -21
  208. data/lib/purecloud/models/permission_collection_entity_listing.rb +21 -21
  209. data/lib/purecloud/models/phone_base_entity_listing.rb +21 -21
  210. data/lib/purecloud/models/phone_entity_listing.rb +21 -21
  211. data/lib/purecloud/models/phone_meta_base_entity_listing.rb +21 -21
  212. data/lib/purecloud/models/physical_interface_entity_listing.rb +21 -21
  213. data/lib/purecloud/models/policy_entity_listing.rb +21 -21
  214. data/lib/purecloud/models/quality_audit_page.rb +21 -21
  215. data/lib/purecloud/models/queue_entity_listing.rb +21 -21
  216. data/lib/purecloud/models/queue_member_entity_listing.rb +21 -21
  217. data/lib/purecloud/models/queue_member_notification.rb +195 -0
  218. data/lib/purecloud/models/report_meta_data_entity_listing.rb +21 -21
  219. data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +21 -21
  220. data/lib/purecloud/models/report_schedule_entity_listing.rb +21 -21
  221. data/lib/purecloud/models/response_entity_list.rb +21 -21
  222. data/lib/purecloud/models/response_entity_listing.rb +21 -21
  223. data/lib/purecloud/models/response_set_entity_listing.rb +21 -21
  224. data/lib/purecloud/models/rule_set_entity_listing.rb +21 -21
  225. data/lib/purecloud/models/salesforce.rb +11 -11
  226. data/lib/purecloud/models/schema_category_entity_listing.rb +21 -21
  227. data/lib/purecloud/models/schema_reference_entity_listing.rb +21 -21
  228. data/lib/purecloud/models/screen_recording_session_listing.rb +21 -21
  229. data/lib/purecloud/models/screen_share_conversation_notification_participants.rb +31 -11
  230. data/lib/purecloud/models/screen_share_conversation_notification_screen_share_media_participant.rb +21 -1
  231. data/lib/purecloud/models/security_profile_entity_listing.rb +21 -21
  232. data/lib/purecloud/models/share_entity_listing.rb +21 -21
  233. data/lib/purecloud/models/site_entity_listing.rb +21 -21
  234. data/lib/purecloud/models/skill_entity_listing.rb +21 -21
  235. data/lib/purecloud/models/social_conversation_notification_participants.rb +21 -1
  236. data/lib/purecloud/models/social_conversation_notification_social_media_participant.rb +21 -1
  237. data/lib/purecloud/models/station_entity_listing.rb +21 -21
  238. data/lib/purecloud/models/tag_value_entity_listing.rb +21 -21
  239. data/lib/purecloud/models/time_zone_entity_listing.rb +21 -21
  240. data/lib/purecloud/models/trunk_entity_listing.rb +21 -21
  241. data/lib/purecloud/models/trunk_metabase_entity_listing.rb +21 -21
  242. data/lib/purecloud/models/user_entity_listing.rb +21 -21
  243. data/lib/purecloud/models/user_me.rb +51 -1
  244. data/lib/purecloud/models/user_queue_entity_listing.rb +21 -21
  245. data/lib/purecloud/models/user_recording_entity_listing.rb +21 -21
  246. data/lib/purecloud/models/user_routing_status_notification.rb +165 -0
  247. data/lib/purecloud/models/user_routing_status_notification_routing_status.rb +184 -0
  248. data/lib/purecloud/models/user_skill_entity_listing.rb +21 -21
  249. data/lib/purecloud/models/users_entity_listing.rb +21 -21
  250. data/lib/purecloud/models/video_conversation_notification_participants.rb +21 -1
  251. data/lib/purecloud/models/video_conversation_notification_video_media_participant.rb +21 -1
  252. data/lib/purecloud/models/voicemail_message_notification.rb +235 -0
  253. data/lib/purecloud/models/workspace_entity_listing.rb +21 -21
  254. data/lib/purecloud/models/workspace_member_entity_listing.rb +21 -21
  255. data/lib/purecloud/models/wrapup_code_entity_listing.rb +21 -21
  256. data/lib/purecloud/version.rb +1 -1
  257. data/newVersion.md +1 -1
  258. data/swagger.json +1 -1
  259. data/version.json +1 -1
  260. metadata +12 -2
@@ -0,0 +1,184 @@
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@inin.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: ININ
11
+ http://www.inin.com
12
+
13
+ Terms of Service: https://developer.mypurecloud.com/tos
14
+
15
+ =end
16
+
17
+ require 'date'
18
+
19
+ module PureCloud
20
+ class UserRoutingStatusNotificationRoutingStatus
21
+ attr_accessor :start_time
22
+
23
+ attr_accessor :status
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+
29
+ :'start_time' => :'startTime',
30
+
31
+ :'status' => :'status'
32
+
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.swagger_types
38
+ {
39
+ :'start_time' => :'DateTime',
40
+ :'status' => :'String'
41
+
42
+ }
43
+ end
44
+
45
+ def initialize(attributes = {})
46
+ return unless attributes.is_a?(Hash)
47
+
48
+ # convert string to symbol for hash key
49
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
50
+
51
+
52
+ if attributes[:'startTime']
53
+ self.start_time = attributes[:'startTime']
54
+ end
55
+
56
+ if attributes[:'status']
57
+ self.status = attributes[:'status']
58
+ end
59
+
60
+ end
61
+
62
+ # Custom attribute writer method checking allowed values (enum).
63
+ def status=(status)
64
+ allowed_values = ["OFF_QUEUE", "IDLE", "INTERACTING", "NOT_RESPONDING", "COMMUNICATING"]
65
+ if status && !allowed_values.include?(status)
66
+ fail "invalid value for 'status', must be one of #{allowed_values}"
67
+ end
68
+ @status = status
69
+ end
70
+
71
+ # Check equality by comparing each attribute.
72
+ def ==(o)
73
+ return true if self.equal?(o)
74
+ self.class == o.class &&
75
+ start_time == o.start_time &&
76
+ status == o.status
77
+ end
78
+
79
+ # @see the `==` method
80
+ def eql?(o)
81
+ self == o
82
+ end
83
+
84
+ # Calculate hash code according to all attributes.
85
+ def hash
86
+ [start_time, status].hash
87
+ end
88
+
89
+ # build the object from hash
90
+ def build_from_hash(attributes)
91
+ return nil unless attributes.is_a?(Hash)
92
+ self.class.swagger_types.each_pair do |key, type|
93
+ if type =~ /^Array<(.*)>/i
94
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
95
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
96
+ else
97
+ #TODO show warning in debug mode
98
+ end
99
+ elsif !attributes[self.class.attribute_map[key]].nil?
100
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
101
+ else
102
+ # data not found in attributes(hash), not an issue as the data can be optional
103
+ end
104
+ end
105
+
106
+ self
107
+ end
108
+
109
+ def _deserialize(type, value)
110
+ case type.to_sym
111
+ when :DateTime
112
+ DateTime.parse(value)
113
+ when :Date
114
+ Date.parse(value)
115
+ when :String
116
+ value.to_s
117
+ when :Integer
118
+ value.to_i
119
+ when :Float
120
+ value.to_f
121
+ when :BOOLEAN
122
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
123
+ true
124
+ else
125
+ false
126
+ end
127
+ when :Object
128
+ # generic object (usually a Hash), return directly
129
+ value
130
+ when /\AArray<(?<inner_type>.+)>\z/
131
+ inner_type = Regexp.last_match[:inner_type]
132
+ value.map { |v| _deserialize(inner_type, v) }
133
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
134
+ k_type = Regexp.last_match[:k_type]
135
+ v_type = Regexp.last_match[:v_type]
136
+ {}.tap do |hash|
137
+ value.each do |k, v|
138
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
139
+ end
140
+ end
141
+ else # model
142
+ _model = Object.const_get("PureCloud").const_get(type).new
143
+ _model.build_from_hash(value)
144
+ end
145
+ end
146
+
147
+ def to_s
148
+ to_hash.to_s
149
+ end
150
+
151
+ # to_body is an alias to to_body (backward compatibility))
152
+ def to_body
153
+ to_hash
154
+ end
155
+
156
+ # return the object in the form of hash
157
+ def to_hash
158
+ hash = {}
159
+ self.class.attribute_map.each_pair do |attr, param|
160
+ value = self.send(attr)
161
+ next if value.nil?
162
+ hash[param] = _to_hash(value)
163
+ end
164
+ hash
165
+ end
166
+
167
+ # Method to output non-array value in the form of hash
168
+ # For object, use to_hash. Otherwise, just return the value
169
+ def _to_hash(value)
170
+ if value.is_a?(Array)
171
+ value.compact.map{ |v| _to_hash(v) }
172
+ elsif value.is_a?(Hash)
173
+ {}.tap do |hash|
174
+ value.each { |k, v| hash[k] = _to_hash(v) }
175
+ end
176
+ elsif value.respond_to? :to_hash
177
+ value.to_hash
178
+ else
179
+ value
180
+ end
181
+ end
182
+
183
+ end
184
+ end
@@ -26,16 +26,16 @@ module PureCloud
26
26
 
27
27
  attr_accessor :total
28
28
 
29
- attr_accessor :self_uri
30
-
31
29
  attr_accessor :first_uri
32
30
 
33
- attr_accessor :previous_uri
31
+ attr_accessor :self_uri
34
32
 
35
- attr_accessor :next_uri
33
+ attr_accessor :previous_uri
36
34
 
37
35
  attr_accessor :last_uri
38
36
 
37
+ attr_accessor :next_uri
38
+
39
39
  attr_accessor :page_count
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -50,16 +50,16 @@ module PureCloud
50
50
 
51
51
  :'total' => :'total',
52
52
 
53
- :'self_uri' => :'selfUri',
54
-
55
53
  :'first_uri' => :'firstUri',
56
54
 
57
- :'previous_uri' => :'previousUri',
55
+ :'self_uri' => :'selfUri',
58
56
 
59
- :'next_uri' => :'nextUri',
57
+ :'previous_uri' => :'previousUri',
60
58
 
61
59
  :'last_uri' => :'lastUri',
62
60
 
61
+ :'next_uri' => :'nextUri',
62
+
63
63
  :'page_count' => :'pageCount'
64
64
 
65
65
  }
@@ -72,11 +72,11 @@ module PureCloud
72
72
  :'page_size' => :'Integer',
73
73
  :'page_number' => :'Integer',
74
74
  :'total' => :'Integer',
75
- :'self_uri' => :'String',
76
75
  :'first_uri' => :'String',
76
+ :'self_uri' => :'String',
77
77
  :'previous_uri' => :'String',
78
- :'next_uri' => :'String',
79
78
  :'last_uri' => :'String',
79
+ :'next_uri' => :'String',
80
80
  :'page_count' => :'Integer'
81
81
 
82
82
  }
@@ -107,26 +107,26 @@ module PureCloud
107
107
  self.total = attributes[:'total']
108
108
  end
109
109
 
110
- if attributes[:'selfUri']
111
- self.self_uri = attributes[:'selfUri']
112
- end
113
-
114
110
  if attributes[:'firstUri']
115
111
  self.first_uri = attributes[:'firstUri']
116
112
  end
117
113
 
118
- if attributes[:'previousUri']
119
- self.previous_uri = attributes[:'previousUri']
114
+ if attributes[:'selfUri']
115
+ self.self_uri = attributes[:'selfUri']
120
116
  end
121
117
 
122
- if attributes[:'nextUri']
123
- self.next_uri = attributes[:'nextUri']
118
+ if attributes[:'previousUri']
119
+ self.previous_uri = attributes[:'previousUri']
124
120
  end
125
121
 
126
122
  if attributes[:'lastUri']
127
123
  self.last_uri = attributes[:'lastUri']
128
124
  end
129
125
 
126
+ if attributes[:'nextUri']
127
+ self.next_uri = attributes[:'nextUri']
128
+ end
129
+
130
130
  if attributes[:'pageCount']
131
131
  self.page_count = attributes[:'pageCount']
132
132
  end
@@ -141,11 +141,11 @@ module PureCloud
141
141
  page_size == o.page_size &&
142
142
  page_number == o.page_number &&
143
143
  total == o.total &&
144
- self_uri == o.self_uri &&
145
144
  first_uri == o.first_uri &&
145
+ self_uri == o.self_uri &&
146
146
  previous_uri == o.previous_uri &&
147
- next_uri == o.next_uri &&
148
147
  last_uri == o.last_uri &&
148
+ next_uri == o.next_uri &&
149
149
  page_count == o.page_count
150
150
  end
151
151
 
@@ -156,7 +156,7 @@ module PureCloud
156
156
 
157
157
  # Calculate hash code according to all attributes.
158
158
  def hash
159
- [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
159
+ [entities, page_size, page_number, total, first_uri, self_uri, previous_uri, last_uri, next_uri, page_count].hash
160
160
  end
161
161
 
162
162
  # build the object from hash
@@ -26,16 +26,16 @@ module PureCloud
26
26
 
27
27
  attr_accessor :total
28
28
 
29
- attr_accessor :self_uri
30
-
31
29
  attr_accessor :first_uri
32
30
 
33
- attr_accessor :previous_uri
31
+ attr_accessor :self_uri
34
32
 
35
- attr_accessor :next_uri
33
+ attr_accessor :previous_uri
36
34
 
37
35
  attr_accessor :last_uri
38
36
 
37
+ attr_accessor :next_uri
38
+
39
39
  attr_accessor :page_count
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -50,16 +50,16 @@ module PureCloud
50
50
 
51
51
  :'total' => :'total',
52
52
 
53
- :'self_uri' => :'selfUri',
54
-
55
53
  :'first_uri' => :'firstUri',
56
54
 
57
- :'previous_uri' => :'previousUri',
55
+ :'self_uri' => :'selfUri',
58
56
 
59
- :'next_uri' => :'nextUri',
57
+ :'previous_uri' => :'previousUri',
60
58
 
61
59
  :'last_uri' => :'lastUri',
62
60
 
61
+ :'next_uri' => :'nextUri',
62
+
63
63
  :'page_count' => :'pageCount'
64
64
 
65
65
  }
@@ -72,11 +72,11 @@ module PureCloud
72
72
  :'page_size' => :'Integer',
73
73
  :'page_number' => :'Integer',
74
74
  :'total' => :'Integer',
75
- :'self_uri' => :'String',
76
75
  :'first_uri' => :'String',
76
+ :'self_uri' => :'String',
77
77
  :'previous_uri' => :'String',
78
- :'next_uri' => :'String',
79
78
  :'last_uri' => :'String',
79
+ :'next_uri' => :'String',
80
80
  :'page_count' => :'Integer'
81
81
 
82
82
  }
@@ -107,26 +107,26 @@ module PureCloud
107
107
  self.total = attributes[:'total']
108
108
  end
109
109
 
110
- if attributes[:'selfUri']
111
- self.self_uri = attributes[:'selfUri']
112
- end
113
-
114
110
  if attributes[:'firstUri']
115
111
  self.first_uri = attributes[:'firstUri']
116
112
  end
117
113
 
118
- if attributes[:'previousUri']
119
- self.previous_uri = attributes[:'previousUri']
114
+ if attributes[:'selfUri']
115
+ self.self_uri = attributes[:'selfUri']
120
116
  end
121
117
 
122
- if attributes[:'nextUri']
123
- self.next_uri = attributes[:'nextUri']
118
+ if attributes[:'previousUri']
119
+ self.previous_uri = attributes[:'previousUri']
124
120
  end
125
121
 
126
122
  if attributes[:'lastUri']
127
123
  self.last_uri = attributes[:'lastUri']
128
124
  end
129
125
 
126
+ if attributes[:'nextUri']
127
+ self.next_uri = attributes[:'nextUri']
128
+ end
129
+
130
130
  if attributes[:'pageCount']
131
131
  self.page_count = attributes[:'pageCount']
132
132
  end
@@ -141,11 +141,11 @@ module PureCloud
141
141
  page_size == o.page_size &&
142
142
  page_number == o.page_number &&
143
143
  total == o.total &&
144
- self_uri == o.self_uri &&
145
144
  first_uri == o.first_uri &&
145
+ self_uri == o.self_uri &&
146
146
  previous_uri == o.previous_uri &&
147
- next_uri == o.next_uri &&
148
147
  last_uri == o.last_uri &&
148
+ next_uri == o.next_uri &&
149
149
  page_count == o.page_count
150
150
  end
151
151
 
@@ -156,7 +156,7 @@ module PureCloud
156
156
 
157
157
  # Calculate hash code according to all attributes.
158
158
  def hash
159
- [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
159
+ [entities, page_size, page_number, total, first_uri, self_uri, previous_uri, last_uri, next_uri, page_count].hash
160
160
  end
161
161
 
162
162
  # build the object from hash
@@ -48,12 +48,16 @@ module PureCloud
48
48
 
49
49
  attr_accessor :wrapup_timeout_ms
50
50
 
51
+ attr_accessor :external_organization
52
+
51
53
  attr_accessor :held
52
54
 
53
55
  attr_accessor :audio_muted
54
56
 
55
57
  attr_accessor :wrapup_required
56
58
 
59
+ attr_accessor :external_contact
60
+
57
61
  attr_accessor :provider
58
62
 
59
63
  attr_accessor :script
@@ -106,12 +110,16 @@ module PureCloud
106
110
 
107
111
  :'wrapup_timeout_ms' => :'wrapupTimeoutMs',
108
112
 
113
+ :'external_organization' => :'externalOrganization',
114
+
109
115
  :'held' => :'held',
110
116
 
111
117
  :'audio_muted' => :'audioMuted',
112
118
 
113
119
  :'wrapup_required' => :'wrapupRequired',
114
120
 
121
+ :'external_contact' => :'externalContact',
122
+
115
123
  :'provider' => :'provider',
116
124
 
117
125
  :'script' => :'script',
@@ -151,9 +159,11 @@ module PureCloud
151
159
  :'wrapup_prompt' => :'String',
152
160
  :'name' => :'String',
153
161
  :'wrapup_timeout_ms' => :'Integer',
162
+ :'external_organization' => :'VideoConversationNotificationUriReference',
154
163
  :'held' => :'BOOLEAN',
155
164
  :'audio_muted' => :'BOOLEAN',
156
165
  :'wrapup_required' => :'BOOLEAN',
166
+ :'external_contact' => :'VideoConversationNotificationUriReference',
157
167
  :'provider' => :'String',
158
168
  :'script' => :'VideoConversationNotificationUriReference',
159
169
  :'disconnect_type' => :'String',
@@ -234,6 +244,10 @@ module PureCloud
234
244
  self.wrapup_timeout_ms = attributes[:'wrapupTimeoutMs']
235
245
  end
236
246
 
247
+ if attributes[:'externalOrganization']
248
+ self.external_organization = attributes[:'externalOrganization']
249
+ end
250
+
237
251
  if attributes[:'held']
238
252
  self.held = attributes[:'held']
239
253
  end
@@ -246,6 +260,10 @@ module PureCloud
246
260
  self.wrapup_required = attributes[:'wrapupRequired']
247
261
  end
248
262
 
263
+ if attributes[:'externalContact']
264
+ self.external_contact = attributes[:'externalContact']
265
+ end
266
+
249
267
  if attributes[:'provider']
250
268
  self.provider = attributes[:'provider']
251
269
  end
@@ -332,9 +350,11 @@ module PureCloud
332
350
  wrapup_prompt == o.wrapup_prompt &&
333
351
  name == o.name &&
334
352
  wrapup_timeout_ms == o.wrapup_timeout_ms &&
353
+ external_organization == o.external_organization &&
335
354
  held == o.held &&
336
355
  audio_muted == o.audio_muted &&
337
356
  wrapup_required == o.wrapup_required &&
357
+ external_contact == o.external_contact &&
338
358
  provider == o.provider &&
339
359
  script == o.script &&
340
360
  disconnect_type == o.disconnect_type &&
@@ -353,7 +373,7 @@ module PureCloud
353
373
 
354
374
  # Calculate hash code according to all attributes.
355
375
  def hash
356
- [queue, video_muted, error_info, connected_time, direction, wrapup_skipped, peer_count, state, purpose, end_time, start_time, id, wrapup_prompt, name, wrapup_timeout_ms, held, audio_muted, wrapup_required, provider, script, disconnect_type, address, context, start_hold_time, attributes, sharing_screen, user].hash
376
+ [queue, video_muted, error_info, connected_time, direction, wrapup_skipped, peer_count, state, purpose, end_time, start_time, id, wrapup_prompt, name, wrapup_timeout_ms, external_organization, held, audio_muted, wrapup_required, external_contact, provider, script, disconnect_type, address, context, start_hold_time, attributes, sharing_screen, user].hash
357
377
  end
358
378
 
359
379
  # build the object from hash