purecloudplatformclientv2 3.1.7 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (409) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/AgentActivityEntityListing.md +1 -1
  4. data/docs/AnalyticsApi.md +3 -4
  5. data/docs/ArchitectApi.md +14 -15
  6. data/docs/AttemptLimitsEntityListing.md +1 -1
  7. data/docs/AttributeEntityListing.md +1 -1
  8. data/docs/AuthorizationApi.md +2 -0
  9. data/docs/CalibrationEntityListing.md +1 -1
  10. data/docs/CallConversationEntityListing.md +1 -1
  11. data/docs/CallConversationNotificationCallMediaParticipant.md +1 -1
  12. data/docs/CallConversationNotificationParticipants.md +1 -1
  13. data/docs/CallableTimeSetEntityListing.md +1 -1
  14. data/docs/CallbackConversationEntityListing.md +1 -1
  15. data/docs/CallbackConversationNotificationCallbackMediaParticipant.md +1 -1
  16. data/docs/CallbackConversationNotificationParticipants.md +1 -1
  17. data/docs/CampaignEntityListing.md +1 -1
  18. data/docs/CampaignNotification.md +1 -1
  19. data/docs/CampaignProgressNotification.md +1 -1
  20. data/docs/CampaignRuleEntityListing.md +1 -1
  21. data/docs/CampaignRuleNotificationCampaignRuleEntities.md +1 -1
  22. data/docs/CampaignScheduleNotification.md +1 -1
  23. data/docs/CampaignSequenceEntityListing.md +1 -1
  24. data/docs/CampaignSequenceNotification.md +1 -1
  25. data/docs/CertificateAuthorityEntityListing.md +1 -1
  26. data/docs/CertificateDetails.md +1 -1
  27. data/docs/ChatConversationEntityListing.md +1 -1
  28. data/docs/ChatConversationNotificationChatMediaParticipant.md +1 -1
  29. data/docs/ChatConversationNotificationParticipants.md +1 -1
  30. data/docs/CobrowseConversationEntityListing.md +1 -1
  31. data/docs/CobrowseConversationNotificationCobrowseMediaParticipant.md +1 -1
  32. data/docs/CobrowseConversationNotificationParticipants.md +1 -1
  33. data/docs/CommandStatusEntityListing.md +1 -1
  34. data/docs/ConsumedResourcesEntityListing.md +1 -1
  35. data/docs/ConsumingResourcesEntityListing.md +1 -1
  36. data/docs/ContactListEntityListing.md +1 -1
  37. data/docs/ContactListFilterNotification.md +22 -0
  38. data/docs/ContactListFilterNotificationClauses.md +15 -0
  39. data/docs/ContactListFilterNotificationFilterClause.md +15 -0
  40. data/docs/ContactListFilterNotificationFilterPredicate.md +18 -0
  41. data/docs/ContactListFilterNotificationPredicates.md +18 -0
  42. data/docs/ContactListFilterNotificationRange.md +18 -0
  43. data/docs/ContactListFilterNotificationUriReference.md +14 -0
  44. data/docs/ContactListNotification.md +1 -1
  45. data/docs/ContactListing.md +1 -1
  46. data/docs/ConversationAssociation.md +1 -0
  47. data/docs/ConversationEntityListing.md +1 -1
  48. data/docs/ConversationsApi.md +6 -8
  49. data/docs/DIDEntityListing.md +1 -1
  50. data/docs/DIDPoolEntityListing.md +1 -1
  51. data/docs/DataSchema.md +20 -0
  52. data/docs/DependencyObjectEntityListing.md +1 -1
  53. data/docs/DependencyTrackingBuildNotificationNotification.md +15 -0
  54. data/docs/DependencyTrackingBuildNotificationNotificationUser.md +14 -0
  55. data/docs/DependencyTypeEntityListing.md +1 -1
  56. data/docs/DncListEntityListing.md +1 -1
  57. data/docs/Document.md +1 -1
  58. data/docs/DocumentAuditEntityListing.md +1 -1
  59. data/docs/DocumentDataV2Notification.md +1 -1
  60. data/docs/DocumentEntityListing.md +1 -1
  61. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +1 -1
  62. data/docs/DomainEntityListing.md +1 -1
  63. data/docs/DomainEntityListingEvaluationForm.md +1 -1
  64. data/docs/DomainEntityListingQueryResult.md +1 -1
  65. data/docs/DomainOrganizationRole.md +1 -1
  66. data/docs/DomainOrganizationRoleCreate.md +1 -1
  67. data/docs/DomainOrganizationRoleUpdate.md +1 -1
  68. data/docs/EdgeEntityListing.md +1 -1
  69. data/docs/EdgeGroupEntityListing.md +1 -1
  70. data/docs/EdgeLineEntityListing.md +1 -1
  71. data/docs/EmailConversationEntityListing.md +1 -1
  72. data/docs/EmailConversationNotificationEmailMediaParticipant.md +1 -1
  73. data/docs/EmailConversationNotificationParticipants.md +1 -1
  74. data/docs/EmailMessageListing.md +1 -1
  75. data/docs/EncryptionKeyEntityListing.md +1 -1
  76. data/docs/EndpointEntityListing.md +1 -1
  77. data/docs/EvaluationEntityListing.md +1 -1
  78. data/docs/EvaluationFormEntityListing.md +1 -1
  79. data/docs/EvaluatorActivityEntityListing.md +1 -1
  80. data/docs/ExtensionEntityListing.md +1 -1
  81. data/docs/ExtensionPoolEntityListing.md +1 -1
  82. data/docs/ExternalContactsApi.md +228 -37
  83. data/docs/ExternalOrganizationListing.md +1 -1
  84. data/docs/FaxDataV2Notification.md +1 -1
  85. data/docs/FaxDocument.md +1 -1
  86. data/docs/FaxDocumentEntityListing.md +1 -1
  87. data/docs/FlowEntityListing.md +1 -1
  88. data/docs/FlowNotificationNotification.md +20 -0
  89. data/docs/FlowNotificationNotificationArchitectOperation.md +21 -0
  90. data/docs/FlowNotificationNotificationErrorDetail.md +16 -0
  91. data/docs/FlowNotificationNotificationErrorMessageParams.md +13 -0
  92. data/docs/FlowNotificationNotificationFlowVersion.md +13 -0
  93. data/docs/{DocumentDataV2NotificationCreatedBy.md → FlowNotificationNotificationUser.md} +2 -2
  94. data/docs/FlowVersionEntityListing.md +1 -1
  95. data/docs/GreetingListing.md +1 -1
  96. data/docs/GroupEntityListing.md +1 -1
  97. data/docs/HeartBeatAlertContainer.md +1 -1
  98. data/docs/HeartBeatRuleContainer.md +1 -1
  99. data/docs/InboundDomainEntityListing.md +1 -1
  100. data/docs/InboundRouteEntityListing.md +1 -1
  101. data/docs/InteractionStatsAlertContainer.md +1 -1
  102. data/docs/InteractionStatsRuleContainer.md +1 -1
  103. data/docs/JsonNode.md +6 -6
  104. data/docs/KeywordSetEntityListing.md +1 -1
  105. data/docs/LanguageEntityListing.md +1 -1
  106. data/docs/LibraryEntityListing.md +1 -1
  107. data/docs/LicenseDefinitionListing.md +1 -1
  108. data/docs/LineBaseEntityListing.md +1 -1
  109. data/docs/LineEntityListing.md +1 -1
  110. data/docs/LogicalInterfaceEntityListing.md +1 -1
  111. data/docs/NoteListing.md +1 -1
  112. data/docs/OAuthClientEntityListing.md +1 -1
  113. data/docs/OAuthProviderEntityListing.md +1 -1
  114. data/docs/OrganizationPresenceEntityListing.md +1 -1
  115. data/docs/OrganizationRoleEntityListing.md +1 -1
  116. data/docs/OrphanRecordingListing.md +1 -1
  117. data/docs/OutboundApi.md +33 -44
  118. data/docs/OutboundRouteBaseEntityListing.md +1 -1
  119. data/docs/OutboundRouteEntityListing.md +1 -1
  120. data/docs/PermissionCollectionEntityListing.md +1 -1
  121. data/docs/PhoneBaseEntityListing.md +1 -1
  122. data/docs/PhoneEntityListing.md +1 -1
  123. data/docs/PhoneMetaBaseEntityListing.md +1 -1
  124. data/docs/PhysicalInterfaceEntityListing.md +1 -1
  125. data/docs/PolicyEntityListing.md +1 -1
  126. data/docs/PromptAssetEntityListing.md +1 -1
  127. data/docs/PromptEntityListing.md +1 -1
  128. data/docs/PromptNotificationNotification.md +16 -0
  129. data/docs/PromptNotificationNotificationArchitectOperation.md +21 -0
  130. data/docs/PromptNotificationNotificationCurrentOperation.md +21 -0
  131. data/docs/PromptNotificationNotificationCurrentOperationErrorDetails.md +16 -0
  132. data/docs/PromptNotificationNotificationCurrentOperationErrorMessageParams.md +13 -0
  133. data/docs/PromptNotificationNotificationErrorDetail.md +16 -0
  134. data/docs/PromptNotificationNotificationErrorMessageParams.md +13 -0
  135. data/docs/PromptNotificationNotificationUser.md +14 -0
  136. data/docs/PromptResourceNotificationNotification.md +18 -0
  137. data/docs/PublishFlowNotificationNotification.md +16 -0
  138. data/docs/QualityApi.md +8 -10
  139. data/docs/QualityAuditPage.md +1 -1
  140. data/docs/QueueEntityListing.md +1 -1
  141. data/docs/QueueMemberEntityListing.md +1 -1
  142. data/docs/RecordingApi.md +6 -8
  143. data/docs/RecordingDataV2Notification.md +1 -1
  144. data/docs/RelationshipListing.md +1 -1
  145. data/docs/ReportMetaDataEntityListing.md +1 -1
  146. data/docs/ReportRunEntryEntityDomainListing.md +1 -1
  147. data/docs/ReportScheduleEntityListing.md +1 -1
  148. data/docs/ResponseEntityList.md +1 -1
  149. data/docs/ResponseEntityListing.md +1 -1
  150. data/docs/ResponseSetEntityListing.md +1 -1
  151. data/docs/RoutingApi.md +27 -36
  152. data/docs/RoutingStatusAlertContainer.md +1 -1
  153. data/docs/RoutingStatusRuleContainer.md +1 -1
  154. data/docs/RuleSetEntityListing.md +1 -1
  155. data/docs/RuleSetNotification.md +1 -1
  156. data/docs/SchemaCategoryEntityListing.md +1 -1
  157. data/docs/SchemaReferenceEntityListing.md +1 -1
  158. data/docs/ScreenRecordingSessionListing.md +1 -1
  159. data/docs/ScreenShareConversationNotificationParticipants.md +1 -1
  160. data/docs/ScreenShareConversationNotificationScreenShareMediaParticipant.md +1 -1
  161. data/docs/ScriptEntityListing.md +1 -1
  162. data/docs/SecurityProfileEntityListing.md +1 -1
  163. data/docs/SequenceScheduleNotification.md +1 -1
  164. data/docs/ShareEntityListing.md +1 -1
  165. data/docs/SiteEntityListing.md +1 -1
  166. data/docs/SkillEntityListing.md +1 -1
  167. data/docs/SocialConversationNotificationParticipants.md +1 -1
  168. data/docs/SocialConversationNotificationSocialMediaParticipant.md +1 -1
  169. data/docs/Station.md +2 -1
  170. data/docs/StationEntityListing.md +1 -1
  171. data/docs/StationsApi.md +5 -4
  172. data/docs/SystemPromptAssetEntityListing.md +1 -1
  173. data/docs/SystemPromptEntityListing.md +1 -1
  174. data/docs/SystemPromptResourceNotificationNotification.md +18 -0
  175. data/docs/TagValueEntityListing.md +1 -1
  176. data/docs/TelephonyProvidersEdgeApi.md +41 -54
  177. data/docs/TimeZoneEntityListing.md +1 -1
  178. data/docs/TokensApi.md +3 -4
  179. data/docs/TrunkBaseEntityListing.md +1 -1
  180. data/docs/TrunkConnectedStatus.md +14 -0
  181. data/docs/TrunkEntityListing.md +1 -1
  182. data/docs/TrunkErrorInfo.md +15 -0
  183. data/docs/TrunkErrorInfoDetails.md +15 -0
  184. data/docs/TrunkMetabaseEntityListing.md +1 -1
  185. data/docs/TrunkMetricsNetworkTypeIp.md +14 -0
  186. data/docs/TrunkMetricsOptions.md +16 -0
  187. data/docs/TrunkMetricsRegisters.md +16 -0
  188. data/docs/UpdateUser.md +28 -0
  189. data/docs/UserEntityListing.md +1 -1
  190. data/docs/UserPresenceAlertContainer.md +1 -1
  191. data/docs/UserPresenceRuleContainer.md +1 -1
  192. data/docs/UserQueueEntityListing.md +1 -1
  193. data/docs/UserRecordingEntityListing.md +1 -1
  194. data/docs/UserSkillEntityListing.md +1 -1
  195. data/docs/UsersApi.md +5 -6
  196. data/docs/VideoConversationNotificationParticipants.md +1 -1
  197. data/docs/VideoConversationNotificationVideoMediaParticipant.md +1 -1
  198. data/docs/VoicemailApi.md +6 -8
  199. data/docs/VoicemailGroupPolicy.md +2 -0
  200. data/docs/VoicemailMessageEntityListing.md +1 -1
  201. data/docs/WorkspaceEntityListing.md +1 -1
  202. data/docs/WorkspaceMemberEntityListing.md +1 -1
  203. data/docs/WrapupCodeEntityListing.md +1 -1
  204. data/lib/purecloudplatformclientv2.rb +34 -1
  205. data/lib/purecloudplatformclientv2/api/analytics_api.rb +5 -6
  206. data/lib/purecloudplatformclientv2/api/architect_api.rb +19 -20
  207. data/lib/purecloudplatformclientv2/api/authorization_api.rb +3 -0
  208. data/lib/purecloudplatformclientv2/api/conversations_api.rb +10 -12
  209. data/lib/purecloudplatformclientv2/api/external_contacts_api.rb +242 -58
  210. data/lib/purecloudplatformclientv2/api/outbound_api.rb +55 -66
  211. data/lib/purecloudplatformclientv2/api/quality_api.rb +12 -14
  212. data/lib/purecloudplatformclientv2/api/recording_api.rb +10 -12
  213. data/lib/purecloudplatformclientv2/api/routing_api.rb +45 -54
  214. data/lib/purecloudplatformclientv2/api/stations_api.rb +8 -6
  215. data/lib/purecloudplatformclientv2/api/telephony_providers_edge_api.rb +68 -81
  216. data/lib/purecloudplatformclientv2/api/tokens_api.rb +5 -6
  217. data/lib/purecloudplatformclientv2/api/users_api.rb +5 -6
  218. data/lib/purecloudplatformclientv2/api/voicemail_api.rb +10 -12
  219. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +10 -10
  220. data/lib/purecloudplatformclientv2/models/aggregate_metric_data.rb +2 -2
  221. data/lib/purecloudplatformclientv2/models/analytics_query_predicate.rb +2 -2
  222. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +10 -10
  223. data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +10 -10
  224. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +10 -10
  225. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +10 -10
  226. data/lib/purecloudplatformclientv2/models/call_conversation_notification_call_media_participant.rb +1 -1
  227. data/lib/purecloudplatformclientv2/models/call_conversation_notification_participants.rb +1 -1
  228. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +10 -10
  229. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +10 -10
  230. data/lib/purecloudplatformclientv2/models/callback_conversation_notification_callback_media_participant.rb +1 -1
  231. data/lib/purecloudplatformclientv2/models/callback_conversation_notification_participants.rb +1 -1
  232. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +10 -10
  233. data/lib/purecloudplatformclientv2/models/campaign_notification.rb +1 -1
  234. data/lib/purecloudplatformclientv2/models/campaign_progress_notification.rb +1 -1
  235. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +10 -10
  236. data/lib/purecloudplatformclientv2/models/campaign_rule_notification_campaign_rule_entities.rb +1 -1
  237. data/lib/purecloudplatformclientv2/models/campaign_schedule_notification.rb +1 -1
  238. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +10 -10
  239. data/lib/purecloudplatformclientv2/models/campaign_sequence_notification.rb +1 -1
  240. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +10 -10
  241. data/lib/purecloudplatformclientv2/models/certificate_details.rb +13 -13
  242. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +10 -10
  243. data/lib/purecloudplatformclientv2/models/chat_conversation_notification_chat_media_participant.rb +1 -1
  244. data/lib/purecloudplatformclientv2/models/chat_conversation_notification_participants.rb +1 -1
  245. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +10 -10
  246. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_notification_cobrowse_media_participant.rb +1 -1
  247. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_notification_participants.rb +1 -1
  248. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +10 -10
  249. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +10 -10
  250. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +10 -10
  251. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +10 -10
  252. data/lib/purecloudplatformclientv2/models/contact_list_filter_notification.rb +277 -0
  253. data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_clauses.rb +212 -0
  254. data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_filter_clause.rb +212 -0
  255. data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_filter_predicate.rb +251 -0
  256. data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_predicates.rb +251 -0
  257. data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_range.rb +225 -0
  258. data/lib/purecloudplatformclientv2/models/contact_list_filter_notification_uri_reference.rb +187 -0
  259. data/lib/purecloudplatformclientv2/models/contact_list_notification.rb +1 -1
  260. data/lib/purecloudplatformclientv2/models/contact_listing.rb +10 -10
  261. data/lib/purecloudplatformclientv2/models/conversation_association.rb +11 -1
  262. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +10 -10
  263. data/lib/purecloudplatformclientv2/models/data_schema.rb +258 -0
  264. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +10 -10
  265. data/lib/purecloudplatformclientv2/models/dependency_tracking_build_notification_notification.rb +196 -0
  266. data/lib/purecloudplatformclientv2/models/dependency_tracking_build_notification_notification_user.rb +187 -0
  267. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +10 -10
  268. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +10 -10
  269. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +10 -10
  270. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +10 -10
  271. data/lib/purecloudplatformclientv2/models/document.rb +10 -10
  272. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +10 -10
  273. data/lib/purecloudplatformclientv2/models/document_data_v2_notification.rb +1 -1
  274. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +10 -10
  275. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +10 -10
  276. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +10 -10
  277. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +10 -10
  278. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +10 -10
  279. data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +10 -10
  280. data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +10 -10
  281. data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +10 -10
  282. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +10 -10
  283. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +10 -10
  284. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +10 -10
  285. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +10 -10
  286. data/lib/purecloudplatformclientv2/models/email_conversation_notification_email_media_participant.rb +1 -1
  287. data/lib/purecloudplatformclientv2/models/email_conversation_notification_participants.rb +1 -1
  288. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +10 -10
  289. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +10 -10
  290. data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +10 -10
  291. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +10 -10
  292. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +10 -10
  293. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +10 -10
  294. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +10 -10
  295. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +10 -10
  296. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +10 -10
  297. data/lib/purecloudplatformclientv2/models/fax_data_v2_notification.rb +1 -1
  298. data/lib/purecloudplatformclientv2/models/fax_document.rb +10 -10
  299. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +10 -10
  300. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +10 -10
  301. data/lib/purecloudplatformclientv2/models/flow_notification_notification.rb +241 -0
  302. data/lib/purecloudplatformclientv2/models/flow_notification_notification_architect_operation.rb +280 -0
  303. data/lib/purecloudplatformclientv2/models/flow_notification_notification_error_detail.rb +205 -0
  304. data/lib/purecloudplatformclientv2/models/flow_notification_notification_error_message_params.rb +180 -0
  305. data/lib/purecloudplatformclientv2/models/flow_notification_notification_flow_version.rb +178 -0
  306. data/lib/purecloudplatformclientv2/models/{document_data_v2_notification_created_by.rb → flow_notification_notification_user.rb} +1 -1
  307. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +10 -10
  308. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +10 -10
  309. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +10 -10
  310. data/lib/purecloudplatformclientv2/models/heart_beat_alert_container.rb +10 -10
  311. data/lib/purecloudplatformclientv2/models/heart_beat_rule_container.rb +10 -10
  312. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +10 -10
  313. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +10 -10
  314. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +10 -10
  315. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +10 -10
  316. data/lib/purecloudplatformclientv2/models/json_node.rb +43 -43
  317. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +10 -10
  318. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +10 -10
  319. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +10 -10
  320. data/lib/purecloudplatformclientv2/models/license_definition_listing.rb +10 -10
  321. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +10 -10
  322. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +10 -10
  323. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +10 -10
  324. data/lib/purecloudplatformclientv2/models/note_listing.rb +10 -10
  325. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +10 -10
  326. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +10 -10
  327. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +10 -10
  328. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +10 -10
  329. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +10 -10
  330. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +10 -10
  331. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +10 -10
  332. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +10 -10
  333. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +10 -10
  334. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +10 -10
  335. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +10 -10
  336. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +10 -10
  337. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +10 -10
  338. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +10 -10
  339. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +10 -10
  340. data/lib/purecloudplatformclientv2/models/prompt_notification_notification.rb +205 -0
  341. data/lib/purecloudplatformclientv2/models/prompt_notification_notification_architect_operation.rb +280 -0
  342. data/lib/purecloudplatformclientv2/models/prompt_notification_notification_current_operation.rb +280 -0
  343. data/lib/purecloudplatformclientv2/models/prompt_notification_notification_current_operation_error_details.rb +205 -0
  344. data/lib/purecloudplatformclientv2/models/prompt_notification_notification_current_operation_error_message_params.rb +180 -0
  345. data/lib/purecloudplatformclientv2/models/prompt_notification_notification_error_detail.rb +205 -0
  346. data/lib/purecloudplatformclientv2/models/prompt_notification_notification_error_message_params.rb +180 -0
  347. data/lib/purecloudplatformclientv2/models/prompt_notification_notification_user.rb +187 -0
  348. data/lib/purecloudplatformclientv2/models/prompt_resource_notification_notification.rb +223 -0
  349. data/lib/purecloudplatformclientv2/models/publish_flow_notification_notification.rb +205 -0
  350. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +10 -10
  351. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +10 -10
  352. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +10 -10
  353. data/lib/purecloudplatformclientv2/models/recording_data_v2_notification.rb +1 -1
  354. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +10 -10
  355. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +10 -10
  356. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +10 -10
  357. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +10 -10
  358. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +10 -10
  359. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +10 -10
  360. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +10 -10
  361. data/lib/purecloudplatformclientv2/models/routing_status_alert_container.rb +10 -10
  362. data/lib/purecloudplatformclientv2/models/routing_status_rule_container.rb +10 -10
  363. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +10 -10
  364. data/lib/purecloudplatformclientv2/models/rule_set_notification.rb +1 -1
  365. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +10 -10
  366. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +10 -10
  367. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +10 -10
  368. data/lib/purecloudplatformclientv2/models/screen_share_conversation_notification_participants.rb +1 -1
  369. data/lib/purecloudplatformclientv2/models/screen_share_conversation_notification_screen_share_media_participant.rb +1 -1
  370. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +10 -10
  371. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +10 -10
  372. data/lib/purecloudplatformclientv2/models/sequence_schedule_notification.rb +1 -1
  373. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +10 -10
  374. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +10 -10
  375. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +10 -10
  376. data/lib/purecloudplatformclientv2/models/social_conversation_notification_participants.rb +1 -1
  377. data/lib/purecloudplatformclientv2/models/social_conversation_notification_social_media_participant.rb +1 -1
  378. data/lib/purecloudplatformclientv2/models/station.rb +12 -1
  379. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +10 -10
  380. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +10 -10
  381. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +10 -10
  382. data/lib/purecloudplatformclientv2/models/system_prompt_resource_notification_notification.rb +223 -0
  383. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +10 -10
  384. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +10 -10
  385. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +10 -10
  386. data/lib/purecloudplatformclientv2/models/trunk_connected_status.rb +188 -0
  387. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +10 -10
  388. data/lib/purecloudplatformclientv2/models/trunk_error_info.rb +196 -0
  389. data/lib/purecloudplatformclientv2/models/trunk_error_info_details.rb +196 -0
  390. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +10 -10
  391. data/lib/purecloudplatformclientv2/models/trunk_metrics_network_type_ip.rb +189 -0
  392. data/lib/purecloudplatformclientv2/models/trunk_metrics_options.rb +207 -0
  393. data/lib/purecloudplatformclientv2/models/trunk_metrics_registers.rb +208 -0
  394. data/lib/purecloudplatformclientv2/models/update_user.rb +332 -0
  395. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +10 -10
  396. data/lib/purecloudplatformclientv2/models/user_presence_alert_container.rb +10 -10
  397. data/lib/purecloudplatformclientv2/models/user_presence_rule_container.rb +10 -10
  398. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +10 -10
  399. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +10 -10
  400. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +10 -10
  401. data/lib/purecloudplatformclientv2/models/video_conversation_notification_participants.rb +1 -1
  402. data/lib/purecloudplatformclientv2/models/video_conversation_notification_video_media_participant.rb +1 -1
  403. data/lib/purecloudplatformclientv2/models/voicemail_group_policy.rb +38 -4
  404. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +10 -10
  405. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +10 -10
  406. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +10 -10
  407. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +10 -10
  408. data/lib/purecloudplatformclientv2/version.rb +1 -1
  409. metadata +70 -4
@@ -0,0 +1,189 @@
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 TrunkMetricsNetworkTypeIp
21
+ # Assigned IP Address for the interface
22
+ attr_accessor :address
23
+
24
+ # Information about the error.
25
+ attr_accessor :error_info
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'address' => :'address',
31
+ :'error_info' => :'errorInfo'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.swagger_types
37
+ {
38
+ :'address' => :'String',
39
+ :'error_info' => :'TrunkErrorInfo'
40
+ }
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ return unless attributes.is_a?(Hash)
47
+
48
+ # convert string to symbol for hash key
49
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
50
+
51
+ if attributes.has_key?(:'address')
52
+ self.address = attributes[:'address']
53
+ end
54
+
55
+ if attributes.has_key?(:'errorInfo')
56
+ self.error_info = attributes[:'errorInfo']
57
+ end
58
+
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properies with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ return invalid_properties
66
+ end
67
+
68
+ # Check to see if the all the properties in the model are valid
69
+ # @return true if the model is valid
70
+ def valid?
71
+ end
72
+
73
+ # Checks equality by comparing each attribute.
74
+ # @param [Object] Object to be compared
75
+ def ==(o)
76
+ return true if self.equal?(o)
77
+ self.class == o.class &&
78
+ address == o.address &&
79
+ error_info == o.error_info
80
+ end
81
+
82
+ # @see the `==` method
83
+ # @param [Object] Object to be compared
84
+ def eql?(o)
85
+ self == o
86
+ end
87
+
88
+ # Calculates hash code according to all attributes.
89
+ # @return [Fixnum] Hash code
90
+ def hash
91
+ [address, error_info].hash
92
+ end
93
+
94
+ # build the object from hash
95
+ def build_from_hash(attributes)
96
+ return nil unless attributes.is_a?(Hash)
97
+ self.class.swagger_types.each_pair do |key, type|
98
+ if type =~ /^Array<(.*)>/i
99
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
101
+ else
102
+ #TODO show warning in debug mode
103
+ end
104
+ elsif !attributes[self.class.attribute_map[key]].nil?
105
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
106
+ else
107
+ # data not found in attributes(hash), not an issue as the data can be optional
108
+ end
109
+ end
110
+
111
+ self
112
+ end
113
+
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ DateTime.parse(value)
118
+ when :Date
119
+ Date.parse(value)
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :BOOLEAN
127
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else # model
147
+ _model = Object.const_get("PureCloud").const_get(type).new
148
+ _model.build_from_hash(value)
149
+ end
150
+ end
151
+
152
+ def to_s
153
+ to_hash.to_s
154
+ end
155
+
156
+ # to_body is an alias to to_body (backward compatibility))
157
+ def to_body
158
+ to_hash
159
+ end
160
+
161
+ # return the object in the form of hash
162
+ def to_hash
163
+ hash = {}
164
+ self.class.attribute_map.each_pair do |attr, param|
165
+ value = self.send(attr)
166
+ next if value.nil?
167
+ hash[param] = _to_hash(value)
168
+ end
169
+ hash
170
+ end
171
+
172
+ # Method to output non-array value in the form of hash
173
+ # For object, use to_hash. Otherwise, just return the value
174
+ def _to_hash(value)
175
+ if value.is_a?(Array)
176
+ value.compact.map{ |v| _to_hash(v) }
177
+ elsif value.is_a?(Hash)
178
+ {}.tap do |hash|
179
+ value.each { |k, v| hash[k] = _to_hash(v) }
180
+ end
181
+ elsif value.respond_to? :to_hash
182
+ value.to_hash
183
+ else
184
+ value
185
+ end
186
+ end
187
+
188
+ end
189
+ 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@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 TrunkMetricsOptions
21
+ # Server proxy address that this options array element represents.
22
+ attr_accessor :proxy_address
23
+
24
+ attr_accessor :option_state
25
+
26
+ # ISO 8601 format UTC absolute date & time of the last change of the option state.
27
+ attr_accessor :option_state_time
28
+
29
+ attr_accessor :error_info
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'proxy_address' => :'proxyAddress',
35
+ :'option_state' => :'optionState',
36
+ :'option_state_time' => :'optionStateTime',
37
+ :'error_info' => :'errorInfo'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.swagger_types
43
+ {
44
+ :'proxy_address' => :'String',
45
+ :'option_state' => :'BOOLEAN',
46
+ :'option_state_time' => :'DateTime',
47
+ :'error_info' => :'TrunkErrorInfo'
48
+ }
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ return unless attributes.is_a?(Hash)
55
+
56
+ # convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
58
+
59
+ if attributes.has_key?(:'proxyAddress')
60
+ self.proxy_address = attributes[:'proxyAddress']
61
+ end
62
+
63
+ if attributes.has_key?(:'optionState')
64
+ self.option_state = attributes[:'optionState']
65
+ end
66
+
67
+ if attributes.has_key?(:'optionStateTime')
68
+ self.option_state_time = attributes[:'optionStateTime']
69
+ end
70
+
71
+ if attributes.has_key?(:'errorInfo')
72
+ self.error_info = attributes[:'errorInfo']
73
+ end
74
+
75
+ end
76
+
77
+ # Show invalid properties with the reasons. Usually used together with valid?
78
+ # @return Array for valid properies with the reasons
79
+ def list_invalid_properties
80
+ invalid_properties = Array.new
81
+ return invalid_properties
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ def valid?
87
+ end
88
+
89
+ # Checks equality by comparing each attribute.
90
+ # @param [Object] Object to be compared
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ proxy_address == o.proxy_address &&
95
+ option_state == o.option_state &&
96
+ option_state_time == o.option_state_time &&
97
+ error_info == o.error_info
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
+ [proxy_address, option_state, option_state_time, error_info].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
@@ -0,0 +1,208 @@
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 TrunkMetricsRegisters
21
+ # Server proxy address that this registers array element represents.
22
+ attr_accessor :proxy_address
23
+
24
+ # True if last REGISTER message had positive response; false if error response or no response.
25
+ attr_accessor :register_state
26
+
27
+ # ISO 8601 format UTC absolute date & time of the last change of the register state.
28
+ attr_accessor :register_state_time
29
+
30
+ attr_accessor :error_info
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ def self.attribute_map
34
+ {
35
+ :'proxy_address' => :'proxyAddress',
36
+ :'register_state' => :'registerState',
37
+ :'register_state_time' => :'registerStateTime',
38
+ :'error_info' => :'errorInfo'
39
+ }
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.swagger_types
44
+ {
45
+ :'proxy_address' => :'String',
46
+ :'register_state' => :'BOOLEAN',
47
+ :'register_state_time' => :'DateTime',
48
+ :'error_info' => :'TrunkErrorInfo'
49
+ }
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ return unless attributes.is_a?(Hash)
56
+
57
+ # convert string to symbol for hash key
58
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
59
+
60
+ if attributes.has_key?(:'proxyAddress')
61
+ self.proxy_address = attributes[:'proxyAddress']
62
+ end
63
+
64
+ if attributes.has_key?(:'registerState')
65
+ self.register_state = attributes[:'registerState']
66
+ end
67
+
68
+ if attributes.has_key?(:'registerStateTime')
69
+ self.register_state_time = attributes[:'registerStateTime']
70
+ end
71
+
72
+ if attributes.has_key?(:'errorInfo')
73
+ self.error_info = attributes[:'errorInfo']
74
+ end
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
+ return invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+ end
89
+
90
+ # Checks equality by comparing each attribute.
91
+ # @param [Object] Object to be compared
92
+ def ==(o)
93
+ return true if self.equal?(o)
94
+ self.class == o.class &&
95
+ proxy_address == o.proxy_address &&
96
+ register_state == o.register_state &&
97
+ register_state_time == o.register_state_time &&
98
+ error_info == o.error_info
99
+ end
100
+
101
+ # @see the `==` method
102
+ # @param [Object] Object to be compared
103
+ def eql?(o)
104
+ self == o
105
+ end
106
+
107
+ # Calculates hash code according to all attributes.
108
+ # @return [Fixnum] Hash code
109
+ def hash
110
+ [proxy_address, register_state, register_state_time, error_info].hash
111
+ end
112
+
113
+ # build the object from hash
114
+ def build_from_hash(attributes)
115
+ return nil unless attributes.is_a?(Hash)
116
+ self.class.swagger_types.each_pair do |key, type|
117
+ if type =~ /^Array<(.*)>/i
118
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
119
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
120
+ else
121
+ #TODO show warning in debug mode
122
+ end
123
+ elsif !attributes[self.class.attribute_map[key]].nil?
124
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
125
+ else
126
+ # data not found in attributes(hash), not an issue as the data can be optional
127
+ end
128
+ end
129
+
130
+ self
131
+ end
132
+
133
+ def _deserialize(type, value)
134
+ case type.to_sym
135
+ when :DateTime
136
+ DateTime.parse(value)
137
+ when :Date
138
+ Date.parse(value)
139
+ when :String
140
+ value.to_s
141
+ when :Integer
142
+ value.to_i
143
+ when :Float
144
+ value.to_f
145
+ when :BOOLEAN
146
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
147
+ true
148
+ else
149
+ false
150
+ end
151
+ when :Object
152
+ # generic object (usually a Hash), return directly
153
+ value
154
+ when /\AArray<(?<inner_type>.+)>\z/
155
+ inner_type = Regexp.last_match[:inner_type]
156
+ value.map { |v| _deserialize(inner_type, v) }
157
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
158
+ k_type = Regexp.last_match[:k_type]
159
+ v_type = Regexp.last_match[:v_type]
160
+ {}.tap do |hash|
161
+ value.each do |k, v|
162
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
163
+ end
164
+ end
165
+ else # model
166
+ _model = Object.const_get("PureCloud").const_get(type).new
167
+ _model.build_from_hash(value)
168
+ end
169
+ end
170
+
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_body (backward compatibility))
176
+ def to_body
177
+ to_hash
178
+ end
179
+
180
+ # return the object in the form of hash
181
+ def to_hash
182
+ hash = {}
183
+ self.class.attribute_map.each_pair do |attr, param|
184
+ value = self.send(attr)
185
+ next if value.nil?
186
+ hash[param] = _to_hash(value)
187
+ end
188
+ hash
189
+ end
190
+
191
+ # Method to output non-array value in the form of hash
192
+ # For object, use to_hash. Otherwise, just return the value
193
+ def _to_hash(value)
194
+ if value.is_a?(Array)
195
+ value.compact.map{ |v| _to_hash(v) }
196
+ elsif value.is_a?(Hash)
197
+ {}.tap do |hash|
198
+ value.each { |k, v| hash[k] = _to_hash(v) }
199
+ end
200
+ elsif value.respond_to? :to_hash
201
+ value.to_hash
202
+ else
203
+ value
204
+ end
205
+ end
206
+
207
+ end
208
+ end