purecloudplatformclientv2 6.0.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (377) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/AgentActivityEntityListing.md +2 -2
  4. data/docs/AttemptLimitsEntityListing.md +2 -2
  5. data/docs/AttributeEntityListing.md +2 -2
  6. data/docs/CalibrationEntityListing.md +2 -2
  7. data/docs/Call.md +1 -0
  8. data/docs/CallBasic.md +1 -0
  9. data/docs/CallConversationEntityListing.md +2 -2
  10. data/docs/CallConversationNotificationCallMediaParticipant.md +1 -0
  11. data/docs/CallConversationNotificationParticipants.md +1 -0
  12. data/docs/CallMediaParticipant.md +1 -0
  13. data/docs/CallableTimeSetEntityListing.md +2 -2
  14. data/docs/Callback.md +2 -0
  15. data/docs/CallbackBasic.md +2 -0
  16. data/docs/CallbackConversationEntityListing.md +2 -2
  17. data/docs/CallbackConversationNotificationCallbackMediaParticipant.md +1 -0
  18. data/docs/CallbackConversationNotificationParticipants.md +1 -0
  19. data/docs/CallbackMediaParticipant.md +2 -0
  20. data/docs/CampaignEntityListing.md +2 -2
  21. data/docs/CampaignRuleEntityListing.md +2 -2
  22. data/docs/CampaignSequenceEntityListing.md +2 -2
  23. data/docs/CertificateAuthorityEntityListing.md +2 -2
  24. data/docs/ChatConversationEntityListing.md +2 -2
  25. data/docs/ChatConversationNotificationChatMediaParticipant.md +1 -0
  26. data/docs/ChatConversationNotificationParticipants.md +1 -0
  27. data/docs/ChatMediaParticipant.md +1 -0
  28. data/docs/CobrowseConversationEntityListing.md +2 -2
  29. data/docs/CobrowseConversationNotificationCobrowseMediaParticipant.md +1 -0
  30. data/docs/CobrowseConversationNotificationParticipants.md +1 -0
  31. data/docs/CobrowseMediaParticipant.md +1 -0
  32. data/docs/Cobrowsesession.md +1 -0
  33. data/docs/CommandStatusEntityListing.md +2 -2
  34. data/docs/Condition.md +1 -1
  35. data/docs/ConsumedResourcesEntityListing.md +2 -2
  36. data/docs/ConsumingResourcesEntityListing.md +2 -2
  37. data/docs/Contact.md +1 -0
  38. data/docs/ContactListEntityListing.md +2 -2
  39. data/docs/ContactListFilterNotificationFilterPredicate.md +1 -0
  40. data/docs/ContactListFilterNotificationPredicates.md +1 -0
  41. data/docs/ContactListing.md +2 -2
  42. data/docs/ConversationChat.md +1 -0
  43. data/docs/ConversationEntityListing.md +2 -2
  44. data/docs/ConversationNotificationCall.md +1 -0
  45. data/docs/ConversationNotificationCallback.md +1 -0
  46. data/docs/ConversationNotificationCallbacks.md +1 -0
  47. data/docs/ConversationNotificationCalls.md +1 -0
  48. data/docs/ConversationNotificationChat.md +1 -0
  49. data/docs/ConversationNotificationChats.md +1 -0
  50. data/docs/ConversationNotificationCobrowse.md +1 -0
  51. data/docs/ConversationNotificationCobrowsesessions.md +1 -0
  52. data/docs/ConversationNotificationEmail.md +2 -0
  53. data/docs/ConversationNotificationEmails.md +2 -0
  54. data/docs/ConversationNotificationScreenshare.md +1 -0
  55. data/docs/ConversationNotificationScreenshares.md +1 -0
  56. data/docs/ConversationNotificationSocialExpression.md +1 -0
  57. data/docs/ConversationNotificationSocialExpressions.md +1 -0
  58. data/docs/ConversationNotificationVideo.md +1 -0
  59. data/docs/ConversationNotificationVideos.md +1 -0
  60. data/docs/DIDEntityListing.md +2 -2
  61. data/docs/DIDPoolEntityListing.md +2 -2
  62. data/docs/DependencyObjectEntityListing.md +2 -2
  63. data/docs/DependencyTypeEntityListing.md +2 -2
  64. data/docs/DialerEventEntityListing.md +2 -2
  65. data/docs/DncListEntityListing.md +2 -2
  66. data/docs/DocumentAuditEntityListing.md +2 -2
  67. data/docs/DocumentEntityListing.md +2 -2
  68. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +2 -2
  69. data/docs/DomainEntityListing.md +2 -2
  70. data/docs/DomainEntityListingEvaluationForm.md +2 -2
  71. data/docs/DomainEntityListingQueryResult.md +2 -2
  72. data/docs/DomainOrganizationRole.md +1 -1
  73. data/docs/DomainOrganizationRoleCreate.md +1 -1
  74. data/docs/DomainOrganizationRoleUpdate.md +1 -1
  75. data/docs/Edge.md +1 -1
  76. data/docs/EdgeEntityListing.md +2 -2
  77. data/docs/EdgeGroupEntityListing.md +2 -2
  78. data/docs/EdgeLineEntityListing.md +2 -2
  79. data/docs/Email.md +1 -0
  80. data/docs/EmailConversationEntityListing.md +2 -2
  81. data/docs/EmailConversationNotificationEmailMediaParticipant.md +2 -0
  82. data/docs/EmailConversationNotificationParticipants.md +2 -0
  83. data/docs/EmailMediaParticipant.md +1 -0
  84. data/docs/EmailMessageListing.md +2 -2
  85. data/docs/EncryptionKey.md +1 -0
  86. data/docs/EncryptionKeyEntityListing.md +2 -2
  87. data/docs/EndpointEntityListing.md +2 -2
  88. data/docs/EvaluationEntityListing.md +2 -2
  89. data/docs/EvaluationFormEntityListing.md +2 -2
  90. data/docs/EvaluatorActivityEntityListing.md +2 -2
  91. data/docs/ExtensionEntityListing.md +2 -2
  92. data/docs/ExtensionPoolEntityListing.md +2 -2
  93. data/docs/ExternalOrganizationListing.md +2 -2
  94. data/docs/FaxDocumentEntityListing.md +2 -2
  95. data/docs/Flow.md +2 -2
  96. data/docs/FlowEntityListing.md +2 -2
  97. data/docs/FlowVersion.md +1 -1
  98. data/docs/FlowVersionEntityListing.md +2 -2
  99. data/docs/GreetingListing.md +2 -2
  100. data/docs/GroupEntityListing.md +2 -2
  101. data/docs/HeartBeatAlertContainer.md +2 -2
  102. data/docs/HeartBeatRuleContainer.md +2 -2
  103. data/docs/InboundDomainEntityListing.md +2 -2
  104. data/docs/InboundRouteEntityListing.md +2 -2
  105. data/docs/InteractionStatsAlertContainer.md +2 -2
  106. data/docs/InteractionStatsRuleContainer.md +2 -2
  107. data/docs/JsonNode.md +4 -4
  108. data/docs/JsonSchemaDocument.md +1 -1
  109. data/docs/KeywordSetEntityListing.md +2 -2
  110. data/docs/LanguageEntityListing.md +2 -2
  111. data/docs/LibraryEntityListing.md +2 -2
  112. data/docs/LicenseDefinitionListing.md +2 -2
  113. data/docs/LineBaseEntityListing.md +2 -2
  114. data/docs/LineEntityListing.md +2 -2
  115. data/docs/LocationEntityListing.md +22 -0
  116. data/docs/LocationsApi.md +2 -2
  117. data/docs/LogicalInterfaceEntityListing.md +2 -2
  118. data/docs/ManagementUnit.md +1 -0
  119. data/docs/NoteListing.md +2 -2
  120. data/docs/OAuthClientEntityListing.md +2 -2
  121. data/docs/OAuthProviderEntityListing.md +2 -2
  122. data/docs/OrganizationPresenceEntityListing.md +2 -2
  123. data/docs/OrganizationRoleEntityListing.md +2 -2
  124. data/docs/OrphanRecordingListing.md +2 -2
  125. data/docs/OutboundRouteBaseEntityListing.md +2 -2
  126. data/docs/OutboundRouteEntityListing.md +2 -2
  127. data/docs/PermissionCollectionEntityListing.md +2 -2
  128. data/docs/PhoneBaseEntityListing.md +2 -2
  129. data/docs/PhoneEntityListing.md +2 -2
  130. data/docs/PhoneMetaBaseEntityListing.md +2 -2
  131. data/docs/PhysicalInterfaceEntityListing.md +2 -2
  132. data/docs/PolicyEntityListing.md +2 -2
  133. data/docs/PromptAssetEntityListing.md +2 -2
  134. data/docs/PromptEntityListing.md +2 -2
  135. data/docs/QualityAuditPage.md +2 -2
  136. data/docs/QueueEntityListing.md +2 -2
  137. data/docs/QueueMemberEntityListing.md +2 -2
  138. data/docs/RelationshipListing.md +2 -2
  139. data/docs/ReportMetaDataEntityListing.md +2 -2
  140. data/docs/ReportRunEntryEntityDomainListing.md +2 -2
  141. data/docs/ReportScheduleEntityListing.md +2 -2
  142. data/docs/ResponseEntityList.md +2 -2
  143. data/docs/ResponseEntityListing.md +2 -2
  144. data/docs/ResponseSetEntityListing.md +2 -2
  145. data/docs/RoutingStatusAlertContainer.md +2 -2
  146. data/docs/RoutingStatusRuleContainer.md +2 -2
  147. data/docs/RuleSetEntityListing.md +2 -2
  148. data/docs/SchemaCategoryEntityListing.md +2 -2
  149. data/docs/SchemaReferenceEntityListing.md +2 -2
  150. data/docs/ScreenRecordingSessionListing.md +2 -2
  151. data/docs/ScreenShareConversationNotificationParticipants.md +1 -0
  152. data/docs/ScreenShareConversationNotificationScreenShareMediaParticipant.md +1 -0
  153. data/docs/Screenshare.md +1 -0
  154. data/docs/ScriptEntityListing.md +2 -2
  155. data/docs/SecurityProfileEntityListing.md +2 -2
  156. data/docs/ShareEntityListing.md +2 -2
  157. data/docs/SiteEntityListing.md +2 -2
  158. data/docs/SkillEntityListing.md +2 -2
  159. data/docs/SocialConversationNotificationParticipants.md +1 -0
  160. data/docs/SocialConversationNotificationSocialMediaParticipant.md +1 -0
  161. data/docs/SocialExpression.md +1 -0
  162. data/docs/StationEntityListing.md +2 -2
  163. data/docs/SystemPromptAssetEntityListing.md +2 -2
  164. data/docs/SystemPromptEntityListing.md +2 -2
  165. data/docs/TagValueEntityListing.md +2 -2
  166. data/docs/TelephonyProvidersEdgeApi.md +74 -0
  167. data/docs/TimeZoneEntityListing.md +2 -2
  168. data/docs/TrunkBaseEntityListing.md +2 -2
  169. data/docs/TrunkEntityListing.md +2 -2
  170. data/docs/TrunkMetabaseEntityListing.md +2 -2
  171. data/docs/UpdateUser.md +2 -1
  172. data/docs/UserEntityListing.md +2 -2
  173. data/docs/UserPresenceAlertContainer.md +2 -2
  174. data/docs/UserPresenceRuleContainer.md +2 -2
  175. data/docs/UserQueueEntityListing.md +2 -2
  176. data/docs/UserRecordingEntityListing.md +2 -2
  177. data/docs/UserSkillEntityListing.md +2 -2
  178. data/docs/UsersApi.md +3 -1
  179. data/docs/Video.md +1 -0
  180. data/docs/VideoConversationNotificationParticipants.md +1 -0
  181. data/docs/VideoConversationNotificationVideoMediaParticipant.md +1 -0
  182. data/docs/Voicemail.md +13 -0
  183. data/docs/VoicemailMediaInfo.md +1 -0
  184. data/docs/VoicemailMessageEntityListing.md +2 -2
  185. data/docs/WorkforceManagementApi.md +14 -14
  186. data/docs/WorkspaceEntityListing.md +2 -2
  187. data/docs/WorkspaceMemberEntityListing.md +2 -2
  188. data/docs/WrapupCodeEntityListing.md +2 -2
  189. data/lib/purecloudplatformclientv2.rb +2 -0
  190. data/lib/purecloudplatformclientv2/api/locations_api.rb +3 -3
  191. data/lib/purecloudplatformclientv2/api/telephony_providers_edge_api.rb +78 -0
  192. data/lib/purecloudplatformclientv2/api/users_api.rb +6 -0
  193. data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +14 -14
  194. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +16 -16
  195. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +16 -16
  196. data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +16 -16
  197. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +16 -16
  198. data/lib/purecloudplatformclientv2/models/call.rb +14 -4
  199. data/lib/purecloudplatformclientv2/models/call_basic.rb +14 -4
  200. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +16 -16
  201. data/lib/purecloudplatformclientv2/models/call_conversation_notification_call_media_participant.rb +10 -1
  202. data/lib/purecloudplatformclientv2/models/call_conversation_notification_participants.rb +10 -1
  203. data/lib/purecloudplatformclientv2/models/call_media_participant.rb +11 -1
  204. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +16 -16
  205. data/lib/purecloudplatformclientv2/models/callback.rb +24 -4
  206. data/lib/purecloudplatformclientv2/models/callback_basic.rb +24 -4
  207. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +16 -16
  208. data/lib/purecloudplatformclientv2/models/callback_conversation_notification_callback_media_participant.rb +10 -1
  209. data/lib/purecloudplatformclientv2/models/callback_conversation_notification_participants.rb +10 -1
  210. data/lib/purecloudplatformclientv2/models/callback_media_participant.rb +21 -1
  211. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +16 -16
  212. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +16 -16
  213. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +16 -16
  214. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +16 -16
  215. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +16 -16
  216. data/lib/purecloudplatformclientv2/models/chat_conversation_notification_chat_media_participant.rb +10 -1
  217. data/lib/purecloudplatformclientv2/models/chat_conversation_notification_participants.rb +10 -1
  218. data/lib/purecloudplatformclientv2/models/chat_media_participant.rb +11 -1
  219. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +16 -16
  220. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_notification_cobrowse_media_participant.rb +10 -1
  221. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_notification_participants.rb +10 -1
  222. data/lib/purecloudplatformclientv2/models/cobrowse_media_participant.rb +11 -1
  223. data/lib/purecloudplatformclientv2/models/cobrowsesession.rb +11 -1
  224. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +16 -16
  225. data/lib/purecloudplatformclientv2/models/condition.rb +3 -3
  226. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +16 -16
  227. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +16 -16
  228. data/lib/purecloudplatformclientv2/models/contact.rb +14 -4
  229. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +16 -16
  230. data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_filter_predicate.rb +10 -1
  231. data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_predicates.rb +10 -1
  232. data/lib/purecloudplatformclientv2/models/contact_listing.rb +16 -16
  233. data/lib/purecloudplatformclientv2/models/conversation_chat.rb +14 -4
  234. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +16 -16
  235. data/lib/purecloudplatformclientv2/models/conversation_notification_call.rb +10 -1
  236. data/lib/purecloudplatformclientv2/models/conversation_notification_callback.rb +10 -1
  237. data/lib/purecloudplatformclientv2/models/conversation_notification_callbacks.rb +10 -1
  238. data/lib/purecloudplatformclientv2/models/conversation_notification_calls.rb +10 -1
  239. data/lib/purecloudplatformclientv2/models/conversation_notification_chat.rb +10 -1
  240. data/lib/purecloudplatformclientv2/models/conversation_notification_chats.rb +10 -1
  241. data/lib/purecloudplatformclientv2/models/conversation_notification_cobrowse.rb +10 -1
  242. data/lib/purecloudplatformclientv2/models/conversation_notification_cobrowsesessions.rb +10 -1
  243. data/lib/purecloudplatformclientv2/models/conversation_notification_email.rb +19 -1
  244. data/lib/purecloudplatformclientv2/models/conversation_notification_emails.rb +19 -1
  245. data/lib/purecloudplatformclientv2/models/conversation_notification_screenshare.rb +10 -1
  246. data/lib/purecloudplatformclientv2/models/conversation_notification_screenshares.rb +10 -1
  247. data/lib/purecloudplatformclientv2/models/conversation_notification_social_expression.rb +10 -1
  248. data/lib/purecloudplatformclientv2/models/conversation_notification_social_expressions.rb +10 -1
  249. data/lib/purecloudplatformclientv2/models/conversation_notification_video.rb +10 -1
  250. data/lib/purecloudplatformclientv2/models/conversation_notification_videos.rb +10 -1
  251. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +16 -16
  252. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +16 -16
  253. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +16 -16
  254. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +16 -16
  255. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +16 -16
  256. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +16 -16
  257. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +16 -16
  258. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +16 -16
  259. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +16 -16
  260. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +16 -16
  261. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +16 -16
  262. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +16 -16
  263. data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +10 -10
  264. data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +10 -10
  265. data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +10 -10
  266. data/lib/purecloudplatformclientv2/models/edge.rb +1 -0
  267. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +16 -16
  268. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +16 -16
  269. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +16 -16
  270. data/lib/purecloudplatformclientv2/models/email.rb +14 -4
  271. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +16 -16
  272. data/lib/purecloudplatformclientv2/models/email_conversation_notification_email_media_participant.rb +22 -4
  273. data/lib/purecloudplatformclientv2/models/email_conversation_notification_participants.rb +22 -4
  274. data/lib/purecloudplatformclientv2/models/email_media_participant.rb +11 -1
  275. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +16 -16
  276. data/lib/purecloudplatformclientv2/models/encryption_key.rb +11 -1
  277. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +16 -16
  278. data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +16 -16
  279. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +16 -16
  280. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +16 -16
  281. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +16 -16
  282. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +16 -16
  283. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +16 -16
  284. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +16 -16
  285. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +16 -16
  286. data/lib/purecloudplatformclientv2/models/flow.rb +2 -2
  287. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +16 -16
  288. data/lib/purecloudplatformclientv2/models/flow_version.rb +1 -1
  289. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +16 -16
  290. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +16 -16
  291. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +16 -16
  292. data/lib/purecloudplatformclientv2/models/heart_beat_alert_container.rb +16 -16
  293. data/lib/purecloudplatformclientv2/models/heart_beat_rule_container.rb +16 -16
  294. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +16 -16
  295. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +16 -16
  296. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +16 -16
  297. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +16 -16
  298. data/lib/purecloudplatformclientv2/models/json_node.rb +37 -37
  299. data/lib/purecloudplatformclientv2/models/json_schema_document.rb +13 -13
  300. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +16 -16
  301. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +16 -16
  302. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +16 -16
  303. data/lib/purecloudplatformclientv2/models/license_definition_listing.rb +16 -16
  304. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +16 -16
  305. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +16 -16
  306. data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +261 -0
  307. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +16 -16
  308. data/lib/purecloudplatformclientv2/models/management_unit.rb +11 -1
  309. data/lib/purecloudplatformclientv2/models/note_listing.rb +16 -16
  310. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +16 -16
  311. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +16 -16
  312. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +16 -16
  313. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +16 -16
  314. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +16 -16
  315. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +16 -16
  316. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +16 -16
  317. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +16 -16
  318. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +16 -16
  319. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +16 -16
  320. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +16 -16
  321. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +16 -16
  322. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +16 -16
  323. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +16 -16
  324. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +16 -16
  325. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +16 -16
  326. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +16 -16
  327. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +16 -16
  328. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +16 -16
  329. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +16 -16
  330. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +16 -16
  331. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +16 -16
  332. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +16 -16
  333. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +16 -16
  334. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +16 -16
  335. data/lib/purecloudplatformclientv2/models/routing_status_alert_container.rb +16 -16
  336. data/lib/purecloudplatformclientv2/models/routing_status_rule_container.rb +16 -16
  337. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +16 -16
  338. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +16 -16
  339. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +16 -16
  340. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +16 -16
  341. data/lib/purecloudplatformclientv2/models/screen_share_conversation_notification_participants.rb +10 -1
  342. data/lib/purecloudplatformclientv2/models/screen_share_conversation_notification_screen_share_media_participant.rb +10 -1
  343. data/lib/purecloudplatformclientv2/models/screenshare.rb +11 -1
  344. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +16 -16
  345. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +16 -16
  346. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +16 -16
  347. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +16 -16
  348. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +16 -16
  349. data/lib/purecloudplatformclientv2/models/social_conversation_notification_participants.rb +10 -1
  350. data/lib/purecloudplatformclientv2/models/social_conversation_notification_social_media_participant.rb +10 -1
  351. data/lib/purecloudplatformclientv2/models/social_expression.rb +14 -4
  352. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +16 -16
  353. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +16 -16
  354. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +16 -16
  355. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +16 -16
  356. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +16 -16
  357. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +16 -16
  358. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +16 -16
  359. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +16 -16
  360. data/lib/purecloudplatformclientv2/models/update_user.rb +30 -2
  361. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +16 -16
  362. data/lib/purecloudplatformclientv2/models/user_presence_alert_container.rb +16 -16
  363. data/lib/purecloudplatformclientv2/models/user_presence_rule_container.rb +16 -16
  364. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +16 -16
  365. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +16 -16
  366. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +16 -16
  367. data/lib/purecloudplatformclientv2/models/video.rb +14 -4
  368. data/lib/purecloudplatformclientv2/models/video_conversation_notification_participants.rb +10 -1
  369. data/lib/purecloudplatformclientv2/models/video_conversation_notification_video_media_participant.rb +10 -1
  370. data/lib/purecloudplatformclientv2/models/voicemail.rb +179 -0
  371. data/lib/purecloudplatformclientv2/models/voicemail_media_info.rb +15 -4
  372. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +16 -16
  373. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +16 -16
  374. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +16 -16
  375. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +16 -16
  376. data/lib/purecloudplatformclientv2/version.rb +1 -1
  377. metadata +6 -2
@@ -26,16 +26,16 @@ module PureCloud
26
26
 
27
27
  attr_accessor :total
28
28
 
29
+ attr_accessor :first_uri
30
+
29
31
  attr_accessor :self_uri
30
32
 
31
- attr_accessor :first_uri
33
+ attr_accessor :previous_uri
32
34
 
33
35
  attr_accessor :next_uri
34
36
 
35
37
  attr_accessor :last_uri
36
38
 
37
- attr_accessor :previous_uri
38
-
39
39
  attr_accessor :page_count
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,11 +45,11 @@ module PureCloud
45
45
  :'page_size' => :'pageSize',
46
46
  :'page_number' => :'pageNumber',
47
47
  :'total' => :'total',
48
- :'self_uri' => :'selfUri',
49
48
  :'first_uri' => :'firstUri',
49
+ :'self_uri' => :'selfUri',
50
+ :'previous_uri' => :'previousUri',
50
51
  :'next_uri' => :'nextUri',
51
52
  :'last_uri' => :'lastUri',
52
- :'previous_uri' => :'previousUri',
53
53
  :'page_count' => :'pageCount'
54
54
  }
55
55
  end
@@ -61,11 +61,11 @@ module PureCloud
61
61
  :'page_size' => :'Integer',
62
62
  :'page_number' => :'Integer',
63
63
  :'total' => :'Integer',
64
- :'self_uri' => :'String',
65
64
  :'first_uri' => :'String',
65
+ :'self_uri' => :'String',
66
+ :'previous_uri' => :'String',
66
67
  :'next_uri' => :'String',
67
68
  :'last_uri' => :'String',
68
- :'previous_uri' => :'String',
69
69
  :'page_count' => :'Integer'
70
70
  }
71
71
  end
@@ -96,12 +96,16 @@ module PureCloud
96
96
  self.total = attributes[:'total']
97
97
  end
98
98
 
99
+ if attributes.has_key?(:'firstUri')
100
+ self.first_uri = attributes[:'firstUri']
101
+ end
102
+
99
103
  if attributes.has_key?(:'selfUri')
100
104
  self.self_uri = attributes[:'selfUri']
101
105
  end
102
106
 
103
- if attributes.has_key?(:'firstUri')
104
- self.first_uri = attributes[:'firstUri']
107
+ if attributes.has_key?(:'previousUri')
108
+ self.previous_uri = attributes[:'previousUri']
105
109
  end
106
110
 
107
111
  if attributes.has_key?(:'nextUri')
@@ -112,10 +116,6 @@ module PureCloud
112
116
  self.last_uri = attributes[:'lastUri']
113
117
  end
114
118
 
115
- if attributes.has_key?(:'previousUri')
116
- self.previous_uri = attributes[:'previousUri']
117
- end
118
-
119
119
  if attributes.has_key?(:'pageCount')
120
120
  self.page_count = attributes[:'pageCount']
121
121
  end
@@ -143,11 +143,11 @@ module PureCloud
143
143
  page_size == o.page_size &&
144
144
  page_number == o.page_number &&
145
145
  total == o.total &&
146
- self_uri == o.self_uri &&
147
146
  first_uri == o.first_uri &&
147
+ self_uri == o.self_uri &&
148
+ previous_uri == o.previous_uri &&
148
149
  next_uri == o.next_uri &&
149
150
  last_uri == o.last_uri &&
150
- previous_uri == o.previous_uri &&
151
151
  page_count == o.page_count
152
152
  end
153
153
 
@@ -160,7 +160,7 @@ module PureCloud
160
160
  # Calculates hash code according to all attributes.
161
161
  # @return [Fixnum] Hash code
162
162
  def hash
163
- [entities, page_size, page_number, total, self_uri, first_uri, next_uri, last_uri, previous_uri, page_count].hash
163
+ [entities, page_size, page_number, total, first_uri, self_uri, previous_uri, next_uri, last_uri, page_count].hash
164
164
  end
165
165
 
166
166
  # build the object from hash
@@ -26,16 +26,16 @@ module PureCloud
26
26
 
27
27
  attr_accessor :total
28
28
 
29
+ attr_accessor :first_uri
30
+
29
31
  attr_accessor :self_uri
30
32
 
31
- attr_accessor :first_uri
33
+ attr_accessor :previous_uri
32
34
 
33
35
  attr_accessor :next_uri
34
36
 
35
37
  attr_accessor :last_uri
36
38
 
37
- attr_accessor :previous_uri
38
-
39
39
  attr_accessor :page_count
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,11 +45,11 @@ module PureCloud
45
45
  :'page_size' => :'pageSize',
46
46
  :'page_number' => :'pageNumber',
47
47
  :'total' => :'total',
48
- :'self_uri' => :'selfUri',
49
48
  :'first_uri' => :'firstUri',
49
+ :'self_uri' => :'selfUri',
50
+ :'previous_uri' => :'previousUri',
50
51
  :'next_uri' => :'nextUri',
51
52
  :'last_uri' => :'lastUri',
52
- :'previous_uri' => :'previousUri',
53
53
  :'page_count' => :'pageCount'
54
54
  }
55
55
  end
@@ -61,11 +61,11 @@ module PureCloud
61
61
  :'page_size' => :'Integer',
62
62
  :'page_number' => :'Integer',
63
63
  :'total' => :'Integer',
64
- :'self_uri' => :'String',
65
64
  :'first_uri' => :'String',
65
+ :'self_uri' => :'String',
66
+ :'previous_uri' => :'String',
66
67
  :'next_uri' => :'String',
67
68
  :'last_uri' => :'String',
68
- :'previous_uri' => :'String',
69
69
  :'page_count' => :'Integer'
70
70
  }
71
71
  end
@@ -96,12 +96,16 @@ module PureCloud
96
96
  self.total = attributes[:'total']
97
97
  end
98
98
 
99
+ if attributes.has_key?(:'firstUri')
100
+ self.first_uri = attributes[:'firstUri']
101
+ end
102
+
99
103
  if attributes.has_key?(:'selfUri')
100
104
  self.self_uri = attributes[:'selfUri']
101
105
  end
102
106
 
103
- if attributes.has_key?(:'firstUri')
104
- self.first_uri = attributes[:'firstUri']
107
+ if attributes.has_key?(:'previousUri')
108
+ self.previous_uri = attributes[:'previousUri']
105
109
  end
106
110
 
107
111
  if attributes.has_key?(:'nextUri')
@@ -112,10 +116,6 @@ module PureCloud
112
116
  self.last_uri = attributes[:'lastUri']
113
117
  end
114
118
 
115
- if attributes.has_key?(:'previousUri')
116
- self.previous_uri = attributes[:'previousUri']
117
- end
118
-
119
119
  if attributes.has_key?(:'pageCount')
120
120
  self.page_count = attributes[:'pageCount']
121
121
  end
@@ -143,11 +143,11 @@ module PureCloud
143
143
  page_size == o.page_size &&
144
144
  page_number == o.page_number &&
145
145
  total == o.total &&
146
- self_uri == o.self_uri &&
147
146
  first_uri == o.first_uri &&
147
+ self_uri == o.self_uri &&
148
+ previous_uri == o.previous_uri &&
148
149
  next_uri == o.next_uri &&
149
150
  last_uri == o.last_uri &&
150
- previous_uri == o.previous_uri &&
151
151
  page_count == o.page_count
152
152
  end
153
153
 
@@ -160,7 +160,7 @@ module PureCloud
160
160
  # Calculates hash code according to all attributes.
161
161
  # @return [Fixnum] Hash code
162
162
  def hash
163
- [entities, page_size, page_number, total, self_uri, first_uri, next_uri, last_uri, previous_uri, page_count].hash
163
+ [entities, page_size, page_number, total, first_uri, self_uri, previous_uri, next_uri, last_uri, page_count].hash
164
164
  end
165
165
 
166
166
  # build the object from hash
@@ -26,16 +26,16 @@ module PureCloud
26
26
 
27
27
  attr_accessor :total
28
28
 
29
+ attr_accessor :first_uri
30
+
29
31
  attr_accessor :self_uri
30
32
 
31
- attr_accessor :first_uri
33
+ attr_accessor :previous_uri
32
34
 
33
35
  attr_accessor :next_uri
34
36
 
35
37
  attr_accessor :last_uri
36
38
 
37
- attr_accessor :previous_uri
38
-
39
39
  attr_accessor :page_count
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,11 +45,11 @@ module PureCloud
45
45
  :'page_size' => :'pageSize',
46
46
  :'page_number' => :'pageNumber',
47
47
  :'total' => :'total',
48
- :'self_uri' => :'selfUri',
49
48
  :'first_uri' => :'firstUri',
49
+ :'self_uri' => :'selfUri',
50
+ :'previous_uri' => :'previousUri',
50
51
  :'next_uri' => :'nextUri',
51
52
  :'last_uri' => :'lastUri',
52
- :'previous_uri' => :'previousUri',
53
53
  :'page_count' => :'pageCount'
54
54
  }
55
55
  end
@@ -61,11 +61,11 @@ module PureCloud
61
61
  :'page_size' => :'Integer',
62
62
  :'page_number' => :'Integer',
63
63
  :'total' => :'Integer',
64
- :'self_uri' => :'String',
65
64
  :'first_uri' => :'String',
65
+ :'self_uri' => :'String',
66
+ :'previous_uri' => :'String',
66
67
  :'next_uri' => :'String',
67
68
  :'last_uri' => :'String',
68
- :'previous_uri' => :'String',
69
69
  :'page_count' => :'Integer'
70
70
  }
71
71
  end
@@ -96,12 +96,16 @@ module PureCloud
96
96
  self.total = attributes[:'total']
97
97
  end
98
98
 
99
+ if attributes.has_key?(:'firstUri')
100
+ self.first_uri = attributes[:'firstUri']
101
+ end
102
+
99
103
  if attributes.has_key?(:'selfUri')
100
104
  self.self_uri = attributes[:'selfUri']
101
105
  end
102
106
 
103
- if attributes.has_key?(:'firstUri')
104
- self.first_uri = attributes[:'firstUri']
107
+ if attributes.has_key?(:'previousUri')
108
+ self.previous_uri = attributes[:'previousUri']
105
109
  end
106
110
 
107
111
  if attributes.has_key?(:'nextUri')
@@ -112,10 +116,6 @@ module PureCloud
112
116
  self.last_uri = attributes[:'lastUri']
113
117
  end
114
118
 
115
- if attributes.has_key?(:'previousUri')
116
- self.previous_uri = attributes[:'previousUri']
117
- end
118
-
119
119
  if attributes.has_key?(:'pageCount')
120
120
  self.page_count = attributes[:'pageCount']
121
121
  end
@@ -143,11 +143,11 @@ module PureCloud
143
143
  page_size == o.page_size &&
144
144
  page_number == o.page_number &&
145
145
  total == o.total &&
146
- self_uri == o.self_uri &&
147
146
  first_uri == o.first_uri &&
147
+ self_uri == o.self_uri &&
148
+ previous_uri == o.previous_uri &&
148
149
  next_uri == o.next_uri &&
149
150
  last_uri == o.last_uri &&
150
- previous_uri == o.previous_uri &&
151
151
  page_count == o.page_count
152
152
  end
153
153
 
@@ -160,7 +160,7 @@ module PureCloud
160
160
  # Calculates hash code according to all attributes.
161
161
  # @return [Fixnum] Hash code
162
162
  def hash
163
- [entities, page_size, page_number, total, self_uri, first_uri, next_uri, last_uri, previous_uri, page_count].hash
163
+ [entities, page_size, page_number, total, first_uri, self_uri, previous_uri, next_uri, last_uri, page_count].hash
164
164
  end
165
165
 
166
166
  # build the object from hash
@@ -26,16 +26,16 @@ module PureCloud
26
26
 
27
27
  attr_accessor :total
28
28
 
29
+ attr_accessor :first_uri
30
+
29
31
  attr_accessor :self_uri
30
32
 
31
- attr_accessor :first_uri
33
+ attr_accessor :previous_uri
32
34
 
33
35
  attr_accessor :next_uri
34
36
 
35
37
  attr_accessor :last_uri
36
38
 
37
- attr_accessor :previous_uri
38
-
39
39
  attr_accessor :page_count
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,11 +45,11 @@ module PureCloud
45
45
  :'page_size' => :'pageSize',
46
46
  :'page_number' => :'pageNumber',
47
47
  :'total' => :'total',
48
- :'self_uri' => :'selfUri',
49
48
  :'first_uri' => :'firstUri',
49
+ :'self_uri' => :'selfUri',
50
+ :'previous_uri' => :'previousUri',
50
51
  :'next_uri' => :'nextUri',
51
52
  :'last_uri' => :'lastUri',
52
- :'previous_uri' => :'previousUri',
53
53
  :'page_count' => :'pageCount'
54
54
  }
55
55
  end
@@ -61,11 +61,11 @@ module PureCloud
61
61
  :'page_size' => :'Integer',
62
62
  :'page_number' => :'Integer',
63
63
  :'total' => :'Integer',
64
- :'self_uri' => :'String',
65
64
  :'first_uri' => :'String',
65
+ :'self_uri' => :'String',
66
+ :'previous_uri' => :'String',
66
67
  :'next_uri' => :'String',
67
68
  :'last_uri' => :'String',
68
- :'previous_uri' => :'String',
69
69
  :'page_count' => :'Integer'
70
70
  }
71
71
  end
@@ -96,12 +96,16 @@ module PureCloud
96
96
  self.total = attributes[:'total']
97
97
  end
98
98
 
99
+ if attributes.has_key?(:'firstUri')
100
+ self.first_uri = attributes[:'firstUri']
101
+ end
102
+
99
103
  if attributes.has_key?(:'selfUri')
100
104
  self.self_uri = attributes[:'selfUri']
101
105
  end
102
106
 
103
- if attributes.has_key?(:'firstUri')
104
- self.first_uri = attributes[:'firstUri']
107
+ if attributes.has_key?(:'previousUri')
108
+ self.previous_uri = attributes[:'previousUri']
105
109
  end
106
110
 
107
111
  if attributes.has_key?(:'nextUri')
@@ -112,10 +116,6 @@ module PureCloud
112
116
  self.last_uri = attributes[:'lastUri']
113
117
  end
114
118
 
115
- if attributes.has_key?(:'previousUri')
116
- self.previous_uri = attributes[:'previousUri']
117
- end
118
-
119
119
  if attributes.has_key?(:'pageCount')
120
120
  self.page_count = attributes[:'pageCount']
121
121
  end
@@ -143,11 +143,11 @@ module PureCloud
143
143
  page_size == o.page_size &&
144
144
  page_number == o.page_number &&
145
145
  total == o.total &&
146
- self_uri == o.self_uri &&
147
146
  first_uri == o.first_uri &&
147
+ self_uri == o.self_uri &&
148
+ previous_uri == o.previous_uri &&
148
149
  next_uri == o.next_uri &&
149
150
  last_uri == o.last_uri &&
150
- previous_uri == o.previous_uri &&
151
151
  page_count == o.page_count
152
152
  end
153
153
 
@@ -160,7 +160,7 @@ module PureCloud
160
160
  # Calculates hash code according to all attributes.
161
161
  # @return [Fixnum] Hash code
162
162
  def hash
163
- [entities, page_size, page_number, total, self_uri, first_uri, next_uri, last_uri, previous_uri, page_count].hash
163
+ [entities, page_size, page_number, total, first_uri, self_uri, previous_uri, next_uri, last_uri, page_count].hash
164
164
  end
165
165
 
166
166
  # build the object from hash
@@ -0,0 +1,261 @@
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: 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 LocationEntityListing
21
+ attr_accessor :entities
22
+
23
+ attr_accessor :page_size
24
+
25
+ attr_accessor :page_number
26
+
27
+ attr_accessor :total
28
+
29
+ attr_accessor :first_uri
30
+
31
+ attr_accessor :self_uri
32
+
33
+ attr_accessor :previous_uri
34
+
35
+ attr_accessor :next_uri
36
+
37
+ attr_accessor :last_uri
38
+
39
+ attr_accessor :page_count
40
+
41
+ # Attribute mapping from ruby-style variable name to JSON key.
42
+ def self.attribute_map
43
+ {
44
+ :'entities' => :'entities',
45
+ :'page_size' => :'pageSize',
46
+ :'page_number' => :'pageNumber',
47
+ :'total' => :'total',
48
+ :'first_uri' => :'firstUri',
49
+ :'self_uri' => :'selfUri',
50
+ :'previous_uri' => :'previousUri',
51
+ :'next_uri' => :'nextUri',
52
+ :'last_uri' => :'lastUri',
53
+ :'page_count' => :'pageCount'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ def self.swagger_types
59
+ {
60
+ :'entities' => :'Array<LocationDefinition>',
61
+ :'page_size' => :'Integer',
62
+ :'page_number' => :'Integer',
63
+ :'total' => :'Integer',
64
+ :'first_uri' => :'String',
65
+ :'self_uri' => :'String',
66
+ :'previous_uri' => :'String',
67
+ :'next_uri' => :'String',
68
+ :'last_uri' => :'String',
69
+ :'page_count' => :'Integer'
70
+ }
71
+ end
72
+
73
+ # Initializes the object
74
+ # @param [Hash] attributes Model attributes in the form of hash
75
+ def initialize(attributes = {})
76
+ return unless attributes.is_a?(Hash)
77
+
78
+ # convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
80
+
81
+ if attributes.has_key?(:'entities')
82
+ if (value = attributes[:'entities']).is_a?(Array)
83
+ self.entities = value
84
+ end
85
+ end
86
+
87
+ if attributes.has_key?(:'pageSize')
88
+ self.page_size = attributes[:'pageSize']
89
+ end
90
+
91
+ if attributes.has_key?(:'pageNumber')
92
+ self.page_number = attributes[:'pageNumber']
93
+ end
94
+
95
+ if attributes.has_key?(:'total')
96
+ self.total = attributes[:'total']
97
+ end
98
+
99
+ if attributes.has_key?(:'firstUri')
100
+ self.first_uri = attributes[:'firstUri']
101
+ end
102
+
103
+ if attributes.has_key?(:'selfUri')
104
+ self.self_uri = attributes[:'selfUri']
105
+ end
106
+
107
+ if attributes.has_key?(:'previousUri')
108
+ self.previous_uri = attributes[:'previousUri']
109
+ end
110
+
111
+ if attributes.has_key?(:'nextUri')
112
+ self.next_uri = attributes[:'nextUri']
113
+ end
114
+
115
+ if attributes.has_key?(:'lastUri')
116
+ self.last_uri = attributes[:'lastUri']
117
+ end
118
+
119
+ if attributes.has_key?(:'pageCount')
120
+ self.page_count = attributes[:'pageCount']
121
+ end
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
+ return invalid_properties
130
+ end
131
+
132
+ # Check to see if the all the properties in the model are valid
133
+ # @return true if the model is valid
134
+ def valid?
135
+ end
136
+
137
+ # Checks equality by comparing each attribute.
138
+ # @param [Object] Object to be compared
139
+ def ==(o)
140
+ return true if self.equal?(o)
141
+ self.class == o.class &&
142
+ entities == o.entities &&
143
+ page_size == o.page_size &&
144
+ page_number == o.page_number &&
145
+ total == o.total &&
146
+ first_uri == o.first_uri &&
147
+ self_uri == o.self_uri &&
148
+ previous_uri == o.previous_uri &&
149
+ next_uri == o.next_uri &&
150
+ last_uri == o.last_uri &&
151
+ page_count == o.page_count
152
+ end
153
+
154
+ # @see the `==` method
155
+ # @param [Object] Object to be compared
156
+ def eql?(o)
157
+ self == o
158
+ end
159
+
160
+ # Calculates hash code according to all attributes.
161
+ # @return [Fixnum] Hash code
162
+ def hash
163
+ [entities, page_size, page_number, total, first_uri, self_uri, previous_uri, next_uri, last_uri, page_count].hash
164
+ end
165
+
166
+ # build the object from hash
167
+ def build_from_hash(attributes)
168
+ return nil unless attributes.is_a?(Hash)
169
+ self.class.swagger_types.each_pair do |key, type|
170
+ if type =~ /^Array<(.*)>/i
171
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
172
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
173
+ else
174
+ #TODO show warning in debug mode
175
+ end
176
+ elsif !attributes[self.class.attribute_map[key]].nil?
177
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
178
+ else
179
+ # data not found in attributes(hash), not an issue as the data can be optional
180
+ end
181
+ end
182
+
183
+ self
184
+ end
185
+
186
+ def _deserialize(type, value)
187
+ case type.to_sym
188
+ when :DateTime
189
+ DateTime.parse(value)
190
+ when :Date
191
+ Date.parse(value)
192
+ when :String
193
+ value.to_s
194
+ when :Integer
195
+ value.to_i
196
+ when :Float
197
+ value.to_f
198
+ when :BOOLEAN
199
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
200
+ true
201
+ else
202
+ false
203
+ end
204
+ when :Object
205
+ # generic object (usually a Hash), return directly
206
+ value
207
+ when /\AArray<(?<inner_type>.+)>\z/
208
+ inner_type = Regexp.last_match[:inner_type]
209
+ value.map { |v| _deserialize(inner_type, v) }
210
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
211
+ k_type = Regexp.last_match[:k_type]
212
+ v_type = Regexp.last_match[:v_type]
213
+ {}.tap do |hash|
214
+ value.each do |k, v|
215
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
216
+ end
217
+ end
218
+ else # model
219
+ _model = Object.const_get("PureCloud").const_get(type).new
220
+ _model.build_from_hash(value)
221
+ end
222
+ end
223
+
224
+ def to_s
225
+ to_hash.to_s
226
+ end
227
+
228
+ # to_body is an alias to to_body (backward compatibility))
229
+ def to_body
230
+ to_hash
231
+ end
232
+
233
+ # return the object in the form of hash
234
+ def to_hash
235
+ hash = {}
236
+ self.class.attribute_map.each_pair do |attr, param|
237
+ value = self.send(attr)
238
+ next if value.nil?
239
+ hash[param] = _to_hash(value)
240
+ end
241
+ hash
242
+ end
243
+
244
+ # Method to output non-array value in the form of hash
245
+ # For object, use to_hash. Otherwise, just return the value
246
+ def _to_hash(value)
247
+ if value.is_a?(Array)
248
+ value.compact.map{ |v| _to_hash(v) }
249
+ elsif value.is_a?(Hash)
250
+ {}.tap do |hash|
251
+ value.each { |k, v| hash[k] = _to_hash(v) }
252
+ end
253
+ elsif value.respond_to? :to_hash
254
+ value.to_hash
255
+ else
256
+ value
257
+ end
258
+ end
259
+
260
+ end
261
+ end