purecloudplatformclientv2 25.0.0 → 26.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/ActionEntityListing.md +1 -1
  4. data/docs/AgentActivityEntityListing.md +1 -1
  5. data/docs/ArchitectApi.md +633 -0
  6. data/docs/AttemptLimitsEntityListing.md +1 -1
  7. data/docs/AttributeEntityListing.md +1 -1
  8. data/docs/CalibrationEntityListing.md +1 -1
  9. data/docs/CallConversationEntityListing.md +1 -1
  10. data/docs/CallHistoryConversation.md +3 -0
  11. data/docs/CallHistoryConversationEntityListing.md +1 -1
  12. data/docs/CallableTimeSetEntityListing.md +1 -1
  13. data/docs/CallbackConversationEntityListing.md +1 -1
  14. data/docs/CampaignEntityListing.md +1 -1
  15. data/docs/CampaignRuleEntityListing.md +1 -1
  16. data/docs/CampaignSequenceEntityListing.md +1 -1
  17. data/docs/CertificateAuthorityEntityListing.md +1 -1
  18. data/docs/ChangeMyPasswordRequest.md +14 -0
  19. data/docs/ChangePasswordRequest.md +13 -0
  20. data/docs/ChatConversationEntityListing.md +1 -1
  21. data/docs/CobrowseConversationEntityListing.md +1 -1
  22. data/docs/CommandStatusEntityListing.md +1 -1
  23. data/docs/ConsumedResourcesEntityListing.md +1 -1
  24. data/docs/ConsumingResourcesEntityListing.md +1 -1
  25. data/docs/ContactListEntityListing.md +1 -1
  26. data/docs/ContactListFilterEntityListing.md +1 -1
  27. data/docs/ContactListNotification.md +2 -0
  28. data/docs/ContactListing.md +1 -1
  29. data/docs/ConversationEntityListing.md +1 -1
  30. data/docs/DIDEntityListing.md +1 -1
  31. data/docs/DIDPoolEntityListing.md +1 -1
  32. data/docs/DependencyObjectEntityListing.md +1 -1
  33. data/docs/DependencyTypeEntityListing.md +1 -1
  34. data/docs/DialerEventEntityListing.md +1 -1
  35. data/docs/DirectoryUserDevicesListing.md +1 -1
  36. data/docs/DncListEntityListing.md +1 -1
  37. data/docs/DocumentAuditEntityListing.md +1 -1
  38. data/docs/DocumentEntityListing.md +1 -1
  39. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +1 -1
  40. data/docs/DomainEntityListing.md +1 -1
  41. data/docs/DomainEntityListingEvaluationForm.md +1 -1
  42. data/docs/DomainEntityListingQueryResult.md +1 -1
  43. data/docs/DomainEntityListingSurveyForm.md +1 -1
  44. data/docs/EdgeEntityListing.md +1 -1
  45. data/docs/EdgeGroupEntityListing.md +1 -1
  46. data/docs/EdgeLineEntityListing.md +1 -1
  47. data/docs/EmailConversationEntityListing.md +1 -1
  48. data/docs/EmailMessageListing.md +1 -1
  49. data/docs/EncryptionKeyEntityListing.md +1 -1
  50. data/docs/EndpointEntityListing.md +1 -1
  51. data/docs/EvaluationEntityListing.md +1 -1
  52. data/docs/EvaluationFormEntityListing.md +1 -1
  53. data/docs/EvaluatorActivityEntityListing.md +1 -1
  54. data/docs/ExtensionEntityListing.md +1 -1
  55. data/docs/ExtensionPoolEntityListing.md +1 -1
  56. data/docs/ExternalContact.md +1 -1
  57. data/docs/ExternalOrganization.md +1 -0
  58. data/docs/ExternalOrganizationListing.md +1 -1
  59. data/docs/FaxDocumentEntityListing.md +1 -1
  60. data/docs/FlowEntityListing.md +1 -1
  61. data/docs/FlowVersionEntityListing.md +1 -1
  62. data/docs/GreetingListing.md +1 -1
  63. data/docs/GroupEntityListing.md +1 -1
  64. data/docs/IVREntityListing.md +1 -1
  65. data/docs/InboundDomainEntityListing.md +1 -1
  66. data/docs/InboundRouteEntityListing.md +1 -1
  67. data/docs/InteractionStatsAlertContainer.md +1 -1
  68. data/docs/InteractionStatsRuleContainer.md +1 -1
  69. data/docs/JsonNode.md +3 -3
  70. data/docs/JsonSchemaDocument.md +1 -0
  71. data/docs/KeywordSetEntityListing.md +1 -1
  72. data/docs/LanguageEntityListing.md +1 -1
  73. data/docs/LibraryEntityListing.md +1 -1
  74. data/docs/LineBaseEntityListing.md +1 -1
  75. data/docs/LineEntityListing.md +1 -1
  76. data/docs/LocationEntityListing.md +1 -1
  77. data/docs/LogicalInterfaceEntityListing.md +1 -1
  78. data/docs/ManagementUnitListing.md +1 -1
  79. data/docs/Metabase.md +1 -0
  80. data/docs/NoteListing.md +1 -1
  81. data/docs/OAuthClientEntityListing.md +1 -1
  82. data/docs/OAuthProviderEntityListing.md +1 -1
  83. data/docs/OrganizationPresenceEntityListing.md +1 -1
  84. data/docs/OrganizationRoleEntityListing.md +1 -1
  85. data/docs/OrphanRecordingListing.md +1 -1
  86. data/docs/OutboundRouteBaseEntityListing.md +1 -1
  87. data/docs/OutboundRouteEntityListing.md +1 -1
  88. data/docs/PermissionCollectionEntityListing.md +1 -1
  89. data/docs/PhoneBaseEntityListing.md +1 -1
  90. data/docs/PhoneEntityListing.md +1 -1
  91. data/docs/PhoneMetaBaseEntityListing.md +1 -1
  92. data/docs/PhysicalInterfaceEntityListing.md +1 -1
  93. data/docs/PolicyActions.md +1 -0
  94. data/docs/PolicyEntityListing.md +1 -1
  95. data/docs/PromptAssetEntityListing.md +1 -1
  96. data/docs/PromptEntityListing.md +1 -1
  97. data/docs/PublishForm.md +1 -1
  98. data/docs/QualityApi.md +4 -4
  99. data/docs/QualityAuditPage.md +1 -1
  100. data/docs/QueueEntityListing.md +1 -1
  101. data/docs/QueueMemberEntityListing.md +1 -1
  102. data/docs/RelationshipListing.md +1 -1
  103. data/docs/ReportMetaDataEntityListing.md +1 -1
  104. data/docs/ReportRunEntryEntityDomainListing.md +1 -1
  105. data/docs/ReportScheduleEntityListing.md +1 -1
  106. data/docs/ResponseEntityList.md +1 -1
  107. data/docs/ResponseEntityListing.md +1 -1
  108. data/docs/ResponseSetEntityListing.md +1 -1
  109. data/docs/RuleSetEntityListing.md +1 -1
  110. data/docs/ScheduleEntityListing.md +1 -1
  111. data/docs/ScheduleGroupEntityListing.md +1 -1
  112. data/docs/SchemaCategoryEntityListing.md +1 -1
  113. data/docs/SchemaReferenceEntityListing.md +1 -1
  114. data/docs/ScreenRecordingSessionListing.md +1 -1
  115. data/docs/ScriptEntityListing.md +1 -1
  116. data/docs/SecurityProfileEntityListing.md +1 -1
  117. data/docs/ShareEntityListing.md +1 -1
  118. data/docs/SiteEntityListing.md +1 -1
  119. data/docs/SkillEntityListing.md +1 -1
  120. data/docs/StationEntityListing.md +1 -1
  121. data/docs/SurveyAssignment.md +15 -0
  122. data/docs/SurveyFormEntityListing.md +1 -1
  123. data/docs/SurveyFormUriReference.md +16 -0
  124. data/docs/SystemPromptAssetEntityListing.md +1 -1
  125. data/docs/SystemPromptEntityListing.md +1 -1
  126. data/docs/TagValueEntityListing.md +1 -1
  127. data/docs/TimeZoneEntityListing.md +1 -1
  128. data/docs/TrunkBaseEntityListing.md +1 -1
  129. data/docs/TrunkEntityListing.md +1 -1
  130. data/docs/TrunkMetabaseEntityListing.md +1 -1
  131. data/docs/TrustEntityListing.md +1 -1
  132. data/docs/TrustUserEntityListing.md +1 -1
  133. data/docs/TrustorEntityListing.md +1 -1
  134. data/docs/UserEntityListing.md +1 -1
  135. data/docs/UserProfileEntityListing.md +1 -1
  136. data/docs/UserQueueEntityListing.md +1 -1
  137. data/docs/UserRecordingEntityListing.md +1 -1
  138. data/docs/UserSkillEntityListing.md +1 -1
  139. data/docs/UsersApi.md +121 -0
  140. data/docs/VoicemailMessageEntityListing.md +1 -1
  141. data/docs/WebChatApi.md +0 -60
  142. data/docs/WfmUpdateAgentDetailsCompleteNotification.md +1 -1
  143. data/docs/WorkspaceEntityListing.md +1 -1
  144. data/docs/WorkspaceMemberEntityListing.md +1 -1
  145. data/docs/WrapupCodeEntityListing.md +1 -1
  146. data/lib/purecloudplatformclientv2.rb +4 -0
  147. data/lib/purecloudplatformclientv2/api/architect_api.rb +838 -99
  148. data/lib/purecloudplatformclientv2/api/quality_api.rb +4 -4
  149. data/lib/purecloudplatformclientv2/api/users_api.rb +138 -0
  150. data/lib/purecloudplatformclientv2/api/web_chat_api.rb +0 -65
  151. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  152. data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +12 -12
  153. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +12 -12
  154. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +12 -12
  155. data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +12 -12
  156. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +12 -12
  157. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +12 -12
  158. data/lib/purecloudplatformclientv2/models/call_history_conversation.rb +79 -1
  159. data/lib/purecloudplatformclientv2/models/call_history_conversation_entity_listing.rb +12 -12
  160. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +12 -12
  161. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +12 -12
  162. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +12 -12
  163. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +12 -12
  164. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +12 -12
  165. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +12 -12
  166. data/lib/purecloudplatformclientv2/models/change_my_password_request.rb +238 -0
  167. data/lib/purecloudplatformclientv2/models/change_password_request.rb +207 -0
  168. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +12 -12
  169. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +12 -12
  170. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +12 -12
  171. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +12 -12
  172. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +12 -12
  173. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +12 -12
  174. data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +12 -12
  175. data/lib/purecloudplatformclientv2/models/contact_list_notification.rb +51 -1
  176. data/lib/purecloudplatformclientv2/models/contact_listing.rb +12 -12
  177. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +12 -12
  178. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +12 -12
  179. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +12 -12
  180. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +12 -12
  181. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +12 -12
  182. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +12 -12
  183. data/lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb +12 -12
  184. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +12 -12
  185. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +12 -12
  186. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +12 -12
  187. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +12 -12
  188. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +12 -12
  189. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +12 -12
  190. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +12 -12
  191. data/lib/purecloudplatformclientv2/models/domain_entity_listing_survey_form.rb +12 -12
  192. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +12 -12
  193. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +12 -12
  194. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +12 -12
  195. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +12 -12
  196. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +12 -12
  197. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +12 -12
  198. data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +12 -12
  199. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +12 -12
  200. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +12 -12
  201. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +12 -12
  202. data/lib/purecloudplatformclientv2/models/event_message.rb +2 -2
  203. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +12 -12
  204. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +12 -12
  205. data/lib/purecloudplatformclientv2/models/external_contact.rb +1 -0
  206. data/lib/purecloudplatformclientv2/models/external_organization.rb +27 -1
  207. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +12 -12
  208. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +12 -12
  209. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +12 -12
  210. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +12 -12
  211. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +12 -12
  212. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +12 -12
  213. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +12 -12
  214. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +12 -12
  215. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +12 -12
  216. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +12 -12
  217. data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +12 -12
  218. data/lib/purecloudplatformclientv2/models/json_node.rb +29 -29
  219. data/lib/purecloudplatformclientv2/models/json_schema_document.rb +29 -4
  220. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +12 -12
  221. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +12 -12
  222. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +12 -12
  223. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +12 -12
  224. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +12 -12
  225. data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +12 -12
  226. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +12 -12
  227. data/lib/purecloudplatformclientv2/models/management_unit_listing.rb +12 -12
  228. data/lib/purecloudplatformclientv2/models/metabase.rb +40 -1
  229. data/lib/purecloudplatformclientv2/models/note_listing.rb +12 -12
  230. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +12 -12
  231. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +12 -12
  232. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +12 -12
  233. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +12 -12
  234. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +12 -12
  235. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +12 -12
  236. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +12 -12
  237. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +12 -12
  238. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +12 -12
  239. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +12 -12
  240. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +12 -12
  241. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +12 -12
  242. data/lib/purecloudplatformclientv2/models/policy_actions.rb +28 -1
  243. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +12 -12
  244. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +12 -12
  245. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +12 -12
  246. data/lib/purecloudplatformclientv2/models/publish_form.rb +9 -9
  247. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +12 -12
  248. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +12 -12
  249. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +12 -12
  250. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +12 -12
  251. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +12 -12
  252. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +12 -12
  253. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +12 -12
  254. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +12 -12
  255. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +12 -12
  256. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +12 -12
  257. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +12 -12
  258. data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +12 -12
  259. data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +12 -12
  260. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +12 -12
  261. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +12 -12
  262. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +12 -12
  263. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +12 -12
  264. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +12 -12
  265. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +12 -12
  266. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +12 -12
  267. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +12 -12
  268. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +12 -12
  269. data/lib/purecloudplatformclientv2/models/survey_assignment.rb +254 -0
  270. data/lib/purecloudplatformclientv2/models/survey_form_entity_listing.rb +12 -12
  271. data/lib/purecloudplatformclientv2/models/survey_form_uri_reference.rb +277 -0
  272. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +12 -12
  273. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +12 -12
  274. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +12 -12
  275. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +12 -12
  276. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +12 -12
  277. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +12 -12
  278. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +12 -12
  279. data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +12 -12
  280. data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +12 -12
  281. data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +12 -12
  282. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +12 -12
  283. data/lib/purecloudplatformclientv2/models/user_profile_entity_listing.rb +12 -12
  284. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +12 -12
  285. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +12 -12
  286. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +12 -12
  287. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +12 -12
  288. data/lib/purecloudplatformclientv2/models/wfm_update_agent_details_complete_notification.rb +15 -15
  289. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +12 -12
  290. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +12 -12
  291. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +12 -12
  292. data/lib/purecloudplatformclientv2/version.rb +1 -1
  293. metadata +10 -2
@@ -0,0 +1,277 @@
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 SurveyFormUriReference
21
+ attr_accessor :id
22
+
23
+ attr_accessor :name
24
+
25
+ attr_accessor :self_uri
26
+
27
+ # The context id of this form.
28
+ attr_accessor :context_id
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+
34
+ :'id' => :'id',
35
+
36
+ :'name' => :'name',
37
+
38
+ :'self_uri' => :'selfUri',
39
+
40
+ :'context_id' => :'contextId'
41
+
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ def self.swagger_types
47
+ {
48
+
49
+ :'id' => :'String',
50
+
51
+ :'name' => :'String',
52
+
53
+ :'self_uri' => :'String',
54
+
55
+ :'context_id' => :'String'
56
+
57
+ }
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ return unless attributes.is_a?(Hash)
64
+
65
+ # convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
67
+
68
+
69
+ if attributes.has_key?(:'id')
70
+
71
+
72
+ self.id = attributes[:'id']
73
+
74
+
75
+ end
76
+
77
+
78
+ if attributes.has_key?(:'name')
79
+
80
+
81
+ self.name = attributes[:'name']
82
+
83
+
84
+ end
85
+
86
+
87
+ if attributes.has_key?(:'selfUri')
88
+
89
+
90
+ self.self_uri = attributes[:'selfUri']
91
+
92
+
93
+ end
94
+
95
+
96
+ if attributes.has_key?(:'contextId')
97
+
98
+
99
+ self.context_id = attributes[:'contextId']
100
+
101
+
102
+ end
103
+
104
+
105
+ end
106
+
107
+ # Show invalid properties with the reasons. Usually used together with valid?
108
+ # @return Array for valid properies with the reasons
109
+ def list_invalid_properties
110
+ invalid_properties = Array.new
111
+
112
+
113
+ return invalid_properties
114
+ end
115
+
116
+ # Check to see if the all the properties in the model are valid
117
+ # @return true if the model is valid
118
+ def valid?
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+ end
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+ # Checks equality by comparing each attribute.
160
+ # @param [Object] Object to be compared
161
+ def ==(o)
162
+ return true if self.equal?(o)
163
+ self.class == o.class &&
164
+ id == o.id &&
165
+ name == o.name &&
166
+ self_uri == o.self_uri &&
167
+ context_id == o.context_id
168
+ end
169
+
170
+ # @see the `==` method
171
+ # @param [Object] Object to be compared
172
+ def eql?(o)
173
+ self == o
174
+ end
175
+
176
+ # Calculates hash code according to all attributes.
177
+ # @return [Fixnum] Hash code
178
+ def hash
179
+ [id, name, self_uri, context_id].hash
180
+ end
181
+
182
+ # build the object from hash
183
+ def build_from_hash(attributes)
184
+ return nil unless attributes.is_a?(Hash)
185
+ self.class.swagger_types.each_pair do |key, type|
186
+ if type =~ /^Array<(.*)>/i
187
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
188
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
189
+ else
190
+ #TODO show warning in debug mode
191
+ end
192
+ elsif !attributes[self.class.attribute_map[key]].nil?
193
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
194
+ else
195
+ # data not found in attributes(hash), not an issue as the data can be optional
196
+ end
197
+ end
198
+
199
+ self
200
+ end
201
+
202
+ def _deserialize(type, value)
203
+ case type.to_sym
204
+ when :DateTime
205
+ DateTime.parse(value)
206
+ when :Date
207
+ Date.parse(value)
208
+ when :String
209
+ value.to_s
210
+ when :Integer
211
+ value.to_i
212
+ when :Float
213
+ value.to_f
214
+ when :BOOLEAN
215
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
216
+ true
217
+ else
218
+ false
219
+ end
220
+ when :Object
221
+ # generic object (usually a Hash), return directly
222
+ value
223
+ when /\AArray<(?<inner_type>.+)>\z/
224
+ inner_type = Regexp.last_match[:inner_type]
225
+ value.map { |v| _deserialize(inner_type, v) }
226
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
227
+ k_type = Regexp.last_match[:k_type]
228
+ v_type = Regexp.last_match[:v_type]
229
+ {}.tap do |hash|
230
+ value.each do |k, v|
231
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
232
+ end
233
+ end
234
+ else # model
235
+ _model = Object.const_get("PureCloud").const_get(type).new
236
+ _model.build_from_hash(value)
237
+ end
238
+ end
239
+
240
+ def to_s
241
+ to_hash.to_s
242
+ end
243
+
244
+ # to_body is an alias to to_body (backward compatibility))
245
+ def to_body
246
+ to_hash
247
+ end
248
+
249
+ # return the object in the form of hash
250
+ def to_hash
251
+ hash = {}
252
+ self.class.attribute_map.each_pair do |attr, param|
253
+ value = self.send(attr)
254
+ next if value.nil?
255
+ hash[param] = _to_hash(value)
256
+ end
257
+ hash
258
+ end
259
+
260
+ # Method to output non-array value in the form of hash
261
+ # For object, use to_hash. Otherwise, just return the value
262
+ def _to_hash(value)
263
+ if value.is_a?(Array)
264
+ value.compact.map{ |v| _to_hash(v) }
265
+ elsif value.is_a?(Hash)
266
+ {}.tap do |hash|
267
+ value.each { |k, v| hash[k] = _to_hash(v) }
268
+ end
269
+ elsif value.respond_to? :to_hash
270
+ value.to_hash
271
+ else
272
+ value
273
+ end
274
+ end
275
+
276
+ end
277
+ end
@@ -30,10 +30,10 @@ module PureCloud
30
30
 
31
31
  attr_accessor :first_uri
32
32
 
33
- attr_accessor :previous_uri
34
-
35
33
  attr_accessor :next_uri
36
34
 
35
+ attr_accessor :previous_uri
36
+
37
37
  attr_accessor :last_uri
38
38
 
39
39
  attr_accessor :page_count
@@ -54,10 +54,10 @@ module PureCloud
54
54
 
55
55
  :'first_uri' => :'firstUri',
56
56
 
57
- :'previous_uri' => :'previousUri',
58
-
59
57
  :'next_uri' => :'nextUri',
60
58
 
59
+ :'previous_uri' => :'previousUri',
60
+
61
61
  :'last_uri' => :'lastUri',
62
62
 
63
63
  :'page_count' => :'pageCount'
@@ -81,10 +81,10 @@ module PureCloud
81
81
 
82
82
  :'first_uri' => :'String',
83
83
 
84
- :'previous_uri' => :'String',
85
-
86
84
  :'next_uri' => :'String',
87
85
 
86
+ :'previous_uri' => :'String',
87
+
88
88
  :'last_uri' => :'String',
89
89
 
90
90
  :'page_count' => :'Integer'
@@ -157,19 +157,19 @@ module PureCloud
157
157
  end
158
158
 
159
159
 
160
- if attributes.has_key?(:'previousUri')
160
+ if attributes.has_key?(:'nextUri')
161
161
 
162
162
 
163
- self.previous_uri = attributes[:'previousUri']
163
+ self.next_uri = attributes[:'nextUri']
164
164
 
165
165
 
166
166
  end
167
167
 
168
168
 
169
- if attributes.has_key?(:'nextUri')
169
+ if attributes.has_key?(:'previousUri')
170
170
 
171
171
 
172
- self.next_uri = attributes[:'nextUri']
172
+ self.previous_uri = attributes[:'previousUri']
173
173
 
174
174
 
175
175
  end
@@ -312,8 +312,8 @@ module PureCloud
312
312
  total == o.total &&
313
313
  self_uri == o.self_uri &&
314
314
  first_uri == o.first_uri &&
315
- previous_uri == o.previous_uri &&
316
315
  next_uri == o.next_uri &&
316
+ previous_uri == o.previous_uri &&
317
317
  last_uri == o.last_uri &&
318
318
  page_count == o.page_count
319
319
  end
@@ -327,7 +327,7 @@ module PureCloud
327
327
  # Calculates hash code according to all attributes.
328
328
  # @return [Fixnum] Hash code
329
329
  def hash
330
- [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
330
+ [entities, page_size, page_number, total, self_uri, first_uri, next_uri, previous_uri, last_uri, page_count].hash
331
331
  end
332
332
 
333
333
  # build the object from hash
@@ -30,10 +30,10 @@ module PureCloud
30
30
 
31
31
  attr_accessor :first_uri
32
32
 
33
- attr_accessor :previous_uri
34
-
35
33
  attr_accessor :next_uri
36
34
 
35
+ attr_accessor :previous_uri
36
+
37
37
  attr_accessor :last_uri
38
38
 
39
39
  attr_accessor :page_count
@@ -54,10 +54,10 @@ module PureCloud
54
54
 
55
55
  :'first_uri' => :'firstUri',
56
56
 
57
- :'previous_uri' => :'previousUri',
58
-
59
57
  :'next_uri' => :'nextUri',
60
58
 
59
+ :'previous_uri' => :'previousUri',
60
+
61
61
  :'last_uri' => :'lastUri',
62
62
 
63
63
  :'page_count' => :'pageCount'
@@ -81,10 +81,10 @@ module PureCloud
81
81
 
82
82
  :'first_uri' => :'String',
83
83
 
84
- :'previous_uri' => :'String',
85
-
86
84
  :'next_uri' => :'String',
87
85
 
86
+ :'previous_uri' => :'String',
87
+
88
88
  :'last_uri' => :'String',
89
89
 
90
90
  :'page_count' => :'Integer'
@@ -157,19 +157,19 @@ module PureCloud
157
157
  end
158
158
 
159
159
 
160
- if attributes.has_key?(:'previousUri')
160
+ if attributes.has_key?(:'nextUri')
161
161
 
162
162
 
163
- self.previous_uri = attributes[:'previousUri']
163
+ self.next_uri = attributes[:'nextUri']
164
164
 
165
165
 
166
166
  end
167
167
 
168
168
 
169
- if attributes.has_key?(:'nextUri')
169
+ if attributes.has_key?(:'previousUri')
170
170
 
171
171
 
172
- self.next_uri = attributes[:'nextUri']
172
+ self.previous_uri = attributes[:'previousUri']
173
173
 
174
174
 
175
175
  end
@@ -312,8 +312,8 @@ module PureCloud
312
312
  total == o.total &&
313
313
  self_uri == o.self_uri &&
314
314
  first_uri == o.first_uri &&
315
- previous_uri == o.previous_uri &&
316
315
  next_uri == o.next_uri &&
316
+ previous_uri == o.previous_uri &&
317
317
  last_uri == o.last_uri &&
318
318
  page_count == o.page_count
319
319
  end
@@ -327,7 +327,7 @@ module PureCloud
327
327
  # Calculates hash code according to all attributes.
328
328
  # @return [Fixnum] Hash code
329
329
  def hash
330
- [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
330
+ [entities, page_size, page_number, total, self_uri, first_uri, next_uri, previous_uri, last_uri, page_count].hash
331
331
  end
332
332
 
333
333
  # build the object from hash
@@ -30,10 +30,10 @@ module PureCloud
30
30
 
31
31
  attr_accessor :first_uri
32
32
 
33
- attr_accessor :previous_uri
34
-
35
33
  attr_accessor :next_uri
36
34
 
35
+ attr_accessor :previous_uri
36
+
37
37
  attr_accessor :last_uri
38
38
 
39
39
  attr_accessor :page_count
@@ -54,10 +54,10 @@ module PureCloud
54
54
 
55
55
  :'first_uri' => :'firstUri',
56
56
 
57
- :'previous_uri' => :'previousUri',
58
-
59
57
  :'next_uri' => :'nextUri',
60
58
 
59
+ :'previous_uri' => :'previousUri',
60
+
61
61
  :'last_uri' => :'lastUri',
62
62
 
63
63
  :'page_count' => :'pageCount'
@@ -81,10 +81,10 @@ module PureCloud
81
81
 
82
82
  :'first_uri' => :'String',
83
83
 
84
- :'previous_uri' => :'String',
85
-
86
84
  :'next_uri' => :'String',
87
85
 
86
+ :'previous_uri' => :'String',
87
+
88
88
  :'last_uri' => :'String',
89
89
 
90
90
  :'page_count' => :'Integer'
@@ -157,19 +157,19 @@ module PureCloud
157
157
  end
158
158
 
159
159
 
160
- if attributes.has_key?(:'previousUri')
160
+ if attributes.has_key?(:'nextUri')
161
161
 
162
162
 
163
- self.previous_uri = attributes[:'previousUri']
163
+ self.next_uri = attributes[:'nextUri']
164
164
 
165
165
 
166
166
  end
167
167
 
168
168
 
169
- if attributes.has_key?(:'nextUri')
169
+ if attributes.has_key?(:'previousUri')
170
170
 
171
171
 
172
- self.next_uri = attributes[:'nextUri']
172
+ self.previous_uri = attributes[:'previousUri']
173
173
 
174
174
 
175
175
  end
@@ -312,8 +312,8 @@ module PureCloud
312
312
  total == o.total &&
313
313
  self_uri == o.self_uri &&
314
314
  first_uri == o.first_uri &&
315
- previous_uri == o.previous_uri &&
316
315
  next_uri == o.next_uri &&
316
+ previous_uri == o.previous_uri &&
317
317
  last_uri == o.last_uri &&
318
318
  page_count == o.page_count
319
319
  end
@@ -327,7 +327,7 @@ module PureCloud
327
327
  # Calculates hash code according to all attributes.
328
328
  # @return [Fixnum] Hash code
329
329
  def hash
330
- [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
330
+ [entities, page_size, page_number, total, self_uri, first_uri, next_uri, previous_uri, last_uri, page_count].hash
331
331
  end
332
332
 
333
333
  # build the object from hash