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,238 @@
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 ChangeMyPasswordRequest
21
+ # The new password
22
+ attr_accessor :new_password
23
+
24
+ # Your current password
25
+ attr_accessor :old_password
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+
31
+ :'new_password' => :'newPassword',
32
+
33
+ :'old_password' => :'oldPassword'
34
+
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+
42
+ :'new_password' => :'String',
43
+
44
+ :'old_password' => :'String'
45
+
46
+ }
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ return unless attributes.is_a?(Hash)
53
+
54
+ # convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
56
+
57
+
58
+ if attributes.has_key?(:'newPassword')
59
+
60
+
61
+ self.new_password = attributes[:'newPassword']
62
+
63
+
64
+ end
65
+
66
+
67
+ if attributes.has_key?(:'oldPassword')
68
+
69
+
70
+ self.old_password = attributes[:'oldPassword']
71
+
72
+
73
+ end
74
+
75
+
76
+ end
77
+
78
+ # Show invalid properties with the reasons. Usually used together with valid?
79
+ # @return Array for valid properies with the reasons
80
+ def list_invalid_properties
81
+ invalid_properties = Array.new
82
+
83
+
84
+ return invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+
91
+
92
+ if @new_password.nil?
93
+ return false
94
+ end
95
+
96
+
97
+
98
+
99
+
100
+
101
+ if @old_password.nil?
102
+ return false
103
+ end
104
+
105
+
106
+
107
+
108
+
109
+ end
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+ # Checks equality by comparing each attribute.
123
+ # @param [Object] Object to be compared
124
+ def ==(o)
125
+ return true if self.equal?(o)
126
+ self.class == o.class &&
127
+ new_password == o.new_password &&
128
+ old_password == o.old_password
129
+ end
130
+
131
+ # @see the `==` method
132
+ # @param [Object] Object to be compared
133
+ def eql?(o)
134
+ self == o
135
+ end
136
+
137
+ # Calculates hash code according to all attributes.
138
+ # @return [Fixnum] Hash code
139
+ def hash
140
+ [new_password, old_password].hash
141
+ end
142
+
143
+ # build the object from hash
144
+ def build_from_hash(attributes)
145
+ return nil unless attributes.is_a?(Hash)
146
+ self.class.swagger_types.each_pair do |key, type|
147
+ if type =~ /^Array<(.*)>/i
148
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
149
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
150
+ else
151
+ #TODO show warning in debug mode
152
+ end
153
+ elsif !attributes[self.class.attribute_map[key]].nil?
154
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
155
+ else
156
+ # data not found in attributes(hash), not an issue as the data can be optional
157
+ end
158
+ end
159
+
160
+ self
161
+ end
162
+
163
+ def _deserialize(type, value)
164
+ case type.to_sym
165
+ when :DateTime
166
+ DateTime.parse(value)
167
+ when :Date
168
+ Date.parse(value)
169
+ when :String
170
+ value.to_s
171
+ when :Integer
172
+ value.to_i
173
+ when :Float
174
+ value.to_f
175
+ when :BOOLEAN
176
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
177
+ true
178
+ else
179
+ false
180
+ end
181
+ when :Object
182
+ # generic object (usually a Hash), return directly
183
+ value
184
+ when /\AArray<(?<inner_type>.+)>\z/
185
+ inner_type = Regexp.last_match[:inner_type]
186
+ value.map { |v| _deserialize(inner_type, v) }
187
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
188
+ k_type = Regexp.last_match[:k_type]
189
+ v_type = Regexp.last_match[:v_type]
190
+ {}.tap do |hash|
191
+ value.each do |k, v|
192
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
193
+ end
194
+ end
195
+ else # model
196
+ _model = Object.const_get("PureCloud").const_get(type).new
197
+ _model.build_from_hash(value)
198
+ end
199
+ end
200
+
201
+ def to_s
202
+ to_hash.to_s
203
+ end
204
+
205
+ # to_body is an alias to to_body (backward compatibility))
206
+ def to_body
207
+ to_hash
208
+ end
209
+
210
+ # return the object in the form of hash
211
+ def to_hash
212
+ hash = {}
213
+ self.class.attribute_map.each_pair do |attr, param|
214
+ value = self.send(attr)
215
+ next if value.nil?
216
+ hash[param] = _to_hash(value)
217
+ end
218
+ hash
219
+ end
220
+
221
+ # Method to output non-array value in the form of hash
222
+ # For object, use to_hash. Otherwise, just return the value
223
+ def _to_hash(value)
224
+ if value.is_a?(Array)
225
+ value.compact.map{ |v| _to_hash(v) }
226
+ elsif value.is_a?(Hash)
227
+ {}.tap do |hash|
228
+ value.each { |k, v| hash[k] = _to_hash(v) }
229
+ end
230
+ elsif value.respond_to? :to_hash
231
+ value.to_hash
232
+ else
233
+ value
234
+ end
235
+ end
236
+
237
+ end
238
+ end
@@ -0,0 +1,207 @@
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 ChangePasswordRequest
21
+ # The new password
22
+ attr_accessor :new_password
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+
28
+ :'new_password' => :'newPassword'
29
+
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.swagger_types
35
+ {
36
+
37
+ :'new_password' => :'String'
38
+
39
+ }
40
+ end
41
+
42
+ # Initializes the object
43
+ # @param [Hash] attributes Model attributes in the form of hash
44
+ def initialize(attributes = {})
45
+ return unless attributes.is_a?(Hash)
46
+
47
+ # convert string to symbol for hash key
48
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
49
+
50
+
51
+ if attributes.has_key?(:'newPassword')
52
+
53
+
54
+ self.new_password = attributes[:'newPassword']
55
+
56
+
57
+ end
58
+
59
+
60
+ end
61
+
62
+ # Show invalid properties with the reasons. Usually used together with valid?
63
+ # @return Array for valid properies with the reasons
64
+ def list_invalid_properties
65
+ invalid_properties = Array.new
66
+
67
+
68
+ return invalid_properties
69
+ end
70
+
71
+ # Check to see if the all the properties in the model are valid
72
+ # @return true if the model is valid
73
+ def valid?
74
+
75
+
76
+ if @new_password.nil?
77
+ return false
78
+ end
79
+
80
+
81
+
82
+
83
+
84
+ end
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+ # Checks equality by comparing each attribute.
93
+ # @param [Object] Object to be compared
94
+ def ==(o)
95
+ return true if self.equal?(o)
96
+ self.class == o.class &&
97
+ new_password == o.new_password
98
+ end
99
+
100
+ # @see the `==` method
101
+ # @param [Object] Object to be compared
102
+ def eql?(o)
103
+ self == o
104
+ end
105
+
106
+ # Calculates hash code according to all attributes.
107
+ # @return [Fixnum] Hash code
108
+ def hash
109
+ [new_password].hash
110
+ end
111
+
112
+ # build the object from hash
113
+ def build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ self.class.swagger_types.each_pair do |key, type|
116
+ if type =~ /^Array<(.*)>/i
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
119
+ else
120
+ #TODO show warning in debug mode
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ else
125
+ # data not found in attributes(hash), not an issue as the data can be optional
126
+ end
127
+ end
128
+
129
+ self
130
+ end
131
+
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :DateTime
135
+ DateTime.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :BOOLEAN
145
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ _model = Object.const_get("PureCloud").const_get(type).new
166
+ _model.build_from_hash(value)
167
+ end
168
+ end
169
+
170
+ def to_s
171
+ to_hash.to_s
172
+ end
173
+
174
+ # to_body is an alias to to_body (backward compatibility))
175
+ def to_body
176
+ to_hash
177
+ end
178
+
179
+ # return the object in the form of hash
180
+ def to_hash
181
+ hash = {}
182
+ self.class.attribute_map.each_pair do |attr, param|
183
+ value = self.send(attr)
184
+ next if value.nil?
185
+ hash[param] = _to_hash(value)
186
+ end
187
+ hash
188
+ end
189
+
190
+ # Method to output non-array value in the form of hash
191
+ # For object, use to_hash. Otherwise, just return the value
192
+ def _to_hash(value)
193
+ if value.is_a?(Array)
194
+ value.compact.map{ |v| _to_hash(v) }
195
+ elsif value.is_a?(Hash)
196
+ {}.tap do |hash|
197
+ value.each { |k, v| hash[k] = _to_hash(v) }
198
+ end
199
+ elsif value.respond_to? :to_hash
200
+ value.to_hash
201
+ else
202
+ value
203
+ end
204
+ end
205
+
206
+ end
207
+ 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