purecloudplatformclientv2 4.0.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (255) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/AgentActivityEntityListing.md +1 -1
  4. data/docs/AttemptLimits.md +1 -0
  5. data/docs/AttemptLimitsEntityListing.md +1 -1
  6. data/docs/AttributeEntityListing.md +1 -1
  7. data/docs/CalibrationEntityListing.md +1 -1
  8. data/docs/CallConversationEntityListing.md +1 -1
  9. data/docs/CallableTimeSetEntityListing.md +1 -1
  10. data/docs/CallbackConversationEntityListing.md +1 -1
  11. data/docs/CampaignEntityListing.md +1 -1
  12. data/docs/CampaignRuleEntityListing.md +1 -1
  13. data/docs/CampaignSequenceEntityListing.md +1 -1
  14. data/docs/CertificateAuthorityEntityListing.md +1 -1
  15. data/docs/ChatConversationEntityListing.md +1 -1
  16. data/docs/CobrowseConversationEntityListing.md +1 -1
  17. data/docs/CommandStatusEntityListing.md +1 -1
  18. data/docs/ConsumedResourcesEntityListing.md +1 -1
  19. data/docs/ConsumingResourcesEntityListing.md +1 -1
  20. data/docs/ContactListEntityListing.md +1 -1
  21. data/docs/ContactListing.md +1 -1
  22. data/docs/ConversationEntityListing.md +1 -1
  23. data/docs/DIDEntityListing.md +1 -1
  24. data/docs/DIDPoolEntityListing.md +1 -1
  25. data/docs/DependencyObjectEntityListing.md +1 -1
  26. data/docs/DependencyTypeEntityListing.md +1 -1
  27. data/docs/DialerEventEntityListing.md +22 -0
  28. data/docs/DncListEntityListing.md +1 -1
  29. data/docs/Document.md +1 -1
  30. data/docs/DocumentAuditEntityListing.md +1 -1
  31. data/docs/DocumentEntityListing.md +1 -1
  32. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +1 -1
  33. data/docs/DomainEntityListing.md +1 -1
  34. data/docs/DomainEntityListingEvaluationForm.md +1 -1
  35. data/docs/DomainEntityListingQueryResult.md +1 -1
  36. data/docs/EdgeEntityListing.md +1 -1
  37. data/docs/EdgeGroupEntityListing.md +1 -1
  38. data/docs/EdgeLineEntityListing.md +1 -1
  39. data/docs/EmailConversationEntityListing.md +1 -1
  40. data/docs/EmailMessageListing.md +1 -1
  41. data/docs/EncryptionKeyEntityListing.md +1 -1
  42. data/docs/EndpointEntityListing.md +1 -1
  43. data/docs/EvaluationEntityListing.md +1 -1
  44. data/docs/EvaluationFormEntityListing.md +1 -1
  45. data/docs/EvaluatorActivityEntityListing.md +1 -1
  46. data/docs/EventLog.md +22 -0
  47. data/docs/EventMessage.md +18 -0
  48. data/docs/ExtensionEntityListing.md +1 -1
  49. data/docs/ExtensionPoolEntityListing.md +1 -1
  50. data/docs/ExternalOrganizationListing.md +1 -1
  51. data/docs/FaxDocument.md +1 -1
  52. data/docs/FaxDocumentEntityListing.md +1 -1
  53. data/docs/FlowEntityListing.md +1 -1
  54. data/docs/FlowVersionEntityListing.md +1 -1
  55. data/docs/GreetingListing.md +1 -1
  56. data/docs/GroupEntityListing.md +1 -1
  57. data/docs/HeartBeatAlertContainer.md +1 -1
  58. data/docs/HeartBeatRuleContainer.md +1 -1
  59. data/docs/InboundDomainEntityListing.md +1 -1
  60. data/docs/InboundRouteEntityListing.md +1 -1
  61. data/docs/InteractionStatsAlertContainer.md +1 -1
  62. data/docs/InteractionStatsRuleContainer.md +1 -1
  63. data/docs/JsonNode.md +3 -3
  64. data/docs/KeywordSetEntityListing.md +1 -1
  65. data/docs/LanguageEntityListing.md +1 -1
  66. data/docs/LibraryEntityListing.md +1 -1
  67. data/docs/LicenseDefinitionListing.md +1 -1
  68. data/docs/LineBaseEntityListing.md +1 -1
  69. data/docs/LineEntityListing.md +1 -1
  70. data/docs/LogicalInterfaceEntityListing.md +1 -1
  71. data/docs/NoteListing.md +1 -1
  72. data/docs/OAuthClientEntityListing.md +1 -1
  73. data/docs/OAuthProviderEntityListing.md +1 -1
  74. data/docs/OrganizationPresenceEntityListing.md +1 -1
  75. data/docs/OrganizationRoleEntityListing.md +1 -1
  76. data/docs/OrphanRecordingListing.md +1 -1
  77. data/docs/OutboundApi.md +133 -0
  78. data/docs/OutboundRouteBaseEntityListing.md +1 -1
  79. data/docs/OutboundRouteEntityListing.md +1 -1
  80. data/docs/PermissionCollectionEntityListing.md +1 -1
  81. data/docs/PhoneBaseEntityListing.md +1 -1
  82. data/docs/PhoneEntityListing.md +1 -1
  83. data/docs/PhoneMetaBaseEntityListing.md +1 -1
  84. data/docs/PhysicalInterfaceEntityListing.md +1 -1
  85. data/docs/PolicyEntityListing.md +1 -1
  86. data/docs/PromptAssetEntityListing.md +1 -1
  87. data/docs/PromptEntityListing.md +1 -1
  88. data/docs/QualityAuditPage.md +1 -1
  89. data/docs/QueueEntityListing.md +1 -1
  90. data/docs/QueueMemberEntityListing.md +1 -1
  91. data/docs/RelationshipListing.md +1 -1
  92. data/docs/ReportMetaDataEntityListing.md +1 -1
  93. data/docs/ReportRunEntryEntityDomainListing.md +1 -1
  94. data/docs/ReportScheduleEntityListing.md +1 -1
  95. data/docs/ResponseEntityList.md +1 -1
  96. data/docs/ResponseEntityListing.md +1 -1
  97. data/docs/ResponseSetEntityListing.md +1 -1
  98. data/docs/RoutingStatusAlertContainer.md +1 -1
  99. data/docs/RoutingStatusRuleContainer.md +1 -1
  100. data/docs/RuleSetEntityListing.md +1 -1
  101. data/docs/SchemaCategoryEntityListing.md +1 -1
  102. data/docs/SchemaReferenceEntityListing.md +1 -1
  103. data/docs/ScreenRecordingSessionListing.md +1 -1
  104. data/docs/ScriptEntityListing.md +1 -1
  105. data/docs/SecurityProfileEntityListing.md +1 -1
  106. data/docs/ShareEntityListing.md +1 -1
  107. data/docs/SiteEntityListing.md +1 -1
  108. data/docs/SkillEntityListing.md +1 -1
  109. data/docs/StationEntityListing.md +1 -1
  110. data/docs/SystemPromptAssetEntityListing.md +1 -1
  111. data/docs/SystemPromptEntityListing.md +1 -1
  112. data/docs/TagValueEntityListing.md +1 -1
  113. data/docs/TelephonyProvidersEdgeApi.md +2 -0
  114. data/docs/TimeZoneEntityListing.md +1 -1
  115. data/docs/TrunkBaseEntityListing.md +1 -1
  116. data/docs/TrunkEntityListing.md +1 -1
  117. data/docs/TrunkMetabaseEntityListing.md +1 -1
  118. data/docs/UserEntityListing.md +1 -1
  119. data/docs/UserPresenceAlertContainer.md +1 -1
  120. data/docs/UserPresenceRuleContainer.md +1 -1
  121. data/docs/UserQueueEntityListing.md +1 -1
  122. data/docs/UserRecordingEntityListing.md +1 -1
  123. data/docs/UserSkillEntityListing.md +1 -1
  124. data/docs/VoicemailMessageEntityListing.md +1 -1
  125. data/docs/WorkspaceEntityListing.md +1 -1
  126. data/docs/WorkspaceMemberEntityListing.md +1 -1
  127. data/docs/WrapupCodeEntityListing.md +1 -1
  128. data/lib/purecloudplatformclientv2.rb +3 -0
  129. data/lib/purecloudplatformclientv2/api/outbound_api.rb +137 -0
  130. data/lib/purecloudplatformclientv2/api/telephony_providers_edge_api.rb +3 -0
  131. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +10 -10
  132. data/lib/purecloudplatformclientv2/models/attempt_limits.rb +13 -1
  133. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +10 -10
  134. data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +10 -10
  135. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +10 -10
  136. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +10 -10
  137. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +10 -10
  138. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +10 -10
  139. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +10 -10
  140. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +10 -10
  141. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +10 -10
  142. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +10 -10
  143. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +10 -10
  144. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +10 -10
  145. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +10 -10
  146. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +10 -10
  147. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +10 -10
  148. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +10 -10
  149. data/lib/purecloudplatformclientv2/models/contact_listing.rb +10 -10
  150. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +10 -10
  151. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +10 -10
  152. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +10 -10
  153. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +261 -0
  154. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +10 -10
  155. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +10 -10
  156. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +10 -10
  157. data/lib/purecloudplatformclientv2/models/document.rb +10 -10
  158. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +10 -10
  159. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +10 -10
  160. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +10 -10
  161. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +10 -10
  162. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +10 -10
  163. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +10 -10
  164. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +10 -10
  165. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +10 -10
  166. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +10 -10
  167. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +10 -10
  168. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +10 -10
  169. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +10 -10
  170. data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +10 -10
  171. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +10 -10
  172. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +10 -10
  173. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +10 -10
  174. data/lib/purecloudplatformclientv2/models/event_log.rb +290 -0
  175. data/lib/purecloudplatformclientv2/models/event_message.rb +241 -0
  176. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +10 -10
  177. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +10 -10
  178. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +10 -10
  179. data/lib/purecloudplatformclientv2/models/fax_document.rb +10 -10
  180. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +10 -10
  181. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +10 -10
  182. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +10 -10
  183. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +10 -10
  184. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +10 -10
  185. data/lib/purecloudplatformclientv2/models/heart_beat_alert_container.rb +10 -10
  186. data/lib/purecloudplatformclientv2/models/heart_beat_rule_container.rb +10 -10
  187. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +10 -10
  188. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +10 -10
  189. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +10 -10
  190. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +10 -10
  191. data/lib/purecloudplatformclientv2/models/json_node.rb +28 -28
  192. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +10 -10
  193. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +10 -10
  194. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +10 -10
  195. data/lib/purecloudplatformclientv2/models/license_definition_listing.rb +10 -10
  196. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +10 -10
  197. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +10 -10
  198. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +10 -10
  199. data/lib/purecloudplatformclientv2/models/note_listing.rb +10 -10
  200. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +10 -10
  201. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +10 -10
  202. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +10 -10
  203. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +10 -10
  204. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +10 -10
  205. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +10 -10
  206. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +10 -10
  207. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +10 -10
  208. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +10 -10
  209. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +10 -10
  210. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +10 -10
  211. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +10 -10
  212. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +10 -10
  213. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +10 -10
  214. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +10 -10
  215. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +10 -10
  216. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +10 -10
  217. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +10 -10
  218. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +10 -10
  219. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +10 -10
  220. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +10 -10
  221. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +10 -10
  222. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +10 -10
  223. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +10 -10
  224. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +10 -10
  225. data/lib/purecloudplatformclientv2/models/routing_status_alert_container.rb +10 -10
  226. data/lib/purecloudplatformclientv2/models/routing_status_rule_container.rb +10 -10
  227. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +10 -10
  228. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +10 -10
  229. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +10 -10
  230. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +10 -10
  231. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +10 -10
  232. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +10 -10
  233. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +10 -10
  234. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +10 -10
  235. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +10 -10
  236. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +10 -10
  237. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +10 -10
  238. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +10 -10
  239. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +10 -10
  240. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +10 -10
  241. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +10 -10
  242. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +10 -10
  243. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +10 -10
  244. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +10 -10
  245. data/lib/purecloudplatformclientv2/models/user_presence_alert_container.rb +10 -10
  246. data/lib/purecloudplatformclientv2/models/user_presence_rule_container.rb +10 -10
  247. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +10 -10
  248. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +10 -10
  249. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +10 -10
  250. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +10 -10
  251. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +10 -10
  252. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +10 -10
  253. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +10 -10
  254. data/lib/purecloudplatformclientv2/version.rb +1 -1
  255. metadata +8 -2
@@ -0,0 +1,290 @@
1
+ =begin
2
+ PureCloud Platform API
3
+
4
+ With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
5
+
6
+ OpenAPI spec version: v2
7
+ Contact: DeveloperEvangelists@inin.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: ININ
11
+ http://www.inin.com
12
+
13
+ Terms of Service: https://developer.mypurecloud.com/tos
14
+
15
+ =end
16
+
17
+ require 'date'
18
+
19
+ module PureCloud
20
+ class EventLog
21
+ # The globally unique identifier for the object.
22
+ attr_accessor :id
23
+
24
+ attr_accessor :name
25
+
26
+ attr_accessor :error_entity
27
+
28
+ attr_accessor :related_entity
29
+
30
+ # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
31
+ attr_accessor :timestamp
32
+
33
+ attr_accessor :level
34
+
35
+ attr_accessor :category
36
+
37
+ attr_accessor :correlation_id
38
+
39
+ attr_accessor :event_message
40
+
41
+ # The URI for this object
42
+ attr_accessor :self_uri
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'id' => :'id',
48
+ :'name' => :'name',
49
+ :'error_entity' => :'errorEntity',
50
+ :'related_entity' => :'relatedEntity',
51
+ :'timestamp' => :'timestamp',
52
+ :'level' => :'level',
53
+ :'category' => :'category',
54
+ :'correlation_id' => :'correlationId',
55
+ :'event_message' => :'eventMessage',
56
+ :'self_uri' => :'selfUri'
57
+ }
58
+ end
59
+
60
+ # Attribute type mapping.
61
+ def self.swagger_types
62
+ {
63
+ :'id' => :'String',
64
+ :'name' => :'String',
65
+ :'error_entity' => :'UriReference',
66
+ :'related_entity' => :'UriReference',
67
+ :'timestamp' => :'DateTime',
68
+ :'level' => :'String',
69
+ :'category' => :'String',
70
+ :'correlation_id' => :'String',
71
+ :'event_message' => :'EventMessage',
72
+ :'self_uri' => :'String'
73
+ }
74
+ end
75
+
76
+ # Initializes the object
77
+ # @param [Hash] attributes Model attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ return unless attributes.is_a?(Hash)
80
+
81
+ # convert string to symbol for hash key
82
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
83
+
84
+ if attributes.has_key?(:'id')
85
+ self.id = attributes[:'id']
86
+ end
87
+
88
+ if attributes.has_key?(:'name')
89
+ self.name = attributes[:'name']
90
+ end
91
+
92
+ if attributes.has_key?(:'errorEntity')
93
+ self.error_entity = attributes[:'errorEntity']
94
+ end
95
+
96
+ if attributes.has_key?(:'relatedEntity')
97
+ self.related_entity = attributes[:'relatedEntity']
98
+ end
99
+
100
+ if attributes.has_key?(:'timestamp')
101
+ self.timestamp = attributes[:'timestamp']
102
+ end
103
+
104
+ if attributes.has_key?(:'level')
105
+ self.level = attributes[:'level']
106
+ end
107
+
108
+ if attributes.has_key?(:'category')
109
+ self.category = attributes[:'category']
110
+ end
111
+
112
+ if attributes.has_key?(:'correlationId')
113
+ self.correlation_id = attributes[:'correlationId']
114
+ end
115
+
116
+ if attributes.has_key?(:'eventMessage')
117
+ self.event_message = attributes[:'eventMessage']
118
+ end
119
+
120
+ if attributes.has_key?(:'selfUri')
121
+ self.self_uri = attributes[:'selfUri']
122
+ end
123
+
124
+ end
125
+
126
+ # Show invalid properties with the reasons. Usually used together with valid?
127
+ # @return Array for valid properies with the reasons
128
+ def list_invalid_properties
129
+ invalid_properties = Array.new
130
+ return invalid_properties
131
+ end
132
+
133
+ # Check to see if the all the properties in the model are valid
134
+ # @return true if the model is valid
135
+ def valid?
136
+ allowed_values = ["INFO", "WARNING", "ERROR"]
137
+ if @level && !allowed_values.include?(@level)
138
+ return false
139
+ end
140
+ allowed_values = ["CAMPAIGN_RULE", "IMPORT_ERROR", "CALLBACK", "SCHEDULE", "CALL_RESTRICTION", "CALL_RULE"]
141
+ if @category && !allowed_values.include?(@category)
142
+ return false
143
+ end
144
+ end
145
+
146
+ # Custom attribute writer method checking allowed values (enum).
147
+ # @param [Object] level Object to be assigned
148
+ def level=(level)
149
+ allowed_values = ["INFO", "WARNING", "ERROR"]
150
+ if level && !allowed_values.include?(level)
151
+ fail ArgumentError, "invalid value for 'level', must be one of #{allowed_values}."
152
+ end
153
+ @level = level
154
+ end
155
+
156
+ # Custom attribute writer method checking allowed values (enum).
157
+ # @param [Object] category Object to be assigned
158
+ def category=(category)
159
+ allowed_values = ["CAMPAIGN_RULE", "IMPORT_ERROR", "CALLBACK", "SCHEDULE", "CALL_RESTRICTION", "CALL_RULE"]
160
+ if category && !allowed_values.include?(category)
161
+ fail ArgumentError, "invalid value for 'category', must be one of #{allowed_values}."
162
+ end
163
+ @category = category
164
+ end
165
+
166
+ # Checks equality by comparing each attribute.
167
+ # @param [Object] Object to be compared
168
+ def ==(o)
169
+ return true if self.equal?(o)
170
+ self.class == o.class &&
171
+ id == o.id &&
172
+ name == o.name &&
173
+ error_entity == o.error_entity &&
174
+ related_entity == o.related_entity &&
175
+ timestamp == o.timestamp &&
176
+ level == o.level &&
177
+ category == o.category &&
178
+ correlation_id == o.correlation_id &&
179
+ event_message == o.event_message &&
180
+ self_uri == o.self_uri
181
+ end
182
+
183
+ # @see the `==` method
184
+ # @param [Object] Object to be compared
185
+ def eql?(o)
186
+ self == o
187
+ end
188
+
189
+ # Calculates hash code according to all attributes.
190
+ # @return [Fixnum] Hash code
191
+ def hash
192
+ [id, name, error_entity, related_entity, timestamp, level, category, correlation_id, event_message, self_uri].hash
193
+ end
194
+
195
+ # build the object from hash
196
+ def build_from_hash(attributes)
197
+ return nil unless attributes.is_a?(Hash)
198
+ self.class.swagger_types.each_pair do |key, type|
199
+ if type =~ /^Array<(.*)>/i
200
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
201
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
202
+ else
203
+ #TODO show warning in debug mode
204
+ end
205
+ elsif !attributes[self.class.attribute_map[key]].nil?
206
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
207
+ else
208
+ # data not found in attributes(hash), not an issue as the data can be optional
209
+ end
210
+ end
211
+
212
+ self
213
+ end
214
+
215
+ def _deserialize(type, value)
216
+ case type.to_sym
217
+ when :DateTime
218
+ DateTime.parse(value)
219
+ when :Date
220
+ Date.parse(value)
221
+ when :String
222
+ value.to_s
223
+ when :Integer
224
+ value.to_i
225
+ when :Float
226
+ value.to_f
227
+ when :BOOLEAN
228
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
229
+ true
230
+ else
231
+ false
232
+ end
233
+ when :Object
234
+ # generic object (usually a Hash), return directly
235
+ value
236
+ when /\AArray<(?<inner_type>.+)>\z/
237
+ inner_type = Regexp.last_match[:inner_type]
238
+ value.map { |v| _deserialize(inner_type, v) }
239
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
240
+ k_type = Regexp.last_match[:k_type]
241
+ v_type = Regexp.last_match[:v_type]
242
+ {}.tap do |hash|
243
+ value.each do |k, v|
244
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
245
+ end
246
+ end
247
+ else # model
248
+ _model = Object.const_get("PureCloud").const_get(type).new
249
+ _model.build_from_hash(value)
250
+ end
251
+ end
252
+
253
+ def to_s
254
+ to_hash.to_s
255
+ end
256
+
257
+ # to_body is an alias to to_body (backward compatibility))
258
+ def to_body
259
+ to_hash
260
+ end
261
+
262
+ # return the object in the form of hash
263
+ def to_hash
264
+ hash = {}
265
+ self.class.attribute_map.each_pair do |attr, param|
266
+ value = self.send(attr)
267
+ next if value.nil?
268
+ hash[param] = _to_hash(value)
269
+ end
270
+ hash
271
+ end
272
+
273
+ # Method to output non-array value in the form of hash
274
+ # For object, use to_hash. Otherwise, just return the value
275
+ def _to_hash(value)
276
+ if value.is_a?(Array)
277
+ value.compact.map{ |v| _to_hash(v) }
278
+ elsif value.is_a?(Hash)
279
+ {}.tap do |hash|
280
+ value.each { |k, v| hash[k] = _to_hash(v) }
281
+ end
282
+ elsif value.respond_to? :to_hash
283
+ value.to_hash
284
+ else
285
+ value
286
+ end
287
+ end
288
+
289
+ end
290
+ end
@@ -0,0 +1,241 @@
1
+ =begin
2
+ PureCloud Platform API
3
+
4
+ With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
5
+
6
+ OpenAPI spec version: v2
7
+ Contact: DeveloperEvangelists@inin.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: ININ
11
+ http://www.inin.com
12
+
13
+ Terms of Service: https://developer.mypurecloud.com/tos
14
+
15
+ =end
16
+
17
+ require 'date'
18
+
19
+ module PureCloud
20
+ class EventMessage
21
+ attr_accessor :code
22
+
23
+ attr_accessor :message
24
+
25
+ attr_accessor :message_with_params
26
+
27
+ attr_accessor :message_params
28
+
29
+ attr_accessor :documentation_uri
30
+
31
+ attr_accessor :resource_ur_is
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'code' => :'code',
37
+ :'message' => :'message',
38
+ :'message_with_params' => :'messageWithParams',
39
+ :'message_params' => :'messageParams',
40
+ :'documentation_uri' => :'documentationUri',
41
+ :'resource_ur_is' => :'resourceURIs'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ def self.swagger_types
47
+ {
48
+ :'code' => :'String',
49
+ :'message' => :'String',
50
+ :'message_with_params' => :'String',
51
+ :'message_params' => :'Hash<String, Object>',
52
+ :'documentation_uri' => :'String',
53
+ :'resource_ur_is' => :'Array<String>'
54
+ }
55
+ end
56
+
57
+ # Initializes the object
58
+ # @param [Hash] attributes Model attributes in the form of hash
59
+ def initialize(attributes = {})
60
+ return unless attributes.is_a?(Hash)
61
+
62
+ # convert string to symbol for hash key
63
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
64
+
65
+ if attributes.has_key?(:'code')
66
+ self.code = attributes[:'code']
67
+ end
68
+
69
+ if attributes.has_key?(:'message')
70
+ self.message = attributes[:'message']
71
+ end
72
+
73
+ if attributes.has_key?(:'messageWithParams')
74
+ self.message_with_params = attributes[:'messageWithParams']
75
+ end
76
+
77
+ if attributes.has_key?(:'messageParams')
78
+ if (value = attributes[:'messageParams']).is_a?(Array)
79
+ self.message_params = value
80
+ end
81
+ end
82
+
83
+ if attributes.has_key?(:'documentationUri')
84
+ self.documentation_uri = attributes[:'documentationUri']
85
+ end
86
+
87
+ if attributes.has_key?(:'resourceURIs')
88
+ if (value = attributes[:'resourceURIs']).is_a?(Array)
89
+ self.resource_ur_is = value
90
+ end
91
+ end
92
+
93
+ end
94
+
95
+ # Show invalid properties with the reasons. Usually used together with valid?
96
+ # @return Array for valid properies with the reasons
97
+ def list_invalid_properties
98
+ invalid_properties = Array.new
99
+ return invalid_properties
100
+ end
101
+
102
+ # Check to see if the all the properties in the model are valid
103
+ # @return true if the model is valid
104
+ def valid?
105
+ allowed_values = ["CAMPAIGN_START_ERROR", "CAMPAIGN_RULE_START_ERROR", "CAMPAIGN_SET_DIALING_MODE_ERROR", "INVALID_CALLABLE_TIME_ZONE", "CALLBACK_CREATION_INVALID_NUMBER", "CALL_RULE_INVALID_CONTACT_COLUMN", "CALL_RULE_MISMATCH_TYPE", "CALL_RULE_INVALID_OPERATOR", "CALL_RULE_NO_DNC_LISTS_CONFIGURED", "INVALID_PHONE_NUMBER", "IMPORT_FAILED_TO_READ_HEADERS", "IMPORT_COULD_NOT_PARSE_AN_ENTRY", "IMPORT_CONTACT_DOES_NOT_MATCH_LIST_FORMAT", "IMPORT_ENTRY_DOES_NOT_ALIGN_WITH_HEADERS", "IMPORT_INVALID_CUSTOM_ID", "IMPORT_INVALID_DATA", "IMPORT_NO_COLUMNS_DEFINED", "IMPORT_COLUMNS_DO_NOT_EXIST_ON_LIST", "IMPORT_LIST_NO_LONGER_EXISTS", "RECYCLE_CAMPAIGN"]
106
+ if @code && !allowed_values.include?(@code)
107
+ return false
108
+ end
109
+ end
110
+
111
+ # Custom attribute writer method checking allowed values (enum).
112
+ # @param [Object] code Object to be assigned
113
+ def code=(code)
114
+ allowed_values = ["CAMPAIGN_START_ERROR", "CAMPAIGN_RULE_START_ERROR", "CAMPAIGN_SET_DIALING_MODE_ERROR", "INVALID_CALLABLE_TIME_ZONE", "CALLBACK_CREATION_INVALID_NUMBER", "CALL_RULE_INVALID_CONTACT_COLUMN", "CALL_RULE_MISMATCH_TYPE", "CALL_RULE_INVALID_OPERATOR", "CALL_RULE_NO_DNC_LISTS_CONFIGURED", "INVALID_PHONE_NUMBER", "IMPORT_FAILED_TO_READ_HEADERS", "IMPORT_COULD_NOT_PARSE_AN_ENTRY", "IMPORT_CONTACT_DOES_NOT_MATCH_LIST_FORMAT", "IMPORT_ENTRY_DOES_NOT_ALIGN_WITH_HEADERS", "IMPORT_INVALID_CUSTOM_ID", "IMPORT_INVALID_DATA", "IMPORT_NO_COLUMNS_DEFINED", "IMPORT_COLUMNS_DO_NOT_EXIST_ON_LIST", "IMPORT_LIST_NO_LONGER_EXISTS", "RECYCLE_CAMPAIGN"]
115
+ if code && !allowed_values.include?(code)
116
+ fail ArgumentError, "invalid value for 'code', must be one of #{allowed_values}."
117
+ end
118
+ @code = code
119
+ end
120
+
121
+ # Checks equality by comparing each attribute.
122
+ # @param [Object] Object to be compared
123
+ def ==(o)
124
+ return true if self.equal?(o)
125
+ self.class == o.class &&
126
+ code == o.code &&
127
+ message == o.message &&
128
+ message_with_params == o.message_with_params &&
129
+ message_params == o.message_params &&
130
+ documentation_uri == o.documentation_uri &&
131
+ resource_ur_is == o.resource_ur_is
132
+ end
133
+
134
+ # @see the `==` method
135
+ # @param [Object] Object to be compared
136
+ def eql?(o)
137
+ self == o
138
+ end
139
+
140
+ # Calculates hash code according to all attributes.
141
+ # @return [Fixnum] Hash code
142
+ def hash
143
+ [code, message, message_with_params, message_params, documentation_uri, resource_ur_is].hash
144
+ end
145
+
146
+ # build the object from hash
147
+ def build_from_hash(attributes)
148
+ return nil unless attributes.is_a?(Hash)
149
+ self.class.swagger_types.each_pair do |key, type|
150
+ if type =~ /^Array<(.*)>/i
151
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
152
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
153
+ else
154
+ #TODO show warning in debug mode
155
+ end
156
+ elsif !attributes[self.class.attribute_map[key]].nil?
157
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
158
+ else
159
+ # data not found in attributes(hash), not an issue as the data can be optional
160
+ end
161
+ end
162
+
163
+ self
164
+ end
165
+
166
+ def _deserialize(type, value)
167
+ case type.to_sym
168
+ when :DateTime
169
+ DateTime.parse(value)
170
+ when :Date
171
+ Date.parse(value)
172
+ when :String
173
+ value.to_s
174
+ when :Integer
175
+ value.to_i
176
+ when :Float
177
+ value.to_f
178
+ when :BOOLEAN
179
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
180
+ true
181
+ else
182
+ false
183
+ end
184
+ when :Object
185
+ # generic object (usually a Hash), return directly
186
+ value
187
+ when /\AArray<(?<inner_type>.+)>\z/
188
+ inner_type = Regexp.last_match[:inner_type]
189
+ value.map { |v| _deserialize(inner_type, v) }
190
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
191
+ k_type = Regexp.last_match[:k_type]
192
+ v_type = Regexp.last_match[:v_type]
193
+ {}.tap do |hash|
194
+ value.each do |k, v|
195
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
196
+ end
197
+ end
198
+ else # model
199
+ _model = Object.const_get("PureCloud").const_get(type).new
200
+ _model.build_from_hash(value)
201
+ end
202
+ end
203
+
204
+ def to_s
205
+ to_hash.to_s
206
+ end
207
+
208
+ # to_body is an alias to to_body (backward compatibility))
209
+ def to_body
210
+ to_hash
211
+ end
212
+
213
+ # return the object in the form of hash
214
+ def to_hash
215
+ hash = {}
216
+ self.class.attribute_map.each_pair do |attr, param|
217
+ value = self.send(attr)
218
+ next if value.nil?
219
+ hash[param] = _to_hash(value)
220
+ end
221
+ hash
222
+ end
223
+
224
+ # Method to output non-array value in the form of hash
225
+ # For object, use to_hash. Otherwise, just return the value
226
+ def _to_hash(value)
227
+ if value.is_a?(Array)
228
+ value.compact.map{ |v| _to_hash(v) }
229
+ elsif value.is_a?(Hash)
230
+ {}.tap do |hash|
231
+ value.each { |k, v| hash[k] = _to_hash(v) }
232
+ end
233
+ elsif value.respond_to? :to_hash
234
+ value.to_hash
235
+ else
236
+ value
237
+ end
238
+ end
239
+
240
+ end
241
+ end