purecloudplatformclientv2 12.0.0 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/AgentActivityEntityListing.md +2 -2
  4. data/docs/AlertingApi.md +78 -1575
  5. data/docs/ArchitectApi.md +75 -0
  6. data/docs/AttemptLimitsEntityListing.md +2 -2
  7. data/docs/AttributeEntityListing.md +2 -2
  8. data/docs/CalibrationEntityListing.md +2 -2
  9. data/docs/CallConversationEntityListing.md +2 -2
  10. data/docs/CallableTimeSetEntityListing.md +2 -2
  11. data/docs/CallbackConversationEntityListing.md +2 -2
  12. data/docs/CampaignEntityListing.md +2 -2
  13. data/docs/CampaignRuleEntityListing.md +2 -2
  14. data/docs/CampaignSequenceEntityListing.md +2 -2
  15. data/docs/CertificateAuthorityEntityListing.md +2 -2
  16. data/docs/ChatConversationEntityListing.md +2 -2
  17. data/docs/CobrowseConversationEntityListing.md +2 -2
  18. data/docs/CommandStatusEntityListing.md +2 -2
  19. data/docs/ConsumedResourcesEntityListing.md +2 -2
  20. data/docs/ConsumingResourcesEntityListing.md +2 -2
  21. data/docs/ContactListEntityListing.md +2 -2
  22. data/docs/ContactListFilterEntityListing.md +2 -2
  23. data/docs/ContactListing.md +2 -2
  24. data/docs/ConversationEntityListing.md +2 -2
  25. data/docs/DIDEntityListing.md +2 -2
  26. data/docs/DIDPoolEntityListing.md +2 -2
  27. data/docs/DependencyObjectEntityListing.md +2 -2
  28. data/docs/DependencyTypeEntityListing.md +2 -2
  29. data/docs/DialerEventEntityListing.md +2 -2
  30. data/docs/DncListEntityListing.md +2 -2
  31. data/docs/DocumentAuditEntityListing.md +2 -2
  32. data/docs/DocumentEntityListing.md +2 -2
  33. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +2 -2
  34. data/docs/DomainEntityListing.md +2 -2
  35. data/docs/DomainEntityListingEvaluationForm.md +2 -2
  36. data/docs/DomainEntityListingQueryResult.md +2 -2
  37. data/docs/EdgeEntityListing.md +2 -2
  38. data/docs/EdgeGroupEntityListing.md +2 -2
  39. data/docs/EdgeLineEntityListing.md +2 -2
  40. data/docs/EmailConversationEntityListing.md +2 -2
  41. data/docs/EmailMessageListing.md +2 -2
  42. data/docs/EncryptionKeyEntityListing.md +2 -2
  43. data/docs/EndpointEntityListing.md +2 -2
  44. data/docs/EvaluationEntityListing.md +2 -2
  45. data/docs/EvaluationFormEntityListing.md +2 -2
  46. data/docs/EvaluatorActivityEntityListing.md +2 -2
  47. data/docs/ExtensionEntityListing.md +2 -2
  48. data/docs/ExtensionPoolEntityListing.md +2 -2
  49. data/docs/ExternalContactsApi.md +2 -0
  50. data/docs/ExternalOrganizationListing.md +2 -2
  51. data/docs/FaxDocumentEntityListing.md +2 -2
  52. data/docs/FlowEntityListing.md +2 -2
  53. data/docs/FlowVersionEntityListing.md +2 -2
  54. data/docs/GreetingListing.md +2 -2
  55. data/docs/GroupEntityListing.md +2 -2
  56. data/docs/HistoryEntry.md +17 -0
  57. data/docs/HistoryListing.md +21 -0
  58. data/docs/InboundDomain.md +1 -1
  59. data/docs/InboundDomainEntityListing.md +2 -2
  60. data/docs/InboundRouteEntityListing.md +2 -2
  61. data/docs/InteractionStatsAlertContainer.md +2 -2
  62. data/docs/InteractionStatsRuleContainer.md +2 -2
  63. data/docs/KeywordSetEntityListing.md +2 -2
  64. data/docs/LanguageEntityListing.md +2 -2
  65. data/docs/LibraryEntityListing.md +2 -2
  66. data/docs/LineBaseEntityListing.md +2 -2
  67. data/docs/LineEntityListing.md +2 -2
  68. data/docs/LocationEntityListing.md +2 -2
  69. data/docs/LogicalInterfaceEntityListing.md +2 -2
  70. data/docs/NoteListing.md +2 -2
  71. data/docs/OAuthClientEntityListing.md +2 -2
  72. data/docs/OAuthProviderEntityListing.md +2 -2
  73. data/docs/OrganizationPresenceEntityListing.md +2 -2
  74. data/docs/OrganizationRoleEntityListing.md +2 -2
  75. data/docs/OrphanRecordingListing.md +2 -2
  76. data/docs/OutboundApi.md +2 -2
  77. data/docs/OutboundRouteBaseEntityListing.md +2 -2
  78. data/docs/OutboundRouteEntityListing.md +2 -2
  79. data/docs/PermissionCollectionEntityListing.md +2 -2
  80. data/docs/PhoneBaseEntityListing.md +2 -2
  81. data/docs/PhoneEntityListing.md +2 -2
  82. data/docs/PhoneMetaBaseEntityListing.md +2 -2
  83. data/docs/PhysicalInterfaceEntityListing.md +2 -2
  84. data/docs/PolicyEntityListing.md +2 -2
  85. data/docs/PromptAssetEntityListing.md +2 -2
  86. data/docs/PromptEntityListing.md +2 -2
  87. data/docs/QualityAuditPage.md +2 -2
  88. data/docs/QueueEntityListing.md +2 -2
  89. data/docs/QueueMemberEntityListing.md +2 -2
  90. data/docs/RelationshipListing.md +2 -2
  91. data/docs/ReportMetaDataEntityListing.md +2 -2
  92. data/docs/ReportRunEntryEntityDomainListing.md +2 -2
  93. data/docs/ReportScheduleEntityListing.md +2 -2
  94. data/docs/ResponseEntityList.md +2 -2
  95. data/docs/ResponseEntityListing.md +2 -2
  96. data/docs/ResponseSetEntityListing.md +2 -2
  97. data/docs/RuleSetEntityListing.md +2 -2
  98. data/docs/SchemaCategoryEntityListing.md +2 -2
  99. data/docs/SchemaReferenceEntityListing.md +2 -2
  100. data/docs/ScreenRecordingSessionListing.md +2 -2
  101. data/docs/ScriptEntityListing.md +2 -2
  102. data/docs/SecurityProfileEntityListing.md +2 -2
  103. data/docs/ShareEntityListing.md +2 -2
  104. data/docs/SiteEntityListing.md +2 -2
  105. data/docs/SkillEntityListing.md +2 -2
  106. data/docs/StationEntityListing.md +2 -2
  107. data/docs/SystemPromptAssetEntityListing.md +2 -2
  108. data/docs/SystemPromptEntityListing.md +2 -2
  109. data/docs/TagValueEntityListing.md +2 -2
  110. data/docs/TimeZoneEntityListing.md +2 -2
  111. data/docs/TrunkBaseEntityListing.md +2 -2
  112. data/docs/TrunkEntityListing.md +2 -2
  113. data/docs/TrunkMetabaseEntityListing.md +2 -2
  114. data/docs/UserEntityListing.md +2 -2
  115. data/docs/UserQueueEntityListing.md +2 -2
  116. data/docs/UserRecordingEntityListing.md +2 -2
  117. data/docs/UserSkillEntityListing.md +2 -2
  118. data/docs/Voicemail.md +1 -0
  119. data/docs/VoicemailMessageEntityListing.md +2 -2
  120. data/docs/WorkspaceEntityListing.md +2 -2
  121. data/docs/WorkspaceMemberEntityListing.md +2 -2
  122. data/docs/WrapupCodeEntityListing.md +2 -2
  123. data/lib/purecloudplatformclientv2.rb +2 -12
  124. data/lib/purecloudplatformclientv2/api/alerting_api.rb +133 -1819
  125. data/lib/purecloudplatformclientv2/api/architect_api.rb +124 -0
  126. data/lib/purecloudplatformclientv2/api/external_contacts_api.rb +9 -0
  127. data/lib/purecloudplatformclientv2/api/outbound_api.rb +2 -2
  128. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +25 -25
  129. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +25 -25
  130. data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +25 -25
  131. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +25 -25
  132. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +25 -25
  133. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +25 -25
  134. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +25 -25
  135. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +25 -25
  136. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +25 -25
  137. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +25 -25
  138. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +25 -25
  139. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +25 -25
  140. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +25 -25
  141. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +25 -25
  142. data/lib/purecloudplatformclientv2/models/condition.rb +2 -2
  143. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +25 -25
  144. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +25 -25
  145. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +25 -25
  146. data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +25 -25
  147. data/lib/purecloudplatformclientv2/models/contact_listing.rb +25 -25
  148. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +25 -25
  149. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +25 -25
  150. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +25 -25
  151. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +25 -25
  152. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +25 -25
  153. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +25 -25
  154. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +25 -25
  155. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +25 -25
  156. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +25 -25
  157. data/lib/purecloudplatformclientv2/models/documentation_search_criteria.rb +2 -2
  158. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +25 -25
  159. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +25 -25
  160. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +25 -25
  161. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +25 -25
  162. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +25 -25
  163. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +25 -25
  164. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +25 -25
  165. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +25 -25
  166. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +25 -25
  167. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +25 -25
  168. data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +25 -25
  169. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +25 -25
  170. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +25 -25
  171. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +25 -25
  172. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +25 -25
  173. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +25 -25
  174. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +25 -25
  175. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +25 -25
  176. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +25 -25
  177. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +25 -25
  178. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +25 -25
  179. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +25 -25
  180. data/lib/purecloudplatformclientv2/models/{heart_beat_alert_container.rb → history_entry.rb} +48 -159
  181. data/lib/purecloudplatformclientv2/models/{heart_beat_rule_container.rb → history_listing.rb} +27 -52
  182. data/lib/purecloudplatformclientv2/models/inbound_domain.rb +1 -1
  183. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +25 -25
  184. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +25 -25
  185. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +25 -25
  186. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +25 -25
  187. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +25 -25
  188. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +25 -25
  189. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +25 -25
  190. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +25 -25
  191. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +25 -25
  192. data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +25 -25
  193. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +25 -25
  194. data/lib/purecloudplatformclientv2/models/note_listing.rb +25 -25
  195. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +25 -25
  196. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +25 -25
  197. data/lib/purecloudplatformclientv2/models/operation.rb +2 -2
  198. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +25 -25
  199. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +25 -25
  200. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +25 -25
  201. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +25 -25
  202. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +25 -25
  203. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +25 -25
  204. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +25 -25
  205. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +25 -25
  206. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +25 -25
  207. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +25 -25
  208. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +25 -25
  209. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +25 -25
  210. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +25 -25
  211. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +25 -25
  212. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +25 -25
  213. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +25 -25
  214. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +25 -25
  215. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +25 -25
  216. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +25 -25
  217. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +25 -25
  218. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +25 -25
  219. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +25 -25
  220. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +25 -25
  221. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +25 -25
  222. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +25 -25
  223. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +25 -25
  224. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +25 -25
  225. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +25 -25
  226. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +25 -25
  227. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +25 -25
  228. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +25 -25
  229. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +25 -25
  230. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +25 -25
  231. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +25 -25
  232. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +25 -25
  233. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +25 -25
  234. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +25 -25
  235. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +25 -25
  236. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +25 -25
  237. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +25 -25
  238. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +25 -25
  239. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +25 -25
  240. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +25 -25
  241. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +25 -25
  242. data/lib/purecloudplatformclientv2/models/voicemail.rb +44 -4
  243. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +25 -25
  244. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +25 -25
  245. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +25 -25
  246. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +25 -25
  247. data/lib/purecloudplatformclientv2/version.rb +1 -1
  248. metadata +6 -26
  249. data/docs/HeartBeatAlert.md +0 -24
  250. data/docs/HeartBeatAlertContainer.md +0 -22
  251. data/docs/HeartBeatRule.md +0 -22
  252. data/docs/HeartBeatRuleContainer.md +0 -22
  253. data/docs/RoutingStatusAlert.md +0 -23
  254. data/docs/RoutingStatusAlertContainer.md +0 -22
  255. data/docs/RoutingStatusRule.md +0 -22
  256. data/docs/RoutingStatusRuleContainer.md +0 -22
  257. data/docs/UserPresenceAlert.md +0 -25
  258. data/docs/UserPresenceAlertContainer.md +0 -22
  259. data/docs/UserPresenceRule.md +0 -23
  260. data/docs/UserPresenceRuleContainer.md +0 -22
  261. data/lib/purecloudplatformclientv2/models/heart_beat_alert.rb +0 -545
  262. data/lib/purecloudplatformclientv2/models/heart_beat_rule.rb +0 -489
  263. data/lib/purecloudplatformclientv2/models/routing_status_alert.rb +0 -520
  264. data/lib/purecloudplatformclientv2/models/routing_status_alert_container.rb +0 -428
  265. data/lib/purecloudplatformclientv2/models/routing_status_rule.rb +0 -489
  266. data/lib/purecloudplatformclientv2/models/routing_status_rule_container.rb +0 -428
  267. data/lib/purecloudplatformclientv2/models/user_presence_alert.rb +0 -576
  268. data/lib/purecloudplatformclientv2/models/user_presence_alert_container.rb +0 -428
  269. data/lib/purecloudplatformclientv2/models/user_presence_rule.rb +0 -520
  270. data/lib/purecloudplatformclientv2/models/user_presence_rule_container.rb +0 -428
@@ -1,428 +0,0 @@
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 UserPresenceAlertContainer
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 :self_uri
30
-
31
- attr_accessor :first_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
-
45
- :'entities' => :'entities',
46
-
47
- :'page_size' => :'pageSize',
48
-
49
- :'page_number' => :'pageNumber',
50
-
51
- :'total' => :'total',
52
-
53
- :'self_uri' => :'selfUri',
54
-
55
- :'first_uri' => :'firstUri',
56
-
57
- :'previous_uri' => :'previousUri',
58
-
59
- :'next_uri' => :'nextUri',
60
-
61
- :'last_uri' => :'lastUri',
62
-
63
- :'page_count' => :'pageCount'
64
-
65
- }
66
- end
67
-
68
- # Attribute type mapping.
69
- def self.swagger_types
70
- {
71
-
72
- :'entities' => :'Array<UserPresenceAlert>',
73
-
74
- :'page_size' => :'Integer',
75
-
76
- :'page_number' => :'Integer',
77
-
78
- :'total' => :'Integer',
79
-
80
- :'self_uri' => :'String',
81
-
82
- :'first_uri' => :'String',
83
-
84
- :'previous_uri' => :'String',
85
-
86
- :'next_uri' => :'String',
87
-
88
- :'last_uri' => :'String',
89
-
90
- :'page_count' => :'Integer'
91
-
92
- }
93
- end
94
-
95
- # Initializes the object
96
- # @param [Hash] attributes Model attributes in the form of hash
97
- def initialize(attributes = {})
98
- return unless attributes.is_a?(Hash)
99
-
100
- # convert string to symbol for hash key
101
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
102
-
103
-
104
- if attributes.has_key?(:'entities')
105
-
106
- if (value = attributes[:'entities']).is_a?(Array)
107
- self.entities = value
108
- end
109
-
110
-
111
-
112
- end
113
-
114
-
115
- if attributes.has_key?(:'pageSize')
116
-
117
-
118
- self.page_size = attributes[:'pageSize']
119
-
120
-
121
- end
122
-
123
-
124
- if attributes.has_key?(:'pageNumber')
125
-
126
-
127
- self.page_number = attributes[:'pageNumber']
128
-
129
-
130
- end
131
-
132
-
133
- if attributes.has_key?(:'total')
134
-
135
-
136
- self.total = attributes[:'total']
137
-
138
-
139
- end
140
-
141
-
142
- if attributes.has_key?(:'selfUri')
143
-
144
-
145
- self.self_uri = attributes[:'selfUri']
146
-
147
-
148
- end
149
-
150
-
151
- if attributes.has_key?(:'firstUri')
152
-
153
-
154
- self.first_uri = attributes[:'firstUri']
155
-
156
-
157
- end
158
-
159
-
160
- if attributes.has_key?(:'previousUri')
161
-
162
-
163
- self.previous_uri = attributes[:'previousUri']
164
-
165
-
166
- end
167
-
168
-
169
- if attributes.has_key?(:'nextUri')
170
-
171
-
172
- self.next_uri = attributes[:'nextUri']
173
-
174
-
175
- end
176
-
177
-
178
- if attributes.has_key?(:'lastUri')
179
-
180
-
181
- self.last_uri = attributes[:'lastUri']
182
-
183
-
184
- end
185
-
186
-
187
- if attributes.has_key?(:'pageCount')
188
-
189
-
190
- self.page_count = attributes[:'pageCount']
191
-
192
-
193
- end
194
-
195
-
196
- end
197
-
198
- # Show invalid properties with the reasons. Usually used together with valid?
199
- # @return Array for valid properies with the reasons
200
- def list_invalid_properties
201
- invalid_properties = Array.new
202
-
203
-
204
- return invalid_properties
205
- end
206
-
207
- # Check to see if the all the properties in the model are valid
208
- # @return true if the model is valid
209
- def valid?
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
- end
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
-
300
-
301
-
302
-
303
-
304
- # Checks equality by comparing each attribute.
305
- # @param [Object] Object to be compared
306
- def ==(o)
307
- return true if self.equal?(o)
308
- self.class == o.class &&
309
- entities == o.entities &&
310
- page_size == o.page_size &&
311
- page_number == o.page_number &&
312
- total == o.total &&
313
- self_uri == o.self_uri &&
314
- first_uri == o.first_uri &&
315
- previous_uri == o.previous_uri &&
316
- next_uri == o.next_uri &&
317
- last_uri == o.last_uri &&
318
- page_count == o.page_count
319
- end
320
-
321
- # @see the `==` method
322
- # @param [Object] Object to be compared
323
- def eql?(o)
324
- self == o
325
- end
326
-
327
- # Calculates hash code according to all attributes.
328
- # @return [Fixnum] Hash code
329
- def hash
330
- [entities, page_size, page_number, total, self_uri, first_uri, previous_uri, next_uri, last_uri, page_count].hash
331
- end
332
-
333
- # build the object from hash
334
- def build_from_hash(attributes)
335
- return nil unless attributes.is_a?(Hash)
336
- self.class.swagger_types.each_pair do |key, type|
337
- if type =~ /^Array<(.*)>/i
338
- if attributes[self.class.attribute_map[key]].is_a?(Array)
339
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
340
- else
341
- #TODO show warning in debug mode
342
- end
343
- elsif !attributes[self.class.attribute_map[key]].nil?
344
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
345
- else
346
- # data not found in attributes(hash), not an issue as the data can be optional
347
- end
348
- end
349
-
350
- self
351
- end
352
-
353
- def _deserialize(type, value)
354
- case type.to_sym
355
- when :DateTime
356
- DateTime.parse(value)
357
- when :Date
358
- Date.parse(value)
359
- when :String
360
- value.to_s
361
- when :Integer
362
- value.to_i
363
- when :Float
364
- value.to_f
365
- when :BOOLEAN
366
- if value.to_s =~ /^(true|t|yes|y|1)$/i
367
- true
368
- else
369
- false
370
- end
371
- when :Object
372
- # generic object (usually a Hash), return directly
373
- value
374
- when /\AArray<(?<inner_type>.+)>\z/
375
- inner_type = Regexp.last_match[:inner_type]
376
- value.map { |v| _deserialize(inner_type, v) }
377
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
378
- k_type = Regexp.last_match[:k_type]
379
- v_type = Regexp.last_match[:v_type]
380
- {}.tap do |hash|
381
- value.each do |k, v|
382
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
383
- end
384
- end
385
- else # model
386
- _model = Object.const_get("PureCloud").const_get(type).new
387
- _model.build_from_hash(value)
388
- end
389
- end
390
-
391
- def to_s
392
- to_hash.to_s
393
- end
394
-
395
- # to_body is an alias to to_body (backward compatibility))
396
- def to_body
397
- to_hash
398
- end
399
-
400
- # return the object in the form of hash
401
- def to_hash
402
- hash = {}
403
- self.class.attribute_map.each_pair do |attr, param|
404
- value = self.send(attr)
405
- next if value.nil?
406
- hash[param] = _to_hash(value)
407
- end
408
- hash
409
- end
410
-
411
- # Method to output non-array value in the form of hash
412
- # For object, use to_hash. Otherwise, just return the value
413
- def _to_hash(value)
414
- if value.is_a?(Array)
415
- value.compact.map{ |v| _to_hash(v) }
416
- elsif value.is_a?(Hash)
417
- {}.tap do |hash|
418
- value.each { |k, v| hash[k] = _to_hash(v) }
419
- end
420
- elsif value.respond_to? :to_hash
421
- value.to_hash
422
- else
423
- value
424
- end
425
- end
426
-
427
- end
428
- end
@@ -1,520 +0,0 @@
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 UserPresenceRule
21
- # The globally unique identifier for the object.
22
- attr_accessor :id
23
-
24
- # Name of the rule
25
- attr_accessor :name
26
-
27
- # The user whose presence will be watched.
28
- attr_accessor :presence_user
29
-
30
- # Indicates to which presence type the presence value belongs.
31
- attr_accessor :presence_type
32
-
33
- # The Org's UUID or Systems enum constance indicating the presence of concern.
34
- attr_accessor :presence_value
35
-
36
- # The number of seconds to wait before alerting based upon the user's presence.
37
- attr_accessor :presence_limit_in_seconds
38
-
39
- # Indicates if the rule is enabled.
40
- attr_accessor :enabled
41
-
42
- # Indicates if the rule is in alarm state.
43
- attr_accessor :in_alarm
44
-
45
- # The ids of users who will be notified of alarm state change.
46
- attr_accessor :notification_users
47
-
48
- # A collection of notification methods.
49
- attr_accessor :alert_types
50
-
51
- # The URI for this object
52
- attr_accessor :self_uri
53
-
54
- # Attribute mapping from ruby-style variable name to JSON key.
55
- def self.attribute_map
56
- {
57
-
58
- :'id' => :'id',
59
-
60
- :'name' => :'name',
61
-
62
- :'presence_user' => :'presenceUser',
63
-
64
- :'presence_type' => :'presenceType',
65
-
66
- :'presence_value' => :'presenceValue',
67
-
68
- :'presence_limit_in_seconds' => :'presenceLimitInSeconds',
69
-
70
- :'enabled' => :'enabled',
71
-
72
- :'in_alarm' => :'inAlarm',
73
-
74
- :'notification_users' => :'notificationUsers',
75
-
76
- :'alert_types' => :'alertTypes',
77
-
78
- :'self_uri' => :'selfUri'
79
-
80
- }
81
- end
82
-
83
- # Attribute type mapping.
84
- def self.swagger_types
85
- {
86
-
87
- :'id' => :'String',
88
-
89
- :'name' => :'String',
90
-
91
- :'presence_user' => :'User',
92
-
93
- :'presence_type' => :'String',
94
-
95
- :'presence_value' => :'String',
96
-
97
- :'presence_limit_in_seconds' => :'Integer',
98
-
99
- :'enabled' => :'BOOLEAN',
100
-
101
- :'in_alarm' => :'BOOLEAN',
102
-
103
- :'notification_users' => :'Array<User>',
104
-
105
- :'alert_types' => :'Array<String>',
106
-
107
- :'self_uri' => :'String'
108
-
109
- }
110
- end
111
-
112
- # Initializes the object
113
- # @param [Hash] attributes Model attributes in the form of hash
114
- def initialize(attributes = {})
115
- return unless attributes.is_a?(Hash)
116
-
117
- # convert string to symbol for hash key
118
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
119
-
120
-
121
- if attributes.has_key?(:'id')
122
-
123
-
124
- self.id = attributes[:'id']
125
-
126
-
127
- end
128
-
129
-
130
- if attributes.has_key?(:'name')
131
-
132
-
133
- self.name = attributes[:'name']
134
-
135
-
136
- end
137
-
138
-
139
- if attributes.has_key?(:'presenceUser')
140
-
141
-
142
- self.presence_user = attributes[:'presenceUser']
143
-
144
-
145
- end
146
-
147
-
148
- if attributes.has_key?(:'presenceType')
149
-
150
-
151
- self.presence_type = attributes[:'presenceType']
152
-
153
-
154
- end
155
-
156
-
157
- if attributes.has_key?(:'presenceValue')
158
-
159
-
160
- self.presence_value = attributes[:'presenceValue']
161
-
162
-
163
- end
164
-
165
-
166
- if attributes.has_key?(:'presenceLimitInSeconds')
167
-
168
-
169
- self.presence_limit_in_seconds = attributes[:'presenceLimitInSeconds']
170
-
171
-
172
- end
173
-
174
-
175
- if attributes.has_key?(:'enabled')
176
-
177
-
178
- self.enabled = attributes[:'enabled']
179
-
180
-
181
- end
182
-
183
-
184
- if attributes.has_key?(:'inAlarm')
185
-
186
-
187
- self.in_alarm = attributes[:'inAlarm']
188
-
189
-
190
- end
191
-
192
-
193
- if attributes.has_key?(:'notificationUsers')
194
-
195
- if (value = attributes[:'notificationUsers']).is_a?(Array)
196
- self.notification_users = value
197
- end
198
-
199
-
200
-
201
- end
202
-
203
-
204
- if attributes.has_key?(:'alertTypes')
205
-
206
- if (value = attributes[:'alertTypes']).is_a?(Array)
207
- self.alert_types = value
208
- end
209
-
210
-
211
-
212
- end
213
-
214
-
215
- if attributes.has_key?(:'selfUri')
216
-
217
-
218
- self.self_uri = attributes[:'selfUri']
219
-
220
-
221
- end
222
-
223
-
224
- end
225
-
226
- # Show invalid properties with the reasons. Usually used together with valid?
227
- # @return Array for valid properies with the reasons
228
- def list_invalid_properties
229
- invalid_properties = Array.new
230
-
231
-
232
- return invalid_properties
233
- end
234
-
235
- # Check to see if the all the properties in the model are valid
236
- # @return true if the model is valid
237
- def valid?
238
-
239
-
240
-
241
-
242
-
243
-
244
- if @name.nil?
245
- return false
246
- end
247
-
248
-
249
-
250
-
251
-
252
-
253
- if @presence_user.nil?
254
- return false
255
- end
256
-
257
-
258
-
259
-
260
-
261
-
262
- if @presence_type.nil?
263
- return false
264
- end
265
-
266
-
267
-
268
- allowed_values = ["SYSTEM", "ORGANIZATION"]
269
- if @presence_type && !allowed_values.include?(@presence_type)
270
- return false
271
- end
272
-
273
-
274
-
275
-
276
- if @presence_value.nil?
277
- return false
278
- end
279
-
280
-
281
-
282
-
283
-
284
-
285
- if @presence_limit_in_seconds.nil?
286
- return false
287
- end
288
-
289
-
290
-
291
-
292
-
293
-
294
- if @enabled.nil?
295
- return false
296
- end
297
-
298
-
299
-
300
-
301
-
302
-
303
-
304
-
305
-
306
-
307
- if @notification_users.nil?
308
- return false
309
- end
310
-
311
-
312
-
313
-
314
-
315
-
316
- if @alert_types.nil?
317
- return false
318
- end
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
- end
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
-
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
- # Custom attribute writer method checking allowed values (enum).
348
- # @param [Object] presence_type Object to be assigned
349
- def presence_type=(presence_type)
350
- allowed_values = ["SYSTEM", "ORGANIZATION"]
351
- if presence_type && !allowed_values.include?(presence_type)
352
- fail ArgumentError, "invalid value for 'presence_type', must be one of #{allowed_values}."
353
- end
354
- @presence_type = presence_type
355
- end
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
-
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
-
382
-
383
-
384
-
385
-
386
-
387
-
388
-
389
-
390
-
391
-
392
-
393
-
394
-
395
- # Checks equality by comparing each attribute.
396
- # @param [Object] Object to be compared
397
- def ==(o)
398
- return true if self.equal?(o)
399
- self.class == o.class &&
400
- id == o.id &&
401
- name == o.name &&
402
- presence_user == o.presence_user &&
403
- presence_type == o.presence_type &&
404
- presence_value == o.presence_value &&
405
- presence_limit_in_seconds == o.presence_limit_in_seconds &&
406
- enabled == o.enabled &&
407
- in_alarm == o.in_alarm &&
408
- notification_users == o.notification_users &&
409
- alert_types == o.alert_types &&
410
- self_uri == o.self_uri
411
- end
412
-
413
- # @see the `==` method
414
- # @param [Object] Object to be compared
415
- def eql?(o)
416
- self == o
417
- end
418
-
419
- # Calculates hash code according to all attributes.
420
- # @return [Fixnum] Hash code
421
- def hash
422
- [id, name, presence_user, presence_type, presence_value, presence_limit_in_seconds, enabled, in_alarm, notification_users, alert_types, self_uri].hash
423
- end
424
-
425
- # build the object from hash
426
- def build_from_hash(attributes)
427
- return nil unless attributes.is_a?(Hash)
428
- self.class.swagger_types.each_pair do |key, type|
429
- if type =~ /^Array<(.*)>/i
430
- if attributes[self.class.attribute_map[key]].is_a?(Array)
431
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
432
- else
433
- #TODO show warning in debug mode
434
- end
435
- elsif !attributes[self.class.attribute_map[key]].nil?
436
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
437
- else
438
- # data not found in attributes(hash), not an issue as the data can be optional
439
- end
440
- end
441
-
442
- self
443
- end
444
-
445
- def _deserialize(type, value)
446
- case type.to_sym
447
- when :DateTime
448
- DateTime.parse(value)
449
- when :Date
450
- Date.parse(value)
451
- when :String
452
- value.to_s
453
- when :Integer
454
- value.to_i
455
- when :Float
456
- value.to_f
457
- when :BOOLEAN
458
- if value.to_s =~ /^(true|t|yes|y|1)$/i
459
- true
460
- else
461
- false
462
- end
463
- when :Object
464
- # generic object (usually a Hash), return directly
465
- value
466
- when /\AArray<(?<inner_type>.+)>\z/
467
- inner_type = Regexp.last_match[:inner_type]
468
- value.map { |v| _deserialize(inner_type, v) }
469
- when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
470
- k_type = Regexp.last_match[:k_type]
471
- v_type = Regexp.last_match[:v_type]
472
- {}.tap do |hash|
473
- value.each do |k, v|
474
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
475
- end
476
- end
477
- else # model
478
- _model = Object.const_get("PureCloud").const_get(type).new
479
- _model.build_from_hash(value)
480
- end
481
- end
482
-
483
- def to_s
484
- to_hash.to_s
485
- end
486
-
487
- # to_body is an alias to to_body (backward compatibility))
488
- def to_body
489
- to_hash
490
- end
491
-
492
- # return the object in the form of hash
493
- def to_hash
494
- hash = {}
495
- self.class.attribute_map.each_pair do |attr, param|
496
- value = self.send(attr)
497
- next if value.nil?
498
- hash[param] = _to_hash(value)
499
- end
500
- hash
501
- end
502
-
503
- # Method to output non-array value in the form of hash
504
- # For object, use to_hash. Otherwise, just return the value
505
- def _to_hash(value)
506
- if value.is_a?(Array)
507
- value.compact.map{ |v| _to_hash(v) }
508
- elsif value.is_a?(Hash)
509
- {}.tap do |hash|
510
- value.each { |k, v| hash[k] = _to_hash(v) }
511
- end
512
- elsif value.respond_to? :to_hash
513
- value.to_hash
514
- else
515
- value
516
- end
517
- end
518
-
519
- end
520
- end