purecloud 0.59.1 → 0.60.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/config-ruby.json +1 -1
  4. data/doc_out/AgentActivityEntityListing.html.md +2 -2
  5. data/doc_out/AggregationQuery.html.md +1 -1
  6. data/doc_out/AlertingApi.html.md +1106 -92
  7. data/doc_out/Annotation.html.md +14 -4
  8. data/doc_out/AttemptLimitsEntityListing.html.md +2 -2
  9. data/doc_out/AttributeEntityListing.html.md +2 -2
  10. data/doc_out/CalibrationEntityListing.html.md +2 -2
  11. data/doc_out/CallConversationEntityListing.html.md +2 -2
  12. data/doc_out/CallableTimeSetEntityListing.html.md +2 -2
  13. data/doc_out/CallbackConversationEntityListing.html.md +2 -2
  14. data/doc_out/CampaignEntityListing.html.md +2 -2
  15. data/doc_out/CampaignSequenceEntityListing.html.md +2 -2
  16. data/doc_out/CertificateAuthorityEntityListing.html.md +2 -2
  17. data/doc_out/ChannelEntityListing.html.md +2 -2
  18. data/doc_out/ChatConversationEntityListing.html.md +2 -2
  19. data/doc_out/CobrowseConversationEntityListing.html.md +2 -2
  20. data/doc_out/CommandStatusEntityListing.html.md +2 -2
  21. data/doc_out/ContactListEntityListing.html.md +2 -2
  22. data/doc_out/ContactSort.html.md +1 -1
  23. data/doc_out/ConversationEntityListing.html.md +2 -2
  24. data/doc_out/DIDEntityListing.html.md +2 -2
  25. data/doc_out/DIDPoolEntityListing.html.md +2 -2
  26. data/doc_out/DncListEntityListing.html.md +2 -2
  27. data/doc_out/DocumentAuditEntityListing.html.md +2 -2
  28. data/doc_out/DocumentEntityListing.html.md +2 -2
  29. data/doc_out/DomainEdgeSoftwareVersionDtoEntityListing.html.md +2 -2
  30. data/doc_out/DomainEntityListing.html.md +2 -2
  31. data/doc_out/DomainEntityListingEvaluationForm.html.md +2 -2
  32. data/doc_out/DomainEntityListingQueryResult.html.md +2 -2
  33. data/doc_out/Edge.html.md +1 -1
  34. data/doc_out/EdgeEntityListing.html.md +2 -2
  35. data/doc_out/EdgeGroupEntityListing.html.md +2 -2
  36. data/doc_out/EdgeLineEntityListing.html.md +2 -2
  37. data/doc_out/EmailConversationEntityListing.html.md +2 -2
  38. data/doc_out/EmailMessageListing.html.md +2 -2
  39. data/doc_out/EncryptionKeyEntityListing.html.md +2 -2
  40. data/doc_out/EndpointEntityListing.html.md +2 -2
  41. data/doc_out/EvaluationEntityListing.html.md +2 -2
  42. data/doc_out/EvaluationFormEntityListing.html.md +2 -2
  43. data/doc_out/EvaluatorActivityEntityListing.html.md +2 -2
  44. data/doc_out/ExtensionEntityListing.html.md +2 -2
  45. data/doc_out/ExtensionPoolEntityListing.html.md +2 -2
  46. data/doc_out/FaxDocumentEntityListing.html.md +2 -2
  47. data/doc_out/GroupEntityListing.html.md +2 -2
  48. data/doc_out/HeartBeatAlert.html.md +1 -1
  49. data/doc_out/HeartBeatAlertContainer.html.md +2 -2
  50. data/doc_out/HeartBeatRule.html.md +1 -1
  51. data/doc_out/HeartBeatRuleContainer.html.md +2 -2
  52. data/doc_out/InboundDomainEntityListing.html.md +2 -2
  53. data/doc_out/InboundRouteEntityListing.html.md +2 -2
  54. data/doc_out/InteractionStatsAlert.html.md +1 -1
  55. data/doc_out/InteractionStatsAlertContainer.html.md +2 -2
  56. data/doc_out/InteractionStatsRule.html.md +1 -1
  57. data/doc_out/InteractionStatsRuleContainer.html.md +2 -2
  58. data/doc_out/KeywordSetEntityListing.html.md +2 -2
  59. data/doc_out/LanguageEntityListing.html.md +2 -2
  60. data/doc_out/LibraryEntityListing.html.md +2 -2
  61. data/doc_out/LineBaseEntityListing.html.md +2 -2
  62. data/doc_out/LineEntityListing.html.md +2 -2
  63. data/doc_out/LocalEncryptionConfigurationListing.html.md +2 -2
  64. data/doc_out/LogicalInterfaceEntityListing.html.md +2 -2
  65. data/doc_out/OAuthClient.html.md +2 -2
  66. data/doc_out/OAuthClientEntityListing.html.md +3 -3
  67. data/doc_out/OAuthClientListing.html.md +20 -0
  68. data/doc_out/OAuthProviderEntityListing.html.md +2 -2
  69. data/doc_out/OrganizationPresenceEntityListing.html.md +2 -2
  70. data/doc_out/OrganizationRoleEntityListing.html.md +2 -2
  71. data/doc_out/OrphanRecording.html.md +1 -0
  72. data/doc_out/OrphanRecordingListing.html.md +2 -2
  73. data/doc_out/OrphanUpdateRequest.html.md +15 -0
  74. data/doc_out/OutboundRouteEntityListing.html.md +2 -2
  75. data/doc_out/PermissionCollectionEntityListing.html.md +2 -2
  76. data/doc_out/PhoneBaseEntityListing.html.md +2 -2
  77. data/doc_out/PhoneEntityListing.html.md +2 -2
  78. data/doc_out/PhoneMetaBaseEntityListing.html.md +2 -2
  79. data/doc_out/PhysicalInterfaceEntityListing.html.md +2 -2
  80. data/doc_out/PolicyEntityListing.html.md +2 -2
  81. data/doc_out/QualityApi.html.md +5 -1
  82. data/doc_out/QualityAuditPage.html.md +2 -2
  83. data/doc_out/QueueEntityListing.html.md +2 -2
  84. data/doc_out/QueueMemberEntityListing.html.md +2 -2
  85. data/doc_out/RecordingApi.html.md +132 -4
  86. data/doc_out/ReportMetaDataEntityListing.html.md +2 -2
  87. data/doc_out/ReportRunEntryEntityDomainListing.html.md +2 -2
  88. data/doc_out/ReportScheduleEntityListing.html.md +2 -2
  89. data/doc_out/ResponseEntityList.html.md +2 -2
  90. data/doc_out/ResponseEntityListing.html.md +2 -2
  91. data/doc_out/ResponseSetEntityListing.html.md +2 -2
  92. data/doc_out/RoutingStatusAlert.html.md +23 -0
  93. data/doc_out/RoutingStatusAlertContainer.html.md +22 -0
  94. data/doc_out/RoutingStatusRule.html.md +22 -0
  95. data/doc_out/RoutingStatusRuleContainer.html.md +22 -0
  96. data/doc_out/RuleSetEntityListing.html.md +2 -2
  97. data/doc_out/SchemaCategoryEntityListing.html.md +2 -2
  98. data/doc_out/SchemaReferenceEntityListing.html.md +2 -2
  99. data/doc_out/ScreenRecordingSessionListing.html.md +2 -2
  100. data/doc_out/ScriptEntityListing.html.md +2 -2
  101. data/doc_out/SecurityProfileEntityListing.html.md +2 -2
  102. data/doc_out/ShareEntityListing.html.md +2 -2
  103. data/doc_out/SiteEntityListing.html.md +2 -2
  104. data/doc_out/SkillEntityListing.html.md +2 -2
  105. data/doc_out/StationEntityListing.html.md +2 -2
  106. data/doc_out/StreetAddress.html.md +2 -2
  107. data/doc_out/TagValueEntityListing.html.md +2 -2
  108. data/doc_out/TelephonyProvidersEdgeApi.html.md +21 -17
  109. data/doc_out/TimeZoneEntityListing.html.md +2 -2
  110. data/doc_out/TrunkBaseEntityListing.html.md +2 -2
  111. data/doc_out/TrunkEntityListing.html.md +2 -2
  112. data/doc_out/TrunkMetabaseEntityListing.html.md +2 -2
  113. data/doc_out/UserEntityListing.html.md +2 -2
  114. data/doc_out/UserPresenceAlert.html.md +25 -0
  115. data/doc_out/UserPresenceAlertContainer.html.md +22 -0
  116. data/doc_out/UserPresenceRule.html.md +23 -0
  117. data/doc_out/{UsersEntityListing.html.md → UserPresenceRuleContainer.html.md} +5 -5
  118. data/doc_out/UserQueueEntityListing.html.md +2 -2
  119. data/doc_out/UserRecordingEntityListing.html.md +2 -2
  120. data/doc_out/UserSkillEntityListing.html.md +2 -2
  121. data/doc_out/UsersApi.html.md +2 -2
  122. data/doc_out/WorkspaceEntityListing.html.md +2 -2
  123. data/doc_out/WorkspaceMemberEntityListing.html.md +2 -2
  124. data/doc_out/WrapupCodeEntityListing.html.md +2 -2
  125. data/doc_out/index.html.md +3 -3
  126. data/lib/purecloud.rb +10 -1
  127. data/lib/purecloud/api/alerting_api.rb +1070 -49
  128. data/lib/purecloud/api/quality_api.rb +6 -0
  129. data/lib/purecloud/api/recording_api.rb +140 -2
  130. data/lib/purecloud/api/telephony_providers_edge_api.rb +13 -10
  131. data/lib/purecloud/api/users_api.rb +3 -3
  132. data/lib/purecloud/api_client.rb +1 -1
  133. data/lib/purecloud/models/agent_activity_entity_listing.rb +17 -17
  134. data/lib/purecloud/models/aggregation_query.rb +1 -1
  135. data/lib/purecloud/models/annotation.rb +115 -1
  136. data/lib/purecloud/models/attempt_limits_entity_listing.rb +17 -17
  137. data/lib/purecloud/models/attribute_entity_listing.rb +17 -17
  138. data/lib/purecloud/models/calibration_entity_listing.rb +17 -17
  139. data/lib/purecloud/models/call_conversation_entity_listing.rb +17 -17
  140. data/lib/purecloud/models/callable_time_set_entity_listing.rb +17 -17
  141. data/lib/purecloud/models/callback_conversation_entity_listing.rb +17 -17
  142. data/lib/purecloud/models/campaign_entity_listing.rb +17 -17
  143. data/lib/purecloud/models/campaign_sequence_entity_listing.rb +17 -17
  144. data/lib/purecloud/models/certificate_authority_entity_listing.rb +17 -17
  145. data/lib/purecloud/models/channel_entity_listing.rb +17 -17
  146. data/lib/purecloud/models/chat_conversation_entity_listing.rb +17 -17
  147. data/lib/purecloud/models/cobrowse_conversation_entity_listing.rb +17 -17
  148. data/lib/purecloud/models/command_status_entity_listing.rb +17 -17
  149. data/lib/purecloud/models/contact_list_entity_listing.rb +17 -17
  150. data/lib/purecloud/models/contact_sort.rb +1 -0
  151. data/lib/purecloud/models/conversation_entity_listing.rb +17 -17
  152. data/lib/purecloud/models/did_entity_listing.rb +17 -17
  153. data/lib/purecloud/models/did_pool_entity_listing.rb +17 -17
  154. data/lib/purecloud/models/dnc_list_entity_listing.rb +17 -17
  155. data/lib/purecloud/models/document_audit_entity_listing.rb +17 -17
  156. data/lib/purecloud/models/document_entity_listing.rb +17 -17
  157. data/lib/purecloud/models/domain_edge_software_version_dto_entity_listing.rb +17 -17
  158. data/lib/purecloud/models/domain_entity_listing.rb +17 -17
  159. data/lib/purecloud/models/domain_entity_listing_evaluation_form.rb +17 -17
  160. data/lib/purecloud/models/domain_entity_listing_query_result.rb +17 -17
  161. data/lib/purecloud/models/edge.rb +2 -1
  162. data/lib/purecloud/models/edge_entity_listing.rb +17 -17
  163. data/lib/purecloud/models/edge_group_entity_listing.rb +17 -17
  164. data/lib/purecloud/models/edge_line_entity_listing.rb +17 -17
  165. data/lib/purecloud/models/email_conversation_entity_listing.rb +17 -17
  166. data/lib/purecloud/models/email_message_listing.rb +17 -17
  167. data/lib/purecloud/models/encryption_key_entity_listing.rb +17 -17
  168. data/lib/purecloud/models/endpoint_entity_listing.rb +17 -17
  169. data/lib/purecloud/models/evaluation_entity_listing.rb +17 -17
  170. data/lib/purecloud/models/evaluation_form_entity_listing.rb +17 -17
  171. data/lib/purecloud/models/evaluator_activity_entity_listing.rb +17 -17
  172. data/lib/purecloud/models/extension_entity_listing.rb +17 -17
  173. data/lib/purecloud/models/extension_pool_entity_listing.rb +17 -17
  174. data/lib/purecloud/models/fax_document_entity_listing.rb +17 -17
  175. data/lib/purecloud/models/group_entity_listing.rb +17 -17
  176. data/lib/purecloud/models/group_search_criteria.rb +1 -1
  177. data/lib/purecloud/models/heart_beat_alert.rb +1 -1
  178. data/lib/purecloud/models/heart_beat_alert_container.rb +17 -17
  179. data/lib/purecloud/models/heart_beat_rule.rb +1 -1
  180. data/lib/purecloud/models/heart_beat_rule_container.rb +17 -17
  181. data/lib/purecloud/models/inbound_domain_entity_listing.rb +17 -17
  182. data/lib/purecloud/models/inbound_route_entity_listing.rb +17 -17
  183. data/lib/purecloud/models/interaction_stats_alert.rb +1 -1
  184. data/lib/purecloud/models/interaction_stats_alert_container.rb +17 -17
  185. data/lib/purecloud/models/interaction_stats_rule.rb +1 -1
  186. data/lib/purecloud/models/interaction_stats_rule_container.rb +17 -17
  187. data/lib/purecloud/models/keyword_set_entity_listing.rb +17 -17
  188. data/lib/purecloud/models/language_entity_listing.rb +17 -17
  189. data/lib/purecloud/models/library_entity_listing.rb +17 -17
  190. data/lib/purecloud/models/line_base_entity_listing.rb +17 -17
  191. data/lib/purecloud/models/line_entity_listing.rb +17 -17
  192. data/lib/purecloud/models/local_encryption_configuration_listing.rb +17 -17
  193. data/lib/purecloud/models/location_search_criteria.rb +1 -1
  194. data/lib/purecloud/models/logical_interface_entity_listing.rb +17 -17
  195. data/lib/purecloud/models/o_auth_client_entity_listing.rb +18 -18
  196. data/lib/purecloud/models/o_auth_client_listing.rb +246 -0
  197. data/lib/purecloud/models/o_auth_provider_entity_listing.rb +17 -17
  198. data/lib/purecloud/models/organization_presence_entity_listing.rb +17 -17
  199. data/lib/purecloud/models/organization_role_entity_listing.rb +17 -17
  200. data/lib/purecloud/models/orphan_recording.rb +21 -1
  201. data/lib/purecloud/models/orphan_recording_listing.rb +17 -17
  202. data/lib/purecloud/models/orphan_update_request.rb +188 -0
  203. data/lib/purecloud/models/outbound_route_entity_listing.rb +17 -17
  204. data/lib/purecloud/models/permission_collection_entity_listing.rb +17 -17
  205. data/lib/purecloud/models/phone_base_entity_listing.rb +17 -17
  206. data/lib/purecloud/models/phone_entity_listing.rb +17 -17
  207. data/lib/purecloud/models/phone_meta_base_entity_listing.rb +17 -17
  208. data/lib/purecloud/models/physical_interface_entity_listing.rb +17 -17
  209. data/lib/purecloud/models/policy_entity_listing.rb +17 -17
  210. data/lib/purecloud/models/quality_audit_page.rb +17 -17
  211. data/lib/purecloud/models/queue_entity_listing.rb +17 -17
  212. data/lib/purecloud/models/queue_member_entity_listing.rb +17 -17
  213. data/lib/purecloud/models/report_meta_data_entity_listing.rb +17 -17
  214. data/lib/purecloud/models/report_run_entry_entity_domain_listing.rb +17 -17
  215. data/lib/purecloud/models/report_schedule_entity_listing.rb +17 -17
  216. data/lib/purecloud/models/response_entity_list.rb +17 -17
  217. data/lib/purecloud/models/response_entity_listing.rb +17 -17
  218. data/lib/purecloud/models/response_set_entity_listing.rb +17 -17
  219. data/lib/purecloud/models/routing_status_alert.rb +289 -0
  220. data/lib/purecloud/models/routing_status_alert_container.rb +257 -0
  221. data/lib/purecloud/models/routing_status_rule.rb +282 -0
  222. data/lib/purecloud/models/routing_status_rule_container.rb +257 -0
  223. data/lib/purecloud/models/rule_set_entity_listing.rb +17 -17
  224. data/lib/purecloud/models/schema_category_entity_listing.rb +17 -17
  225. data/lib/purecloud/models/schema_reference_entity_listing.rb +17 -17
  226. data/lib/purecloud/models/screen_recording_session_listing.rb +17 -17
  227. data/lib/purecloud/models/script_entity_listing.rb +17 -17
  228. data/lib/purecloud/models/security_profile_entity_listing.rb +17 -17
  229. data/lib/purecloud/models/share_entity_listing.rb +17 -17
  230. data/lib/purecloud/models/site_entity_listing.rb +17 -17
  231. data/lib/purecloud/models/skill_entity_listing.rb +17 -17
  232. data/lib/purecloud/models/station_entity_listing.rb +17 -17
  233. data/lib/purecloud/models/street_address.rb +2 -0
  234. data/lib/purecloud/models/tag_value_entity_listing.rb +17 -17
  235. data/lib/purecloud/models/time_zone_entity_listing.rb +17 -17
  236. data/lib/purecloud/models/trunk_base_entity_listing.rb +17 -17
  237. data/lib/purecloud/models/trunk_entity_listing.rb +17 -17
  238. data/lib/purecloud/models/trunk_metabase_entity_listing.rb +17 -17
  239. data/lib/purecloud/models/user_entity_listing.rb +17 -17
  240. data/lib/purecloud/models/user_presence_alert.rb +310 -0
  241. data/lib/purecloud/models/user_presence_alert_container.rb +257 -0
  242. data/lib/purecloud/models/user_presence_rule.rb +293 -0
  243. data/lib/purecloud/models/{users_entity_listing.rb → user_presence_rule_container.rb} +19 -19
  244. data/lib/purecloud/models/user_queue_entity_listing.rb +17 -17
  245. data/lib/purecloud/models/user_recording_entity_listing.rb +17 -17
  246. data/lib/purecloud/models/user_schedule_adherence.rb +3 -3
  247. data/lib/purecloud/models/user_search_criteria.rb +1 -1
  248. data/lib/purecloud/models/user_skill_entity_listing.rb +17 -17
  249. data/lib/purecloud/models/workspace_entity_listing.rb +17 -17
  250. data/lib/purecloud/models/workspace_member_entity_listing.rb +17 -17
  251. data/lib/purecloud/models/wrapup_code_entity_listing.rb +17 -17
  252. data/lib/purecloud/version.rb +1 -1
  253. data/newVersion.md +1 -1
  254. data/swagger.json +1 -1
  255. data/version.json +1 -1
  256. metadata +22 -4
@@ -11,11 +11,11 @@ title: TimeZoneEntityListing
11
11
  | **page_size** | **Integer** | | [optional] |
12
12
  | **page_number** | **Integer** | | [optional] |
13
13
  | **total** | **Integer** | | [optional] |
14
- | **self_uri** | **String** | | [optional] |
15
14
  | **first_uri** | **String** | | [optional] |
15
+ | **self_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
16
17
  | **next_uri** | **String** | | [optional] |
17
18
  | **last_uri** | **String** | | [optional] |
18
- | **previous_uri** | **String** | | [optional] |
19
19
  | **page_count** | **Integer** | | [optional] |
20
20
  {: class="table table-striped"}
21
21
 
@@ -11,11 +11,11 @@ title: TrunkBaseEntityListing
11
11
  | **page_size** | **Integer** | | [optional] |
12
12
  | **page_number** | **Integer** | | [optional] |
13
13
  | **total** | **Integer** | | [optional] |
14
- | **self_uri** | **String** | | [optional] |
15
14
  | **first_uri** | **String** | | [optional] |
15
+ | **self_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
16
17
  | **next_uri** | **String** | | [optional] |
17
18
  | **last_uri** | **String** | | [optional] |
18
- | **previous_uri** | **String** | | [optional] |
19
19
  | **page_count** | **Integer** | | [optional] |
20
20
  {: class="table table-striped"}
21
21
 
@@ -11,11 +11,11 @@ title: TrunkEntityListing
11
11
  | **page_size** | **Integer** | | [optional] |
12
12
  | **page_number** | **Integer** | | [optional] |
13
13
  | **total** | **Integer** | | [optional] |
14
- | **self_uri** | **String** | | [optional] |
15
14
  | **first_uri** | **String** | | [optional] |
15
+ | **self_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
16
17
  | **next_uri** | **String** | | [optional] |
17
18
  | **last_uri** | **String** | | [optional] |
18
- | **previous_uri** | **String** | | [optional] |
19
19
  | **page_count** | **Integer** | | [optional] |
20
20
  {: class="table table-striped"}
21
21
 
@@ -11,11 +11,11 @@ title: TrunkMetabaseEntityListing
11
11
  | **page_size** | **Integer** | | [optional] |
12
12
  | **page_number** | **Integer** | | [optional] |
13
13
  | **total** | **Integer** | | [optional] |
14
- | **self_uri** | **String** | | [optional] |
15
14
  | **first_uri** | **String** | | [optional] |
15
+ | **self_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
16
17
  | **next_uri** | **String** | | [optional] |
17
18
  | **last_uri** | **String** | | [optional] |
18
- | **previous_uri** | **String** | | [optional] |
19
19
  | **page_count** | **Integer** | | [optional] |
20
20
  {: class="table table-striped"}
21
21
 
@@ -11,11 +11,11 @@ title: UserEntityListing
11
11
  | **page_size** | **Integer** | | [optional] |
12
12
  | **page_number** | **Integer** | | [optional] |
13
13
  | **total** | **Integer** | | [optional] |
14
- | **self_uri** | **String** | | [optional] |
15
14
  | **first_uri** | **String** | | [optional] |
15
+ | **self_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
16
17
  | **next_uri** | **String** | | [optional] |
17
18
  | **last_uri** | **String** | | [optional] |
18
- | **previous_uri** | **String** | | [optional] |
19
19
  | **page_count** | **Integer** | | [optional] |
20
20
  {: class="table table-striped"}
21
21
 
@@ -0,0 +1,25 @@
1
+ ---
2
+ title: UserPresenceAlert
3
+ ---
4
+ ## PureCloud::UserPresenceAlert
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **id** | **String** | The globally unique identifier for the object. | [optional] |
11
+ | **name** | **String** | Name of the rule | |
12
+ | **presence_user** | [**User**](User.html) | The user whose presence will be watched. | |
13
+ | **presence_type** | **String** | Indicates to which presence type the presence value belongs. | |
14
+ | **presence_value** | **String** | The Org's UUID or Systems enum constance indicating the presence of concern. | |
15
+ | **presence_limit_in_seconds** | **Integer** | The number of seconds to wait before alerting based upon the user's presence. | |
16
+ | **rule_id** | **String** | The id of the rule. | |
17
+ | **start_date** | **DateTime** | The date/time the alert was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ | |
18
+ | **end_date** | **DateTime** | The date/time the owning rule exiting in alarm status. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ | [optional] |
19
+ | **notification_users** | [**Array<User>**](User.html) | The ids of users who were notified of alarm state change. | |
20
+ | **alert_types** | **Array<String>** | A collection of notification methods. | |
21
+ | **rule_uri** | **String** | | [optional] |
22
+ | **self_uri** | **String** | The URI for this object | [optional] |
23
+ {: class="table table-striped"}
24
+
25
+
@@ -0,0 +1,22 @@
1
+ ---
2
+ title: UserPresenceAlertContainer
3
+ ---
4
+ ## PureCloud::UserPresenceAlertContainer
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **entities** | [**Array<UserPresenceAlert>**](UserPresenceAlert.html) | | [optional] |
11
+ | **page_size** | **Integer** | | [optional] |
12
+ | **page_number** | **Integer** | | [optional] |
13
+ | **total** | **Integer** | | [optional] |
14
+ | **first_uri** | **String** | | [optional] |
15
+ | **self_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
17
+ | **next_uri** | **String** | | [optional] |
18
+ | **last_uri** | **String** | | [optional] |
19
+ | **page_count** | **Integer** | | [optional] |
20
+ {: class="table table-striped"}
21
+
22
+
@@ -0,0 +1,23 @@
1
+ ---
2
+ title: UserPresenceRule
3
+ ---
4
+ ## PureCloud::UserPresenceRule
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **id** | **String** | The globally unique identifier for the object. | [optional] |
11
+ | **name** | **String** | Name of the rule | |
12
+ | **presence_user** | [**User**](User.html) | The user whose presence will be watched. | |
13
+ | **presence_type** | **String** | Indicates to which presence type the presence value belongs. | |
14
+ | **presence_value** | **String** | The Org's UUID or Systems enum constance indicating the presence of concern. | |
15
+ | **presence_limit_in_seconds** | **Integer** | The number of seconds to wait before alerting based upon the user's presence. | |
16
+ | **enabled** | **BOOLEAN** | Indicates if the rule is enabled. | [default to false]|
17
+ | **in_alarm** | **BOOLEAN** | Indicates if the rule is in alarm state. | [optional] [default to false]|
18
+ | **notification_users** | [**Array<User>**](User.html) | The ids of users who will be notified of alarm state change. | |
19
+ | **alert_types** | **Array<String>** | A collection of notification methods. | |
20
+ | **self_uri** | **String** | The URI for this object | [optional] |
21
+ {: class="table table-striped"}
22
+
23
+
@@ -1,21 +1,21 @@
1
1
  ---
2
- title: UsersEntityListing
2
+ title: UserPresenceRuleContainer
3
3
  ---
4
- ## PureCloud::UsersEntityListing
4
+ ## PureCloud::UserPresenceRuleContainer
5
5
 
6
6
  ## Properties
7
7
 
8
8
  |Name | Type | Description | Notes|
9
9
  |------------ | ------------- | ------------- | -------------|
10
- | **entities** | [**Array<User>**](User.html) | | [optional] |
10
+ | **entities** | [**Array<UserPresenceRule>**](UserPresenceRule.html) | | [optional] |
11
11
  | **page_size** | **Integer** | | [optional] |
12
12
  | **page_number** | **Integer** | | [optional] |
13
13
  | **total** | **Integer** | | [optional] |
14
- | **self_uri** | **String** | | [optional] |
15
14
  | **first_uri** | **String** | | [optional] |
15
+ | **self_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
16
17
  | **next_uri** | **String** | | [optional] |
17
18
  | **last_uri** | **String** | | [optional] |
18
- | **previous_uri** | **String** | | [optional] |
19
19
  | **page_count** | **Integer** | | [optional] |
20
20
  {: class="table table-striped"}
21
21
 
@@ -11,11 +11,11 @@ title: UserQueueEntityListing
11
11
  | **page_size** | **Integer** | | [optional] |
12
12
  | **page_number** | **Integer** | | [optional] |
13
13
  | **total** | **Integer** | | [optional] |
14
- | **self_uri** | **String** | | [optional] |
15
14
  | **first_uri** | **String** | | [optional] |
15
+ | **self_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
16
17
  | **next_uri** | **String** | | [optional] |
17
18
  | **last_uri** | **String** | | [optional] |
18
- | **previous_uri** | **String** | | [optional] |
19
19
  | **page_count** | **Integer** | | [optional] |
20
20
  {: class="table table-striped"}
21
21
 
@@ -11,11 +11,11 @@ title: UserRecordingEntityListing
11
11
  | **page_size** | **Integer** | | [optional] |
12
12
  | **page_number** | **Integer** | | [optional] |
13
13
  | **total** | **Integer** | | [optional] |
14
- | **self_uri** | **String** | | [optional] |
15
14
  | **first_uri** | **String** | | [optional] |
15
+ | **self_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
16
17
  | **next_uri** | **String** | | [optional] |
17
18
  | **last_uri** | **String** | | [optional] |
18
- | **previous_uri** | **String** | | [optional] |
19
19
  | **page_count** | **Integer** | | [optional] |
20
20
  {: class="table table-striped"}
21
21
 
@@ -11,11 +11,11 @@ title: UserSkillEntityListing
11
11
  | **page_size** | **Integer** | | [optional] |
12
12
  | **page_number** | **Integer** | | [optional] |
13
13
  | **total** | **Integer** | | [optional] |
14
- | **self_uri** | **String** | | [optional] |
15
14
  | **first_uri** | **String** | | [optional] |
15
+ | **self_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
16
17
  | **next_uri** | **String** | | [optional] |
17
18
  | **last_uri** | **String** | | [optional] |
18
- | **previous_uri** | **String** | | [optional] |
19
19
  | **page_count** | **Integer** | | [optional] |
20
20
  {: class="table table-striped"}
21
21
 
@@ -1336,7 +1336,7 @@ Name | Type | Description | Notes
1336
1336
 
1337
1337
  <a name="get_users"></a>
1338
1338
 
1339
- ## -[**UsersEntityListing**](UsersEntityListing.html) get_users(opts)
1339
+ ## -[**UserEntityListing**](UserEntityListing.html) get_users(opts)
1340
1340
 
1341
1341
  Get the list of available users.
1342
1342
 
@@ -1390,7 +1390,7 @@ Name | Type | Description | Notes
1390
1390
 
1391
1391
  ### Return type
1392
1392
 
1393
- [**UsersEntityListing**](UsersEntityListing.html)
1393
+ [**UserEntityListing**](UserEntityListing.html)
1394
1394
 
1395
1395
  ### HTTP request headers
1396
1396
 
@@ -11,11 +11,11 @@ title: WorkspaceEntityListing
11
11
  | **page_size** | **Integer** | | [optional] |
12
12
  | **page_number** | **Integer** | | [optional] |
13
13
  | **total** | **Integer** | | [optional] |
14
- | **self_uri** | **String** | | [optional] |
15
14
  | **first_uri** | **String** | | [optional] |
15
+ | **self_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
16
17
  | **next_uri** | **String** | | [optional] |
17
18
  | **last_uri** | **String** | | [optional] |
18
- | **previous_uri** | **String** | | [optional] |
19
19
  | **page_count** | **Integer** | | [optional] |
20
20
  {: class="table table-striped"}
21
21
 
@@ -11,11 +11,11 @@ title: WorkspaceMemberEntityListing
11
11
  | **page_size** | **Integer** | | [optional] |
12
12
  | **page_number** | **Integer** | | [optional] |
13
13
  | **total** | **Integer** | | [optional] |
14
- | **self_uri** | **String** | | [optional] |
15
14
  | **first_uri** | **String** | | [optional] |
15
+ | **self_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
16
17
  | **next_uri** | **String** | | [optional] |
17
18
  | **last_uri** | **String** | | [optional] |
18
- | **previous_uri** | **String** | | [optional] |
19
19
  | **page_count** | **Integer** | | [optional] |
20
20
  {: class="table table-striped"}
21
21
 
@@ -11,11 +11,11 @@ title: WrapupCodeEntityListing
11
11
  | **page_size** | **Integer** | | [optional] |
12
12
  | **page_number** | **Integer** | | [optional] |
13
13
  | **total** | **Integer** | | [optional] |
14
- | **self_uri** | **String** | | [optional] |
15
14
  | **first_uri** | **String** | | [optional] |
15
+ | **self_uri** | **String** | | [optional] |
16
+ | **previous_uri** | **String** | | [optional] |
16
17
  | **next_uri** | **String** | | [optional] |
17
18
  | **last_uri** | **String** | | [optional] |
18
- | **previous_uri** | **String** | | [optional] |
19
19
  | **page_count** | **Integer** | | [optional] |
20
20
  {: class="table table-striped"}
21
21
 
@@ -9,8 +9,8 @@ With the PureCloud Platform API, you can control all aspects of your PureCloud e
9
9
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
10
10
 
11
11
  - API version: v2
12
- - Package version: 0.59.1
13
- - Build date: 2016-11-27T18:21:45.381Z
12
+ - Package version: 0.60.1
13
+ - Build date: 2016-12-05T21:10:35.816Z
14
14
 
15
15
  For more information, please visit [https://developer.mypurecloud.com](https://developer.mypurecloud.com)
16
16
 
@@ -18,7 +18,7 @@ For more information, please visit [https://developer.mypurecloud.com](https://d
18
18
 
19
19
  ### from rubygems.org
20
20
 
21
- gem 'purecloud', '~> 0.59.1'
21
+ gem 'purecloud', '~> 0.60.1'
22
22
 
23
23
  ### Install from Git
24
24
 
data/lib/purecloud.rb CHANGED
@@ -443,6 +443,7 @@ require 'purecloud/models/number_plan'
443
443
  require 'purecloud/models/numeric_range'
444
444
  require 'purecloud/models/o_auth_client'
445
445
  require 'purecloud/models/o_auth_client_entity_listing'
446
+ require 'purecloud/models/o_auth_client_listing'
446
447
  require 'purecloud/models/o_auth_provider'
447
448
  require 'purecloud/models/o_auth_provider_entity_listing'
448
449
  require 'purecloud/models/observation_data_container'
@@ -458,6 +459,7 @@ require 'purecloud/models/organization_product_entity_listing'
458
459
  require 'purecloud/models/organization_role_entity_listing'
459
460
  require 'purecloud/models/orphan_recording'
460
461
  require 'purecloud/models/orphan_recording_listing'
462
+ require 'purecloud/models/orphan_update_request'
461
463
  require 'purecloud/models/out_of_office'
462
464
  require 'purecloud/models/out_of_office_notification'
463
465
  require 'purecloud/models/out_of_office_notification_user'
@@ -549,6 +551,10 @@ require 'purecloud/models/ring'
549
551
  require 'purecloud/models/routing_data'
550
552
  require 'purecloud/models/routing_skill'
551
553
  require 'purecloud/models/routing_status'
554
+ require 'purecloud/models/routing_status_alert'
555
+ require 'purecloud/models/routing_status_alert_container'
556
+ require 'purecloud/models/routing_status_rule'
557
+ require 'purecloud/models/routing_status_rule_container'
552
558
  require 'purecloud/models/rule_set'
553
559
  require 'purecloud/models/rule_set_diagnostic'
554
560
  require 'purecloud/models/rule_set_entity_listing'
@@ -647,9 +653,13 @@ require 'purecloud/models/user_image'
647
653
  require 'purecloud/models/user_me'
648
654
  require 'purecloud/models/user_param'
649
655
  require 'purecloud/models/user_presence'
656
+ require 'purecloud/models/user_presence_alert'
657
+ require 'purecloud/models/user_presence_alert_container'
650
658
  require 'purecloud/models/user_presence_notification'
651
659
  require 'purecloud/models/user_presence_notification_organization_presence'
652
660
  require 'purecloud/models/user_presence_notification_presence_definition'
661
+ require 'purecloud/models/user_presence_rule'
662
+ require 'purecloud/models/user_presence_rule_container'
653
663
  require 'purecloud/models/user_queue'
654
664
  require 'purecloud/models/user_queue_entity_listing'
655
665
  require 'purecloud/models/user_recording'
@@ -664,7 +674,6 @@ require 'purecloud/models/user_search_request'
664
674
  require 'purecloud/models/user_skill_entity_listing'
665
675
  require 'purecloud/models/user_station'
666
676
  require 'purecloud/models/user_stations'
667
- require 'purecloud/models/users_entity_listing'
668
677
  require 'purecloud/models/users_search_response'
669
678
  require 'purecloud/models/utilization'
670
679
  require 'purecloud/models/validate_address_request'
@@ -260,9 +260,246 @@ module PureCloud
260
260
  return data, status_code, headers
261
261
  end
262
262
 
263
+ # Delete a routing status alert
264
+ #
265
+ # @param alert_id Alert ID
266
+ # @param [Hash] opts the optional parameters
267
+ # @return [nil]
268
+ def delete_routingstatus_alerts_alert_id(alert_id, opts = {})
269
+ delete_routingstatus_alerts_alert_id_with_http_info(alert_id, opts)
270
+ return nil
271
+ end
272
+
273
+ # Delete a routing status alert
274
+ #
275
+ # @param alert_id Alert ID
276
+ # @param [Hash] opts the optional parameters
277
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
278
+ def delete_routingstatus_alerts_alert_id_with_http_info(alert_id, opts = {})
279
+ if @api_client.config.debugging
280
+ @api_client.config.logger.debug "Calling API: AlertingApi#delete_routingstatus_alerts_alert_id ..."
281
+ end
282
+
283
+ # verify the required parameter 'alert_id' is set
284
+ fail "Missing the required parameter 'alert_id' when calling delete_routingstatus_alerts_alert_id" if alert_id.nil?
285
+
286
+ # resource path
287
+ local_var_path = "/api/v2/alerting/routingstatus/alerts/{alertId}".sub('{format}','json').sub('{' + 'alertId' + '}', alert_id.to_s)
288
+
289
+ # query parameters
290
+ query_params = {}
291
+
292
+ # header parameters
293
+ header_params = {}
294
+
295
+ # HTTP header 'Accept' (if needed)
296
+ _header_accept = ['application/json']
297
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
298
+
299
+ # HTTP header 'Content-Type'
300
+ _header_content_type = ['application/json']
301
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
302
+
303
+ # form parameters
304
+ form_params = {}
305
+
306
+ # http body (model)
307
+ post_body = nil
308
+
309
+ auth_names = ['PureCloud Auth']
310
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
311
+ :header_params => header_params,
312
+ :query_params => query_params,
313
+ :form_params => form_params,
314
+ :body => post_body,
315
+ :auth_names => auth_names)
316
+ if @api_client.config.debugging
317
+ @api_client.config.logger.debug "API called: AlertingApi#delete_routingstatus_alerts_alert_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
318
+ end
319
+ return data, status_code, headers
320
+ end
321
+
322
+ # Delete a routing status rule.
323
+ #
324
+ # @param rule_id Rule ID
325
+ # @param [Hash] opts the optional parameters
326
+ # @return [nil]
327
+ def delete_routingstatus_rules_rule_id(rule_id, opts = {})
328
+ delete_routingstatus_rules_rule_id_with_http_info(rule_id, opts)
329
+ return nil
330
+ end
331
+
332
+ # Delete a routing status rule.
333
+ #
334
+ # @param rule_id Rule ID
335
+ # @param [Hash] opts the optional parameters
336
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
337
+ def delete_routingstatus_rules_rule_id_with_http_info(rule_id, opts = {})
338
+ if @api_client.config.debugging
339
+ @api_client.config.logger.debug "Calling API: AlertingApi#delete_routingstatus_rules_rule_id ..."
340
+ end
341
+
342
+ # verify the required parameter 'rule_id' is set
343
+ fail "Missing the required parameter 'rule_id' when calling delete_routingstatus_rules_rule_id" if rule_id.nil?
344
+
345
+ # resource path
346
+ local_var_path = "/api/v2/alerting/routingstatus/rules/{ruleId}".sub('{format}','json').sub('{' + 'ruleId' + '}', rule_id.to_s)
347
+
348
+ # query parameters
349
+ query_params = {}
350
+
351
+ # header parameters
352
+ header_params = {}
353
+
354
+ # HTTP header 'Accept' (if needed)
355
+ _header_accept = ['application/json']
356
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
357
+
358
+ # HTTP header 'Content-Type'
359
+ _header_content_type = ['application/json']
360
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
361
+
362
+ # form parameters
363
+ form_params = {}
364
+
365
+ # http body (model)
366
+ post_body = nil
367
+
368
+ auth_names = ['PureCloud Auth']
369
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
370
+ :header_params => header_params,
371
+ :query_params => query_params,
372
+ :form_params => form_params,
373
+ :body => post_body,
374
+ :auth_names => auth_names)
375
+ if @api_client.config.debugging
376
+ @api_client.config.logger.debug "API called: AlertingApi#delete_routingstatus_rules_rule_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
377
+ end
378
+ return data, status_code, headers
379
+ end
380
+
381
+ # Delete a user presence alert
382
+ #
383
+ # @param alert_id Alert ID
384
+ # @param [Hash] opts the optional parameters
385
+ # @return [nil]
386
+ def delete_userpresence_alerts_alert_id(alert_id, opts = {})
387
+ delete_userpresence_alerts_alert_id_with_http_info(alert_id, opts)
388
+ return nil
389
+ end
390
+
391
+ # Delete a user presence alert
392
+ #
393
+ # @param alert_id Alert ID
394
+ # @param [Hash] opts the optional parameters
395
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
396
+ def delete_userpresence_alerts_alert_id_with_http_info(alert_id, opts = {})
397
+ if @api_client.config.debugging
398
+ @api_client.config.logger.debug "Calling API: AlertingApi#delete_userpresence_alerts_alert_id ..."
399
+ end
400
+
401
+ # verify the required parameter 'alert_id' is set
402
+ fail "Missing the required parameter 'alert_id' when calling delete_userpresence_alerts_alert_id" if alert_id.nil?
403
+
404
+ # resource path
405
+ local_var_path = "/api/v2/alerting/userpresence/alerts/{alertId}".sub('{format}','json').sub('{' + 'alertId' + '}', alert_id.to_s)
406
+
407
+ # query parameters
408
+ query_params = {}
409
+
410
+ # header parameters
411
+ header_params = {}
412
+
413
+ # HTTP header 'Accept' (if needed)
414
+ _header_accept = ['application/json']
415
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
416
+
417
+ # HTTP header 'Content-Type'
418
+ _header_content_type = ['application/json']
419
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
420
+
421
+ # form parameters
422
+ form_params = {}
423
+
424
+ # http body (model)
425
+ post_body = nil
426
+
427
+ auth_names = ['PureCloud Auth']
428
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
429
+ :header_params => header_params,
430
+ :query_params => query_params,
431
+ :form_params => form_params,
432
+ :body => post_body,
433
+ :auth_names => auth_names)
434
+ if @api_client.config.debugging
435
+ @api_client.config.logger.debug "API called: AlertingApi#delete_userpresence_alerts_alert_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
436
+ end
437
+ return data, status_code, headers
438
+ end
439
+
440
+ # Delete a user presence rule.
441
+ #
442
+ # @param rule_id Rule ID
443
+ # @param [Hash] opts the optional parameters
444
+ # @return [nil]
445
+ def delete_userpresence_rules_rule_id(rule_id, opts = {})
446
+ delete_userpresence_rules_rule_id_with_http_info(rule_id, opts)
447
+ return nil
448
+ end
449
+
450
+ # Delete a user presence rule.
451
+ #
452
+ # @param rule_id Rule ID
453
+ # @param [Hash] opts the optional parameters
454
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
455
+ def delete_userpresence_rules_rule_id_with_http_info(rule_id, opts = {})
456
+ if @api_client.config.debugging
457
+ @api_client.config.logger.debug "Calling API: AlertingApi#delete_userpresence_rules_rule_id ..."
458
+ end
459
+
460
+ # verify the required parameter 'rule_id' is set
461
+ fail "Missing the required parameter 'rule_id' when calling delete_userpresence_rules_rule_id" if rule_id.nil?
462
+
463
+ # resource path
464
+ local_var_path = "/api/v2/alerting/userpresence/rules/{ruleId}".sub('{format}','json').sub('{' + 'ruleId' + '}', rule_id.to_s)
465
+
466
+ # query parameters
467
+ query_params = {}
468
+
469
+ # header parameters
470
+ header_params = {}
471
+
472
+ # HTTP header 'Accept' (if needed)
473
+ _header_accept = ['application/json']
474
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
475
+
476
+ # HTTP header 'Content-Type'
477
+ _header_content_type = ['application/json']
478
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
479
+
480
+ # form parameters
481
+ form_params = {}
482
+
483
+ # http body (model)
484
+ post_body = nil
485
+
486
+ auth_names = ['PureCloud Auth']
487
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
488
+ :header_params => header_params,
489
+ :query_params => query_params,
490
+ :form_params => form_params,
491
+ :body => post_body,
492
+ :auth_names => auth_names)
493
+ if @api_client.config.debugging
494
+ @api_client.config.logger.debug "API called: AlertingApi#delete_userpresence_rules_rule_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
495
+ end
496
+ return data, status_code, headers
497
+ end
498
+
263
499
  # Get heart beat alert list.
264
500
  #
265
501
  # @param [Hash] opts the optional parameters
502
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
266
503
  # @return [HeartBeatAlertContainer]
267
504
  def get_heartbeat_alerts(opts = {})
268
505
  data, status_code, headers = get_heartbeat_alerts_with_http_info(opts)
@@ -272,6 +509,7 @@ module PureCloud
272
509
  # Get heart beat alert list.
273
510
  #
274
511
  # @param [Hash] opts the optional parameters
512
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
275
513
  # @return [Array<(HeartBeatAlertContainer, Fixnum, Hash)>] HeartBeatAlertContainer data, response status code and response headers
276
514
  def get_heartbeat_alerts_with_http_info(opts = {})
277
515
  if @api_client.config.debugging
@@ -283,6 +521,7 @@ module PureCloud
283
521
 
284
522
  # query parameters
285
523
  query_params = {}
524
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
286
525
 
287
526
  # header parameters
288
527
  header_params = {}
@@ -319,6 +558,7 @@ module PureCloud
319
558
  #
320
559
  # @param alert_id Alert ID
321
560
  # @param [Hash] opts the optional parameters
561
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
322
562
  # @return [HeartBeatAlert]
323
563
  def get_heartbeat_alerts_alert_id(alert_id, opts = {})
324
564
  data, status_code, headers = get_heartbeat_alerts_alert_id_with_http_info(alert_id, opts)
@@ -329,6 +569,7 @@ module PureCloud
329
569
  #
330
570
  # @param alert_id Alert ID
331
571
  # @param [Hash] opts the optional parameters
572
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
332
573
  # @return [Array<(HeartBeatAlert, Fixnum, Hash)>] HeartBeatAlert data, response status code and response headers
333
574
  def get_heartbeat_alerts_alert_id_with_http_info(alert_id, opts = {})
334
575
  if @api_client.config.debugging
@@ -343,6 +584,7 @@ module PureCloud
343
584
 
344
585
  # query parameters
345
586
  query_params = {}
587
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
346
588
 
347
589
  # header parameters
348
590
  header_params = {}
@@ -378,6 +620,7 @@ module PureCloud
378
620
  # Get a heart beat rule list.
379
621
  #
380
622
  # @param [Hash] opts the optional parameters
623
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
381
624
  # @return [HeartBeatRuleContainer]
382
625
  def get_heartbeat_rules(opts = {})
383
626
  data, status_code, headers = get_heartbeat_rules_with_http_info(opts)
@@ -387,6 +630,7 @@ module PureCloud
387
630
  # Get a heart beat rule list.
388
631
  #
389
632
  # @param [Hash] opts the optional parameters
633
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
390
634
  # @return [Array<(HeartBeatRuleContainer, Fixnum, Hash)>] HeartBeatRuleContainer data, response status code and response headers
391
635
  def get_heartbeat_rules_with_http_info(opts = {})
392
636
  if @api_client.config.debugging
@@ -398,6 +642,7 @@ module PureCloud
398
642
 
399
643
  # query parameters
400
644
  query_params = {}
645
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
401
646
 
402
647
  # header parameters
403
648
  header_params = {}
@@ -434,6 +679,7 @@ module PureCloud
434
679
  #
435
680
  # @param rule_id Rule ID
436
681
  # @param [Hash] opts the optional parameters
682
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
437
683
  # @return [HeartBeatRule]
438
684
  def get_heartbeat_rules_rule_id(rule_id, opts = {})
439
685
  data, status_code, headers = get_heartbeat_rules_rule_id_with_http_info(rule_id, opts)
@@ -444,6 +690,7 @@ module PureCloud
444
690
  #
445
691
  # @param rule_id Rule ID
446
692
  # @param [Hash] opts the optional parameters
693
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
447
694
  # @return [Array<(HeartBeatRule, Fixnum, Hash)>] HeartBeatRule data, response status code and response headers
448
695
  def get_heartbeat_rules_rule_id_with_http_info(rule_id, opts = {})
449
696
  if @api_client.config.debugging
@@ -458,6 +705,7 @@ module PureCloud
458
705
 
459
706
  # query parameters
460
707
  query_params = {}
708
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
461
709
 
462
710
  # header parameters
463
711
  header_params = {}
@@ -493,6 +741,7 @@ module PureCloud
493
741
  # Get interaction stats alert list.
494
742
  #
495
743
  # @param [Hash] opts the optional parameters
744
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
496
745
  # @return [InteractionStatsAlertContainer]
497
746
  def get_interactionstats_alerts(opts = {})
498
747
  data, status_code, headers = get_interactionstats_alerts_with_http_info(opts)
@@ -502,6 +751,7 @@ module PureCloud
502
751
  # Get interaction stats alert list.
503
752
  #
504
753
  # @param [Hash] opts the optional parameters
754
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
505
755
  # @return [Array<(InteractionStatsAlertContainer, Fixnum, Hash)>] InteractionStatsAlertContainer data, response status code and response headers
506
756
  def get_interactionstats_alerts_with_http_info(opts = {})
507
757
  if @api_client.config.debugging
@@ -513,6 +763,7 @@ module PureCloud
513
763
 
514
764
  # query parameters
515
765
  query_params = {}
766
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
516
767
 
517
768
  # header parameters
518
769
  header_params = {}
@@ -549,6 +800,7 @@ module PureCloud
549
800
  #
550
801
  # @param alert_id Alert ID
551
802
  # @param [Hash] opts the optional parameters
803
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
552
804
  # @return [InteractionStatsAlert]
553
805
  def get_interactionstats_alerts_alert_id(alert_id, opts = {})
554
806
  data, status_code, headers = get_interactionstats_alerts_alert_id_with_http_info(alert_id, opts)
@@ -559,6 +811,7 @@ module PureCloud
559
811
  #
560
812
  # @param alert_id Alert ID
561
813
  # @param [Hash] opts the optional parameters
814
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
562
815
  # @return [Array<(InteractionStatsAlert, Fixnum, Hash)>] InteractionStatsAlert data, response status code and response headers
563
816
  def get_interactionstats_alerts_alert_id_with_http_info(alert_id, opts = {})
564
817
  if @api_client.config.debugging
@@ -573,6 +826,7 @@ module PureCloud
573
826
 
574
827
  # query parameters
575
828
  query_params = {}
829
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
576
830
 
577
831
  # header parameters
578
832
  header_params = {}
@@ -663,6 +917,7 @@ module PureCloud
663
917
  # Get an interaction stats rule list.
664
918
  #
665
919
  # @param [Hash] opts the optional parameters
920
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
666
921
  # @return [InteractionStatsRuleContainer]
667
922
  def get_interactionstats_rules(opts = {})
668
923
  data, status_code, headers = get_interactionstats_rules_with_http_info(opts)
@@ -672,6 +927,7 @@ module PureCloud
672
927
  # Get an interaction stats rule list.
673
928
  #
674
929
  # @param [Hash] opts the optional parameters
930
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
675
931
  # @return [Array<(InteractionStatsRuleContainer, Fixnum, Hash)>] InteractionStatsRuleContainer data, response status code and response headers
676
932
  def get_interactionstats_rules_with_http_info(opts = {})
677
933
  if @api_client.config.debugging
@@ -683,6 +939,7 @@ module PureCloud
683
939
 
684
940
  # query parameters
685
941
  query_params = {}
942
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
686
943
 
687
944
  # header parameters
688
945
  header_params = {}
@@ -719,6 +976,7 @@ module PureCloud
719
976
  #
720
977
  # @param rule_id Rule ID
721
978
  # @param [Hash] opts the optional parameters
979
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
722
980
  # @return [InteractionStatsRule]
723
981
  def get_interactionstats_rules_rule_id(rule_id, opts = {})
724
982
  data, status_code, headers = get_interactionstats_rules_rule_id_with_http_info(rule_id, opts)
@@ -729,6 +987,7 @@ module PureCloud
729
987
  #
730
988
  # @param rule_id Rule ID
731
989
  # @param [Hash] opts the optional parameters
990
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
732
991
  # @return [Array<(InteractionStatsRule, Fixnum, Hash)>] InteractionStatsRule data, response status code and response headers
733
992
  def get_interactionstats_rules_rule_id_with_http_info(rule_id, opts = {})
734
993
  if @api_client.config.debugging
@@ -743,6 +1002,7 @@ module PureCloud
743
1002
 
744
1003
  # query parameters
745
1004
  query_params = {}
1005
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
746
1006
 
747
1007
  # header parameters
748
1008
  header_params = {}
@@ -775,34 +1035,32 @@ module PureCloud
775
1035
  return data, status_code, headers
776
1036
  end
777
1037
 
778
- # Create a heart beat rule.
1038
+ # Get routing status alert list.
779
1039
  #
780
- # @param body HeartBeatRule
781
1040
  # @param [Hash] opts the optional parameters
782
- # @return [HeartBeatRule]
783
- def post_heartbeat_rules(body, opts = {})
784
- data, status_code, headers = post_heartbeat_rules_with_http_info(body, opts)
1041
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1042
+ # @return [RoutingStatusAlertContainer]
1043
+ def get_routingstatus_alerts(opts = {})
1044
+ data, status_code, headers = get_routingstatus_alerts_with_http_info(opts)
785
1045
  return data
786
1046
  end
787
1047
 
788
- # Create a heart beat rule.
1048
+ # Get routing status alert list.
789
1049
  #
790
- # @param body HeartBeatRule
791
1050
  # @param [Hash] opts the optional parameters
792
- # @return [Array<(HeartBeatRule, Fixnum, Hash)>] HeartBeatRule data, response status code and response headers
793
- def post_heartbeat_rules_with_http_info(body, opts = {})
1051
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1052
+ # @return [Array<(RoutingStatusAlertContainer, Fixnum, Hash)>] RoutingStatusAlertContainer data, response status code and response headers
1053
+ def get_routingstatus_alerts_with_http_info(opts = {})
794
1054
  if @api_client.config.debugging
795
- @api_client.config.logger.debug "Calling API: AlertingApi#post_heartbeat_rules ..."
1055
+ @api_client.config.logger.debug "Calling API: AlertingApi#get_routingstatus_alerts ..."
796
1056
  end
797
1057
 
798
- # verify the required parameter 'body' is set
799
- fail "Missing the required parameter 'body' when calling post_heartbeat_rules" if body.nil?
800
-
801
1058
  # resource path
802
- local_var_path = "/api/v2/alerting/heartbeat/rules".sub('{format}','json')
1059
+ local_var_path = "/api/v2/alerting/routingstatus/alerts".sub('{format}','json')
803
1060
 
804
1061
  # query parameters
805
1062
  query_params = {}
1063
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
806
1064
 
807
1065
  # header parameters
808
1066
  header_params = {}
@@ -819,50 +1077,53 @@ module PureCloud
819
1077
  form_params = {}
820
1078
 
821
1079
  # http body (model)
822
- post_body = @api_client.object_to_http_body(body)
1080
+ post_body = nil
823
1081
 
824
1082
  auth_names = ['PureCloud Auth']
825
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1083
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
826
1084
  :header_params => header_params,
827
1085
  :query_params => query_params,
828
1086
  :form_params => form_params,
829
1087
  :body => post_body,
830
1088
  :auth_names => auth_names,
831
- :return_type => 'HeartBeatRule')
1089
+ :return_type => 'RoutingStatusAlertContainer')
832
1090
  if @api_client.config.debugging
833
- @api_client.config.logger.debug "API called: AlertingApi#post_heartbeat_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1091
+ @api_client.config.logger.debug "API called: AlertingApi#get_routingstatus_alerts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
834
1092
  end
835
1093
  return data, status_code, headers
836
1094
  end
837
1095
 
838
- # Create an interaction stats rule.
1096
+ # Get a routing status alert
839
1097
  #
840
- # @param body AlertingRule
1098
+ # @param alert_id Alert ID
841
1099
  # @param [Hash] opts the optional parameters
842
- # @return [InteractionStatsRule]
843
- def post_interactionstats_rules(body, opts = {})
844
- data, status_code, headers = post_interactionstats_rules_with_http_info(body, opts)
1100
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1101
+ # @return [RoutingStatusAlert]
1102
+ def get_routingstatus_alerts_alert_id(alert_id, opts = {})
1103
+ data, status_code, headers = get_routingstatus_alerts_alert_id_with_http_info(alert_id, opts)
845
1104
  return data
846
1105
  end
847
1106
 
848
- # Create an interaction stats rule.
1107
+ # Get a routing status alert
849
1108
  #
850
- # @param body AlertingRule
1109
+ # @param alert_id Alert ID
851
1110
  # @param [Hash] opts the optional parameters
852
- # @return [Array<(InteractionStatsRule, Fixnum, Hash)>] InteractionStatsRule data, response status code and response headers
853
- def post_interactionstats_rules_with_http_info(body, opts = {})
1111
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1112
+ # @return [Array<(RoutingStatusAlert, Fixnum, Hash)>] RoutingStatusAlert data, response status code and response headers
1113
+ def get_routingstatus_alerts_alert_id_with_http_info(alert_id, opts = {})
854
1114
  if @api_client.config.debugging
855
- @api_client.config.logger.debug "Calling API: AlertingApi#post_interactionstats_rules ..."
1115
+ @api_client.config.logger.debug "Calling API: AlertingApi#get_routingstatus_alerts_alert_id ..."
856
1116
  end
857
1117
 
858
- # verify the required parameter 'body' is set
859
- fail "Missing the required parameter 'body' when calling post_interactionstats_rules" if body.nil?
1118
+ # verify the required parameter 'alert_id' is set
1119
+ fail "Missing the required parameter 'alert_id' when calling get_routingstatus_alerts_alert_id" if alert_id.nil?
860
1120
 
861
1121
  # resource path
862
- local_var_path = "/api/v2/alerting/interactionstats/rules".sub('{format}','json')
1122
+ local_var_path = "/api/v2/alerting/routingstatus/alerts/{alertId}".sub('{format}','json').sub('{' + 'alertId' + '}', alert_id.to_s)
863
1123
 
864
1124
  # query parameters
865
1125
  query_params = {}
1126
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
866
1127
 
867
1128
  # header parameters
868
1129
  header_params = {}
@@ -879,46 +1140,663 @@ module PureCloud
879
1140
  form_params = {}
880
1141
 
881
1142
  # http body (model)
882
- post_body = @api_client.object_to_http_body(body)
1143
+ post_body = nil
883
1144
 
884
1145
  auth_names = ['PureCloud Auth']
885
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1146
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
886
1147
  :header_params => header_params,
887
1148
  :query_params => query_params,
888
1149
  :form_params => form_params,
889
1150
  :body => post_body,
890
1151
  :auth_names => auth_names,
891
- :return_type => 'InteractionStatsRule')
1152
+ :return_type => 'RoutingStatusAlert')
892
1153
  if @api_client.config.debugging
893
- @api_client.config.logger.debug "API called: AlertingApi#post_interactionstats_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1154
+ @api_client.config.logger.debug "API called: AlertingApi#get_routingstatus_alerts_alert_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
894
1155
  end
895
1156
  return data, status_code, headers
896
1157
  end
897
1158
 
898
- # Update a heart beat rule
1159
+ # Get a routing status rule list.
899
1160
  #
900
- # @param rule_id Rule ID
901
- # @param body HeartBeatRule
902
1161
  # @param [Hash] opts the optional parameters
903
- # @return [HeartBeatRule]
904
- def put_heartbeat_rules_rule_id(rule_id, body, opts = {})
905
- data, status_code, headers = put_heartbeat_rules_rule_id_with_http_info(rule_id, body, opts)
1162
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1163
+ # @return [RoutingStatusRuleContainer]
1164
+ def get_routingstatus_rules(opts = {})
1165
+ data, status_code, headers = get_routingstatus_rules_with_http_info(opts)
906
1166
  return data
907
1167
  end
908
1168
 
909
- # Update a heart beat rule
1169
+ # Get a routing status rule list.
910
1170
  #
911
- # @param rule_id Rule ID
912
- # @param body HeartBeatRule
913
1171
  # @param [Hash] opts the optional parameters
914
- # @return [Array<(HeartBeatRule, Fixnum, Hash)>] HeartBeatRule data, response status code and response headers
915
- def put_heartbeat_rules_rule_id_with_http_info(rule_id, body, opts = {})
1172
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1173
+ # @return [Array<(RoutingStatusRuleContainer, Fixnum, Hash)>] RoutingStatusRuleContainer data, response status code and response headers
1174
+ def get_routingstatus_rules_with_http_info(opts = {})
916
1175
  if @api_client.config.debugging
917
- @api_client.config.logger.debug "Calling API: AlertingApi#put_heartbeat_rules_rule_id ..."
1176
+ @api_client.config.logger.debug "Calling API: AlertingApi#get_routingstatus_rules ..."
918
1177
  end
919
1178
 
920
- # verify the required parameter 'rule_id' is set
921
- fail "Missing the required parameter 'rule_id' when calling put_heartbeat_rules_rule_id" if rule_id.nil?
1179
+ # resource path
1180
+ local_var_path = "/api/v2/alerting/routingstatus/rules".sub('{format}','json')
1181
+
1182
+ # query parameters
1183
+ query_params = {}
1184
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1185
+
1186
+ # header parameters
1187
+ header_params = {}
1188
+
1189
+ # HTTP header 'Accept' (if needed)
1190
+ _header_accept = ['application/json']
1191
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1192
+
1193
+ # HTTP header 'Content-Type'
1194
+ _header_content_type = ['application/json']
1195
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1196
+
1197
+ # form parameters
1198
+ form_params = {}
1199
+
1200
+ # http body (model)
1201
+ post_body = nil
1202
+
1203
+ auth_names = ['PureCloud Auth']
1204
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1205
+ :header_params => header_params,
1206
+ :query_params => query_params,
1207
+ :form_params => form_params,
1208
+ :body => post_body,
1209
+ :auth_names => auth_names,
1210
+ :return_type => 'RoutingStatusRuleContainer')
1211
+ if @api_client.config.debugging
1212
+ @api_client.config.logger.debug "API called: AlertingApi#get_routingstatus_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1213
+ end
1214
+ return data, status_code, headers
1215
+ end
1216
+
1217
+ # Get a routing status rule.
1218
+ #
1219
+ # @param rule_id Rule ID
1220
+ # @param [Hash] opts the optional parameters
1221
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1222
+ # @return [RoutingStatusRule]
1223
+ def get_routingstatus_rules_rule_id(rule_id, opts = {})
1224
+ data, status_code, headers = get_routingstatus_rules_rule_id_with_http_info(rule_id, opts)
1225
+ return data
1226
+ end
1227
+
1228
+ # Get a routing status rule.
1229
+ #
1230
+ # @param rule_id Rule ID
1231
+ # @param [Hash] opts the optional parameters
1232
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1233
+ # @return [Array<(RoutingStatusRule, Fixnum, Hash)>] RoutingStatusRule data, response status code and response headers
1234
+ def get_routingstatus_rules_rule_id_with_http_info(rule_id, opts = {})
1235
+ if @api_client.config.debugging
1236
+ @api_client.config.logger.debug "Calling API: AlertingApi#get_routingstatus_rules_rule_id ..."
1237
+ end
1238
+
1239
+ # verify the required parameter 'rule_id' is set
1240
+ fail "Missing the required parameter 'rule_id' when calling get_routingstatus_rules_rule_id" if rule_id.nil?
1241
+
1242
+ # resource path
1243
+ local_var_path = "/api/v2/alerting/routingstatus/rules/{ruleId}".sub('{format}','json').sub('{' + 'ruleId' + '}', rule_id.to_s)
1244
+
1245
+ # query parameters
1246
+ query_params = {}
1247
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1248
+
1249
+ # header parameters
1250
+ header_params = {}
1251
+
1252
+ # HTTP header 'Accept' (if needed)
1253
+ _header_accept = ['application/json']
1254
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1255
+
1256
+ # HTTP header 'Content-Type'
1257
+ _header_content_type = ['application/json']
1258
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1259
+
1260
+ # form parameters
1261
+ form_params = {}
1262
+
1263
+ # http body (model)
1264
+ post_body = nil
1265
+
1266
+ auth_names = ['PureCloud Auth']
1267
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1268
+ :header_params => header_params,
1269
+ :query_params => query_params,
1270
+ :form_params => form_params,
1271
+ :body => post_body,
1272
+ :auth_names => auth_names,
1273
+ :return_type => 'RoutingStatusRule')
1274
+ if @api_client.config.debugging
1275
+ @api_client.config.logger.debug "API called: AlertingApi#get_routingstatus_rules_rule_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1276
+ end
1277
+ return data, status_code, headers
1278
+ end
1279
+
1280
+ # Get user presence alert list.
1281
+ #
1282
+ # @param [Hash] opts the optional parameters
1283
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1284
+ # @return [UserPresenceAlertContainer]
1285
+ def get_userpresence_alerts(opts = {})
1286
+ data, status_code, headers = get_userpresence_alerts_with_http_info(opts)
1287
+ return data
1288
+ end
1289
+
1290
+ # Get user presence alert list.
1291
+ #
1292
+ # @param [Hash] opts the optional parameters
1293
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1294
+ # @return [Array<(UserPresenceAlertContainer, Fixnum, Hash)>] UserPresenceAlertContainer data, response status code and response headers
1295
+ def get_userpresence_alerts_with_http_info(opts = {})
1296
+ if @api_client.config.debugging
1297
+ @api_client.config.logger.debug "Calling API: AlertingApi#get_userpresence_alerts ..."
1298
+ end
1299
+
1300
+ # resource path
1301
+ local_var_path = "/api/v2/alerting/userpresence/alerts".sub('{format}','json')
1302
+
1303
+ # query parameters
1304
+ query_params = {}
1305
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1306
+
1307
+ # header parameters
1308
+ header_params = {}
1309
+
1310
+ # HTTP header 'Accept' (if needed)
1311
+ _header_accept = ['application/json']
1312
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1313
+
1314
+ # HTTP header 'Content-Type'
1315
+ _header_content_type = ['application/json']
1316
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1317
+
1318
+ # form parameters
1319
+ form_params = {}
1320
+
1321
+ # http body (model)
1322
+ post_body = nil
1323
+
1324
+ auth_names = ['PureCloud Auth']
1325
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1326
+ :header_params => header_params,
1327
+ :query_params => query_params,
1328
+ :form_params => form_params,
1329
+ :body => post_body,
1330
+ :auth_names => auth_names,
1331
+ :return_type => 'UserPresenceAlertContainer')
1332
+ if @api_client.config.debugging
1333
+ @api_client.config.logger.debug "API called: AlertingApi#get_userpresence_alerts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1334
+ end
1335
+ return data, status_code, headers
1336
+ end
1337
+
1338
+ # Get a user presence alert
1339
+ #
1340
+ # @param alert_id Alert ID
1341
+ # @param [Hash] opts the optional parameters
1342
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1343
+ # @return [UserPresenceAlert]
1344
+ def get_userpresence_alerts_alert_id(alert_id, opts = {})
1345
+ data, status_code, headers = get_userpresence_alerts_alert_id_with_http_info(alert_id, opts)
1346
+ return data
1347
+ end
1348
+
1349
+ # Get a user presence alert
1350
+ #
1351
+ # @param alert_id Alert ID
1352
+ # @param [Hash] opts the optional parameters
1353
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1354
+ # @return [Array<(UserPresenceAlert, Fixnum, Hash)>] UserPresenceAlert data, response status code and response headers
1355
+ def get_userpresence_alerts_alert_id_with_http_info(alert_id, opts = {})
1356
+ if @api_client.config.debugging
1357
+ @api_client.config.logger.debug "Calling API: AlertingApi#get_userpresence_alerts_alert_id ..."
1358
+ end
1359
+
1360
+ # verify the required parameter 'alert_id' is set
1361
+ fail "Missing the required parameter 'alert_id' when calling get_userpresence_alerts_alert_id" if alert_id.nil?
1362
+
1363
+ # resource path
1364
+ local_var_path = "/api/v2/alerting/userpresence/alerts/{alertId}".sub('{format}','json').sub('{' + 'alertId' + '}', alert_id.to_s)
1365
+
1366
+ # query parameters
1367
+ query_params = {}
1368
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1369
+
1370
+ # header parameters
1371
+ header_params = {}
1372
+
1373
+ # HTTP header 'Accept' (if needed)
1374
+ _header_accept = ['application/json']
1375
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1376
+
1377
+ # HTTP header 'Content-Type'
1378
+ _header_content_type = ['application/json']
1379
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1380
+
1381
+ # form parameters
1382
+ form_params = {}
1383
+
1384
+ # http body (model)
1385
+ post_body = nil
1386
+
1387
+ auth_names = ['PureCloud Auth']
1388
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1389
+ :header_params => header_params,
1390
+ :query_params => query_params,
1391
+ :form_params => form_params,
1392
+ :body => post_body,
1393
+ :auth_names => auth_names,
1394
+ :return_type => 'UserPresenceAlert')
1395
+ if @api_client.config.debugging
1396
+ @api_client.config.logger.debug "API called: AlertingApi#get_userpresence_alerts_alert_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1397
+ end
1398
+ return data, status_code, headers
1399
+ end
1400
+
1401
+ # Get a user presence rule list.
1402
+ #
1403
+ # @param [Hash] opts the optional parameters
1404
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1405
+ # @return [UserPresenceRuleContainer]
1406
+ def get_userpresence_rules(opts = {})
1407
+ data, status_code, headers = get_userpresence_rules_with_http_info(opts)
1408
+ return data
1409
+ end
1410
+
1411
+ # Get a user presence rule list.
1412
+ #
1413
+ # @param [Hash] opts the optional parameters
1414
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1415
+ # @return [Array<(UserPresenceRuleContainer, Fixnum, Hash)>] UserPresenceRuleContainer data, response status code and response headers
1416
+ def get_userpresence_rules_with_http_info(opts = {})
1417
+ if @api_client.config.debugging
1418
+ @api_client.config.logger.debug "Calling API: AlertingApi#get_userpresence_rules ..."
1419
+ end
1420
+
1421
+ # resource path
1422
+ local_var_path = "/api/v2/alerting/userpresence/rules".sub('{format}','json')
1423
+
1424
+ # query parameters
1425
+ query_params = {}
1426
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1427
+
1428
+ # header parameters
1429
+ header_params = {}
1430
+
1431
+ # HTTP header 'Accept' (if needed)
1432
+ _header_accept = ['application/json']
1433
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1434
+
1435
+ # HTTP header 'Content-Type'
1436
+ _header_content_type = ['application/json']
1437
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1438
+
1439
+ # form parameters
1440
+ form_params = {}
1441
+
1442
+ # http body (model)
1443
+ post_body = nil
1444
+
1445
+ auth_names = ['PureCloud Auth']
1446
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1447
+ :header_params => header_params,
1448
+ :query_params => query_params,
1449
+ :form_params => form_params,
1450
+ :body => post_body,
1451
+ :auth_names => auth_names,
1452
+ :return_type => 'UserPresenceRuleContainer')
1453
+ if @api_client.config.debugging
1454
+ @api_client.config.logger.debug "API called: AlertingApi#get_userpresence_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1455
+ end
1456
+ return data, status_code, headers
1457
+ end
1458
+
1459
+ # Get a user presence rule.
1460
+ #
1461
+ # @param rule_id Rule ID
1462
+ # @param [Hash] opts the optional parameters
1463
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1464
+ # @return [UserPresenceRule]
1465
+ def get_userpresence_rules_rule_id(rule_id, opts = {})
1466
+ data, status_code, headers = get_userpresence_rules_rule_id_with_http_info(rule_id, opts)
1467
+ return data
1468
+ end
1469
+
1470
+ # Get a user presence rule.
1471
+ #
1472
+ # @param rule_id Rule ID
1473
+ # @param [Hash] opts the optional parameters
1474
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1475
+ # @return [Array<(UserPresenceRule, Fixnum, Hash)>] UserPresenceRule data, response status code and response headers
1476
+ def get_userpresence_rules_rule_id_with_http_info(rule_id, opts = {})
1477
+ if @api_client.config.debugging
1478
+ @api_client.config.logger.debug "Calling API: AlertingApi#get_userpresence_rules_rule_id ..."
1479
+ end
1480
+
1481
+ # verify the required parameter 'rule_id' is set
1482
+ fail "Missing the required parameter 'rule_id' when calling get_userpresence_rules_rule_id" if rule_id.nil?
1483
+
1484
+ # resource path
1485
+ local_var_path = "/api/v2/alerting/userpresence/rules/{ruleId}".sub('{format}','json').sub('{' + 'ruleId' + '}', rule_id.to_s)
1486
+
1487
+ # query parameters
1488
+ query_params = {}
1489
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1490
+
1491
+ # header parameters
1492
+ header_params = {}
1493
+
1494
+ # HTTP header 'Accept' (if needed)
1495
+ _header_accept = ['application/json']
1496
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1497
+
1498
+ # HTTP header 'Content-Type'
1499
+ _header_content_type = ['application/json']
1500
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1501
+
1502
+ # form parameters
1503
+ form_params = {}
1504
+
1505
+ # http body (model)
1506
+ post_body = nil
1507
+
1508
+ auth_names = ['PureCloud Auth']
1509
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1510
+ :header_params => header_params,
1511
+ :query_params => query_params,
1512
+ :form_params => form_params,
1513
+ :body => post_body,
1514
+ :auth_names => auth_names,
1515
+ :return_type => 'UserPresenceRule')
1516
+ if @api_client.config.debugging
1517
+ @api_client.config.logger.debug "API called: AlertingApi#get_userpresence_rules_rule_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1518
+ end
1519
+ return data, status_code, headers
1520
+ end
1521
+
1522
+ # Create a heart beat rule.
1523
+ #
1524
+ # @param body HeartBeatRule
1525
+ # @param [Hash] opts the optional parameters
1526
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1527
+ # @return [HeartBeatRule]
1528
+ def post_heartbeat_rules(body, opts = {})
1529
+ data, status_code, headers = post_heartbeat_rules_with_http_info(body, opts)
1530
+ return data
1531
+ end
1532
+
1533
+ # Create a heart beat rule.
1534
+ #
1535
+ # @param body HeartBeatRule
1536
+ # @param [Hash] opts the optional parameters
1537
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1538
+ # @return [Array<(HeartBeatRule, Fixnum, Hash)>] HeartBeatRule data, response status code and response headers
1539
+ def post_heartbeat_rules_with_http_info(body, opts = {})
1540
+ if @api_client.config.debugging
1541
+ @api_client.config.logger.debug "Calling API: AlertingApi#post_heartbeat_rules ..."
1542
+ end
1543
+
1544
+ # verify the required parameter 'body' is set
1545
+ fail "Missing the required parameter 'body' when calling post_heartbeat_rules" if body.nil?
1546
+
1547
+ # resource path
1548
+ local_var_path = "/api/v2/alerting/heartbeat/rules".sub('{format}','json')
1549
+
1550
+ # query parameters
1551
+ query_params = {}
1552
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1553
+
1554
+ # header parameters
1555
+ header_params = {}
1556
+
1557
+ # HTTP header 'Accept' (if needed)
1558
+ _header_accept = ['application/json']
1559
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1560
+
1561
+ # HTTP header 'Content-Type'
1562
+ _header_content_type = ['application/json']
1563
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1564
+
1565
+ # form parameters
1566
+ form_params = {}
1567
+
1568
+ # http body (model)
1569
+ post_body = @api_client.object_to_http_body(body)
1570
+
1571
+ auth_names = ['PureCloud Auth']
1572
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1573
+ :header_params => header_params,
1574
+ :query_params => query_params,
1575
+ :form_params => form_params,
1576
+ :body => post_body,
1577
+ :auth_names => auth_names,
1578
+ :return_type => 'HeartBeatRule')
1579
+ if @api_client.config.debugging
1580
+ @api_client.config.logger.debug "API called: AlertingApi#post_heartbeat_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1581
+ end
1582
+ return data, status_code, headers
1583
+ end
1584
+
1585
+ # Create an interaction stats rule.
1586
+ #
1587
+ # @param body AlertingRule
1588
+ # @param [Hash] opts the optional parameters
1589
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1590
+ # @return [InteractionStatsRule]
1591
+ def post_interactionstats_rules(body, opts = {})
1592
+ data, status_code, headers = post_interactionstats_rules_with_http_info(body, opts)
1593
+ return data
1594
+ end
1595
+
1596
+ # Create an interaction stats rule.
1597
+ #
1598
+ # @param body AlertingRule
1599
+ # @param [Hash] opts the optional parameters
1600
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1601
+ # @return [Array<(InteractionStatsRule, Fixnum, Hash)>] InteractionStatsRule data, response status code and response headers
1602
+ def post_interactionstats_rules_with_http_info(body, opts = {})
1603
+ if @api_client.config.debugging
1604
+ @api_client.config.logger.debug "Calling API: AlertingApi#post_interactionstats_rules ..."
1605
+ end
1606
+
1607
+ # verify the required parameter 'body' is set
1608
+ fail "Missing the required parameter 'body' when calling post_interactionstats_rules" if body.nil?
1609
+
1610
+ # resource path
1611
+ local_var_path = "/api/v2/alerting/interactionstats/rules".sub('{format}','json')
1612
+
1613
+ # query parameters
1614
+ query_params = {}
1615
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1616
+
1617
+ # header parameters
1618
+ header_params = {}
1619
+
1620
+ # HTTP header 'Accept' (if needed)
1621
+ _header_accept = ['application/json']
1622
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1623
+
1624
+ # HTTP header 'Content-Type'
1625
+ _header_content_type = ['application/json']
1626
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1627
+
1628
+ # form parameters
1629
+ form_params = {}
1630
+
1631
+ # http body (model)
1632
+ post_body = @api_client.object_to_http_body(body)
1633
+
1634
+ auth_names = ['PureCloud Auth']
1635
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1636
+ :header_params => header_params,
1637
+ :query_params => query_params,
1638
+ :form_params => form_params,
1639
+ :body => post_body,
1640
+ :auth_names => auth_names,
1641
+ :return_type => 'InteractionStatsRule')
1642
+ if @api_client.config.debugging
1643
+ @api_client.config.logger.debug "API called: AlertingApi#post_interactionstats_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1644
+ end
1645
+ return data, status_code, headers
1646
+ end
1647
+
1648
+ # Create a routing status rule.
1649
+ #
1650
+ # @param body RoutingStatusRule
1651
+ # @param [Hash] opts the optional parameters
1652
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1653
+ # @return [RoutingStatusRule]
1654
+ def post_routingstatus_rules(body, opts = {})
1655
+ data, status_code, headers = post_routingstatus_rules_with_http_info(body, opts)
1656
+ return data
1657
+ end
1658
+
1659
+ # Create a routing status rule.
1660
+ #
1661
+ # @param body RoutingStatusRule
1662
+ # @param [Hash] opts the optional parameters
1663
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1664
+ # @return [Array<(RoutingStatusRule, Fixnum, Hash)>] RoutingStatusRule data, response status code and response headers
1665
+ def post_routingstatus_rules_with_http_info(body, opts = {})
1666
+ if @api_client.config.debugging
1667
+ @api_client.config.logger.debug "Calling API: AlertingApi#post_routingstatus_rules ..."
1668
+ end
1669
+
1670
+ # verify the required parameter 'body' is set
1671
+ fail "Missing the required parameter 'body' when calling post_routingstatus_rules" if body.nil?
1672
+
1673
+ # resource path
1674
+ local_var_path = "/api/v2/alerting/routingstatus/rules".sub('{format}','json')
1675
+
1676
+ # query parameters
1677
+ query_params = {}
1678
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1679
+
1680
+ # header parameters
1681
+ header_params = {}
1682
+
1683
+ # HTTP header 'Accept' (if needed)
1684
+ _header_accept = ['application/json']
1685
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1686
+
1687
+ # HTTP header 'Content-Type'
1688
+ _header_content_type = ['application/json']
1689
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1690
+
1691
+ # form parameters
1692
+ form_params = {}
1693
+
1694
+ # http body (model)
1695
+ post_body = @api_client.object_to_http_body(body)
1696
+
1697
+ auth_names = ['PureCloud Auth']
1698
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1699
+ :header_params => header_params,
1700
+ :query_params => query_params,
1701
+ :form_params => form_params,
1702
+ :body => post_body,
1703
+ :auth_names => auth_names,
1704
+ :return_type => 'RoutingStatusRule')
1705
+ if @api_client.config.debugging
1706
+ @api_client.config.logger.debug "API called: AlertingApi#post_routingstatus_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1707
+ end
1708
+ return data, status_code, headers
1709
+ end
1710
+
1711
+ # Create a user presence rule.
1712
+ #
1713
+ # @param body UserPresenceRule
1714
+ # @param [Hash] opts the optional parameters
1715
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1716
+ # @return [UserPresenceRule]
1717
+ def post_userpresence_rules(body, opts = {})
1718
+ data, status_code, headers = post_userpresence_rules_with_http_info(body, opts)
1719
+ return data
1720
+ end
1721
+
1722
+ # Create a user presence rule.
1723
+ #
1724
+ # @param body UserPresenceRule
1725
+ # @param [Hash] opts the optional parameters
1726
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1727
+ # @return [Array<(UserPresenceRule, Fixnum, Hash)>] UserPresenceRule data, response status code and response headers
1728
+ def post_userpresence_rules_with_http_info(body, opts = {})
1729
+ if @api_client.config.debugging
1730
+ @api_client.config.logger.debug "Calling API: AlertingApi#post_userpresence_rules ..."
1731
+ end
1732
+
1733
+ # verify the required parameter 'body' is set
1734
+ fail "Missing the required parameter 'body' when calling post_userpresence_rules" if body.nil?
1735
+
1736
+ # resource path
1737
+ local_var_path = "/api/v2/alerting/userpresence/rules".sub('{format}','json')
1738
+
1739
+ # query parameters
1740
+ query_params = {}
1741
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1742
+
1743
+ # header parameters
1744
+ header_params = {}
1745
+
1746
+ # HTTP header 'Accept' (if needed)
1747
+ _header_accept = ['application/json']
1748
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
1749
+
1750
+ # HTTP header 'Content-Type'
1751
+ _header_content_type = ['application/json']
1752
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
1753
+
1754
+ # form parameters
1755
+ form_params = {}
1756
+
1757
+ # http body (model)
1758
+ post_body = @api_client.object_to_http_body(body)
1759
+
1760
+ auth_names = ['PureCloud Auth']
1761
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1762
+ :header_params => header_params,
1763
+ :query_params => query_params,
1764
+ :form_params => form_params,
1765
+ :body => post_body,
1766
+ :auth_names => auth_names,
1767
+ :return_type => 'UserPresenceRule')
1768
+ if @api_client.config.debugging
1769
+ @api_client.config.logger.debug "API called: AlertingApi#post_userpresence_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1770
+ end
1771
+ return data, status_code, headers
1772
+ end
1773
+
1774
+ # Update a heart beat rule
1775
+ #
1776
+ # @param rule_id Rule ID
1777
+ # @param body HeartBeatRule
1778
+ # @param [Hash] opts the optional parameters
1779
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1780
+ # @return [HeartBeatRule]
1781
+ def put_heartbeat_rules_rule_id(rule_id, body, opts = {})
1782
+ data, status_code, headers = put_heartbeat_rules_rule_id_with_http_info(rule_id, body, opts)
1783
+ return data
1784
+ end
1785
+
1786
+ # Update a heart beat rule
1787
+ #
1788
+ # @param rule_id Rule ID
1789
+ # @param body HeartBeatRule
1790
+ # @param [Hash] opts the optional parameters
1791
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1792
+ # @return [Array<(HeartBeatRule, Fixnum, Hash)>] HeartBeatRule data, response status code and response headers
1793
+ def put_heartbeat_rules_rule_id_with_http_info(rule_id, body, opts = {})
1794
+ if @api_client.config.debugging
1795
+ @api_client.config.logger.debug "Calling API: AlertingApi#put_heartbeat_rules_rule_id ..."
1796
+ end
1797
+
1798
+ # verify the required parameter 'rule_id' is set
1799
+ fail "Missing the required parameter 'rule_id' when calling put_heartbeat_rules_rule_id" if rule_id.nil?
922
1800
 
923
1801
  # verify the required parameter 'body' is set
924
1802
  fail "Missing the required parameter 'body' when calling put_heartbeat_rules_rule_id" if body.nil?
@@ -928,6 +1806,7 @@ module PureCloud
928
1806
 
929
1807
  # query parameters
930
1808
  query_params = {}
1809
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
931
1810
 
932
1811
  # header parameters
933
1812
  header_params = {}
@@ -965,6 +1844,7 @@ module PureCloud
965
1844
  # @param alert_id Alert ID
966
1845
  # @param body InteractionStatsAlert
967
1846
  # @param [Hash] opts the optional parameters
1847
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
968
1848
  # @return [UnreadStatus]
969
1849
  def put_interactionstats_alerts_alert_id(alert_id, body, opts = {})
970
1850
  data, status_code, headers = put_interactionstats_alerts_alert_id_with_http_info(alert_id, body, opts)
@@ -976,6 +1856,7 @@ module PureCloud
976
1856
  # @param alert_id Alert ID
977
1857
  # @param body InteractionStatsAlert
978
1858
  # @param [Hash] opts the optional parameters
1859
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
979
1860
  # @return [Array<(UnreadStatus, Fixnum, Hash)>] UnreadStatus data, response status code and response headers
980
1861
  def put_interactionstats_alerts_alert_id_with_http_info(alert_id, body, opts = {})
981
1862
  if @api_client.config.debugging
@@ -993,6 +1874,7 @@ module PureCloud
993
1874
 
994
1875
  # query parameters
995
1876
  query_params = {}
1877
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
996
1878
 
997
1879
  # header parameters
998
1880
  header_params = {}
@@ -1030,6 +1912,7 @@ module PureCloud
1030
1912
  # @param rule_id Rule ID
1031
1913
  # @param body AlertingRule
1032
1914
  # @param [Hash] opts the optional parameters
1915
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1033
1916
  # @return [InteractionStatsRule]
1034
1917
  def put_interactionstats_rules_rule_id(rule_id, body, opts = {})
1035
1918
  data, status_code, headers = put_interactionstats_rules_rule_id_with_http_info(rule_id, body, opts)
@@ -1041,6 +1924,7 @@ module PureCloud
1041
1924
  # @param rule_id Rule ID
1042
1925
  # @param body AlertingRule
1043
1926
  # @param [Hash] opts the optional parameters
1927
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1044
1928
  # @return [Array<(InteractionStatsRule, Fixnum, Hash)>] InteractionStatsRule data, response status code and response headers
1045
1929
  def put_interactionstats_rules_rule_id_with_http_info(rule_id, body, opts = {})
1046
1930
  if @api_client.config.debugging
@@ -1058,6 +1942,7 @@ module PureCloud
1058
1942
 
1059
1943
  # query parameters
1060
1944
  query_params = {}
1945
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
1061
1946
 
1062
1947
  # header parameters
1063
1948
  header_params = {}
@@ -1089,5 +1974,141 @@ module PureCloud
1089
1974
  end
1090
1975
  return data, status_code, headers
1091
1976
  end
1977
+
1978
+ # Update a routing status rule
1979
+ #
1980
+ # @param rule_id Rule ID
1981
+ # @param body RoutingStatusRule
1982
+ # @param [Hash] opts the optional parameters
1983
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1984
+ # @return [RoutingStatusRule]
1985
+ def put_routingstatus_rules_rule_id(rule_id, body, opts = {})
1986
+ data, status_code, headers = put_routingstatus_rules_rule_id_with_http_info(rule_id, body, opts)
1987
+ return data
1988
+ end
1989
+
1990
+ # Update a routing status rule
1991
+ #
1992
+ # @param rule_id Rule ID
1993
+ # @param body RoutingStatusRule
1994
+ # @param [Hash] opts the optional parameters
1995
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
1996
+ # @return [Array<(RoutingStatusRule, Fixnum, Hash)>] RoutingStatusRule data, response status code and response headers
1997
+ def put_routingstatus_rules_rule_id_with_http_info(rule_id, body, opts = {})
1998
+ if @api_client.config.debugging
1999
+ @api_client.config.logger.debug "Calling API: AlertingApi#put_routingstatus_rules_rule_id ..."
2000
+ end
2001
+
2002
+ # verify the required parameter 'rule_id' is set
2003
+ fail "Missing the required parameter 'rule_id' when calling put_routingstatus_rules_rule_id" if rule_id.nil?
2004
+
2005
+ # verify the required parameter 'body' is set
2006
+ fail "Missing the required parameter 'body' when calling put_routingstatus_rules_rule_id" if body.nil?
2007
+
2008
+ # resource path
2009
+ local_var_path = "/api/v2/alerting/routingstatus/rules/{ruleId}".sub('{format}','json').sub('{' + 'ruleId' + '}', rule_id.to_s)
2010
+
2011
+ # query parameters
2012
+ query_params = {}
2013
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
2014
+
2015
+ # header parameters
2016
+ header_params = {}
2017
+
2018
+ # HTTP header 'Accept' (if needed)
2019
+ _header_accept = ['application/json']
2020
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2021
+
2022
+ # HTTP header 'Content-Type'
2023
+ _header_content_type = ['application/json']
2024
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2025
+
2026
+ # form parameters
2027
+ form_params = {}
2028
+
2029
+ # http body (model)
2030
+ post_body = @api_client.object_to_http_body(body)
2031
+
2032
+ auth_names = ['PureCloud Auth']
2033
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2034
+ :header_params => header_params,
2035
+ :query_params => query_params,
2036
+ :form_params => form_params,
2037
+ :body => post_body,
2038
+ :auth_names => auth_names,
2039
+ :return_type => 'RoutingStatusRule')
2040
+ if @api_client.config.debugging
2041
+ @api_client.config.logger.debug "API called: AlertingApi#put_routingstatus_rules_rule_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2042
+ end
2043
+ return data, status_code, headers
2044
+ end
2045
+
2046
+ # Update a user presence rule
2047
+ #
2048
+ # @param rule_id Rule ID
2049
+ # @param body UserPresenceRule
2050
+ # @param [Hash] opts the optional parameters
2051
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
2052
+ # @return [UserPresenceRule]
2053
+ def put_userpresence_rules_rule_id(rule_id, body, opts = {})
2054
+ data, status_code, headers = put_userpresence_rules_rule_id_with_http_info(rule_id, body, opts)
2055
+ return data
2056
+ end
2057
+
2058
+ # Update a user presence rule
2059
+ #
2060
+ # @param rule_id Rule ID
2061
+ # @param body UserPresenceRule
2062
+ # @param [Hash] opts the optional parameters
2063
+ # @option opts [Array<String>] :expand Which fields, if any, to expand
2064
+ # @return [Array<(UserPresenceRule, Fixnum, Hash)>] UserPresenceRule data, response status code and response headers
2065
+ def put_userpresence_rules_rule_id_with_http_info(rule_id, body, opts = {})
2066
+ if @api_client.config.debugging
2067
+ @api_client.config.logger.debug "Calling API: AlertingApi#put_userpresence_rules_rule_id ..."
2068
+ end
2069
+
2070
+ # verify the required parameter 'rule_id' is set
2071
+ fail "Missing the required parameter 'rule_id' when calling put_userpresence_rules_rule_id" if rule_id.nil?
2072
+
2073
+ # verify the required parameter 'body' is set
2074
+ fail "Missing the required parameter 'body' when calling put_userpresence_rules_rule_id" if body.nil?
2075
+
2076
+ # resource path
2077
+ local_var_path = "/api/v2/alerting/userpresence/rules/{ruleId}".sub('{format}','json').sub('{' + 'ruleId' + '}', rule_id.to_s)
2078
+
2079
+ # query parameters
2080
+ query_params = {}
2081
+ query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand']
2082
+
2083
+ # header parameters
2084
+ header_params = {}
2085
+
2086
+ # HTTP header 'Accept' (if needed)
2087
+ _header_accept = ['application/json']
2088
+ _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
2089
+
2090
+ # HTTP header 'Content-Type'
2091
+ _header_content_type = ['application/json']
2092
+ header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
2093
+
2094
+ # form parameters
2095
+ form_params = {}
2096
+
2097
+ # http body (model)
2098
+ post_body = @api_client.object_to_http_body(body)
2099
+
2100
+ auth_names = ['PureCloud Auth']
2101
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2102
+ :header_params => header_params,
2103
+ :query_params => query_params,
2104
+ :form_params => form_params,
2105
+ :body => post_body,
2106
+ :auth_names => auth_names,
2107
+ :return_type => 'UserPresenceRule')
2108
+ if @api_client.config.debugging
2109
+ @api_client.config.logger.debug "API called: AlertingApi#put_userpresence_rules_rule_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2110
+ end
2111
+ return data, status_code, headers
2112
+ end
1092
2113
  end
1093
2114
  end