opsgenie_sdk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1817) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +836 -0
  4. data/Rakefile +8 -0
  5. data/docs/AccountApi.md +57 -0
  6. data/docs/AccountInfo.md +10 -0
  7. data/docs/AccountPlan.md +10 -0
  8. data/docs/AckIntegrationAction.md +14 -0
  9. data/docs/AcknowledgeAlertPayload.md +10 -0
  10. data/docs/ActionCategorized.md +13 -0
  11. data/docs/ActionMapping.md +11 -0
  12. data/docs/AddDetailsToAlertPayload.md +11 -0
  13. data/docs/AddNoteIntegrationAction.md +14 -0
  14. data/docs/AddNoteToAlertPayload.md +10 -0
  15. data/docs/AddResponderToAlertPayload.md +11 -0
  16. data/docs/AddTagsToAlertPayload.md +11 -0
  17. data/docs/AddTeamMemberPayload.md +9 -0
  18. data/docs/AddTeamToAlertPayload.md +11 -0
  19. data/docs/AirbrakeIntegration.md +14 -0
  20. data/docs/Alert.md +31 -0
  21. data/docs/AlertActionPayload.md +10 -0
  22. data/docs/AlertApi.md +2161 -0
  23. data/docs/AlertAttachment.md +9 -0
  24. data/docs/AlertAttachmentMeta.md +9 -0
  25. data/docs/AlertFilter.md +9 -0
  26. data/docs/AlertIntegration.md +10 -0
  27. data/docs/AlertLog.md +12 -0
  28. data/docs/AlertLogicIntegration.md +14 -0
  29. data/docs/AlertNote.md +11 -0
  30. data/docs/AlertPaging.md +9 -0
  31. data/docs/AlertPolicy.md +31 -0
  32. data/docs/AlertRecipient.md +12 -0
  33. data/docs/AlertReport.md +11 -0
  34. data/docs/AlertRequestStatus.md +14 -0
  35. data/docs/AlertSiteIntegration.md +14 -0
  36. data/docs/AlertTeamMeta.md +8 -0
  37. data/docs/AlertUserMeta.md +9 -0
  38. data/docs/AllRecipient.md +9 -0
  39. data/docs/AmazonCloudTrailIntegration.md +14 -0
  40. data/docs/AmazonEc2AutoScalingIntegration.md +14 -0
  41. data/docs/AmazonRdsIntegration.md +14 -0
  42. data/docs/AmazonRoute53HealthCheckIntegration.md +14 -0
  43. data/docs/AmazonSecurityHubIntegration.md +14 -0
  44. data/docs/AmazonSesIntegration.md +14 -0
  45. data/docs/AmazonSnsCallback.md +14 -0
  46. data/docs/AmazonSnsIntegration.md +14 -0
  47. data/docs/AmazonSnsOutgoingIntegration.md +14 -0
  48. data/docs/ApiIntegration.md +34 -0
  49. data/docs/ApicaIntegration.md +14 -0
  50. data/docs/ApimetricsIntegration.md +14 -0
  51. data/docs/AppDynamicsIntegration.md +14 -0
  52. data/docs/AppOpticsIntegration.md +14 -0
  53. data/docs/AppSignalIntegration.md +14 -0
  54. data/docs/AppSignalV2Integration.md +14 -0
  55. data/docs/AssignAlertPayload.md +11 -0
  56. data/docs/AtatusIntegration.md +14 -0
  57. data/docs/AtlassianBambooIntegration.md +14 -0
  58. data/docs/AuthenticateIntegrationPayload.md +8 -0
  59. data/docs/AutoCloseAction.md +8 -0
  60. data/docs/AutoRestartAction.md +9 -0
  61. data/docs/AutoTaskEmailIntegration.md +14 -0
  62. data/docs/AutotaskAEMEmailIntegration.md +14 -0
  63. data/docs/AzureAutoScaleIntegration.md +14 -0
  64. data/docs/AzureIntegration.md +14 -0
  65. data/docs/AzureOMSIntegration.md +14 -0
  66. data/docs/AzureResourceHealthIntegration.md +14 -0
  67. data/docs/AzureServiceHealthIntegration.md +14 -0
  68. data/docs/BMCFootPrintsV11Callback.md +19 -0
  69. data/docs/BMCFootPrintsV11Integration.md +33 -0
  70. data/docs/BMCFootPrintsV12Callback.md +18 -0
  71. data/docs/BMCFootPrintsV12Integration.md +33 -0
  72. data/docs/BMCRemedyCallback.md +18 -0
  73. data/docs/BMCRemedyForceIntegration.md +14 -0
  74. data/docs/BMCRemedyIntegration.md +33 -0
  75. data/docs/BMCRemedyOnDemandCallback.md +16 -0
  76. data/docs/BMCRemedyOnDemandIntegration.md +14 -0
  77. data/docs/BaseAlert.md +27 -0
  78. data/docs/BaseIncident.md +21 -0
  79. data/docs/BaseIncomingFeature.md +22 -0
  80. data/docs/BaseIntegrationAction.md +11 -0
  81. data/docs/BaseResponse.md +9 -0
  82. data/docs/BaseResponseWithExpandable.md +10 -0
  83. data/docs/BaseWebhookCallback.md +16 -0
  84. data/docs/BidirectionalCallback.md +12 -0
  85. data/docs/BidirectionalCallbackNew.md +14 -0
  86. data/docs/BigPandaIntegration.md +14 -0
  87. data/docs/BitbucketIntegration.md +14 -0
  88. data/docs/BlueMatadorIntegration.md +14 -0
  89. data/docs/BoundaryIntegration.md +14 -0
  90. data/docs/CallbackCondition.md +12 -0
  91. data/docs/CampfireCallback.md +14 -0
  92. data/docs/CampfireIntegration.md +14 -0
  93. data/docs/CatchpointIntegration.md +14 -0
  94. data/docs/ChangeNotificationRuleOrderPayload.md +8 -0
  95. data/docs/ChangePolicyOrderPayload.md +8 -0
  96. data/docs/ChangeTeamRoutingRuleOrderPayload.md +8 -0
  97. data/docs/CheckMKIntegration.md +14 -0
  98. data/docs/CherwellCallback.md +18 -0
  99. data/docs/CherwellIntegration.md +33 -0
  100. data/docs/CircleCiIntegration.md +14 -0
  101. data/docs/CirconusCallback.md +15 -0
  102. data/docs/CirconusIntegration.md +33 -0
  103. data/docs/CloseAlertPayload.md +10 -0
  104. data/docs/CloseIncidentPayload.md +8 -0
  105. data/docs/CloseIntegrationAction.md +14 -0
  106. data/docs/CloudMonixIntegration.md +14 -0
  107. data/docs/CloudSploitIntegration.md +14 -0
  108. data/docs/CloudWatchEventsIntegration.md +14 -0
  109. data/docs/CloudWatchIntegration.md +14 -0
  110. data/docs/CodeshipIntegration.md +14 -0
  111. data/docs/CommonIntegrationAction.md +14 -0
  112. data/docs/ComposeIntegration.md +14 -0
  113. data/docs/Condition.md +13 -0
  114. data/docs/ConnectWiseAutomateIntegration.md +14 -0
  115. data/docs/ConnectWiseCallback.md +13 -0
  116. data/docs/ConnectWiseIntegration.md +33 -0
  117. data/docs/ConnectWiseManageCallback.md +20 -0
  118. data/docs/ConnectWiseManageIntegration.md +33 -0
  119. data/docs/ConnectWiseManageV2Callback.md +22 -0
  120. data/docs/ConnectWiseManageV2Integration.md +33 -0
  121. data/docs/ConsulIntegration.md +14 -0
  122. data/docs/Contact.md +11 -0
  123. data/docs/ContactApi.md +416 -0
  124. data/docs/ContactMeta.md +9 -0
  125. data/docs/ContactStatus.md +9 -0
  126. data/docs/ContactWithApplyOrder.md +12 -0
  127. data/docs/CopperEggIntegration.md +14 -0
  128. data/docs/CrashlyticsIntegration.md +14 -0
  129. data/docs/CreateAlertPayload.md +20 -0
  130. data/docs/CreateContactPayload.md +9 -0
  131. data/docs/CreateCustomUserRolePayload.md +11 -0
  132. data/docs/CreateEscalationPayload.md +12 -0
  133. data/docs/CreateForwardingRulePayload.md +12 -0
  134. data/docs/CreateForwardingRuleResponse.md +10 -0
  135. data/docs/CreateHeartbeatPayload.md +7 -0
  136. data/docs/CreateHeartbeatResponse.md +10 -0
  137. data/docs/CreateIncidentPayload.md +17 -0
  138. data/docs/CreateIntegrationAction.md +32 -0
  139. data/docs/CreateIntegrationActionsResponse.md +10 -0
  140. data/docs/CreateIntegrationResponse.md +10 -0
  141. data/docs/CreateMaintenancePayload.md +10 -0
  142. data/docs/CreateMaintenanceResponse.md +10 -0
  143. data/docs/CreateNotificationRulePayload.md +17 -0
  144. data/docs/CreateNotificationRuleResponse.md +10 -0
  145. data/docs/CreateNotificationRuleStepPayload.md +10 -0
  146. data/docs/CreatePolicyResponse.md +10 -0
  147. data/docs/CreateSavedSearchPayload.md +12 -0
  148. data/docs/CreateSavedSearchResponse.md +10 -0
  149. data/docs/CreateScheduleOverridePayload.md +12 -0
  150. data/docs/CreateScheduleOverrideResponse.md +10 -0
  151. data/docs/CreateSchedulePayload.md +13 -0
  152. data/docs/CreateScheduleResponse.md +10 -0
  153. data/docs/CreateScheduleRotationPayload.md +14 -0
  154. data/docs/CreateTeamPayload.md +10 -0
  155. data/docs/CreateTeamRolePayload.md +9 -0
  156. data/docs/CreateTeamRoutingRulePayload.md +13 -0
  157. data/docs/CreateUserPayload.md +17 -0
  158. data/docs/CustomUserRole.md +12 -0
  159. data/docs/CustomUserRoleApi.md +291 -0
  160. data/docs/DatadogCallback.md +16 -0
  161. data/docs/DatadogIntegration.md +33 -0
  162. data/docs/DataloopIOIntegration.md +14 -0
  163. data/docs/DeduplicationAction.md +10 -0
  164. data/docs/DelayAction.md +11 -0
  165. data/docs/DeprecatedAlertPolicy.md +14 -0
  166. data/docs/DeprecatedAlertPolicyMeta.md +12 -0
  167. data/docs/DeprecatedAutoCloseAlertPolicy.md +15 -0
  168. data/docs/DeprecatedAutoRestartNotificationsAlertPolicy.md +16 -0
  169. data/docs/DeprecatedChangeAlertPolicyOrderPayload.md +8 -0
  170. data/docs/DeprecatedCreateAlertPolicyResponse.md +10 -0
  171. data/docs/DeprecatedGetAlertPolicyResponse.md +10 -0
  172. data/docs/DeprecatedListAlertPoliciesResponse.md +10 -0
  173. data/docs/DeprecatedModifyAlertPolicy.md +30 -0
  174. data/docs/DeprecatedNotificationDeduplicationAlertPolicy.md +17 -0
  175. data/docs/DeprecatedNotificationDelayAlertPolicy.md +18 -0
  176. data/docs/DeprecatedNotificationRenotifyAlertPolicy.md +14 -0
  177. data/docs/DeprecatedNotificationSuppressAlertPolicy.md +14 -0
  178. data/docs/DeprecatedPolicyApi.md +448 -0
  179. data/docs/DeskCallback.md +17 -0
  180. data/docs/DeskIntegration.md +33 -0
  181. data/docs/DetectifyIntegration.md +14 -0
  182. data/docs/DisableHeartbeatResponse.md +10 -0
  183. data/docs/DisableIntegrationResponse.md +10 -0
  184. data/docs/DnsCheckIntegration.md +14 -0
  185. data/docs/DripStatIntegration.md +14 -0
  186. data/docs/Duration.md +9 -0
  187. data/docs/DynatraceAppMonCallback.md +18 -0
  188. data/docs/DynatraceAppMonIntegration.md +33 -0
  189. data/docs/DynatraceIntegration.md +14 -0
  190. data/docs/DynatraceV2Integration.md +14 -0
  191. data/docs/EmailBasedIncomingFeature.md +24 -0
  192. data/docs/EmailIntegration.md +14 -0
  193. data/docs/EnableHeartbeatResponse.md +10 -0
  194. data/docs/EnableIntegrationResponse.md +10 -0
  195. data/docs/ErrorResponse.md +12 -0
  196. data/docs/ErrorceptionIntegration.md +14 -0
  197. data/docs/EscalateAlertToNextPayload.md +11 -0
  198. data/docs/Escalation.md +13 -0
  199. data/docs/EscalationApi.md +291 -0
  200. data/docs/EscalationRecipient.md +10 -0
  201. data/docs/EscalationRepeat.md +11 -0
  202. data/docs/EscalationRule.md +11 -0
  203. data/docs/EvidentIOIntegration.md +14 -0
  204. data/docs/ExecuteCustomAlertActionPayload.md +10 -0
  205. data/docs/Filter.md +8 -0
  206. data/docs/FlockCallback.md +16 -0
  207. data/docs/FlockIntegration.md +14 -0
  208. data/docs/FlowdockCallback.md +13 -0
  209. data/docs/FlowdockIntegration.md +14 -0
  210. data/docs/FlowdockV2Callback.md +11 -0
  211. data/docs/FlowdockV2Integration.md +14 -0
  212. data/docs/ForwardingRule.md +13 -0
  213. data/docs/ForwardingRuleApi.md +292 -0
  214. data/docs/ForwardingRuleMeta.md +9 -0
  215. data/docs/FreshdeskCallback.md +16 -0
  216. data/docs/FreshdeskIntegration.md +33 -0
  217. data/docs/FreshserviceCallback.md +17 -0
  218. data/docs/FreshserviceIntegration.md +33 -0
  219. data/docs/GetAccountInfoResponse.md +10 -0
  220. data/docs/GetAlertAttachmentResponse.md +10 -0
  221. data/docs/GetAlertResponse.md +10 -0
  222. data/docs/GetContactResponse.md +10 -0
  223. data/docs/GetCountAlertsResponse.md +10 -0
  224. data/docs/GetCountAlertsResponseData.md +8 -0
  225. data/docs/GetCustomUserRoleResponse.md +10 -0
  226. data/docs/GetEscalationResponse.md +10 -0
  227. data/docs/GetForwardingRuleResponse.md +10 -0
  228. data/docs/GetHeartbeatResponse.md +10 -0
  229. data/docs/GetIncidentRequestStatusResponse.md +10 -0
  230. data/docs/GetIncidentResponse.md +10 -0
  231. data/docs/GetIntegrationResponse.md +10 -0
  232. data/docs/GetMaintenanceResponse.md +10 -0
  233. data/docs/GetNextOnCallResponse.md +10 -0
  234. data/docs/GetNotificationRuleResponse.md +10 -0
  235. data/docs/GetNotificationRuleStepResponse.md +10 -0
  236. data/docs/GetOnCallResponse.md +10 -0
  237. data/docs/GetPolicyResponse.md +10 -0
  238. data/docs/GetRequestStatusResponse.md +10 -0
  239. data/docs/GetSavedSearchResponse.md +10 -0
  240. data/docs/GetScheduleOverrideResponse.md +10 -0
  241. data/docs/GetScheduleResponse.md +10 -0
  242. data/docs/GetScheduleRotationResponse.md +10 -0
  243. data/docs/GetScheduleTimelineResponse.md +11 -0
  244. data/docs/GetTeamResponse.md +10 -0
  245. data/docs/GetTeamRoleResponse.md +10 -0
  246. data/docs/GetTeamRoutingRuleResponse.md +10 -0
  247. data/docs/GetUserResponse.md +11 -0
  248. data/docs/GhostInspectorIntegration.md +14 -0
  249. data/docs/GitHubIntegration.md +14 -0
  250. data/docs/GitLabIntegration.md +14 -0
  251. data/docs/GoogleStackDriverIntegration.md +14 -0
  252. data/docs/GrafanaIntegration.md +14 -0
  253. data/docs/GrafanaV2Integration.md +14 -0
  254. data/docs/GraylogIntegration.md +14 -0
  255. data/docs/GroupRecipient.md +10 -0
  256. data/docs/HPServiceManagerCallback.md +16 -0
  257. data/docs/HPServiceManagerIntegration.md +33 -0
  258. data/docs/Heartbeat.md +14 -0
  259. data/docs/HeartbeatApi.md +446 -0
  260. data/docs/HeartbeatIntegration.md +14 -0
  261. data/docs/HeartbeatMeta.md +10 -0
  262. data/docs/HipChatAddOnCallback.md +16 -0
  263. data/docs/HipChatAddOnIntegration.md +44 -0
  264. data/docs/HipChatCallbackV2.md +16 -0
  265. data/docs/HipChatIntegration.md +14 -0
  266. data/docs/HipChatIntegrationV2.md +33 -0
  267. data/docs/HoneybadgerIntegration.md +14 -0
  268. data/docs/HostedGraphiteIntegration.md +14 -0
  269. data/docs/HumioIntegration.md +14 -0
  270. data/docs/Icinga2Callback.md +14 -0
  271. data/docs/Icinga2Integration.md +33 -0
  272. data/docs/IcingaCallback.md +14 -0
  273. data/docs/IcingaIntegration.md +33 -0
  274. data/docs/IgnoreIntegrationAction.md +11 -0
  275. data/docs/Incident.md +22 -0
  276. data/docs/IncidentActionPayload.md +8 -0
  277. data/docs/IncidentApi.md +362 -0
  278. data/docs/IncidentRequestStatus.md +14 -0
  279. data/docs/IncomingCallIntegration.md +14 -0
  280. data/docs/InstanaIntegration.md +14 -0
  281. data/docs/Integration.md +14 -0
  282. data/docs/IntegrationActionApi.md +179 -0
  283. data/docs/IntegrationActionFilter.md +9 -0
  284. data/docs/IntegrationApi.md +456 -0
  285. data/docs/IntegrationCondition.md +11 -0
  286. data/docs/IntegrationMeta.md +12 -0
  287. data/docs/JenkinsIntegration.md +14 -0
  288. data/docs/JiraCallback.md +19 -0
  289. data/docs/JiraIntegration.md +33 -0
  290. data/docs/JiraServiceDeskCallback.md +19 -0
  291. data/docs/JiraServiceDeskIntegration.md +33 -0
  292. data/docs/KapacitorIntegration.md +14 -0
  293. data/docs/KayakoCallback.md +17 -0
  294. data/docs/KayakoIntegration.md +33 -0
  295. data/docs/KoreCallback.md +16 -0
  296. data/docs/KoreIntegration.md +14 -0
  297. data/docs/LabTechEmailIntegration.md +14 -0
  298. data/docs/LibratoIntegration.md +14 -0
  299. data/docs/LibreNMSCallback.md +16 -0
  300. data/docs/LibreNMSIntegration.md +33 -0
  301. data/docs/LightstepIntegration.md +14 -0
  302. data/docs/ListAlertAttachmentsResponse.md +10 -0
  303. data/docs/ListAlertLogsResponse.md +11 -0
  304. data/docs/ListAlertNotesResponse.md +11 -0
  305. data/docs/ListAlertRecipientsResponse.md +10 -0
  306. data/docs/ListAlertsResponse.md +11 -0
  307. data/docs/ListContactsResponse.md +10 -0
  308. data/docs/ListCustomUserRolesResponse.md +10 -0
  309. data/docs/ListEscalationsResponse.md +10 -0
  310. data/docs/ListForwardingRulesResponse.md +10 -0
  311. data/docs/ListHeartbeatResponse.md +10 -0
  312. data/docs/ListHeartbeatResponseData.md +8 -0
  313. data/docs/ListIncidentsResponse.md +11 -0
  314. data/docs/ListIntegrationActionsResponse.md +10 -0
  315. data/docs/ListIntegrationsResponse.md +10 -0
  316. data/docs/ListMaintenanceResponse.md +10 -0
  317. data/docs/ListNotificationRuleStepsResponse.md +10 -0
  318. data/docs/ListNotificationRulesResponse.md +10 -0
  319. data/docs/ListOnCallsResponse.md +10 -0
  320. data/docs/ListPoliciesResponse.md +10 -0
  321. data/docs/ListSavedSearchesResponse.md +10 -0
  322. data/docs/ListScheduleOverrideResponse.md +10 -0
  323. data/docs/ListScheduleRotationsResponse.md +10 -0
  324. data/docs/ListSchedulesResponse.md +11 -0
  325. data/docs/ListServiceIncidentRulesResponse.md +10 -0
  326. data/docs/ListServicesResponse.md +11 -0
  327. data/docs/ListTeamLogsResponse.md +10 -0
  328. data/docs/ListTeamRoleResponse.md +10 -0
  329. data/docs/ListTeamRoutingRulesResponse.md +10 -0
  330. data/docs/ListTeamsResponse.md +11 -0
  331. data/docs/ListUserEscalationsResponse.md +10 -0
  332. data/docs/ListUserForwardingRulesResponse.md +10 -0
  333. data/docs/ListUserSchedulesResponse.md +10 -0
  334. data/docs/ListUserTeamsResponse.md +10 -0
  335. data/docs/ListUsersResponse.md +12 -0
  336. data/docs/LogentriesIntegration.md +14 -0
  337. data/docs/LogglyIntegration.md +14 -0
  338. data/docs/LogicMonitorCallback.md +17 -0
  339. data/docs/LogicMonitorIntegration.md +33 -0
  340. data/docs/LogstashIntegration.md +14 -0
  341. data/docs/LogzIOIntegration.md +14 -0
  342. data/docs/LookerIntegration.md +14 -0
  343. data/docs/LoomIntegration.md +14 -0
  344. data/docs/MSTeamsCallback.md +15 -0
  345. data/docs/MSTeamsIntegration.md +44 -0
  346. data/docs/MSTeamsV2Callback.md +16 -0
  347. data/docs/MSTeamsV2Integration.md +46 -0
  348. data/docs/MagentrixCallback.md +17 -0
  349. data/docs/MagentrixIntegration.md +33 -0
  350. data/docs/Maintenance.md +12 -0
  351. data/docs/MaintenanceApi.md +342 -0
  352. data/docs/MaintenanceEntity.md +9 -0
  353. data/docs/MaintenanceMeta.md +11 -0
  354. data/docs/MaintenanceRule.md +9 -0
  355. data/docs/MaintenanceTime.md +10 -0
  356. data/docs/ManageEngineIntegrationDTO.md +14 -0
  357. data/docs/MaridCallback.md +12 -0
  358. data/docs/MaridIntegration.md +33 -0
  359. data/docs/MatchAll.md +8 -0
  360. data/docs/MatchAllConditions.md +9 -0
  361. data/docs/MatchAnyCondition.md +9 -0
  362. data/docs/MattermostCallback.md +13 -0
  363. data/docs/MattermostIntegration.md +33 -0
  364. data/docs/MongoDBCloudIntegration.md +14 -0
  365. data/docs/MonitisEmailIntegration.md +14 -0
  366. data/docs/MonitisIntegration.md +14 -0
  367. data/docs/MoxtraCallback.md +16 -0
  368. data/docs/MoxtraIntegration.md +14 -0
  369. data/docs/NagiosBasedV1Callback.md +14 -0
  370. data/docs/NagiosBasedV2Callback.md +14 -0
  371. data/docs/NagiosIntegrationV1.md +33 -0
  372. data/docs/NagiosIntegrationV2.md +33 -0
  373. data/docs/NagiosXIIntegrationV1.md +33 -0
  374. data/docs/NagiosXIIntegrationV2.md +33 -0
  375. data/docs/NagiosXIV1Callback.md +14 -0
  376. data/docs/NagiosXIV2Callback.md +14 -0
  377. data/docs/NetuitiveIntegration.md +14 -0
  378. data/docs/NeustarIntegration.md +14 -0
  379. data/docs/NewRelicIntegration.md +14 -0
  380. data/docs/NewRelicV2Integration.md +14 -0
  381. data/docs/NextOnCall.md +12 -0
  382. data/docs/NoRecipient.md +9 -0
  383. data/docs/NodePingIntegration.md +14 -0
  384. data/docs/NotificationActionType.md +7 -0
  385. data/docs/NotificationPolicy.md +20 -0
  386. data/docs/NotificationRepeat.md +9 -0
  387. data/docs/NotificationRule.md +18 -0
  388. data/docs/NotificationRuleApi.md +475 -0
  389. data/docs/NotificationRuleMeta.md +12 -0
  390. data/docs/NotificationRuleStep.md +12 -0
  391. data/docs/NotificationRuleStepApi.md +436 -0
  392. data/docs/NotificationRuleStepParent.md +9 -0
  393. data/docs/NotifyTime.md +7 -0
  394. data/docs/OECCallback.md +11 -0
  395. data/docs/OECIntegration.md +33 -0
  396. data/docs/OEMEmailIntegration.md +14 -0
  397. data/docs/OEMIntegration.md +14 -0
  398. data/docs/OP5Callback.md +17 -0
  399. data/docs/OP5Integration.md +33 -0
  400. data/docs/ObserviumIntegration.md +14 -0
  401. data/docs/ObserviumV2Integration.md +14 -0
  402. data/docs/OnCall.md +10 -0
  403. data/docs/OpsDashIntegration.md +14 -0
  404. data/docs/OpsGenieCallback.md +15 -0
  405. data/docs/OpsGenieIntegration.md +33 -0
  406. data/docs/OpsviewIntegration.md +14 -0
  407. data/docs/OutgoingCallback.md +10 -0
  408. data/docs/OutgoingCallbackNew.md +11 -0
  409. data/docs/PageDetails.md +11 -0
  410. data/docs/PagerDutyCompatibilityIntegration.md +14 -0
  411. data/docs/PanoptaIntegration.md +14 -0
  412. data/docs/PapertrailIntegration.md +14 -0
  413. data/docs/Participant.md +14 -0
  414. data/docs/PingdomIntegration.md +14 -0
  415. data/docs/PingdomV2Integration.md +14 -0
  416. data/docs/PingdomWebhookIntegration.md +14 -0
  417. data/docs/PingometerIntegration.md +14 -0
  418. data/docs/PlanioCallback.md +13 -0
  419. data/docs/PlanioIntegration.md +14 -0
  420. data/docs/Policy.md +15 -0
  421. data/docs/PolicyApi.md +539 -0
  422. data/docs/PolicyMeta.md +12 -0
  423. data/docs/PrometheusIntegration.md +14 -0
  424. data/docs/PrtgCallback.md +17 -0
  425. data/docs/PrtgIntegration.md +33 -0
  426. data/docs/RackspaceIntegration.md +14 -0
  427. data/docs/RaygunIntegration.md +14 -0
  428. data/docs/Recipient.md +9 -0
  429. data/docs/RedGateSqlMonitorEmailIntegration.md +14 -0
  430. data/docs/Responder.md +9 -0
  431. data/docs/RiemannIntegration.md +14 -0
  432. data/docs/RigorIntegration.md +14 -0
  433. data/docs/RingCentralEmailIntegration.md +14 -0
  434. data/docs/RingCentralGlipCallback.md +16 -0
  435. data/docs/RingCentralGlipIntegration.md +14 -0
  436. data/docs/RollbarCallback.md +15 -0
  437. data/docs/RollbarIntegration.md +33 -0
  438. data/docs/RunscopeIntegration.md +14 -0
  439. data/docs/SalesForceServiceCloudCallback.md +19 -0
  440. data/docs/SalesForceServiceCloudIntegration.md +33 -0
  441. data/docs/SaltStackIntegration.md +14 -0
  442. data/docs/SavedSearch.md +15 -0
  443. data/docs/SavedSearchEntity.md +8 -0
  444. data/docs/SavedSearchMeta.md +9 -0
  445. data/docs/ScalyrIntegration.md +14 -0
  446. data/docs/Schedule.md +14 -0
  447. data/docs/ScheduleApi.md +424 -0
  448. data/docs/ScheduleMeta.md +10 -0
  449. data/docs/ScheduleOverride.md +13 -0
  450. data/docs/ScheduleOverrideApi.md +318 -0
  451. data/docs/ScheduleOverrideMeta.md +8 -0
  452. data/docs/ScheduleOverrideRotation.md +9 -0
  453. data/docs/ScheduleRecipient.md +10 -0
  454. data/docs/ScheduleRotation.md +15 -0
  455. data/docs/ScheduleRotationApi.md +318 -0
  456. data/docs/ScheduleRotationWithParent.md +16 -0
  457. data/docs/ScheduleTimeline.md +14 -0
  458. data/docs/ScomIntegration.md +14 -0
  459. data/docs/ScoutIntegration.md +14 -0
  460. data/docs/SematextSpmIntegration.md +14 -0
  461. data/docs/SensuIntegration.md +14 -0
  462. data/docs/SentryIntegration.md +14 -0
  463. data/docs/ServerDensityIntegration.md +14 -0
  464. data/docs/ServerGuard24Integration.md +14 -0
  465. data/docs/Service.md +13 -0
  466. data/docs/ServiceApi.md +296 -0
  467. data/docs/ServiceNowIntegration.md +14 -0
  468. data/docs/ServiceNowV2Callback.md +17 -0
  469. data/docs/ServiceNowV2Integration.md +33 -0
  470. data/docs/ServiceNowV3Callback.md +17 -0
  471. data/docs/ServiceNowV3Integration.md +33 -0
  472. data/docs/SignalFXV2Integration.md +14 -0
  473. data/docs/SignalSciencesIntegration.md +14 -0
  474. data/docs/SignalfxIntegration.md +14 -0
  475. data/docs/Site24x7Integration.md +14 -0
  476. data/docs/SlackAppCallback.md +17 -0
  477. data/docs/SlackAppIntegration.md +46 -0
  478. data/docs/SlackCallback.md +13 -0
  479. data/docs/SlackIntegration.md +33 -0
  480. data/docs/SnoozeAlertPayload.md +11 -0
  481. data/docs/SoastaIntegration.md +14 -0
  482. data/docs/SolarWindsWebHelpDeskCallback.md +14 -0
  483. data/docs/SolarWindsWebHelpDeskIntegration.md +33 -0
  484. data/docs/SolarwindsCallback.md +14 -0
  485. data/docs/SolarwindsIntegration.md +33 -0
  486. data/docs/SolarwindsMSPNCentralIntegration.md +33 -0
  487. data/docs/SolarwindsMSPNcentralCallback.md +17 -0
  488. data/docs/SplunkCallback.md +16 -0
  489. data/docs/SplunkITSICallback.md +17 -0
  490. data/docs/SplunkITSIIntegration.md +33 -0
  491. data/docs/SplunkIntegration.md +33 -0
  492. data/docs/StackStormIntegration.md +14 -0
  493. data/docs/StackdriverCallback.md +13 -0
  494. data/docs/StackdriverIntegration.md +33 -0
  495. data/docs/StatusCakeIntegration.md +14 -0
  496. data/docs/StatusHubIntegration.md +14 -0
  497. data/docs/StatusIOCallback.md +15 -0
  498. data/docs/StatusIOIntegration.md +33 -0
  499. data/docs/StatusPageEntry.md +9 -0
  500. data/docs/StatusPageIOCallback.md +16 -0
  501. data/docs/StatusPageIOIntegration.md +33 -0
  502. data/docs/StatusyCallback.md +16 -0
  503. data/docs/StatusyIntegration.md +14 -0
  504. data/docs/StruxureWareIntegration.md +14 -0
  505. data/docs/SuccessData.md +9 -0
  506. data/docs/SuccessResponse.md +11 -0
  507. data/docs/SumoLogicCallback.md +15 -0
  508. data/docs/SumoLogicIntegration.md +33 -0
  509. data/docs/SysdigCloudIntegration.md +14 -0
  510. data/docs/Team.md +11 -0
  511. data/docs/TeamApi.md +354 -0
  512. data/docs/TeamLog.md +9 -0
  513. data/docs/TeamLogDetails.md +10 -0
  514. data/docs/TeamMember.md +9 -0
  515. data/docs/TeamMemberApi.md +132 -0
  516. data/docs/TeamMeta.md +9 -0
  517. data/docs/TeamRecipient.md +10 -0
  518. data/docs/TeamResponder.md +10 -0
  519. data/docs/TeamRight.md +9 -0
  520. data/docs/TeamRole.md +10 -0
  521. data/docs/TeamRoleApi.md +323 -0
  522. data/docs/TeamRoutingRule.md +15 -0
  523. data/docs/TeamRoutingRuleApi.md +382 -0
  524. data/docs/ThousandEyesIntegration.md +14 -0
  525. data/docs/ThreatStackIntegration.md +14 -0
  526. data/docs/ThundraIntegration.md +14 -0
  527. data/docs/TidewaysIntegration.md +14 -0
  528. data/docs/TimeOfDayRestriction.md +11 -0
  529. data/docs/TimeOfDayRestrictionInterval.md +9 -0
  530. data/docs/TimeRestrictionInterval.md +8 -0
  531. data/docs/Timeline.md +8 -0
  532. data/docs/TimelinePeriod.md +13 -0
  533. data/docs/TimelineRecipient.md +11 -0
  534. data/docs/TimelineRotation.md +11 -0
  535. data/docs/TokenBasedIncomingFeature.md +26 -0
  536. data/docs/TraceIntegration.md +14 -0
  537. data/docs/TrackItCallback.md +14 -0
  538. data/docs/TrackItIntegration.md +33 -0
  539. data/docs/TravisCIIntegration.md +14 -0
  540. data/docs/TwilioIntegration.md +14 -0
  541. data/docs/UnAcknowledgeAlertPayload.md +10 -0
  542. data/docs/UpdateAlertDescriptionPayload.md +8 -0
  543. data/docs/UpdateAlertMessagePayload.md +8 -0
  544. data/docs/UpdateAlertPriorityPayload.md +8 -0
  545. data/docs/UpdateContactPayload.md +8 -0
  546. data/docs/UpdateCustomUserRolePayload.md +11 -0
  547. data/docs/UpdateEscalationPayload.md +12 -0
  548. data/docs/UpdateForwardingRulePayload.md +11 -0
  549. data/docs/UpdateHeartbeatPayload.md +11 -0
  550. data/docs/UpdateHeartbeatResponse.md +10 -0
  551. data/docs/UpdateIntegrationActionsResponse.md +10 -0
  552. data/docs/UpdateIntegrationResponse.md +10 -0
  553. data/docs/UpdateMaintenancePayload.md +10 -0
  554. data/docs/UpdateMaintenanceResponse.md +10 -0
  555. data/docs/UpdateNotificationRulePayload.md +16 -0
  556. data/docs/UpdateNotificationRuleResponse.md +10 -0
  557. data/docs/UpdateNotificationRuleStepPayload.md +10 -0
  558. data/docs/UpdateSavedSearchPayload.md +12 -0
  559. data/docs/UpdateScheduleOverridePayload.md +11 -0
  560. data/docs/UpdateScheduleOverrideResponse.md +10 -0
  561. data/docs/UpdateSchedulePayload.md +13 -0
  562. data/docs/UpdateScheduleResponse.md +10 -0
  563. data/docs/UpdateScheduleRotationPayload.md +14 -0
  564. data/docs/UpdateTeamPayload.md +10 -0
  565. data/docs/UpdateTeamRolePayload.md +9 -0
  566. data/docs/UpdateTeamRoutingRulePayload.md +12 -0
  567. data/docs/UpdateUserPayload.md +17 -0
  568. data/docs/UpdownIOIntegration.md +14 -0
  569. data/docs/UptimeRobotEmailIntegration.md +14 -0
  570. data/docs/UptimeRobotIntegration.md +14 -0
  571. data/docs/UptimeWebhookIntegration.md +14 -0
  572. data/docs/UptrendsEmailIntegration.md +14 -0
  573. data/docs/User.md +22 -0
  574. data/docs/UserAddress.md +12 -0
  575. data/docs/UserApi.md +520 -0
  576. data/docs/UserContact.md +12 -0
  577. data/docs/UserMeta.md +9 -0
  578. data/docs/UserRecipient.md +10 -0
  579. data/docs/UserResponder.md +9 -0
  580. data/docs/UserRole.md +9 -0
  581. data/docs/VCSAIntegration.md +14 -0
  582. data/docs/VCenterIntegration.md +14 -0
  583. data/docs/VividCortexIntegration.md +14 -0
  584. data/docs/WavefrontIntegration.md +14 -0
  585. data/docs/WebhookCallback.md +16 -0
  586. data/docs/WebhookIntegration.md +14 -0
  587. data/docs/WeekdayTimeRestriction.md +13 -0
  588. data/docs/WeekdayTimeRestrictionInterval.md +9 -0
  589. data/docs/WhatsUpGoldIntegration.md +14 -0
  590. data/docs/WhoIsOnCallApi.md +247 -0
  591. data/docs/WorkatoIntegration.md +14 -0
  592. data/docs/XLReleaseIntegration.md +14 -0
  593. data/docs/XPackAlertingCallback.md +14 -0
  594. data/docs/XPackAlertingIntegration.md +33 -0
  595. data/docs/XmppCallback.md +14 -0
  596. data/docs/XmppIntegration.md +33 -0
  597. data/docs/ZabbixCallback.md +14 -0
  598. data/docs/ZabbixIntegration.md +33 -0
  599. data/docs/ZapierIntegration.md +14 -0
  600. data/docs/ZendeskCallback.md +17 -0
  601. data/docs/ZendeskIntegration.md +33 -0
  602. data/docs/ZenossCallback.md +14 -0
  603. data/docs/ZenossIntegration.md +33 -0
  604. data/docs/ZyrionIntegration.md +14 -0
  605. data/git_push.sh +55 -0
  606. data/lib/opsgenie_sdk.rb +644 -0
  607. data/lib/opsgenie_sdk/api/account_api.rb +69 -0
  608. data/lib/opsgenie_sdk/api/alert_api.rb +2259 -0
  609. data/lib/opsgenie_sdk/api/contact_api.rb +421 -0
  610. data/lib/opsgenie_sdk/api/custom_user_role_api.rb +297 -0
  611. data/lib/opsgenie_sdk/api/deprecated_policy_api.rb +445 -0
  612. data/lib/opsgenie_sdk/api/escalation_api.rb +297 -0
  613. data/lib/opsgenie_sdk/api/forwarding_rule_api.rb +301 -0
  614. data/lib/opsgenie_sdk/api/heartbeat_api.rb +435 -0
  615. data/lib/opsgenie_sdk/api/incident_api.rb +386 -0
  616. data/lib/opsgenie_sdk/api/integration_action_api.rb +191 -0
  617. data/lib/opsgenie_sdk/api/integration_api.rb +448 -0
  618. data/lib/opsgenie_sdk/api/maintenance_api.rb +341 -0
  619. data/lib/opsgenie_sdk/api/notification_rule_api.rb +493 -0
  620. data/lib/opsgenie_sdk/api/notification_rule_step_api.rb +467 -0
  621. data/lib/opsgenie_sdk/api/policy_api.rb +518 -0
  622. data/lib/opsgenie_sdk/api/schedule_api.rb +431 -0
  623. data/lib/opsgenie_sdk/api/schedule_override_api.rb +343 -0
  624. data/lib/opsgenie_sdk/api/schedule_rotation_api.rb +343 -0
  625. data/lib/opsgenie_sdk/api/service_api.rb +297 -0
  626. data/lib/opsgenie_sdk/api/service_incident_rule_api.rb +251 -0
  627. data/lib/opsgenie_sdk/api/team_api.rb +369 -0
  628. data/lib/opsgenie_sdk/api/team_member_api.rb +151 -0
  629. data/lib/opsgenie_sdk/api/team_role_api.rb +357 -0
  630. data/lib/opsgenie_sdk/api/team_routing_rule_api.rb +409 -0
  631. data/lib/opsgenie_sdk/api/user_api.rb +508 -0
  632. data/lib/opsgenie_sdk/api/who_is_on_call_api.rb +255 -0
  633. data/lib/opsgenie_sdk/api_client.rb +391 -0
  634. data/lib/opsgenie_sdk/api_error.rb +38 -0
  635. data/lib/opsgenie_sdk/configuration.rb +209 -0
  636. data/lib/opsgenie_sdk/models/account_info.rb +202 -0
  637. data/lib/opsgenie_sdk/models/account_plan.rb +202 -0
  638. data/lib/opsgenie_sdk/models/ack_integration_action.rb +302 -0
  639. data/lib/opsgenie_sdk/models/acknowledge_alert_payload.rb +205 -0
  640. data/lib/opsgenie_sdk/models/action_categorized.rb +239 -0
  641. data/lib/opsgenie_sdk/models/action_mapping.rb +262 -0
  642. data/lib/opsgenie_sdk/models/add_details_to_alert_payload.rb +222 -0
  643. data/lib/opsgenie_sdk/models/add_note_integration_action.rb +302 -0
  644. data/lib/opsgenie_sdk/models/add_note_to_alert_payload.rb +205 -0
  645. data/lib/opsgenie_sdk/models/add_responder_to_alert_payload.rb +219 -0
  646. data/lib/opsgenie_sdk/models/add_tags_to_alert_payload.rb +221 -0
  647. data/lib/opsgenie_sdk/models/add_team_member_payload.rb +202 -0
  648. data/lib/opsgenie_sdk/models/add_team_to_alert_payload.rb +219 -0
  649. data/lib/opsgenie_sdk/models/airbrake_integration.rb +287 -0
  650. data/lib/opsgenie_sdk/models/alert.rb +404 -0
  651. data/lib/opsgenie_sdk/models/alert_action_payload.rb +205 -0
  652. data/lib/opsgenie_sdk/models/alert_attachment.rb +193 -0
  653. data/lib/opsgenie_sdk/models/alert_attachment_meta.rb +193 -0
  654. data/lib/opsgenie_sdk/models/alert_filter.rb +229 -0
  655. data/lib/opsgenie_sdk/models/alert_integration.rb +202 -0
  656. data/lib/opsgenie_sdk/models/alert_log.rb +220 -0
  657. data/lib/opsgenie_sdk/models/alert_logic_integration.rb +287 -0
  658. data/lib/opsgenie_sdk/models/alert_note.rb +211 -0
  659. data/lib/opsgenie_sdk/models/alert_paging.rb +193 -0
  660. data/lib/opsgenie_sdk/models/alert_policy.rb +472 -0
  661. data/lib/opsgenie_sdk/models/alert_recipient.rb +220 -0
  662. data/lib/opsgenie_sdk/models/alert_report.rb +211 -0
  663. data/lib/opsgenie_sdk/models/alert_request_status.rb +238 -0
  664. data/lib/opsgenie_sdk/models/alert_site_integration.rb +287 -0
  665. data/lib/opsgenie_sdk/models/alert_team_meta.rb +189 -0
  666. data/lib/opsgenie_sdk/models/alert_user_meta.rb +193 -0
  667. data/lib/opsgenie_sdk/models/all_recipient.rb +233 -0
  668. data/lib/opsgenie_sdk/models/amazon_cloud_trail_integration.rb +287 -0
  669. data/lib/opsgenie_sdk/models/amazon_ec2_auto_scaling_integration.rb +287 -0
  670. data/lib/opsgenie_sdk/models/amazon_rds_integration.rb +287 -0
  671. data/lib/opsgenie_sdk/models/amazon_route53_health_check_integration.rb +287 -0
  672. data/lib/opsgenie_sdk/models/amazon_security_hub_integration.rb +287 -0
  673. data/lib/opsgenie_sdk/models/amazon_ses_integration.rb +287 -0
  674. data/lib/opsgenie_sdk/models/amazon_sns_callback.rb +274 -0
  675. data/lib/opsgenie_sdk/models/amazon_sns_integration.rb +287 -0
  676. data/lib/opsgenie_sdk/models/amazon_sns_outgoing_integration.rb +287 -0
  677. data/lib/opsgenie_sdk/models/api_integration.rb +493 -0
  678. data/lib/opsgenie_sdk/models/apica_integration.rb +287 -0
  679. data/lib/opsgenie_sdk/models/apimetrics_integration.rb +287 -0
  680. data/lib/opsgenie_sdk/models/app_dynamics_integration.rb +287 -0
  681. data/lib/opsgenie_sdk/models/app_optics_integration.rb +287 -0
  682. data/lib/opsgenie_sdk/models/app_signal_integration.rb +287 -0
  683. data/lib/opsgenie_sdk/models/app_signal_v2_integration.rb +287 -0
  684. data/lib/opsgenie_sdk/models/assign_alert_payload.rb +219 -0
  685. data/lib/opsgenie_sdk/models/atatus_integration.rb +287 -0
  686. data/lib/opsgenie_sdk/models/atlassian_bamboo_integration.rb +287 -0
  687. data/lib/opsgenie_sdk/models/authenticate_integration_payload.rb +223 -0
  688. data/lib/opsgenie_sdk/models/auto_close_action.rb +189 -0
  689. data/lib/opsgenie_sdk/models/auto_restart_action.rb +203 -0
  690. data/lib/opsgenie_sdk/models/auto_task_email_integration.rb +287 -0
  691. data/lib/opsgenie_sdk/models/autotask_aem_email_integration.rb +287 -0
  692. data/lib/opsgenie_sdk/models/azure_auto_scale_integration.rb +287 -0
  693. data/lib/opsgenie_sdk/models/azure_integration.rb +287 -0
  694. data/lib/opsgenie_sdk/models/azure_oms_integration.rb +287 -0
  695. data/lib/opsgenie_sdk/models/azure_resource_health_integration.rb +287 -0
  696. data/lib/opsgenie_sdk/models/azure_service_health_integration.rb +287 -0
  697. data/lib/opsgenie_sdk/models/base_alert.rb +364 -0
  698. data/lib/opsgenie_sdk/models/base_incident.rb +313 -0
  699. data/lib/opsgenie_sdk/models/base_incoming_feature.rb +356 -0
  700. data/lib/opsgenie_sdk/models/base_integration_action.rb +275 -0
  701. data/lib/opsgenie_sdk/models/base_response.rb +205 -0
  702. data/lib/opsgenie_sdk/models/base_response_with_expandable.rb +216 -0
  703. data/lib/opsgenie_sdk/models/base_webhook_callback.rb +306 -0
  704. data/lib/opsgenie_sdk/models/bidirectional_callback.rb +268 -0
  705. data/lib/opsgenie_sdk/models/bidirectional_callback_new.rb +288 -0
  706. data/lib/opsgenie_sdk/models/big_panda_integration.rb +287 -0
  707. data/lib/opsgenie_sdk/models/bitbucket_integration.rb +287 -0
  708. data/lib/opsgenie_sdk/models/blue_matador_integration.rb +287 -0
  709. data/lib/opsgenie_sdk/models/bmc_foot_prints_v11_callback.rb +333 -0
  710. data/lib/opsgenie_sdk/models/bmc_foot_prints_v11_integration.rb +484 -0
  711. data/lib/opsgenie_sdk/models/bmc_foot_prints_v12_callback.rb +324 -0
  712. data/lib/opsgenie_sdk/models/bmc_foot_prints_v12_integration.rb +484 -0
  713. data/lib/opsgenie_sdk/models/bmc_remedy_callback.rb +324 -0
  714. data/lib/opsgenie_sdk/models/bmc_remedy_force_integration.rb +287 -0
  715. data/lib/opsgenie_sdk/models/bmc_remedy_integration.rb +484 -0
  716. data/lib/opsgenie_sdk/models/bmc_remedy_on_demand_callback.rb +292 -0
  717. data/lib/opsgenie_sdk/models/bmc_remedy_on_demand_integration.rb +287 -0
  718. data/lib/opsgenie_sdk/models/boundary_integration.rb +287 -0
  719. data/lib/opsgenie_sdk/models/callback_condition.rb +281 -0
  720. data/lib/opsgenie_sdk/models/campfire_callback.rb +276 -0
  721. data/lib/opsgenie_sdk/models/campfire_integration.rb +287 -0
  722. data/lib/opsgenie_sdk/models/catchpoint_integration.rb +287 -0
  723. data/lib/opsgenie_sdk/models/change_notification_rule_order_payload.rb +199 -0
  724. data/lib/opsgenie_sdk/models/change_policy_order_payload.rb +209 -0
  725. data/lib/opsgenie_sdk/models/change_team_routing_rule_order_payload.rb +185 -0
  726. data/lib/opsgenie_sdk/models/check_mk_integration.rb +287 -0
  727. data/lib/opsgenie_sdk/models/cherwell_callback.rb +324 -0
  728. data/lib/opsgenie_sdk/models/cherwell_integration.rb +484 -0
  729. data/lib/opsgenie_sdk/models/circle_ci_integration.rb +287 -0
  730. data/lib/opsgenie_sdk/models/circonus_callback.rb +297 -0
  731. data/lib/opsgenie_sdk/models/circonus_integration.rb +484 -0
  732. data/lib/opsgenie_sdk/models/close_alert_payload.rb +205 -0
  733. data/lib/opsgenie_sdk/models/close_incident_payload.rb +185 -0
  734. data/lib/opsgenie_sdk/models/close_integration_action.rb +302 -0
  735. data/lib/opsgenie_sdk/models/cloud_monix_integration.rb +287 -0
  736. data/lib/opsgenie_sdk/models/cloud_sploit_integration.rb +287 -0
  737. data/lib/opsgenie_sdk/models/cloud_watch_events_integration.rb +287 -0
  738. data/lib/opsgenie_sdk/models/cloud_watch_integration.rb +287 -0
  739. data/lib/opsgenie_sdk/models/codeship_integration.rb +287 -0
  740. data/lib/opsgenie_sdk/models/common_integration_action.rb +302 -0
  741. data/lib/opsgenie_sdk/models/compose_integration.rb +287 -0
  742. data/lib/opsgenie_sdk/models/condition.rb +291 -0
  743. data/lib/opsgenie_sdk/models/connect_wise_automate_integration.rb +287 -0
  744. data/lib/opsgenie_sdk/models/connect_wise_callback.rb +277 -0
  745. data/lib/opsgenie_sdk/models/connect_wise_integration.rb +484 -0
  746. data/lib/opsgenie_sdk/models/connect_wise_manage_callback.rb +342 -0
  747. data/lib/opsgenie_sdk/models/connect_wise_manage_integration.rb +484 -0
  748. data/lib/opsgenie_sdk/models/connect_wise_manage_v2_callback.rb +360 -0
  749. data/lib/opsgenie_sdk/models/connect_wise_manage_v2_integration.rb +484 -0
  750. data/lib/opsgenie_sdk/models/consul_integration.rb +287 -0
  751. data/lib/opsgenie_sdk/models/contact.rb +211 -0
  752. data/lib/opsgenie_sdk/models/contact_meta.rb +237 -0
  753. data/lib/opsgenie_sdk/models/contact_status.rb +193 -0
  754. data/lib/opsgenie_sdk/models/contact_with_apply_order.rb +220 -0
  755. data/lib/opsgenie_sdk/models/copper_egg_integration.rb +287 -0
  756. data/lib/opsgenie_sdk/models/crashlytics_integration.rb +287 -0
  757. data/lib/opsgenie_sdk/models/create_alert_payload.rb +354 -0
  758. data/lib/opsgenie_sdk/models/create_contact_payload.rb +239 -0
  759. data/lib/opsgenie_sdk/models/create_custom_user_role_payload.rb +224 -0
  760. data/lib/opsgenie_sdk/models/create_escalation_payload.rb +237 -0
  761. data/lib/opsgenie_sdk/models/create_forwarding_rule_payload.rb +245 -0
  762. data/lib/opsgenie_sdk/models/create_forwarding_rule_response.rb +214 -0
  763. data/lib/opsgenie_sdk/models/create_heartbeat_payload.rb +175 -0
  764. data/lib/opsgenie_sdk/models/create_heartbeat_response.rb +214 -0
  765. data/lib/opsgenie_sdk/models/create_incident_payload.rb +317 -0
  766. data/lib/opsgenie_sdk/models/create_integration_action.rb +486 -0
  767. data/lib/opsgenie_sdk/models/create_integration_actions_response.rb +214 -0
  768. data/lib/opsgenie_sdk/models/create_integration_response.rb +214 -0
  769. data/lib/opsgenie_sdk/models/create_maintenance_payload.rb +217 -0
  770. data/lib/opsgenie_sdk/models/create_maintenance_response.rb +214 -0
  771. data/lib/opsgenie_sdk/models/create_notification_rule_payload.rb +308 -0
  772. data/lib/opsgenie_sdk/models/create_notification_rule_response.rb +214 -0
  773. data/lib/opsgenie_sdk/models/create_notification_rule_step_payload.rb +215 -0
  774. data/lib/opsgenie_sdk/models/create_policy_response.rb +214 -0
  775. data/lib/opsgenie_sdk/models/create_saved_search_payload.rb +291 -0
  776. data/lib/opsgenie_sdk/models/create_saved_search_response.rb +214 -0
  777. data/lib/opsgenie_sdk/models/create_schedule_override_payload.rb +242 -0
  778. data/lib/opsgenie_sdk/models/create_schedule_override_response.rb +214 -0
  779. data/lib/opsgenie_sdk/models/create_schedule_payload.rb +241 -0
  780. data/lib/opsgenie_sdk/models/create_schedule_response.rb +214 -0
  781. data/lib/opsgenie_sdk/models/create_schedule_rotation_payload.rb +296 -0
  782. data/lib/opsgenie_sdk/models/create_team_payload.rb +212 -0
  783. data/lib/opsgenie_sdk/models/create_team_role_payload.rb +207 -0
  784. data/lib/opsgenie_sdk/models/create_team_routing_rule_payload.rb +237 -0
  785. data/lib/opsgenie_sdk/models/create_user_payload.rb +332 -0
  786. data/lib/opsgenie_sdk/models/custom_user_role.rb +227 -0
  787. data/lib/opsgenie_sdk/models/datadog_callback.rb +306 -0
  788. data/lib/opsgenie_sdk/models/datadog_integration.rb +484 -0
  789. data/lib/opsgenie_sdk/models/dataloop_io_integration.rb +287 -0
  790. data/lib/opsgenie_sdk/models/deduplication_action.rb +274 -0
  791. data/lib/opsgenie_sdk/models/delay_action.rb +298 -0
  792. data/lib/opsgenie_sdk/models/deprecated_alert_policy.rb +283 -0
  793. data/lib/opsgenie_sdk/models/deprecated_alert_policy_meta.rb +254 -0
  794. data/lib/opsgenie_sdk/models/deprecated_auto_close_alert_policy.rb +293 -0
  795. data/lib/opsgenie_sdk/models/deprecated_auto_restart_notifications_alert_policy.rb +303 -0
  796. data/lib/opsgenie_sdk/models/deprecated_change_alert_policy_order_payload.rb +209 -0
  797. data/lib/opsgenie_sdk/models/deprecated_create_alert_policy_response.rb +214 -0
  798. data/lib/opsgenie_sdk/models/deprecated_get_alert_policy_response.rb +214 -0
  799. data/lib/opsgenie_sdk/models/deprecated_list_alert_policies_response.rb +216 -0
  800. data/lib/opsgenie_sdk/models/deprecated_modify_alert_policy.rb +462 -0
  801. data/lib/opsgenie_sdk/models/deprecated_notification_deduplication_alert_policy.rb +349 -0
  802. data/lib/opsgenie_sdk/models/deprecated_notification_delay_alert_policy.rb +383 -0
  803. data/lib/opsgenie_sdk/models/deprecated_notification_renotify_alert_policy.rb +283 -0
  804. data/lib/opsgenie_sdk/models/deprecated_notification_suppress_alert_policy.rb +283 -0
  805. data/lib/opsgenie_sdk/models/desk_callback.rb +313 -0
  806. data/lib/opsgenie_sdk/models/desk_integration.rb +484 -0
  807. data/lib/opsgenie_sdk/models/detectify_integration.rb +287 -0
  808. data/lib/opsgenie_sdk/models/disable_heartbeat_response.rb +214 -0
  809. data/lib/opsgenie_sdk/models/disable_integration_response.rb +214 -0
  810. data/lib/opsgenie_sdk/models/dns_check_integration.rb +287 -0
  811. data/lib/opsgenie_sdk/models/drip_stat_integration.rb +287 -0
  812. data/lib/opsgenie_sdk/models/duration.rb +234 -0
  813. data/lib/opsgenie_sdk/models/dynatrace_app_mon_callback.rb +324 -0
  814. data/lib/opsgenie_sdk/models/dynatrace_app_mon_integration.rb +484 -0
  815. data/lib/opsgenie_sdk/models/dynatrace_integration.rb +287 -0
  816. data/lib/opsgenie_sdk/models/dynatrace_v2_integration.rb +287 -0
  817. data/lib/opsgenie_sdk/models/email_based_incoming_feature.rb +375 -0
  818. data/lib/opsgenie_sdk/models/email_integration.rb +287 -0
  819. data/lib/opsgenie_sdk/models/enable_heartbeat_response.rb +214 -0
  820. data/lib/opsgenie_sdk/models/enable_integration_response.rb +214 -0
  821. data/lib/opsgenie_sdk/models/error_response.rb +234 -0
  822. data/lib/opsgenie_sdk/models/errorception_integration.rb +287 -0
  823. data/lib/opsgenie_sdk/models/escalate_alert_to_next_payload.rb +219 -0
  824. data/lib/opsgenie_sdk/models/escalation.rb +231 -0
  825. data/lib/opsgenie_sdk/models/escalation_recipient.rb +242 -0
  826. data/lib/opsgenie_sdk/models/escalation_repeat.rb +211 -0
  827. data/lib/opsgenie_sdk/models/escalation_rule.rb +281 -0
  828. data/lib/opsgenie_sdk/models/evident_io_integration.rb +287 -0
  829. data/lib/opsgenie_sdk/models/execute_custom_alert_action_payload.rb +205 -0
  830. data/lib/opsgenie_sdk/models/filter.rb +224 -0
  831. data/lib/opsgenie_sdk/models/flock_callback.rb +306 -0
  832. data/lib/opsgenie_sdk/models/flock_integration.rb +287 -0
  833. data/lib/opsgenie_sdk/models/flowdock_callback.rb +267 -0
  834. data/lib/opsgenie_sdk/models/flowdock_integration.rb +287 -0
  835. data/lib/opsgenie_sdk/models/flowdock_v2_callback.rb +247 -0
  836. data/lib/opsgenie_sdk/models/flowdock_v2_integration.rb +287 -0
  837. data/lib/opsgenie_sdk/models/forwarding_rule.rb +229 -0
  838. data/lib/opsgenie_sdk/models/forwarding_rule_meta.rb +193 -0
  839. data/lib/opsgenie_sdk/models/freshdesk_callback.rb +306 -0
  840. data/lib/opsgenie_sdk/models/freshdesk_integration.rb +484 -0
  841. data/lib/opsgenie_sdk/models/freshservice_callback.rb +315 -0
  842. data/lib/opsgenie_sdk/models/freshservice_integration.rb +484 -0
  843. data/lib/opsgenie_sdk/models/get_account_info_response.rb +214 -0
  844. data/lib/opsgenie_sdk/models/get_alert_attachment_response.rb +214 -0
  845. data/lib/opsgenie_sdk/models/get_alert_response.rb +214 -0
  846. data/lib/opsgenie_sdk/models/get_contact_response.rb +214 -0
  847. data/lib/opsgenie_sdk/models/get_count_alerts_response.rb +214 -0
  848. data/lib/opsgenie_sdk/models/get_count_alerts_response_data.rb +184 -0
  849. data/lib/opsgenie_sdk/models/get_custom_user_role_response.rb +214 -0
  850. data/lib/opsgenie_sdk/models/get_escalation_response.rb +214 -0
  851. data/lib/opsgenie_sdk/models/get_forwarding_rule_response.rb +214 -0
  852. data/lib/opsgenie_sdk/models/get_heartbeat_response.rb +214 -0
  853. data/lib/opsgenie_sdk/models/get_incident_request_status_response.rb +214 -0
  854. data/lib/opsgenie_sdk/models/get_incident_response.rb +214 -0
  855. data/lib/opsgenie_sdk/models/get_integration_response.rb +214 -0
  856. data/lib/opsgenie_sdk/models/get_maintenance_response.rb +214 -0
  857. data/lib/opsgenie_sdk/models/get_next_on_call_response.rb +214 -0
  858. data/lib/opsgenie_sdk/models/get_notification_rule_response.rb +214 -0
  859. data/lib/opsgenie_sdk/models/get_notification_rule_step_response.rb +214 -0
  860. data/lib/opsgenie_sdk/models/get_on_call_response.rb +214 -0
  861. data/lib/opsgenie_sdk/models/get_policy_response.rb +214 -0
  862. data/lib/opsgenie_sdk/models/get_request_status_response.rb +214 -0
  863. data/lib/opsgenie_sdk/models/get_saved_search_response.rb +214 -0
  864. data/lib/opsgenie_sdk/models/get_schedule_override_response.rb +214 -0
  865. data/lib/opsgenie_sdk/models/get_schedule_response.rb +214 -0
  866. data/lib/opsgenie_sdk/models/get_schedule_rotation_response.rb +214 -0
  867. data/lib/opsgenie_sdk/models/get_schedule_timeline_response.rb +225 -0
  868. data/lib/opsgenie_sdk/models/get_team_response.rb +214 -0
  869. data/lib/opsgenie_sdk/models/get_team_role_response.rb +214 -0
  870. data/lib/opsgenie_sdk/models/get_team_routing_rule_response.rb +214 -0
  871. data/lib/opsgenie_sdk/models/get_user_response.rb +225 -0
  872. data/lib/opsgenie_sdk/models/ghost_inspector_integration.rb +287 -0
  873. data/lib/opsgenie_sdk/models/git_hub_integration.rb +287 -0
  874. data/lib/opsgenie_sdk/models/git_lab_integration.rb +287 -0
  875. data/lib/opsgenie_sdk/models/google_stack_driver_integration.rb +287 -0
  876. data/lib/opsgenie_sdk/models/grafana_integration.rb +287 -0
  877. data/lib/opsgenie_sdk/models/grafana_v2_integration.rb +287 -0
  878. data/lib/opsgenie_sdk/models/graylog_integration.rb +287 -0
  879. data/lib/opsgenie_sdk/models/group_recipient.rb +242 -0
  880. data/lib/opsgenie_sdk/models/heartbeat.rb +272 -0
  881. data/lib/opsgenie_sdk/models/heartbeat_integration.rb +287 -0
  882. data/lib/opsgenie_sdk/models/heartbeat_meta.rb +202 -0
  883. data/lib/opsgenie_sdk/models/hip_chat_add_on_callback.rb +304 -0
  884. data/lib/opsgenie_sdk/models/hip_chat_add_on_integration.rb +609 -0
  885. data/lib/opsgenie_sdk/models/hip_chat_callback_v2.rb +306 -0
  886. data/lib/opsgenie_sdk/models/hip_chat_integration.rb +287 -0
  887. data/lib/opsgenie_sdk/models/hip_chat_integration_v2.rb +484 -0
  888. data/lib/opsgenie_sdk/models/honeybadger_integration.rb +287 -0
  889. data/lib/opsgenie_sdk/models/hosted_graphite_integration.rb +287 -0
  890. data/lib/opsgenie_sdk/models/hp_service_manager_callback.rb +306 -0
  891. data/lib/opsgenie_sdk/models/hp_service_manager_integration.rb +484 -0
  892. data/lib/opsgenie_sdk/models/humio_integration.rb +287 -0
  893. data/lib/opsgenie_sdk/models/icinga2_callback.rb +286 -0
  894. data/lib/opsgenie_sdk/models/icinga2_integration.rb +484 -0
  895. data/lib/opsgenie_sdk/models/icinga_callback.rb +286 -0
  896. data/lib/opsgenie_sdk/models/icinga_integration.rb +484 -0
  897. data/lib/opsgenie_sdk/models/ignore_integration_action.rb +275 -0
  898. data/lib/opsgenie_sdk/models/incident.rb +322 -0
  899. data/lib/opsgenie_sdk/models/incident_action_payload.rb +185 -0
  900. data/lib/opsgenie_sdk/models/incident_request_status.rb +238 -0
  901. data/lib/opsgenie_sdk/models/incoming_call_integration.rb +287 -0
  902. data/lib/opsgenie_sdk/models/instana_integration.rb +287 -0
  903. data/lib/opsgenie_sdk/models/integration.rb +287 -0
  904. data/lib/opsgenie_sdk/models/integration_action_filter.rb +229 -0
  905. data/lib/opsgenie_sdk/models/integration_condition.rb +245 -0
  906. data/lib/opsgenie_sdk/models/integration_meta.rb +229 -0
  907. data/lib/opsgenie_sdk/models/jenkins_integration.rb +287 -0
  908. data/lib/opsgenie_sdk/models/jira_callback.rb +333 -0
  909. data/lib/opsgenie_sdk/models/jira_integration.rb +484 -0
  910. data/lib/opsgenie_sdk/models/jira_service_desk_callback.rb +333 -0
  911. data/lib/opsgenie_sdk/models/jira_service_desk_integration.rb +484 -0
  912. data/lib/opsgenie_sdk/models/kapacitor_integration.rb +287 -0
  913. data/lib/opsgenie_sdk/models/kayako_callback.rb +315 -0
  914. data/lib/opsgenie_sdk/models/kayako_integration.rb +484 -0
  915. data/lib/opsgenie_sdk/models/kore_callback.rb +306 -0
  916. data/lib/opsgenie_sdk/models/kore_integration.rb +287 -0
  917. data/lib/opsgenie_sdk/models/lab_tech_email_integration.rb +287 -0
  918. data/lib/opsgenie_sdk/models/librato_integration.rb +287 -0
  919. data/lib/opsgenie_sdk/models/libre_nms_callback.rb +306 -0
  920. data/lib/opsgenie_sdk/models/libre_nms_integration.rb +484 -0
  921. data/lib/opsgenie_sdk/models/lightstep_integration.rb +287 -0
  922. data/lib/opsgenie_sdk/models/list_alert_attachments_response.rb +216 -0
  923. data/lib/opsgenie_sdk/models/list_alert_logs_response.rb +225 -0
  924. data/lib/opsgenie_sdk/models/list_alert_notes_response.rb +225 -0
  925. data/lib/opsgenie_sdk/models/list_alert_recipients_response.rb +216 -0
  926. data/lib/opsgenie_sdk/models/list_alerts_response.rb +225 -0
  927. data/lib/opsgenie_sdk/models/list_contacts_response.rb +216 -0
  928. data/lib/opsgenie_sdk/models/list_custom_user_roles_response.rb +216 -0
  929. data/lib/opsgenie_sdk/models/list_escalations_response.rb +216 -0
  930. data/lib/opsgenie_sdk/models/list_forwarding_rules_response.rb +216 -0
  931. data/lib/opsgenie_sdk/models/list_heartbeat_response.rb +214 -0
  932. data/lib/opsgenie_sdk/models/list_heartbeat_response_data.rb +186 -0
  933. data/lib/opsgenie_sdk/models/list_incidents_response.rb +225 -0
  934. data/lib/opsgenie_sdk/models/list_integration_actions_response.rb +214 -0
  935. data/lib/opsgenie_sdk/models/list_integrations_response.rb +216 -0
  936. data/lib/opsgenie_sdk/models/list_maintenance_response.rb +216 -0
  937. data/lib/opsgenie_sdk/models/list_notification_rule_steps_response.rb +216 -0
  938. data/lib/opsgenie_sdk/models/list_notification_rules_response.rb +216 -0
  939. data/lib/opsgenie_sdk/models/list_on_calls_response.rb +216 -0
  940. data/lib/opsgenie_sdk/models/list_policies_response.rb +216 -0
  941. data/lib/opsgenie_sdk/models/list_saved_searches_response.rb +216 -0
  942. data/lib/opsgenie_sdk/models/list_schedule_override_response.rb +216 -0
  943. data/lib/opsgenie_sdk/models/list_schedule_rotations_response.rb +216 -0
  944. data/lib/opsgenie_sdk/models/list_schedules_response.rb +227 -0
  945. data/lib/opsgenie_sdk/models/list_service_incident_rules_response.rb +216 -0
  946. data/lib/opsgenie_sdk/models/list_services_response.rb +225 -0
  947. data/lib/opsgenie_sdk/models/list_team_logs_response.rb +214 -0
  948. data/lib/opsgenie_sdk/models/list_team_role_response.rb +216 -0
  949. data/lib/opsgenie_sdk/models/list_team_routing_rules_response.rb +216 -0
  950. data/lib/opsgenie_sdk/models/list_teams_response.rb +227 -0
  951. data/lib/opsgenie_sdk/models/list_user_escalations_response.rb +216 -0
  952. data/lib/opsgenie_sdk/models/list_user_forwarding_rules_response.rb +216 -0
  953. data/lib/opsgenie_sdk/models/list_user_schedules_response.rb +216 -0
  954. data/lib/opsgenie_sdk/models/list_user_teams_response.rb +216 -0
  955. data/lib/opsgenie_sdk/models/list_users_response.rb +234 -0
  956. data/lib/opsgenie_sdk/models/logentries_integration.rb +287 -0
  957. data/lib/opsgenie_sdk/models/loggly_integration.rb +287 -0
  958. data/lib/opsgenie_sdk/models/logic_monitor_callback.rb +315 -0
  959. data/lib/opsgenie_sdk/models/logic_monitor_integration.rb +484 -0
  960. data/lib/opsgenie_sdk/models/logstash_integration.rb +287 -0
  961. data/lib/opsgenie_sdk/models/logz_io_integration.rb +287 -0
  962. data/lib/opsgenie_sdk/models/looker_integration.rb +287 -0
  963. data/lib/opsgenie_sdk/models/loom_integration.rb +287 -0
  964. data/lib/opsgenie_sdk/models/magentrix_callback.rb +315 -0
  965. data/lib/opsgenie_sdk/models/magentrix_integration.rb +484 -0
  966. data/lib/opsgenie_sdk/models/maintenance.rb +261 -0
  967. data/lib/opsgenie_sdk/models/maintenance_entity.rb +238 -0
  968. data/lib/opsgenie_sdk/models/maintenance_meta.rb +249 -0
  969. data/lib/opsgenie_sdk/models/maintenance_rule.rb +233 -0
  970. data/lib/opsgenie_sdk/models/maintenance_time.rb +244 -0
  971. data/lib/opsgenie_sdk/models/manage_engine_integration_dto.rb +287 -0
  972. data/lib/opsgenie_sdk/models/marid_callback.rb +268 -0
  973. data/lib/opsgenie_sdk/models/marid_integration.rb +484 -0
  974. data/lib/opsgenie_sdk/models/match_all.rb +224 -0
  975. data/lib/opsgenie_sdk/models/match_all_conditions.rb +235 -0
  976. data/lib/opsgenie_sdk/models/match_any_condition.rb +235 -0
  977. data/lib/opsgenie_sdk/models/mattermost_callback.rb +277 -0
  978. data/lib/opsgenie_sdk/models/mattermost_integration.rb +484 -0
  979. data/lib/opsgenie_sdk/models/mongo_db_cloud_integration.rb +287 -0
  980. data/lib/opsgenie_sdk/models/monitis_email_integration.rb +287 -0
  981. data/lib/opsgenie_sdk/models/monitis_integration.rb +287 -0
  982. data/lib/opsgenie_sdk/models/moxtra_callback.rb +306 -0
  983. data/lib/opsgenie_sdk/models/moxtra_integration.rb +287 -0
  984. data/lib/opsgenie_sdk/models/ms_teams_callback.rb +297 -0
  985. data/lib/opsgenie_sdk/models/ms_teams_integration.rb +611 -0
  986. data/lib/opsgenie_sdk/models/ms_teams_v2_callback.rb +306 -0
  987. data/lib/opsgenie_sdk/models/ms_teams_v2_integration.rb +629 -0
  988. data/lib/opsgenie_sdk/models/nagios_based_v1_callback.rb +286 -0
  989. data/lib/opsgenie_sdk/models/nagios_based_v2_callback.rb +286 -0
  990. data/lib/opsgenie_sdk/models/nagios_integration_v1.rb +484 -0
  991. data/lib/opsgenie_sdk/models/nagios_integration_v2.rb +484 -0
  992. data/lib/opsgenie_sdk/models/nagios_xi_integration_v1.rb +484 -0
  993. data/lib/opsgenie_sdk/models/nagios_xi_integration_v2.rb +484 -0
  994. data/lib/opsgenie_sdk/models/nagios_xiv1_callback.rb +286 -0
  995. data/lib/opsgenie_sdk/models/nagios_xiv2_callback.rb +286 -0
  996. data/lib/opsgenie_sdk/models/netuitive_integration.rb +287 -0
  997. data/lib/opsgenie_sdk/models/neustar_integration.rb +287 -0
  998. data/lib/opsgenie_sdk/models/new_relic_integration.rb +287 -0
  999. data/lib/opsgenie_sdk/models/new_relic_v2_integration.rb +287 -0
  1000. data/lib/opsgenie_sdk/models/next_on_call.rb +228 -0
  1001. data/lib/opsgenie_sdk/models/no_recipient.rb +233 -0
  1002. data/lib/opsgenie_sdk/models/node_ping_integration.rb +287 -0
  1003. data/lib/opsgenie_sdk/models/notification_action_type.rb +37 -0
  1004. data/lib/opsgenie_sdk/models/notification_policy.rb +343 -0
  1005. data/lib/opsgenie_sdk/models/notification_repeat.rb +209 -0
  1006. data/lib/opsgenie_sdk/models/notification_rule.rb +280 -0
  1007. data/lib/opsgenie_sdk/models/notification_rule_meta.rb +220 -0
  1008. data/lib/opsgenie_sdk/models/notification_rule_step.rb +220 -0
  1009. data/lib/opsgenie_sdk/models/notification_rule_step_parent.rb +193 -0
  1010. data/lib/opsgenie_sdk/models/notify_time.rb +32 -0
  1011. data/lib/opsgenie_sdk/models/observium_integration.rb +287 -0
  1012. data/lib/opsgenie_sdk/models/observium_v2_integration.rb +287 -0
  1013. data/lib/opsgenie_sdk/models/oec_callback.rb +247 -0
  1014. data/lib/opsgenie_sdk/models/oec_integration.rb +484 -0
  1015. data/lib/opsgenie_sdk/models/oem_email_integration.rb +287 -0
  1016. data/lib/opsgenie_sdk/models/oem_integration.rb +287 -0
  1017. data/lib/opsgenie_sdk/models/on_call.rb +206 -0
  1018. data/lib/opsgenie_sdk/models/op5_callback.rb +315 -0
  1019. data/lib/opsgenie_sdk/models/op5_integration.rb +484 -0
  1020. data/lib/opsgenie_sdk/models/ops_dash_integration.rb +287 -0
  1021. data/lib/opsgenie_sdk/models/ops_genie_callback.rb +297 -0
  1022. data/lib/opsgenie_sdk/models/ops_genie_integration.rb +484 -0
  1023. data/lib/opsgenie_sdk/models/opsview_integration.rb +287 -0
  1024. data/lib/opsgenie_sdk/models/outgoing_callback.rb +238 -0
  1025. data/lib/opsgenie_sdk/models/outgoing_callback_new.rb +247 -0
  1026. data/lib/opsgenie_sdk/models/page_details.rb +211 -0
  1027. data/lib/opsgenie_sdk/models/pager_duty_compatibility_integration.rb +287 -0
  1028. data/lib/opsgenie_sdk/models/panopta_integration.rb +287 -0
  1029. data/lib/opsgenie_sdk/models/papertrail_integration.rb +287 -0
  1030. data/lib/opsgenie_sdk/models/participant.rb +242 -0
  1031. data/lib/opsgenie_sdk/models/pingdom_integration.rb +287 -0
  1032. data/lib/opsgenie_sdk/models/pingdom_v2_integration.rb +287 -0
  1033. data/lib/opsgenie_sdk/models/pingdom_webhook_integration.rb +287 -0
  1034. data/lib/opsgenie_sdk/models/pingometer_integration.rb +287 -0
  1035. data/lib/opsgenie_sdk/models/planio_callback.rb +265 -0
  1036. data/lib/opsgenie_sdk/models/planio_integration.rb +287 -0
  1037. data/lib/opsgenie_sdk/models/policy.rb +293 -0
  1038. data/lib/opsgenie_sdk/models/policy_meta.rb +254 -0
  1039. data/lib/opsgenie_sdk/models/prometheus_integration.rb +287 -0
  1040. data/lib/opsgenie_sdk/models/prtg_callback.rb +315 -0
  1041. data/lib/opsgenie_sdk/models/prtg_integration.rb +484 -0
  1042. data/lib/opsgenie_sdk/models/rackspace_integration.rb +287 -0
  1043. data/lib/opsgenie_sdk/models/raygun_integration.rb +287 -0
  1044. data/lib/opsgenie_sdk/models/recipient.rb +232 -0
  1045. data/lib/opsgenie_sdk/models/red_gate_sql_monitor_email_integration.rb +287 -0
  1046. data/lib/opsgenie_sdk/models/responder.rb +237 -0
  1047. data/lib/opsgenie_sdk/models/riemann_integration.rb +287 -0
  1048. data/lib/opsgenie_sdk/models/rigor_integration.rb +287 -0
  1049. data/lib/opsgenie_sdk/models/ring_central_email_integration.rb +287 -0
  1050. data/lib/opsgenie_sdk/models/ring_central_glip_callback.rb +306 -0
  1051. data/lib/opsgenie_sdk/models/ring_central_glip_integration.rb +287 -0
  1052. data/lib/opsgenie_sdk/models/rollbar_callback.rb +297 -0
  1053. data/lib/opsgenie_sdk/models/rollbar_integration.rb +484 -0
  1054. data/lib/opsgenie_sdk/models/runscope_integration.rb +287 -0
  1055. data/lib/opsgenie_sdk/models/sales_force_service_cloud_callback.rb +333 -0
  1056. data/lib/opsgenie_sdk/models/sales_force_service_cloud_integration.rb +484 -0
  1057. data/lib/opsgenie_sdk/models/salt_stack_integration.rb +287 -0
  1058. data/lib/opsgenie_sdk/models/saved_search.rb +249 -0
  1059. data/lib/opsgenie_sdk/models/saved_search_entity.rb +184 -0
  1060. data/lib/opsgenie_sdk/models/saved_search_meta.rb +193 -0
  1061. data/lib/opsgenie_sdk/models/scalyr_integration.rb +287 -0
  1062. data/lib/opsgenie_sdk/models/schedule.rb +240 -0
  1063. data/lib/opsgenie_sdk/models/schedule_meta.rb +202 -0
  1064. data/lib/opsgenie_sdk/models/schedule_override.rb +231 -0
  1065. data/lib/opsgenie_sdk/models/schedule_override_meta.rb +184 -0
  1066. data/lib/opsgenie_sdk/models/schedule_override_rotation.rb +193 -0
  1067. data/lib/opsgenie_sdk/models/schedule_recipient.rb +242 -0
  1068. data/lib/opsgenie_sdk/models/schedule_rotation.rb +283 -0
  1069. data/lib/opsgenie_sdk/models/schedule_rotation_with_parent.rb +292 -0
  1070. data/lib/opsgenie_sdk/models/schedule_timeline.rb +238 -0
  1071. data/lib/opsgenie_sdk/models/scom_integration.rb +287 -0
  1072. data/lib/opsgenie_sdk/models/scout_integration.rb +287 -0
  1073. data/lib/opsgenie_sdk/models/sematext_spm_integration.rb +287 -0
  1074. data/lib/opsgenie_sdk/models/sensu_integration.rb +287 -0
  1075. data/lib/opsgenie_sdk/models/sentry_integration.rb +287 -0
  1076. data/lib/opsgenie_sdk/models/server_density_integration.rb +287 -0
  1077. data/lib/opsgenie_sdk/models/server_guard24_integration.rb +287 -0
  1078. data/lib/opsgenie_sdk/models/service.rb +274 -0
  1079. data/lib/opsgenie_sdk/models/service_incident_condition.rb +281 -0
  1080. data/lib/opsgenie_sdk/models/service_incident_properties.rb +287 -0
  1081. data/lib/opsgenie_sdk/models/service_incident_rule.rb +265 -0
  1082. data/lib/opsgenie_sdk/models/service_incident_stakeholder_properties.rb +210 -0
  1083. data/lib/opsgenie_sdk/models/service_now_integration.rb +287 -0
  1084. data/lib/opsgenie_sdk/models/service_now_v2_callback.rb +315 -0
  1085. data/lib/opsgenie_sdk/models/service_now_v2_integration.rb +484 -0
  1086. data/lib/opsgenie_sdk/models/service_now_v3_callback.rb +315 -0
  1087. data/lib/opsgenie_sdk/models/service_now_v3_integration.rb +484 -0
  1088. data/lib/opsgenie_sdk/models/signal_fxv2_integration.rb +287 -0
  1089. data/lib/opsgenie_sdk/models/signal_sciences_integration.rb +287 -0
  1090. data/lib/opsgenie_sdk/models/signalfx_integration.rb +287 -0
  1091. data/lib/opsgenie_sdk/models/site24x7_integration.rb +287 -0
  1092. data/lib/opsgenie_sdk/models/slack_app_callback.rb +313 -0
  1093. data/lib/opsgenie_sdk/models/slack_app_integration.rb +627 -0
  1094. data/lib/opsgenie_sdk/models/slack_callback.rb +277 -0
  1095. data/lib/opsgenie_sdk/models/slack_integration.rb +484 -0
  1096. data/lib/opsgenie_sdk/models/snooze_alert_payload.rb +220 -0
  1097. data/lib/opsgenie_sdk/models/soasta_integration.rb +287 -0
  1098. data/lib/opsgenie_sdk/models/solar_winds_web_help_desk_callback.rb +286 -0
  1099. data/lib/opsgenie_sdk/models/solar_winds_web_help_desk_integration.rb +484 -0
  1100. data/lib/opsgenie_sdk/models/solarwinds_callback.rb +286 -0
  1101. data/lib/opsgenie_sdk/models/solarwinds_integration.rb +484 -0
  1102. data/lib/opsgenie_sdk/models/solarwinds_msp_ncentral_callback.rb +315 -0
  1103. data/lib/opsgenie_sdk/models/solarwinds_mspn_central_integration.rb +484 -0
  1104. data/lib/opsgenie_sdk/models/splunk_callback.rb +306 -0
  1105. data/lib/opsgenie_sdk/models/splunk_integration.rb +484 -0
  1106. data/lib/opsgenie_sdk/models/splunk_itsi_callback.rb +315 -0
  1107. data/lib/opsgenie_sdk/models/splunk_itsi_integration.rb +484 -0
  1108. data/lib/opsgenie_sdk/models/stack_storm_integration.rb +287 -0
  1109. data/lib/opsgenie_sdk/models/stackdriver_callback.rb +277 -0
  1110. data/lib/opsgenie_sdk/models/stackdriver_integration.rb +484 -0
  1111. data/lib/opsgenie_sdk/models/status_cake_integration.rb +287 -0
  1112. data/lib/opsgenie_sdk/models/status_hub_integration.rb +287 -0
  1113. data/lib/opsgenie_sdk/models/status_io_callback.rb +295 -0
  1114. data/lib/opsgenie_sdk/models/status_io_integration.rb +484 -0
  1115. data/lib/opsgenie_sdk/models/status_page_entry.rb +195 -0
  1116. data/lib/opsgenie_sdk/models/status_page_io_callback.rb +306 -0
  1117. data/lib/opsgenie_sdk/models/status_page_io_integration.rb +484 -0
  1118. data/lib/opsgenie_sdk/models/statusy_callback.rb +306 -0
  1119. data/lib/opsgenie_sdk/models/statusy_integration.rb +287 -0
  1120. data/lib/opsgenie_sdk/models/struxure_ware_integration.rb +287 -0
  1121. data/lib/opsgenie_sdk/models/success_data.rb +193 -0
  1122. data/lib/opsgenie_sdk/models/success_response.rb +223 -0
  1123. data/lib/opsgenie_sdk/models/sumo_logic_callback.rb +297 -0
  1124. data/lib/opsgenie_sdk/models/sumo_logic_integration.rb +484 -0
  1125. data/lib/opsgenie_sdk/models/sysdig_cloud_integration.rb +287 -0
  1126. data/lib/opsgenie_sdk/models/team.rb +213 -0
  1127. data/lib/opsgenie_sdk/models/team_log.rb +195 -0
  1128. data/lib/opsgenie_sdk/models/team_log_details.rb +202 -0
  1129. data/lib/opsgenie_sdk/models/team_member.rb +196 -0
  1130. data/lib/opsgenie_sdk/models/team_meta.rb +193 -0
  1131. data/lib/opsgenie_sdk/models/team_recipient.rb +242 -0
  1132. data/lib/opsgenie_sdk/models/team_responder.rb +247 -0
  1133. data/lib/opsgenie_sdk/models/team_right.rb +198 -0
  1134. data/lib/opsgenie_sdk/models/team_role.rb +204 -0
  1135. data/lib/opsgenie_sdk/models/team_routing_rule.rb +247 -0
  1136. data/lib/opsgenie_sdk/models/thousand_eyes_integration.rb +287 -0
  1137. data/lib/opsgenie_sdk/models/threat_stack_integration.rb +287 -0
  1138. data/lib/opsgenie_sdk/models/thundra_integration.rb +287 -0
  1139. data/lib/opsgenie_sdk/models/tideways_integration.rb +287 -0
  1140. data/lib/opsgenie_sdk/models/time_of_day_restriction.rb +211 -0
  1141. data/lib/opsgenie_sdk/models/time_of_day_restriction_interval.rb +233 -0
  1142. data/lib/opsgenie_sdk/models/time_restriction_interval.rb +223 -0
  1143. data/lib/opsgenie_sdk/models/timeline.rb +186 -0
  1144. data/lib/opsgenie_sdk/models/timeline_period.rb +233 -0
  1145. data/lib/opsgenie_sdk/models/timeline_recipient.rb +212 -0
  1146. data/lib/opsgenie_sdk/models/timeline_rotation.rb +213 -0
  1147. data/lib/opsgenie_sdk/models/token_based_incoming_feature.rb +394 -0
  1148. data/lib/opsgenie_sdk/models/trace_integration.rb +287 -0
  1149. data/lib/opsgenie_sdk/models/track_it_callback.rb +286 -0
  1150. data/lib/opsgenie_sdk/models/track_it_integration.rb +484 -0
  1151. data/lib/opsgenie_sdk/models/travis_ci_integration.rb +287 -0
  1152. data/lib/opsgenie_sdk/models/twilio_integration.rb +287 -0
  1153. data/lib/opsgenie_sdk/models/un_acknowledge_alert_payload.rb +205 -0
  1154. data/lib/opsgenie_sdk/models/update_alert_description_payload.rb +190 -0
  1155. data/lib/opsgenie_sdk/models/update_alert_message_payload.rb +190 -0
  1156. data/lib/opsgenie_sdk/models/update_alert_priority_payload.rb +224 -0
  1157. data/lib/opsgenie_sdk/models/update_contact_payload.rb +190 -0
  1158. data/lib/opsgenie_sdk/models/update_custom_user_role_payload.rb +219 -0
  1159. data/lib/opsgenie_sdk/models/update_escalation_payload.rb +227 -0
  1160. data/lib/opsgenie_sdk/models/update_forwarding_rule_payload.rb +235 -0
  1161. data/lib/opsgenie_sdk/models/update_heartbeat_payload.rb +279 -0
  1162. data/lib/opsgenie_sdk/models/update_heartbeat_response.rb +214 -0
  1163. data/lib/opsgenie_sdk/models/update_integration_actions_response.rb +214 -0
  1164. data/lib/opsgenie_sdk/models/update_integration_response.rb +214 -0
  1165. data/lib/opsgenie_sdk/models/update_maintenance_payload.rb +217 -0
  1166. data/lib/opsgenie_sdk/models/update_maintenance_response.rb +214 -0
  1167. data/lib/opsgenie_sdk/models/update_notification_rule_payload.rb +285 -0
  1168. data/lib/opsgenie_sdk/models/update_notification_rule_response.rb +214 -0
  1169. data/lib/opsgenie_sdk/models/update_notification_rule_step_payload.rb +205 -0
  1170. data/lib/opsgenie_sdk/models/update_saved_search_payload.rb +291 -0
  1171. data/lib/opsgenie_sdk/models/update_schedule_override_payload.rb +232 -0
  1172. data/lib/opsgenie_sdk/models/update_schedule_override_response.rb +214 -0
  1173. data/lib/opsgenie_sdk/models/update_schedule_payload.rb +236 -0
  1174. data/lib/opsgenie_sdk/models/update_schedule_response.rb +214 -0
  1175. data/lib/opsgenie_sdk/models/update_schedule_rotation_payload.rb +281 -0
  1176. data/lib/opsgenie_sdk/models/update_team_payload.rb +206 -0
  1177. data/lib/opsgenie_sdk/models/update_team_role_payload.rb +197 -0
  1178. data/lib/opsgenie_sdk/models/update_team_routing_rule_payload.rb +222 -0
  1179. data/lib/opsgenie_sdk/models/update_user_payload.rb +309 -0
  1180. data/lib/opsgenie_sdk/models/updown_io_integration.rb +287 -0
  1181. data/lib/opsgenie_sdk/models/uptime_robot_email_integration.rb +287 -0
  1182. data/lib/opsgenie_sdk/models/uptime_robot_integration.rb +287 -0
  1183. data/lib/opsgenie_sdk/models/uptime_webhook_integration.rb +287 -0
  1184. data/lib/opsgenie_sdk/models/uptrends_email_integration.rb +287 -0
  1185. data/lib/opsgenie_sdk/models/user.rb +323 -0
  1186. data/lib/opsgenie_sdk/models/user_address.rb +220 -0
  1187. data/lib/opsgenie_sdk/models/user_contact.rb +254 -0
  1188. data/lib/opsgenie_sdk/models/user_meta.rb +193 -0
  1189. data/lib/opsgenie_sdk/models/user_recipient.rb +242 -0
  1190. data/lib/opsgenie_sdk/models/user_responder.rb +238 -0
  1191. data/lib/opsgenie_sdk/models/user_role.rb +193 -0
  1192. data/lib/opsgenie_sdk/models/v_center_integration.rb +287 -0
  1193. data/lib/opsgenie_sdk/models/vcsa_integration.rb +287 -0
  1194. data/lib/opsgenie_sdk/models/vivid_cortex_integration.rb +287 -0
  1195. data/lib/opsgenie_sdk/models/wavefront_integration.rb +287 -0
  1196. data/lib/opsgenie_sdk/models/webhook_callback.rb +306 -0
  1197. data/lib/opsgenie_sdk/models/webhook_integration.rb +287 -0
  1198. data/lib/opsgenie_sdk/models/weekday_time_restriction.rb +275 -0
  1199. data/lib/opsgenie_sdk/models/weekday_time_restriction_interval.rb +235 -0
  1200. data/lib/opsgenie_sdk/models/whats_up_gold_integration.rb +287 -0
  1201. data/lib/opsgenie_sdk/models/workato_integration.rb +287 -0
  1202. data/lib/opsgenie_sdk/models/x_pack_alerting_callback.rb +286 -0
  1203. data/lib/opsgenie_sdk/models/x_pack_alerting_integration.rb +484 -0
  1204. data/lib/opsgenie_sdk/models/xl_release_integration.rb +287 -0
  1205. data/lib/opsgenie_sdk/models/xmpp_callback.rb +286 -0
  1206. data/lib/opsgenie_sdk/models/xmpp_integration.rb +484 -0
  1207. data/lib/opsgenie_sdk/models/zabbix_callback.rb +286 -0
  1208. data/lib/opsgenie_sdk/models/zabbix_integration.rb +484 -0
  1209. data/lib/opsgenie_sdk/models/zapier_integration.rb +287 -0
  1210. data/lib/opsgenie_sdk/models/zendesk_callback.rb +315 -0
  1211. data/lib/opsgenie_sdk/models/zendesk_integration.rb +484 -0
  1212. data/lib/opsgenie_sdk/models/zenoss_callback.rb +286 -0
  1213. data/lib/opsgenie_sdk/models/zenoss_integration.rb +484 -0
  1214. data/lib/opsgenie_sdk/models/zyrion_integration.rb +287 -0
  1215. data/lib/opsgenie_sdk/version.rb +15 -0
  1216. data/opsgenie_sdk.gemspec +45 -0
  1217. data/spec/api/account_api_spec.rb +46 -0
  1218. data/spec/api/alert_api_spec.rb +532 -0
  1219. data/spec/api/contact_api_spec.rb +126 -0
  1220. data/spec/api/custom_user_role_api_spec.rb +98 -0
  1221. data/spec/api/deprecated_policy_api_spec.rb +132 -0
  1222. data/spec/api/escalation_api_spec.rb +98 -0
  1223. data/spec/api/forwarding_rule_api_spec.rb +98 -0
  1224. data/spec/api/heartbeat_api_spec.rb +131 -0
  1225. data/spec/api/incident_api_spec.rb +115 -0
  1226. data/spec/api/integration_action_api_spec.rb +73 -0
  1227. data/spec/api/integration_api_spec.rb +134 -0
  1228. data/spec/api/maintenance_api_spec.rb +108 -0
  1229. data/spec/api/notification_rule_api_spec.rb +140 -0
  1230. data/spec/api/notification_rule_step_api_spec.rb +133 -0
  1231. data/spec/api/policy_api_spec.rb +152 -0
  1232. data/spec/api/schedule_api_spec.rb +129 -0
  1233. data/spec/api/schedule_override_api_spec.rb +105 -0
  1234. data/spec/api/schedule_rotation_api_spec.rb +105 -0
  1235. data/spec/api/team_api_spec.rb +113 -0
  1236. data/spec/api/team_member_api_spec.rb +63 -0
  1237. data/spec/api/team_role_api_spec.rb +108 -0
  1238. data/spec/api/team_routing_rule_api_spec.rb +120 -0
  1239. data/spec/api/user_api_spec.rb +149 -0
  1240. data/spec/api/who_is_on_call_api_spec.rb +90 -0
  1241. data/spec/api_client_spec.rb +243 -0
  1242. data/spec/configuration_spec.rb +42 -0
  1243. data/spec/models/account_info_spec.rb +53 -0
  1244. data/spec/models/account_plan_spec.rb +53 -0
  1245. data/spec/models/ack_integration_action_spec.rb +81 -0
  1246. data/spec/models/acknowledge_alert_payload_spec.rb +53 -0
  1247. data/spec/models/action_categorized_spec.rb +71 -0
  1248. data/spec/models/action_mapping_spec.rb +67 -0
  1249. data/spec/models/add_details_to_alert_payload_spec.rb +59 -0
  1250. data/spec/models/add_note_integration_action_spec.rb +81 -0
  1251. data/spec/models/add_note_to_alert_payload_spec.rb +53 -0
  1252. data/spec/models/add_responder_to_alert_payload_spec.rb +59 -0
  1253. data/spec/models/add_tags_to_alert_payload_spec.rb +59 -0
  1254. data/spec/models/add_team_member_payload_spec.rb +47 -0
  1255. data/spec/models/add_team_to_alert_payload_spec.rb +59 -0
  1256. data/spec/models/airbrake_integration_spec.rb +81 -0
  1257. data/spec/models/alert_action_payload_spec.rb +53 -0
  1258. data/spec/models/alert_attachment_meta_spec.rb +47 -0
  1259. data/spec/models/alert_attachment_spec.rb +47 -0
  1260. data/spec/models/alert_filter_spec.rb +51 -0
  1261. data/spec/models/alert_integration_spec.rb +53 -0
  1262. data/spec/models/alert_log_spec.rb +65 -0
  1263. data/spec/models/alert_logic_integration_spec.rb +81 -0
  1264. data/spec/models/alert_note_spec.rb +59 -0
  1265. data/spec/models/alert_paging_spec.rb +47 -0
  1266. data/spec/models/alert_policy_spec.rb +187 -0
  1267. data/spec/models/alert_recipient_spec.rb +65 -0
  1268. data/spec/models/alert_report_spec.rb +59 -0
  1269. data/spec/models/alert_request_status_spec.rb +77 -0
  1270. data/spec/models/alert_site_integration_spec.rb +81 -0
  1271. data/spec/models/alert_spec.rb +179 -0
  1272. data/spec/models/alert_team_meta_spec.rb +41 -0
  1273. data/spec/models/alert_user_meta_spec.rb +47 -0
  1274. data/spec/models/all_recipient_spec.rb +51 -0
  1275. data/spec/models/amazon_cloud_trail_integration_spec.rb +81 -0
  1276. data/spec/models/amazon_ec2_auto_scaling_integration_spec.rb +81 -0
  1277. data/spec/models/amazon_rds_integration_spec.rb +81 -0
  1278. data/spec/models/amazon_route53_health_check_integration_spec.rb +81 -0
  1279. data/spec/models/amazon_security_hub_integration_spec.rb +81 -0
  1280. data/spec/models/amazon_ses_integration_spec.rb +81 -0
  1281. data/spec/models/amazon_sns_callback_spec.rb +81 -0
  1282. data/spec/models/amazon_sns_integration_spec.rb +81 -0
  1283. data/spec/models/amazon_sns_outgoing_integration_spec.rb +81 -0
  1284. data/spec/models/api_integration_spec.rb +205 -0
  1285. data/spec/models/apica_integration_spec.rb +81 -0
  1286. data/spec/models/apimetrics_integration_spec.rb +81 -0
  1287. data/spec/models/app_dynamics_integration_spec.rb +81 -0
  1288. data/spec/models/app_optics_integration_spec.rb +81 -0
  1289. data/spec/models/app_signal_integration_spec.rb +81 -0
  1290. data/spec/models/app_signal_v2_integration_spec.rb +81 -0
  1291. data/spec/models/assign_alert_payload_spec.rb +59 -0
  1292. data/spec/models/atatus_integration_spec.rb +81 -0
  1293. data/spec/models/atlassian_bamboo_integration_spec.rb +81 -0
  1294. data/spec/models/authenticate_integration_payload_spec.rb +45 -0
  1295. data/spec/models/auto_close_action_spec.rb +41 -0
  1296. data/spec/models/auto_restart_action_spec.rb +47 -0
  1297. data/spec/models/auto_task_email_integration_spec.rb +81 -0
  1298. data/spec/models/autotask_aem_email_integration_spec.rb +81 -0
  1299. data/spec/models/azure_auto_scale_integration_spec.rb +81 -0
  1300. data/spec/models/azure_integration_spec.rb +81 -0
  1301. data/spec/models/azure_oms_integration_spec.rb +81 -0
  1302. data/spec/models/azure_resource_health_integration_spec.rb +81 -0
  1303. data/spec/models/azure_service_health_integration_spec.rb +81 -0
  1304. data/spec/models/base_alert_spec.rb +155 -0
  1305. data/spec/models/base_incident_spec.rb +119 -0
  1306. data/spec/models/base_incoming_feature_spec.rb +129 -0
  1307. data/spec/models/base_integration_action_spec.rb +63 -0
  1308. data/spec/models/base_response_spec.rb +47 -0
  1309. data/spec/models/base_response_with_expandable_spec.rb +53 -0
  1310. data/spec/models/base_webhook_callback_spec.rb +97 -0
  1311. data/spec/models/bidirectional_callback_new_spec.rb +85 -0
  1312. data/spec/models/bidirectional_callback_spec.rb +73 -0
  1313. data/spec/models/big_panda_integration_spec.rb +81 -0
  1314. data/spec/models/bitbucket_integration_spec.rb +81 -0
  1315. data/spec/models/blue_matador_integration_spec.rb +81 -0
  1316. data/spec/models/bmc_foot_prints_v11_callback_spec.rb +115 -0
  1317. data/spec/models/bmc_foot_prints_v11_integration_spec.rb +199 -0
  1318. data/spec/models/bmc_foot_prints_v12_callback_spec.rb +109 -0
  1319. data/spec/models/bmc_foot_prints_v12_integration_spec.rb +199 -0
  1320. data/spec/models/bmc_remedy_callback_spec.rb +109 -0
  1321. data/spec/models/bmc_remedy_force_integration_spec.rb +81 -0
  1322. data/spec/models/bmc_remedy_integration_spec.rb +199 -0
  1323. data/spec/models/bmc_remedy_on_demand_callback_spec.rb +93 -0
  1324. data/spec/models/bmc_remedy_on_demand_integration_spec.rb +81 -0
  1325. data/spec/models/boundary_integration_spec.rb +81 -0
  1326. data/spec/models/callback_condition_spec.rb +73 -0
  1327. data/spec/models/campfire_callback_spec.rb +81 -0
  1328. data/spec/models/campfire_integration_spec.rb +81 -0
  1329. data/spec/models/catchpoint_integration_spec.rb +81 -0
  1330. data/spec/models/change_notification_rule_order_payload_spec.rb +41 -0
  1331. data/spec/models/change_policy_order_payload_spec.rb +41 -0
  1332. data/spec/models/change_team_routing_rule_order_payload_spec.rb +41 -0
  1333. data/spec/models/check_mk_integration_spec.rb +81 -0
  1334. data/spec/models/cherwell_callback_spec.rb +109 -0
  1335. data/spec/models/cherwell_integration_spec.rb +199 -0
  1336. data/spec/models/circle_ci_integration_spec.rb +81 -0
  1337. data/spec/models/circonus_callback_spec.rb +91 -0
  1338. data/spec/models/circonus_integration_spec.rb +199 -0
  1339. data/spec/models/close_alert_payload_spec.rb +53 -0
  1340. data/spec/models/close_incident_payload_spec.rb +41 -0
  1341. data/spec/models/close_integration_action_spec.rb +81 -0
  1342. data/spec/models/cloud_monix_integration_spec.rb +81 -0
  1343. data/spec/models/cloud_sploit_integration_spec.rb +81 -0
  1344. data/spec/models/cloud_watch_events_integration_spec.rb +81 -0
  1345. data/spec/models/cloud_watch_integration_spec.rb +81 -0
  1346. data/spec/models/codeship_integration_spec.rb +81 -0
  1347. data/spec/models/common_integration_action_spec.rb +81 -0
  1348. data/spec/models/compose_integration_spec.rb +81 -0
  1349. data/spec/models/condition_spec.rb +79 -0
  1350. data/spec/models/connect_wise_automate_integration_spec.rb +81 -0
  1351. data/spec/models/connect_wise_callback_spec.rb +79 -0
  1352. data/spec/models/connect_wise_integration_spec.rb +199 -0
  1353. data/spec/models/connect_wise_manage_callback_spec.rb +121 -0
  1354. data/spec/models/connect_wise_manage_integration_spec.rb +199 -0
  1355. data/spec/models/connect_wise_manage_v2_callback_spec.rb +133 -0
  1356. data/spec/models/connect_wise_manage_v2_integration_spec.rb +199 -0
  1357. data/spec/models/consul_integration_spec.rb +81 -0
  1358. data/spec/models/contact_meta_spec.rb +51 -0
  1359. data/spec/models/contact_spec.rb +59 -0
  1360. data/spec/models/contact_status_spec.rb +47 -0
  1361. data/spec/models/contact_with_apply_order_spec.rb +65 -0
  1362. data/spec/models/copper_egg_integration_spec.rb +81 -0
  1363. data/spec/models/crashlytics_integration_spec.rb +81 -0
  1364. data/spec/models/create_alert_payload_spec.rb +117 -0
  1365. data/spec/models/create_contact_payload_spec.rb +51 -0
  1366. data/spec/models/create_custom_user_role_payload_spec.rb +59 -0
  1367. data/spec/models/create_escalation_payload_spec.rb +65 -0
  1368. data/spec/models/create_forwarding_rule_payload_spec.rb +65 -0
  1369. data/spec/models/create_forwarding_rule_response_spec.rb +53 -0
  1370. data/spec/models/create_heartbeat_payload_spec.rb +35 -0
  1371. data/spec/models/create_heartbeat_response_spec.rb +53 -0
  1372. data/spec/models/create_incident_payload_spec.rb +99 -0
  1373. data/spec/models/create_integration_action_spec.rb +193 -0
  1374. data/spec/models/create_integration_actions_response_spec.rb +53 -0
  1375. data/spec/models/create_integration_response_spec.rb +53 -0
  1376. data/spec/models/create_maintenance_payload_spec.rb +53 -0
  1377. data/spec/models/create_maintenance_response_spec.rb +53 -0
  1378. data/spec/models/create_notification_rule_payload_spec.rb +95 -0
  1379. data/spec/models/create_notification_rule_response_spec.rb +53 -0
  1380. data/spec/models/create_notification_rule_step_payload_spec.rb +53 -0
  1381. data/spec/models/create_policy_response_spec.rb +53 -0
  1382. data/spec/models/create_saved_search_payload_spec.rb +65 -0
  1383. data/spec/models/create_saved_search_response_spec.rb +53 -0
  1384. data/spec/models/create_schedule_override_payload_spec.rb +65 -0
  1385. data/spec/models/create_schedule_override_response_spec.rb +53 -0
  1386. data/spec/models/create_schedule_payload_spec.rb +71 -0
  1387. data/spec/models/create_schedule_response_spec.rb +53 -0
  1388. data/spec/models/create_schedule_rotation_payload_spec.rb +81 -0
  1389. data/spec/models/create_team_payload_spec.rb +53 -0
  1390. data/spec/models/create_team_role_payload_spec.rb +47 -0
  1391. data/spec/models/create_team_routing_rule_payload_spec.rb +71 -0
  1392. data/spec/models/create_user_payload_spec.rb +95 -0
  1393. data/spec/models/custom_user_role_spec.rb +65 -0
  1394. data/spec/models/datadog_callback_spec.rb +97 -0
  1395. data/spec/models/datadog_integration_spec.rb +199 -0
  1396. data/spec/models/dataloop_io_integration_spec.rb +81 -0
  1397. data/spec/models/deduplication_action_spec.rb +57 -0
  1398. data/spec/models/delay_action_spec.rb +63 -0
  1399. data/spec/models/deprecated_alert_policy_meta_spec.rb +69 -0
  1400. data/spec/models/deprecated_alert_policy_spec.rb +81 -0
  1401. data/spec/models/deprecated_auto_close_alert_policy_spec.rb +87 -0
  1402. data/spec/models/deprecated_auto_restart_notifications_alert_policy_spec.rb +93 -0
  1403. data/spec/models/deprecated_change_alert_policy_order_payload_spec.rb +41 -0
  1404. data/spec/models/deprecated_create_alert_policy_response_spec.rb +53 -0
  1405. data/spec/models/deprecated_get_alert_policy_response_spec.rb +53 -0
  1406. data/spec/models/deprecated_list_alert_policies_response_spec.rb +53 -0
  1407. data/spec/models/deprecated_modify_alert_policy_spec.rb +181 -0
  1408. data/spec/models/deprecated_notification_deduplication_alert_policy_spec.rb +103 -0
  1409. data/spec/models/deprecated_notification_delay_alert_policy_spec.rb +109 -0
  1410. data/spec/models/deprecated_notification_renotify_alert_policy_spec.rb +81 -0
  1411. data/spec/models/deprecated_notification_suppress_alert_policy_spec.rb +81 -0
  1412. data/spec/models/desk_callback_spec.rb +103 -0
  1413. data/spec/models/desk_integration_spec.rb +199 -0
  1414. data/spec/models/detectify_integration_spec.rb +81 -0
  1415. data/spec/models/disable_heartbeat_response_spec.rb +53 -0
  1416. data/spec/models/disable_integration_response_spec.rb +53 -0
  1417. data/spec/models/dns_check_integration_spec.rb +81 -0
  1418. data/spec/models/drip_stat_integration_spec.rb +81 -0
  1419. data/spec/models/duration_spec.rb +51 -0
  1420. data/spec/models/dynatrace_app_mon_callback_spec.rb +109 -0
  1421. data/spec/models/dynatrace_app_mon_integration_spec.rb +199 -0
  1422. data/spec/models/dynatrace_integration_spec.rb +81 -0
  1423. data/spec/models/dynatrace_v2_integration_spec.rb +81 -0
  1424. data/spec/models/email_based_incoming_feature_spec.rb +141 -0
  1425. data/spec/models/email_integration_spec.rb +81 -0
  1426. data/spec/models/enable_heartbeat_response_spec.rb +53 -0
  1427. data/spec/models/enable_integration_response_spec.rb +53 -0
  1428. data/spec/models/error_response_spec.rb +65 -0
  1429. data/spec/models/errorception_integration_spec.rb +81 -0
  1430. data/spec/models/escalate_alert_to_next_payload_spec.rb +59 -0
  1431. data/spec/models/escalation_recipient_spec.rb +57 -0
  1432. data/spec/models/escalation_repeat_spec.rb +59 -0
  1433. data/spec/models/escalation_rule_spec.rb +67 -0
  1434. data/spec/models/escalation_spec.rb +71 -0
  1435. data/spec/models/evident_io_integration_spec.rb +81 -0
  1436. data/spec/models/execute_custom_alert_action_payload_spec.rb +53 -0
  1437. data/spec/models/filter_spec.rb +45 -0
  1438. data/spec/models/flock_callback_spec.rb +97 -0
  1439. data/spec/models/flock_integration_spec.rb +81 -0
  1440. data/spec/models/flowdock_callback_spec.rb +75 -0
  1441. data/spec/models/flowdock_integration_spec.rb +81 -0
  1442. data/spec/models/flowdock_v2_callback_spec.rb +63 -0
  1443. data/spec/models/flowdock_v2_integration_spec.rb +81 -0
  1444. data/spec/models/forwarding_rule_meta_spec.rb +47 -0
  1445. data/spec/models/forwarding_rule_spec.rb +71 -0
  1446. data/spec/models/freshdesk_callback_spec.rb +97 -0
  1447. data/spec/models/freshdesk_integration_spec.rb +199 -0
  1448. data/spec/models/freshservice_callback_spec.rb +103 -0
  1449. data/spec/models/freshservice_integration_spec.rb +199 -0
  1450. data/spec/models/get_account_info_response_spec.rb +53 -0
  1451. data/spec/models/get_alert_attachment_response_spec.rb +53 -0
  1452. data/spec/models/get_alert_response_spec.rb +53 -0
  1453. data/spec/models/get_contact_response_spec.rb +53 -0
  1454. data/spec/models/get_count_alerts_response_data_spec.rb +41 -0
  1455. data/spec/models/get_count_alerts_response_spec.rb +53 -0
  1456. data/spec/models/get_custom_user_role_response_spec.rb +53 -0
  1457. data/spec/models/get_escalation_response_spec.rb +53 -0
  1458. data/spec/models/get_forwarding_rule_response_spec.rb +53 -0
  1459. data/spec/models/get_heartbeat_response_spec.rb +53 -0
  1460. data/spec/models/get_incident_request_status_response_spec.rb +53 -0
  1461. data/spec/models/get_incident_response_spec.rb +53 -0
  1462. data/spec/models/get_integration_response_spec.rb +53 -0
  1463. data/spec/models/get_maintenance_response_spec.rb +53 -0
  1464. data/spec/models/get_next_on_call_response_spec.rb +53 -0
  1465. data/spec/models/get_notification_rule_response_spec.rb +53 -0
  1466. data/spec/models/get_notification_rule_step_response_spec.rb +53 -0
  1467. data/spec/models/get_on_call_response_spec.rb +53 -0
  1468. data/spec/models/get_policy_response_spec.rb +53 -0
  1469. data/spec/models/get_request_status_response_spec.rb +53 -0
  1470. data/spec/models/get_saved_search_response_spec.rb +53 -0
  1471. data/spec/models/get_schedule_override_response_spec.rb +53 -0
  1472. data/spec/models/get_schedule_response_spec.rb +53 -0
  1473. data/spec/models/get_schedule_rotation_response_spec.rb +53 -0
  1474. data/spec/models/get_schedule_timeline_response_spec.rb +59 -0
  1475. data/spec/models/get_team_response_spec.rb +53 -0
  1476. data/spec/models/get_team_role_response_spec.rb +53 -0
  1477. data/spec/models/get_team_routing_rule_response_spec.rb +53 -0
  1478. data/spec/models/get_user_response_spec.rb +59 -0
  1479. data/spec/models/ghost_inspector_integration_spec.rb +81 -0
  1480. data/spec/models/git_hub_integration_spec.rb +81 -0
  1481. data/spec/models/git_lab_integration_spec.rb +81 -0
  1482. data/spec/models/google_stack_driver_integration_spec.rb +81 -0
  1483. data/spec/models/grafana_integration_spec.rb +81 -0
  1484. data/spec/models/grafana_v2_integration_spec.rb +81 -0
  1485. data/spec/models/graylog_integration_spec.rb +81 -0
  1486. data/spec/models/group_recipient_spec.rb +57 -0
  1487. data/spec/models/heartbeat_integration_spec.rb +81 -0
  1488. data/spec/models/heartbeat_meta_spec.rb +53 -0
  1489. data/spec/models/heartbeat_spec.rb +81 -0
  1490. data/spec/models/hip_chat_add_on_callback_spec.rb +97 -0
  1491. data/spec/models/hip_chat_add_on_integration_spec.rb +273 -0
  1492. data/spec/models/hip_chat_callback_v2_spec.rb +97 -0
  1493. data/spec/models/hip_chat_integration_spec.rb +81 -0
  1494. data/spec/models/hip_chat_integration_v2_spec.rb +199 -0
  1495. data/spec/models/honeybadger_integration_spec.rb +81 -0
  1496. data/spec/models/hosted_graphite_integration_spec.rb +81 -0
  1497. data/spec/models/hp_service_manager_callback_spec.rb +97 -0
  1498. data/spec/models/hp_service_manager_integration_spec.rb +199 -0
  1499. data/spec/models/humio_integration_spec.rb +81 -0
  1500. data/spec/models/icinga2_callback_spec.rb +85 -0
  1501. data/spec/models/icinga2_integration_spec.rb +199 -0
  1502. data/spec/models/icinga_callback_spec.rb +85 -0
  1503. data/spec/models/icinga_integration_spec.rb +199 -0
  1504. data/spec/models/ignore_integration_action_spec.rb +63 -0
  1505. data/spec/models/incident_action_payload_spec.rb +41 -0
  1506. data/spec/models/incident_request_status_spec.rb +77 -0
  1507. data/spec/models/incident_spec.rb +125 -0
  1508. data/spec/models/incoming_call_integration_spec.rb +81 -0
  1509. data/spec/models/instana_integration_spec.rb +81 -0
  1510. data/spec/models/integration_action_filter_spec.rb +51 -0
  1511. data/spec/models/integration_condition_spec.rb +63 -0
  1512. data/spec/models/integration_meta_spec.rb +65 -0
  1513. data/spec/models/integration_spec.rb +81 -0
  1514. data/spec/models/jenkins_integration_spec.rb +81 -0
  1515. data/spec/models/jira_callback_spec.rb +115 -0
  1516. data/spec/models/jira_integration_spec.rb +199 -0
  1517. data/spec/models/jira_service_desk_callback_spec.rb +115 -0
  1518. data/spec/models/jira_service_desk_integration_spec.rb +199 -0
  1519. data/spec/models/kapacitor_integration_spec.rb +81 -0
  1520. data/spec/models/kayako_callback_spec.rb +103 -0
  1521. data/spec/models/kayako_integration_spec.rb +199 -0
  1522. data/spec/models/kore_callback_spec.rb +97 -0
  1523. data/spec/models/kore_integration_spec.rb +81 -0
  1524. data/spec/models/lab_tech_email_integration_spec.rb +81 -0
  1525. data/spec/models/librato_integration_spec.rb +81 -0
  1526. data/spec/models/libre_nms_callback_spec.rb +97 -0
  1527. data/spec/models/libre_nms_integration_spec.rb +199 -0
  1528. data/spec/models/lightstep_integration_spec.rb +81 -0
  1529. data/spec/models/list_alert_attachments_response_spec.rb +53 -0
  1530. data/spec/models/list_alert_logs_response_spec.rb +59 -0
  1531. data/spec/models/list_alert_notes_response_spec.rb +59 -0
  1532. data/spec/models/list_alert_recipients_response_spec.rb +53 -0
  1533. data/spec/models/list_alerts_response_spec.rb +59 -0
  1534. data/spec/models/list_contacts_response_spec.rb +53 -0
  1535. data/spec/models/list_custom_user_roles_response_spec.rb +53 -0
  1536. data/spec/models/list_escalations_response_spec.rb +53 -0
  1537. data/spec/models/list_forwarding_rules_response_spec.rb +53 -0
  1538. data/spec/models/list_heartbeat_response_data_spec.rb +41 -0
  1539. data/spec/models/list_heartbeat_response_spec.rb +53 -0
  1540. data/spec/models/list_incidents_response_spec.rb +59 -0
  1541. data/spec/models/list_integration_actions_response_spec.rb +53 -0
  1542. data/spec/models/list_integrations_response_spec.rb +53 -0
  1543. data/spec/models/list_maintenance_response_spec.rb +53 -0
  1544. data/spec/models/list_notification_rule_steps_response_spec.rb +53 -0
  1545. data/spec/models/list_notification_rules_response_spec.rb +53 -0
  1546. data/spec/models/list_on_calls_response_spec.rb +53 -0
  1547. data/spec/models/list_policies_response_spec.rb +53 -0
  1548. data/spec/models/list_saved_searches_response_spec.rb +53 -0
  1549. data/spec/models/list_schedule_override_response_spec.rb +53 -0
  1550. data/spec/models/list_schedule_rotations_response_spec.rb +53 -0
  1551. data/spec/models/list_schedules_response_spec.rb +59 -0
  1552. data/spec/models/list_team_logs_response_spec.rb +53 -0
  1553. data/spec/models/list_team_role_response_spec.rb +53 -0
  1554. data/spec/models/list_team_routing_rules_response_spec.rb +53 -0
  1555. data/spec/models/list_teams_response_spec.rb +59 -0
  1556. data/spec/models/list_user_escalations_response_spec.rb +53 -0
  1557. data/spec/models/list_user_forwarding_rules_response_spec.rb +53 -0
  1558. data/spec/models/list_user_schedules_response_spec.rb +53 -0
  1559. data/spec/models/list_user_teams_response_spec.rb +53 -0
  1560. data/spec/models/list_users_response_spec.rb +65 -0
  1561. data/spec/models/logentries_integration_spec.rb +81 -0
  1562. data/spec/models/loggly_integration_spec.rb +81 -0
  1563. data/spec/models/logic_monitor_callback_spec.rb +103 -0
  1564. data/spec/models/logic_monitor_integration_spec.rb +199 -0
  1565. data/spec/models/logstash_integration_spec.rb +81 -0
  1566. data/spec/models/logz_io_integration_spec.rb +81 -0
  1567. data/spec/models/looker_integration_spec.rb +81 -0
  1568. data/spec/models/loom_integration_spec.rb +81 -0
  1569. data/spec/models/magentrix_callback_spec.rb +103 -0
  1570. data/spec/models/magentrix_integration_spec.rb +199 -0
  1571. data/spec/models/maintenance_entity_spec.rb +51 -0
  1572. data/spec/models/maintenance_meta_spec.rb +63 -0
  1573. data/spec/models/maintenance_rule_spec.rb +51 -0
  1574. data/spec/models/maintenance_spec.rb +69 -0
  1575. data/spec/models/maintenance_time_spec.rb +57 -0
  1576. data/spec/models/manage_engine_integration_dto_spec.rb +81 -0
  1577. data/spec/models/marid_callback_spec.rb +73 -0
  1578. data/spec/models/marid_integration_spec.rb +199 -0
  1579. data/spec/models/match_all_conditions_spec.rb +51 -0
  1580. data/spec/models/match_all_spec.rb +45 -0
  1581. data/spec/models/match_any_condition_spec.rb +51 -0
  1582. data/spec/models/mattermost_callback_spec.rb +79 -0
  1583. data/spec/models/mattermost_integration_spec.rb +199 -0
  1584. data/spec/models/mongo_db_cloud_integration_spec.rb +81 -0
  1585. data/spec/models/monitis_email_integration_spec.rb +81 -0
  1586. data/spec/models/monitis_integration_spec.rb +81 -0
  1587. data/spec/models/moxtra_callback_spec.rb +97 -0
  1588. data/spec/models/moxtra_integration_spec.rb +81 -0
  1589. data/spec/models/ms_teams_callback_spec.rb +91 -0
  1590. data/spec/models/ms_teams_integration_spec.rb +273 -0
  1591. data/spec/models/ms_teams_v2_callback_spec.rb +97 -0
  1592. data/spec/models/ms_teams_v2_integration_spec.rb +285 -0
  1593. data/spec/models/nagios_based_v1_callback_spec.rb +85 -0
  1594. data/spec/models/nagios_based_v2_callback_spec.rb +85 -0
  1595. data/spec/models/nagios_integration_v1_spec.rb +199 -0
  1596. data/spec/models/nagios_integration_v2_spec.rb +199 -0
  1597. data/spec/models/nagios_xi_integration_v1_spec.rb +199 -0
  1598. data/spec/models/nagios_xi_integration_v2_spec.rb +199 -0
  1599. data/spec/models/nagios_xiv1_callback_spec.rb +85 -0
  1600. data/spec/models/nagios_xiv2_callback_spec.rb +85 -0
  1601. data/spec/models/netuitive_integration_spec.rb +81 -0
  1602. data/spec/models/neustar_integration_spec.rb +81 -0
  1603. data/spec/models/new_relic_integration_spec.rb +81 -0
  1604. data/spec/models/new_relic_v2_integration_spec.rb +81 -0
  1605. data/spec/models/next_on_call_spec.rb +65 -0
  1606. data/spec/models/no_recipient_spec.rb +51 -0
  1607. data/spec/models/node_ping_integration_spec.rb +81 -0
  1608. data/spec/models/notification_action_type_spec.rb +35 -0
  1609. data/spec/models/notification_policy_spec.rb +117 -0
  1610. data/spec/models/notification_repeat_spec.rb +47 -0
  1611. data/spec/models/notification_rule_meta_spec.rb +65 -0
  1612. data/spec/models/notification_rule_spec.rb +101 -0
  1613. data/spec/models/notification_rule_step_parent_spec.rb +47 -0
  1614. data/spec/models/notification_rule_step_spec.rb +65 -0
  1615. data/spec/models/notify_time_spec.rb +35 -0
  1616. data/spec/models/observium_integration_spec.rb +81 -0
  1617. data/spec/models/observium_v2_integration_spec.rb +81 -0
  1618. data/spec/models/oec_callback_spec.rb +63 -0
  1619. data/spec/models/oec_integration_spec.rb +199 -0
  1620. data/spec/models/oem_email_integration_spec.rb +81 -0
  1621. data/spec/models/oem_integration_spec.rb +81 -0
  1622. data/spec/models/on_call_spec.rb +53 -0
  1623. data/spec/models/op5_callback_spec.rb +103 -0
  1624. data/spec/models/op5_integration_spec.rb +199 -0
  1625. data/spec/models/ops_dash_integration_spec.rb +81 -0
  1626. data/spec/models/ops_genie_callback_spec.rb +91 -0
  1627. data/spec/models/ops_genie_integration_spec.rb +199 -0
  1628. data/spec/models/opsview_integration_spec.rb +81 -0
  1629. data/spec/models/outgoing_callback_new_spec.rb +63 -0
  1630. data/spec/models/outgoing_callback_spec.rb +57 -0
  1631. data/spec/models/page_details_spec.rb +59 -0
  1632. data/spec/models/pager_duty_compatibility_integration_spec.rb +81 -0
  1633. data/spec/models/panopta_integration_spec.rb +81 -0
  1634. data/spec/models/papertrail_integration_spec.rb +81 -0
  1635. data/spec/models/participant_spec.rb +77 -0
  1636. data/spec/models/pingdom_integration_spec.rb +81 -0
  1637. data/spec/models/pingdom_v2_integration_spec.rb +81 -0
  1638. data/spec/models/pingdom_webhook_integration_spec.rb +81 -0
  1639. data/spec/models/pingometer_integration_spec.rb +81 -0
  1640. data/spec/models/planio_callback_spec.rb +75 -0
  1641. data/spec/models/planio_integration_spec.rb +81 -0
  1642. data/spec/models/policy_meta_spec.rb +69 -0
  1643. data/spec/models/policy_spec.rb +87 -0
  1644. data/spec/models/prometheus_integration_spec.rb +81 -0
  1645. data/spec/models/prtg_callback_spec.rb +103 -0
  1646. data/spec/models/prtg_integration_spec.rb +199 -0
  1647. data/spec/models/rackspace_integration_spec.rb +81 -0
  1648. data/spec/models/raygun_integration_spec.rb +81 -0
  1649. data/spec/models/recipient_spec.rb +51 -0
  1650. data/spec/models/red_gate_sql_monitor_email_integration_spec.rb +81 -0
  1651. data/spec/models/responder_spec.rb +51 -0
  1652. data/spec/models/riemann_integration_spec.rb +81 -0
  1653. data/spec/models/rigor_integration_spec.rb +81 -0
  1654. data/spec/models/ring_central_email_integration_spec.rb +81 -0
  1655. data/spec/models/ring_central_glip_callback_spec.rb +97 -0
  1656. data/spec/models/ring_central_glip_integration_spec.rb +81 -0
  1657. data/spec/models/rollbar_callback_spec.rb +91 -0
  1658. data/spec/models/rollbar_integration_spec.rb +199 -0
  1659. data/spec/models/runscope_integration_spec.rb +81 -0
  1660. data/spec/models/sales_force_service_cloud_callback_spec.rb +115 -0
  1661. data/spec/models/sales_force_service_cloud_integration_spec.rb +199 -0
  1662. data/spec/models/salt_stack_integration_spec.rb +81 -0
  1663. data/spec/models/saved_search_entity_spec.rb +41 -0
  1664. data/spec/models/saved_search_meta_spec.rb +47 -0
  1665. data/spec/models/saved_search_spec.rb +83 -0
  1666. data/spec/models/scalyr_integration_spec.rb +81 -0
  1667. data/spec/models/schedule_meta_spec.rb +53 -0
  1668. data/spec/models/schedule_override_meta_spec.rb +41 -0
  1669. data/spec/models/schedule_override_rotation_spec.rb +47 -0
  1670. data/spec/models/schedule_override_spec.rb +71 -0
  1671. data/spec/models/schedule_recipient_spec.rb +57 -0
  1672. data/spec/models/schedule_rotation_spec.rb +87 -0
  1673. data/spec/models/schedule_rotation_with_parent_spec.rb +93 -0
  1674. data/spec/models/schedule_spec.rb +77 -0
  1675. data/spec/models/schedule_timeline_spec.rb +77 -0
  1676. data/spec/models/scom_integration_spec.rb +81 -0
  1677. data/spec/models/scout_integration_spec.rb +81 -0
  1678. data/spec/models/sematext_spm_integration_spec.rb +81 -0
  1679. data/spec/models/sensu_integration_spec.rb +81 -0
  1680. data/spec/models/sentry_integration_spec.rb +81 -0
  1681. data/spec/models/server_density_integration_spec.rb +81 -0
  1682. data/spec/models/server_guard24_integration_spec.rb +81 -0
  1683. data/spec/models/service_now_integration_spec.rb +81 -0
  1684. data/spec/models/service_now_v2_callback_spec.rb +103 -0
  1685. data/spec/models/service_now_v2_integration_spec.rb +199 -0
  1686. data/spec/models/service_now_v3_callback_spec.rb +103 -0
  1687. data/spec/models/service_now_v3_integration_spec.rb +199 -0
  1688. data/spec/models/signal_fxv2_integration_spec.rb +81 -0
  1689. data/spec/models/signal_sciences_integration_spec.rb +81 -0
  1690. data/spec/models/signalfx_integration_spec.rb +81 -0
  1691. data/spec/models/site24x7_integration_spec.rb +81 -0
  1692. data/spec/models/slack_app_callback_spec.rb +103 -0
  1693. data/spec/models/slack_app_integration_spec.rb +285 -0
  1694. data/spec/models/slack_callback_spec.rb +79 -0
  1695. data/spec/models/slack_integration_spec.rb +199 -0
  1696. data/spec/models/snooze_alert_payload_spec.rb +59 -0
  1697. data/spec/models/soasta_integration_spec.rb +81 -0
  1698. data/spec/models/solar_winds_web_help_desk_callback_spec.rb +85 -0
  1699. data/spec/models/solar_winds_web_help_desk_integration_spec.rb +199 -0
  1700. data/spec/models/solarwinds_callback_spec.rb +85 -0
  1701. data/spec/models/solarwinds_integration_spec.rb +199 -0
  1702. data/spec/models/solarwinds_msp_ncentral_callback_spec.rb +103 -0
  1703. data/spec/models/solarwinds_mspn_central_integration_spec.rb +199 -0
  1704. data/spec/models/splunk_callback_spec.rb +97 -0
  1705. data/spec/models/splunk_integration_spec.rb +199 -0
  1706. data/spec/models/splunk_itsi_callback_spec.rb +103 -0
  1707. data/spec/models/splunk_itsi_integration_spec.rb +199 -0
  1708. data/spec/models/stack_storm_integration_spec.rb +81 -0
  1709. data/spec/models/stackdriver_callback_spec.rb +79 -0
  1710. data/spec/models/stackdriver_integration_spec.rb +199 -0
  1711. data/spec/models/status_cake_integration_spec.rb +81 -0
  1712. data/spec/models/status_hub_integration_spec.rb +81 -0
  1713. data/spec/models/status_io_callback_spec.rb +91 -0
  1714. data/spec/models/status_io_integration_spec.rb +199 -0
  1715. data/spec/models/status_page_entry_spec.rb +47 -0
  1716. data/spec/models/status_page_io_callback_spec.rb +97 -0
  1717. data/spec/models/status_page_io_integration_spec.rb +199 -0
  1718. data/spec/models/statusy_callback_spec.rb +97 -0
  1719. data/spec/models/statusy_integration_spec.rb +81 -0
  1720. data/spec/models/struxure_ware_integration_spec.rb +81 -0
  1721. data/spec/models/success_data_spec.rb +47 -0
  1722. data/spec/models/success_response_spec.rb +59 -0
  1723. data/spec/models/sumo_logic_callback_spec.rb +91 -0
  1724. data/spec/models/sumo_logic_integration_spec.rb +199 -0
  1725. data/spec/models/sysdig_cloud_integration_spec.rb +81 -0
  1726. data/spec/models/team_log_details_spec.rb +53 -0
  1727. data/spec/models/team_log_spec.rb +47 -0
  1728. data/spec/models/team_member_spec.rb +47 -0
  1729. data/spec/models/team_meta_spec.rb +47 -0
  1730. data/spec/models/team_recipient_spec.rb +57 -0
  1731. data/spec/models/team_responder_spec.rb +57 -0
  1732. data/spec/models/team_right_spec.rb +47 -0
  1733. data/spec/models/team_role_spec.rb +53 -0
  1734. data/spec/models/team_routing_rule_spec.rb +83 -0
  1735. data/spec/models/team_spec.rb +59 -0
  1736. data/spec/models/thousand_eyes_integration_spec.rb +81 -0
  1737. data/spec/models/threat_stack_integration_spec.rb +81 -0
  1738. data/spec/models/thundra_integration_spec.rb +81 -0
  1739. data/spec/models/tideways_integration_spec.rb +81 -0
  1740. data/spec/models/time_of_day_restriction_interval_spec.rb +51 -0
  1741. data/spec/models/time_of_day_restriction_spec.rb +59 -0
  1742. data/spec/models/time_restriction_interval_spec.rb +45 -0
  1743. data/spec/models/timeline_period_spec.rb +71 -0
  1744. data/spec/models/timeline_recipient_spec.rb +59 -0
  1745. data/spec/models/timeline_rotation_spec.rb +59 -0
  1746. data/spec/models/timeline_spec.rb +41 -0
  1747. data/spec/models/token_based_incoming_feature_spec.rb +153 -0
  1748. data/spec/models/trace_integration_spec.rb +81 -0
  1749. data/spec/models/track_it_callback_spec.rb +85 -0
  1750. data/spec/models/track_it_integration_spec.rb +199 -0
  1751. data/spec/models/travis_ci_integration_spec.rb +81 -0
  1752. data/spec/models/twilio_integration_spec.rb +81 -0
  1753. data/spec/models/un_acknowledge_alert_payload_spec.rb +53 -0
  1754. data/spec/models/update_alert_description_payload_spec.rb +41 -0
  1755. data/spec/models/update_alert_message_payload_spec.rb +41 -0
  1756. data/spec/models/update_alert_priority_payload_spec.rb +45 -0
  1757. data/spec/models/update_contact_payload_spec.rb +41 -0
  1758. data/spec/models/update_custom_user_role_payload_spec.rb +59 -0
  1759. data/spec/models/update_escalation_payload_spec.rb +65 -0
  1760. data/spec/models/update_forwarding_rule_payload_spec.rb +59 -0
  1761. data/spec/models/update_heartbeat_payload_spec.rb +63 -0
  1762. data/spec/models/update_heartbeat_response_spec.rb +53 -0
  1763. data/spec/models/update_integration_actions_response_spec.rb +53 -0
  1764. data/spec/models/update_integration_response_spec.rb +53 -0
  1765. data/spec/models/update_maintenance_payload_spec.rb +53 -0
  1766. data/spec/models/update_maintenance_response_spec.rb +53 -0
  1767. data/spec/models/update_notification_rule_payload_spec.rb +89 -0
  1768. data/spec/models/update_notification_rule_response_spec.rb +53 -0
  1769. data/spec/models/update_notification_rule_step_payload_spec.rb +53 -0
  1770. data/spec/models/update_saved_search_payload_spec.rb +65 -0
  1771. data/spec/models/update_schedule_override_payload_spec.rb +59 -0
  1772. data/spec/models/update_schedule_override_response_spec.rb +53 -0
  1773. data/spec/models/update_schedule_payload_spec.rb +71 -0
  1774. data/spec/models/update_schedule_response_spec.rb +53 -0
  1775. data/spec/models/update_schedule_rotation_payload_spec.rb +81 -0
  1776. data/spec/models/update_team_payload_spec.rb +53 -0
  1777. data/spec/models/update_team_role_payload_spec.rb +47 -0
  1778. data/spec/models/update_team_routing_rule_payload_spec.rb +65 -0
  1779. data/spec/models/update_user_payload_spec.rb +95 -0
  1780. data/spec/models/updown_io_integration_spec.rb +81 -0
  1781. data/spec/models/uptime_robot_email_integration_spec.rb +81 -0
  1782. data/spec/models/uptime_robot_integration_spec.rb +81 -0
  1783. data/spec/models/uptime_webhook_integration_spec.rb +81 -0
  1784. data/spec/models/uptrends_email_integration_spec.rb +81 -0
  1785. data/spec/models/user_address_spec.rb +65 -0
  1786. data/spec/models/user_contact_spec.rb +69 -0
  1787. data/spec/models/user_meta_spec.rb +47 -0
  1788. data/spec/models/user_recipient_spec.rb +57 -0
  1789. data/spec/models/user_responder_spec.rb +51 -0
  1790. data/spec/models/user_role_spec.rb +47 -0
  1791. data/spec/models/user_spec.rb +125 -0
  1792. data/spec/models/v_center_integration_spec.rb +81 -0
  1793. data/spec/models/vcsa_integration_spec.rb +81 -0
  1794. data/spec/models/vivid_cortex_integration_spec.rb +81 -0
  1795. data/spec/models/wavefront_integration_spec.rb +81 -0
  1796. data/spec/models/webhook_callback_spec.rb +97 -0
  1797. data/spec/models/webhook_integration_spec.rb +81 -0
  1798. data/spec/models/weekday_time_restriction_interval_spec.rb +51 -0
  1799. data/spec/models/weekday_time_restriction_spec.rb +79 -0
  1800. data/spec/models/whats_up_gold_integration_spec.rb +81 -0
  1801. data/spec/models/workato_integration_spec.rb +81 -0
  1802. data/spec/models/x_pack_alerting_callback_spec.rb +85 -0
  1803. data/spec/models/x_pack_alerting_integration_spec.rb +199 -0
  1804. data/spec/models/xl_release_integration_spec.rb +81 -0
  1805. data/spec/models/xmpp_callback_spec.rb +85 -0
  1806. data/spec/models/xmpp_integration_spec.rb +199 -0
  1807. data/spec/models/zabbix_callback_spec.rb +85 -0
  1808. data/spec/models/zabbix_integration_spec.rb +199 -0
  1809. data/spec/models/zapier_integration_spec.rb +81 -0
  1810. data/spec/models/zendesk_callback_spec.rb +103 -0
  1811. data/spec/models/zendesk_integration_spec.rb +199 -0
  1812. data/spec/models/zenoss_callback_spec.rb +85 -0
  1813. data/spec/models/zenoss_integration_spec.rb +199 -0
  1814. data/spec/models/zyrion_integration_spec.rb +81 -0
  1815. data/spec/spec_helper.rb +111 -0
  1816. data/swagger.yaml +24877 -0
  1817. metadata +2637 -0
@@ -0,0 +1,69 @@
1
+ =begin
2
+ #Opsgenie REST API
3
+
4
+ #Opsgenie OpenAPI Specification
5
+
6
+ OpenAPI spec version: 2.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.13
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module OpsgenieSdk
16
+ class AccountApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get Account Info
23
+ # Used to search and retrieve account information in Opsgenie
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [GetAccountInfoResponse]
26
+ def get_info(opts = {})
27
+ data, _status_code, _headers = get_info_with_http_info(opts)
28
+ data
29
+ end
30
+
31
+ # Get Account Info
32
+ # Used to search and retrieve account information in Opsgenie
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(GetAccountInfoResponse, Fixnum, Hash)>] GetAccountInfoResponse data, response status code and response headers
35
+ def get_info_with_http_info(opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: AccountApi.get_info ...'
38
+ end
39
+ # resource path
40
+ local_var_path = '/v2/account'
41
+
42
+ # query parameters
43
+ query_params = {}
44
+
45
+ # header parameters
46
+ header_params = {}
47
+ # HTTP header 'Accept' (if needed)
48
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
49
+
50
+ # form parameters
51
+ form_params = {}
52
+
53
+ # http body (model)
54
+ post_body = nil
55
+ auth_names = ['GenieKey']
56
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
57
+ :header_params => header_params,
58
+ :query_params => query_params,
59
+ :form_params => form_params,
60
+ :body => post_body,
61
+ :auth_names => auth_names,
62
+ :return_type => 'GetAccountInfoResponse')
63
+ if @api_client.config.debugging
64
+ @api_client.config.logger.debug "API called: AccountApi#get_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
65
+ end
66
+ return data, status_code, headers
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,2259 @@
1
+ =begin
2
+ #Opsgenie REST API
3
+
4
+ #Opsgenie OpenAPI Specification
5
+
6
+ OpenAPI spec version: 2.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.13
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module OpsgenieSdk
16
+ class AlertApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Acknowledge Alert
23
+ # Acknowledges alert with given identifier
24
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
27
+ # @option opts [AcknowledgeAlertPayload] :body Request payload of acknowledging alert action
28
+ # @return [SuccessResponse]
29
+ def acknowledge_alert(identifier, opts = {})
30
+ data, _status_code, _headers = acknowledge_alert_with_http_info(identifier, opts)
31
+ data
32
+ end
33
+
34
+ # Acknowledge Alert
35
+ # Acknowledges alert with given identifier
36
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
39
+ # @option opts [AcknowledgeAlertPayload] :body Request payload of acknowledging alert action
40
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
41
+ def acknowledge_alert_with_http_info(identifier, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: AlertApi.acknowledge_alert ...'
44
+ end
45
+ # verify the required parameter 'identifier' is set
46
+ if @api_client.config.client_side_validation && identifier.nil?
47
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.acknowledge_alert"
48
+ end
49
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
50
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
51
+ end
52
+ # resource path
53
+ local_var_path = '/v2/alerts/{identifier}/acknowledge'.sub('{' + 'identifier' + '}', identifier.to_s)
54
+
55
+ # query parameters
56
+ query_params = {}
57
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
58
+
59
+ # header parameters
60
+ header_params = {}
61
+ # HTTP header 'Accept' (if needed)
62
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
63
+
64
+ # form parameters
65
+ form_params = {}
66
+
67
+ # http body (model)
68
+ post_body = @api_client.object_to_http_body(opts[:'body'])
69
+ auth_names = ['GenieKey']
70
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => 'SuccessResponse')
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: AlertApi#acknowledge_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+ # Add Alert Attachment
83
+ # Add Alert Attachment to related alert
84
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
85
+ # @param file Attachment file to be uploaded
86
+ # @param [Hash] opts the optional parameters
87
+ # @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
88
+ # @option opts [String] :user Display name of the request owner
89
+ # @option opts [String] :index_file Name of html file which will be shown when attachment clicked on UI
90
+ # @return [SuccessResponse]
91
+ def add_attachment(identifier, file, opts = {})
92
+ data, _status_code, _headers = add_attachment_with_http_info(identifier, file, opts)
93
+ data
94
+ end
95
+
96
+ # Add Alert Attachment
97
+ # Add Alert Attachment to related alert
98
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
99
+ # @param file Attachment file to be uploaded
100
+ # @param [Hash] opts the optional parameters
101
+ # @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
102
+ # @option opts [String] :user Display name of the request owner
103
+ # @option opts [String] :index_file Name of html file which will be shown when attachment clicked on UI
104
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
105
+ def add_attachment_with_http_info(identifier, file, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: AlertApi.add_attachment ...'
108
+ end
109
+ # verify the required parameter 'identifier' is set
110
+ if @api_client.config.client_side_validation && identifier.nil?
111
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.add_attachment"
112
+ end
113
+ # verify the required parameter 'file' is set
114
+ if @api_client.config.client_side_validation && file.nil?
115
+ fail ArgumentError, "Missing the required parameter 'file' when calling AlertApi.add_attachment"
116
+ end
117
+ if @api_client.config.client_side_validation && opts[:'alert_identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'alert_identifier_type'])
118
+ fail ArgumentError, 'invalid value for "alert_identifier_type", must be one of id, alias, tiny'
119
+ end
120
+ # resource path
121
+ local_var_path = '/v2/alerts/{identifier}/attachments'.sub('{' + 'identifier' + '}', identifier.to_s)
122
+
123
+ # query parameters
124
+ query_params = {}
125
+ query_params[:'alertIdentifierType'] = opts[:'alert_identifier_type'] if !opts[:'alert_identifier_type'].nil?
126
+
127
+ # header parameters
128
+ header_params = {}
129
+ # HTTP header 'Accept' (if needed)
130
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
131
+ # HTTP header 'Content-Type'
132
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
133
+
134
+ # form parameters
135
+ form_params = {}
136
+ form_params['file'] = file
137
+ form_params['user'] = opts[:'user'] if !opts[:'user'].nil?
138
+ form_params['indexFile'] = opts[:'index_file'] if !opts[:'index_file'].nil?
139
+
140
+ # http body (model)
141
+ post_body = nil
142
+ auth_names = ['GenieKey']
143
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
144
+ :header_params => header_params,
145
+ :query_params => query_params,
146
+ :form_params => form_params,
147
+ :body => post_body,
148
+ :auth_names => auth_names,
149
+ :return_type => 'SuccessResponse')
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug "API called: AlertApi#add_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
152
+ end
153
+ return data, status_code, headers
154
+ end
155
+ # Add Details
156
+ # Add details to the alert with given identifier
157
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
158
+ # @param body Request payload of adding alert details action
159
+ # @param [Hash] opts the optional parameters
160
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
161
+ # @return [SuccessResponse]
162
+ def add_details(identifier, body, opts = {})
163
+ data, _status_code, _headers = add_details_with_http_info(identifier, body, opts)
164
+ data
165
+ end
166
+
167
+ # Add Details
168
+ # Add details to the alert with given identifier
169
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
170
+ # @param body Request payload of adding alert details action
171
+ # @param [Hash] opts the optional parameters
172
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
173
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
174
+ def add_details_with_http_info(identifier, body, opts = {})
175
+ if @api_client.config.debugging
176
+ @api_client.config.logger.debug 'Calling API: AlertApi.add_details ...'
177
+ end
178
+ # verify the required parameter 'identifier' is set
179
+ if @api_client.config.client_side_validation && identifier.nil?
180
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.add_details"
181
+ end
182
+ # verify the required parameter 'body' is set
183
+ if @api_client.config.client_side_validation && body.nil?
184
+ fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.add_details"
185
+ end
186
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
187
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
188
+ end
189
+ # resource path
190
+ local_var_path = '/v2/alerts/{identifier}/details'.sub('{' + 'identifier' + '}', identifier.to_s)
191
+
192
+ # query parameters
193
+ query_params = {}
194
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
195
+
196
+ # header parameters
197
+ header_params = {}
198
+ # HTTP header 'Accept' (if needed)
199
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
200
+
201
+ # form parameters
202
+ form_params = {}
203
+
204
+ # http body (model)
205
+ post_body = @api_client.object_to_http_body(body)
206
+ auth_names = ['GenieKey']
207
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
208
+ :header_params => header_params,
209
+ :query_params => query_params,
210
+ :form_params => form_params,
211
+ :body => post_body,
212
+ :auth_names => auth_names,
213
+ :return_type => 'SuccessResponse')
214
+ if @api_client.config.debugging
215
+ @api_client.config.logger.debug "API called: AlertApi#add_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
216
+ end
217
+ return data, status_code, headers
218
+ end
219
+ # Add Note
220
+ # Adds note to alert with given identifier
221
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
222
+ # @param body Request payload of adding note to alert action
223
+ # @param [Hash] opts the optional parameters
224
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
225
+ # @return [SuccessResponse]
226
+ def add_note(identifier, body, opts = {})
227
+ data, _status_code, _headers = add_note_with_http_info(identifier, body, opts)
228
+ data
229
+ end
230
+
231
+ # Add Note
232
+ # Adds note to alert with given identifier
233
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
234
+ # @param body Request payload of adding note to alert action
235
+ # @param [Hash] opts the optional parameters
236
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
237
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
238
+ def add_note_with_http_info(identifier, body, opts = {})
239
+ if @api_client.config.debugging
240
+ @api_client.config.logger.debug 'Calling API: AlertApi.add_note ...'
241
+ end
242
+ # verify the required parameter 'identifier' is set
243
+ if @api_client.config.client_side_validation && identifier.nil?
244
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.add_note"
245
+ end
246
+ # verify the required parameter 'body' is set
247
+ if @api_client.config.client_side_validation && body.nil?
248
+ fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.add_note"
249
+ end
250
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
251
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
252
+ end
253
+ # resource path
254
+ local_var_path = '/v2/alerts/{identifier}/notes'.sub('{' + 'identifier' + '}', identifier.to_s)
255
+
256
+ # query parameters
257
+ query_params = {}
258
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
259
+
260
+ # header parameters
261
+ header_params = {}
262
+ # HTTP header 'Accept' (if needed)
263
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
264
+
265
+ # form parameters
266
+ form_params = {}
267
+
268
+ # http body (model)
269
+ post_body = @api_client.object_to_http_body(body)
270
+ auth_names = ['GenieKey']
271
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
272
+ :header_params => header_params,
273
+ :query_params => query_params,
274
+ :form_params => form_params,
275
+ :body => post_body,
276
+ :auth_names => auth_names,
277
+ :return_type => 'SuccessResponse')
278
+ if @api_client.config.debugging
279
+ @api_client.config.logger.debug "API called: AlertApi#add_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
280
+ end
281
+ return data, status_code, headers
282
+ end
283
+ # Add Responder
284
+ # Add responder to alert with given identifier
285
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
286
+ # @param body Request payload of adding responder to alert action
287
+ # @param [Hash] opts the optional parameters
288
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
289
+ # @return [SuccessResponse]
290
+ def add_responder(identifier, body, opts = {})
291
+ data, _status_code, _headers = add_responder_with_http_info(identifier, body, opts)
292
+ data
293
+ end
294
+
295
+ # Add Responder
296
+ # Add responder to alert with given identifier
297
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
298
+ # @param body Request payload of adding responder to alert action
299
+ # @param [Hash] opts the optional parameters
300
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
301
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
302
+ def add_responder_with_http_info(identifier, body, opts = {})
303
+ if @api_client.config.debugging
304
+ @api_client.config.logger.debug 'Calling API: AlertApi.add_responder ...'
305
+ end
306
+ # verify the required parameter 'identifier' is set
307
+ if @api_client.config.client_side_validation && identifier.nil?
308
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.add_responder"
309
+ end
310
+ # verify the required parameter 'body' is set
311
+ if @api_client.config.client_side_validation && body.nil?
312
+ fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.add_responder"
313
+ end
314
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
315
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
316
+ end
317
+ # resource path
318
+ local_var_path = '/v2/alerts/{identifier}/responders'.sub('{' + 'identifier' + '}', identifier.to_s)
319
+
320
+ # query parameters
321
+ query_params = {}
322
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
323
+
324
+ # header parameters
325
+ header_params = {}
326
+ # HTTP header 'Accept' (if needed)
327
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
328
+
329
+ # form parameters
330
+ form_params = {}
331
+
332
+ # http body (model)
333
+ post_body = @api_client.object_to_http_body(body)
334
+ auth_names = ['GenieKey']
335
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
336
+ :header_params => header_params,
337
+ :query_params => query_params,
338
+ :form_params => form_params,
339
+ :body => post_body,
340
+ :auth_names => auth_names,
341
+ :return_type => 'SuccessResponse')
342
+ if @api_client.config.debugging
343
+ @api_client.config.logger.debug "API called: AlertApi#add_responder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
344
+ end
345
+ return data, status_code, headers
346
+ end
347
+ # Add Tags
348
+ # Add tags to the alert with given identifier
349
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
350
+ # @param body Request payload of creating alert tags action
351
+ # @param [Hash] opts the optional parameters
352
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
353
+ # @return [SuccessResponse]
354
+ def add_tags(identifier, body, opts = {})
355
+ data, _status_code, _headers = add_tags_with_http_info(identifier, body, opts)
356
+ data
357
+ end
358
+
359
+ # Add Tags
360
+ # Add tags to the alert with given identifier
361
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
362
+ # @param body Request payload of creating alert tags action
363
+ # @param [Hash] opts the optional parameters
364
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
365
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
366
+ def add_tags_with_http_info(identifier, body, opts = {})
367
+ if @api_client.config.debugging
368
+ @api_client.config.logger.debug 'Calling API: AlertApi.add_tags ...'
369
+ end
370
+ # verify the required parameter 'identifier' is set
371
+ if @api_client.config.client_side_validation && identifier.nil?
372
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.add_tags"
373
+ end
374
+ # verify the required parameter 'body' is set
375
+ if @api_client.config.client_side_validation && body.nil?
376
+ fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.add_tags"
377
+ end
378
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
379
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
380
+ end
381
+ # resource path
382
+ local_var_path = '/v2/alerts/{identifier}/tags'.sub('{' + 'identifier' + '}', identifier.to_s)
383
+
384
+ # query parameters
385
+ query_params = {}
386
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
387
+
388
+ # header parameters
389
+ header_params = {}
390
+ # HTTP header 'Accept' (if needed)
391
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
392
+
393
+ # form parameters
394
+ form_params = {}
395
+
396
+ # http body (model)
397
+ post_body = @api_client.object_to_http_body(body)
398
+ auth_names = ['GenieKey']
399
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
400
+ :header_params => header_params,
401
+ :query_params => query_params,
402
+ :form_params => form_params,
403
+ :body => post_body,
404
+ :auth_names => auth_names,
405
+ :return_type => 'SuccessResponse')
406
+ if @api_client.config.debugging
407
+ @api_client.config.logger.debug "API called: AlertApi#add_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
408
+ end
409
+ return data, status_code, headers
410
+ end
411
+ # Add Team
412
+ # Add team to alert with given identifier
413
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
414
+ # @param body Request payload of adding team to alert action
415
+ # @param [Hash] opts the optional parameters
416
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
417
+ # @return [SuccessResponse]
418
+ def add_team(identifier, body, opts = {})
419
+ data, _status_code, _headers = add_team_with_http_info(identifier, body, opts)
420
+ data
421
+ end
422
+
423
+ # Add Team
424
+ # Add team to alert with given identifier
425
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
426
+ # @param body Request payload of adding team to alert action
427
+ # @param [Hash] opts the optional parameters
428
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
429
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
430
+ def add_team_with_http_info(identifier, body, opts = {})
431
+ if @api_client.config.debugging
432
+ @api_client.config.logger.debug 'Calling API: AlertApi.add_team ...'
433
+ end
434
+ # verify the required parameter 'identifier' is set
435
+ if @api_client.config.client_side_validation && identifier.nil?
436
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.add_team"
437
+ end
438
+ # verify the required parameter 'body' is set
439
+ if @api_client.config.client_side_validation && body.nil?
440
+ fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.add_team"
441
+ end
442
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
443
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
444
+ end
445
+ # resource path
446
+ local_var_path = '/v2/alerts/{identifier}/teams'.sub('{' + 'identifier' + '}', identifier.to_s)
447
+
448
+ # query parameters
449
+ query_params = {}
450
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
451
+
452
+ # header parameters
453
+ header_params = {}
454
+ # HTTP header 'Accept' (if needed)
455
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
456
+
457
+ # form parameters
458
+ form_params = {}
459
+
460
+ # http body (model)
461
+ post_body = @api_client.object_to_http_body(body)
462
+ auth_names = ['GenieKey']
463
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
464
+ :header_params => header_params,
465
+ :query_params => query_params,
466
+ :form_params => form_params,
467
+ :body => post_body,
468
+ :auth_names => auth_names,
469
+ :return_type => 'SuccessResponse')
470
+ if @api_client.config.debugging
471
+ @api_client.config.logger.debug "API called: AlertApi#add_team\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
472
+ end
473
+ return data, status_code, headers
474
+ end
475
+ # Assign Alert
476
+ # Assign alert with given identifier
477
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
478
+ # @param body Request payload of assigning alert action
479
+ # @param [Hash] opts the optional parameters
480
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
481
+ # @return [SuccessResponse]
482
+ def assign_alert(identifier, body, opts = {})
483
+ data, _status_code, _headers = assign_alert_with_http_info(identifier, body, opts)
484
+ data
485
+ end
486
+
487
+ # Assign Alert
488
+ # Assign alert with given identifier
489
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
490
+ # @param body Request payload of assigning alert action
491
+ # @param [Hash] opts the optional parameters
492
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
493
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
494
+ def assign_alert_with_http_info(identifier, body, opts = {})
495
+ if @api_client.config.debugging
496
+ @api_client.config.logger.debug 'Calling API: AlertApi.assign_alert ...'
497
+ end
498
+ # verify the required parameter 'identifier' is set
499
+ if @api_client.config.client_side_validation && identifier.nil?
500
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.assign_alert"
501
+ end
502
+ # verify the required parameter 'body' is set
503
+ if @api_client.config.client_side_validation && body.nil?
504
+ fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.assign_alert"
505
+ end
506
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
507
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
508
+ end
509
+ # resource path
510
+ local_var_path = '/v2/alerts/{identifier}/assign'.sub('{' + 'identifier' + '}', identifier.to_s)
511
+
512
+ # query parameters
513
+ query_params = {}
514
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
515
+
516
+ # header parameters
517
+ header_params = {}
518
+ # HTTP header 'Accept' (if needed)
519
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
520
+
521
+ # form parameters
522
+ form_params = {}
523
+
524
+ # http body (model)
525
+ post_body = @api_client.object_to_http_body(body)
526
+ auth_names = ['GenieKey']
527
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
528
+ :header_params => header_params,
529
+ :query_params => query_params,
530
+ :form_params => form_params,
531
+ :body => post_body,
532
+ :auth_names => auth_names,
533
+ :return_type => 'SuccessResponse')
534
+ if @api_client.config.debugging
535
+ @api_client.config.logger.debug "API called: AlertApi#assign_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
536
+ end
537
+ return data, status_code, headers
538
+ end
539
+ # Close Alert
540
+ # Closes alert with given identifier
541
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
542
+ # @param [Hash] opts the optional parameters
543
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
544
+ # @option opts [CloseAlertPayload] :body Request payload of closing alert action
545
+ # @return [SuccessResponse]
546
+ def close_alert(identifier, opts = {})
547
+ data, _status_code, _headers = close_alert_with_http_info(identifier, opts)
548
+ data
549
+ end
550
+
551
+ # Close Alert
552
+ # Closes alert with given identifier
553
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
554
+ # @param [Hash] opts the optional parameters
555
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
556
+ # @option opts [CloseAlertPayload] :body Request payload of closing alert action
557
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
558
+ def close_alert_with_http_info(identifier, opts = {})
559
+ if @api_client.config.debugging
560
+ @api_client.config.logger.debug 'Calling API: AlertApi.close_alert ...'
561
+ end
562
+ # verify the required parameter 'identifier' is set
563
+ if @api_client.config.client_side_validation && identifier.nil?
564
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.close_alert"
565
+ end
566
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
567
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
568
+ end
569
+ # resource path
570
+ local_var_path = '/v2/alerts/{identifier}/close'.sub('{' + 'identifier' + '}', identifier.to_s)
571
+
572
+ # query parameters
573
+ query_params = {}
574
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
575
+
576
+ # header parameters
577
+ header_params = {}
578
+ # HTTP header 'Accept' (if needed)
579
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
580
+
581
+ # form parameters
582
+ form_params = {}
583
+
584
+ # http body (model)
585
+ post_body = @api_client.object_to_http_body(opts[:'body'])
586
+ auth_names = ['GenieKey']
587
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
588
+ :header_params => header_params,
589
+ :query_params => query_params,
590
+ :form_params => form_params,
591
+ :body => post_body,
592
+ :auth_names => auth_names,
593
+ :return_type => 'SuccessResponse')
594
+ if @api_client.config.debugging
595
+ @api_client.config.logger.debug "API called: AlertApi#close_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
596
+ end
597
+ return data, status_code, headers
598
+ end
599
+ # Count Alerts
600
+ # Count alerts in Opsgenie
601
+ # @param [Hash] opts the optional parameters
602
+ # @option opts [String] :query Search query to apply while filtering the alerts
603
+ # @option opts [String] :search_identifier Identifier of the saved search query to apply while filtering the alerts
604
+ # @option opts [String] :search_identifier_type Identifier type of the saved search query. Possible values are id and name. Default value is id. If searchIdentifier is not provided, this value is ignored. (default to id)
605
+ # @return [GetCountAlertsResponse]
606
+ def count_alerts(opts = {})
607
+ data, _status_code, _headers = count_alerts_with_http_info(opts)
608
+ data
609
+ end
610
+
611
+ # Count Alerts
612
+ # Count alerts in Opsgenie
613
+ # @param [Hash] opts the optional parameters
614
+ # @option opts [String] :query Search query to apply while filtering the alerts
615
+ # @option opts [String] :search_identifier Identifier of the saved search query to apply while filtering the alerts
616
+ # @option opts [String] :search_identifier_type Identifier type of the saved search query. Possible values are id and name. Default value is id. If searchIdentifier is not provided, this value is ignored.
617
+ # @return [Array<(GetCountAlertsResponse, Fixnum, Hash)>] GetCountAlertsResponse data, response status code and response headers
618
+ def count_alerts_with_http_info(opts = {})
619
+ if @api_client.config.debugging
620
+ @api_client.config.logger.debug 'Calling API: AlertApi.count_alerts ...'
621
+ end
622
+ if @api_client.config.client_side_validation && opts[:'search_identifier_type'] && !['id', 'name'].include?(opts[:'search_identifier_type'])
623
+ fail ArgumentError, 'invalid value for "search_identifier_type", must be one of id, name'
624
+ end
625
+ # resource path
626
+ local_var_path = '/v2/alerts/count'
627
+
628
+ # query parameters
629
+ query_params = {}
630
+ query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
631
+ query_params[:'searchIdentifier'] = opts[:'search_identifier'] if !opts[:'search_identifier'].nil?
632
+ query_params[:'searchIdentifierType'] = opts[:'search_identifier_type'] if !opts[:'search_identifier_type'].nil?
633
+
634
+ # header parameters
635
+ header_params = {}
636
+ # HTTP header 'Accept' (if needed)
637
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
638
+
639
+ # form parameters
640
+ form_params = {}
641
+
642
+ # http body (model)
643
+ post_body = nil
644
+ auth_names = ['GenieKey']
645
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
646
+ :header_params => header_params,
647
+ :query_params => query_params,
648
+ :form_params => form_params,
649
+ :body => post_body,
650
+ :auth_names => auth_names,
651
+ :return_type => 'GetCountAlertsResponse')
652
+ if @api_client.config.debugging
653
+ @api_client.config.logger.debug "API called: AlertApi#count_alerts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
654
+ end
655
+ return data, status_code, headers
656
+ end
657
+ # Create Alert
658
+ # Creates a new alert
659
+ # @param body Request payload of created alert
660
+ # @param [Hash] opts the optional parameters
661
+ # @return [SuccessResponse]
662
+ def create_alert(body, opts = {})
663
+ data, _status_code, _headers = create_alert_with_http_info(body, opts)
664
+ data
665
+ end
666
+
667
+ # Create Alert
668
+ # Creates a new alert
669
+ # @param body Request payload of created alert
670
+ # @param [Hash] opts the optional parameters
671
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
672
+ def create_alert_with_http_info(body, opts = {})
673
+ if @api_client.config.debugging
674
+ @api_client.config.logger.debug 'Calling API: AlertApi.create_alert ...'
675
+ end
676
+ # verify the required parameter 'body' is set
677
+ if @api_client.config.client_side_validation && body.nil?
678
+ fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.create_alert"
679
+ end
680
+ # resource path
681
+ local_var_path = '/v2/alerts'
682
+
683
+ # query parameters
684
+ query_params = {}
685
+
686
+ # header parameters
687
+ header_params = {}
688
+ # HTTP header 'Accept' (if needed)
689
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
690
+
691
+ # form parameters
692
+ form_params = {}
693
+
694
+ # http body (model)
695
+ post_body = @api_client.object_to_http_body(body)
696
+ auth_names = ['GenieKey']
697
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
698
+ :header_params => header_params,
699
+ :query_params => query_params,
700
+ :form_params => form_params,
701
+ :body => post_body,
702
+ :auth_names => auth_names,
703
+ :return_type => 'SuccessResponse')
704
+ if @api_client.config.debugging
705
+ @api_client.config.logger.debug "API called: AlertApi#create_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
706
+ end
707
+ return data, status_code, headers
708
+ end
709
+ # Create Saved Search
710
+ # Create saved search with given fields
711
+ # @param body Request payload of creating saved search
712
+ # @param [Hash] opts the optional parameters
713
+ # @return [CreateSavedSearchResponse]
714
+ def create_saved_searches(body, opts = {})
715
+ data, _status_code, _headers = create_saved_searches_with_http_info(body, opts)
716
+ data
717
+ end
718
+
719
+ # Create Saved Search
720
+ # Create saved search with given fields
721
+ # @param body Request payload of creating saved search
722
+ # @param [Hash] opts the optional parameters
723
+ # @return [Array<(CreateSavedSearchResponse, Fixnum, Hash)>] CreateSavedSearchResponse data, response status code and response headers
724
+ def create_saved_searches_with_http_info(body, opts = {})
725
+ if @api_client.config.debugging
726
+ @api_client.config.logger.debug 'Calling API: AlertApi.create_saved_searches ...'
727
+ end
728
+ # verify the required parameter 'body' is set
729
+ if @api_client.config.client_side_validation && body.nil?
730
+ fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.create_saved_searches"
731
+ end
732
+ # resource path
733
+ local_var_path = '/v2/alerts/saved-searches'
734
+
735
+ # query parameters
736
+ query_params = {}
737
+
738
+ # header parameters
739
+ header_params = {}
740
+ # HTTP header 'Accept' (if needed)
741
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
742
+
743
+ # form parameters
744
+ form_params = {}
745
+
746
+ # http body (model)
747
+ post_body = @api_client.object_to_http_body(body)
748
+ auth_names = ['GenieKey']
749
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
750
+ :header_params => header_params,
751
+ :query_params => query_params,
752
+ :form_params => form_params,
753
+ :body => post_body,
754
+ :auth_names => auth_names,
755
+ :return_type => 'CreateSavedSearchResponse')
756
+ if @api_client.config.debugging
757
+ @api_client.config.logger.debug "API called: AlertApi#create_saved_searches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
758
+ end
759
+ return data, status_code, headers
760
+ end
761
+ # Delete Alert
762
+ # Deletes an alert using alert id, tiny id or alias
763
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
764
+ # @param [Hash] opts the optional parameters
765
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
766
+ # @option opts [String] :user Display name of the request owner
767
+ # @option opts [String] :source Display name of the request source
768
+ # @return [SuccessResponse]
769
+ def delete_alert(identifier, opts = {})
770
+ data, _status_code, _headers = delete_alert_with_http_info(identifier, opts)
771
+ data
772
+ end
773
+
774
+ # Delete Alert
775
+ # Deletes an alert using alert id, tiny id or alias
776
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
777
+ # @param [Hash] opts the optional parameters
778
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
779
+ # @option opts [String] :user Display name of the request owner
780
+ # @option opts [String] :source Display name of the request source
781
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
782
+ def delete_alert_with_http_info(identifier, opts = {})
783
+ if @api_client.config.debugging
784
+ @api_client.config.logger.debug 'Calling API: AlertApi.delete_alert ...'
785
+ end
786
+ # verify the required parameter 'identifier' is set
787
+ if @api_client.config.client_side_validation && identifier.nil?
788
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.delete_alert"
789
+ end
790
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
791
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
792
+ end
793
+ # resource path
794
+ local_var_path = '/v2/alerts/{identifier}'.sub('{' + 'identifier' + '}', identifier.to_s)
795
+
796
+ # query parameters
797
+ query_params = {}
798
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
799
+ query_params[:'user'] = opts[:'user'] if !opts[:'user'].nil?
800
+ query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
801
+
802
+ # header parameters
803
+ header_params = {}
804
+ # HTTP header 'Accept' (if needed)
805
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
806
+
807
+ # form parameters
808
+ form_params = {}
809
+
810
+ # http body (model)
811
+ post_body = nil
812
+ auth_names = ['GenieKey']
813
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
814
+ :header_params => header_params,
815
+ :query_params => query_params,
816
+ :form_params => form_params,
817
+ :body => post_body,
818
+ :auth_names => auth_names,
819
+ :return_type => 'SuccessResponse')
820
+ if @api_client.config.debugging
821
+ @api_client.config.logger.debug "API called: AlertApi#delete_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
822
+ end
823
+ return data, status_code, headers
824
+ end
825
+ # Delete Saved Search
826
+ # Deletes saved search using given search identifier
827
+ # @param identifier Identifier of the saved search which could be &#39;id&#39; or &#39;name&#39;
828
+ # @param [Hash] opts the optional parameters
829
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, or &#39;name&#39; (default to id)
830
+ # @return [SuccessResponse]
831
+ def delete_saved_search(identifier, opts = {})
832
+ data, _status_code, _headers = delete_saved_search_with_http_info(identifier, opts)
833
+ data
834
+ end
835
+
836
+ # Delete Saved Search
837
+ # Deletes saved search using given search identifier
838
+ # @param identifier Identifier of the saved search which could be &#39;id&#39; or &#39;name&#39;
839
+ # @param [Hash] opts the optional parameters
840
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, or &#39;name&#39;
841
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
842
+ def delete_saved_search_with_http_info(identifier, opts = {})
843
+ if @api_client.config.debugging
844
+ @api_client.config.logger.debug 'Calling API: AlertApi.delete_saved_search ...'
845
+ end
846
+ # verify the required parameter 'identifier' is set
847
+ if @api_client.config.client_side_validation && identifier.nil?
848
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.delete_saved_search"
849
+ end
850
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'name'].include?(opts[:'identifier_type'])
851
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, name'
852
+ end
853
+ # resource path
854
+ local_var_path = '/v2/alerts/saved-searches/{identifier}'.sub('{' + 'identifier' + '}', identifier.to_s)
855
+
856
+ # query parameters
857
+ query_params = {}
858
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
859
+
860
+ # header parameters
861
+ header_params = {}
862
+ # HTTP header 'Accept' (if needed)
863
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
864
+
865
+ # form parameters
866
+ form_params = {}
867
+
868
+ # http body (model)
869
+ post_body = nil
870
+ auth_names = ['GenieKey']
871
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
872
+ :header_params => header_params,
873
+ :query_params => query_params,
874
+ :form_params => form_params,
875
+ :body => post_body,
876
+ :auth_names => auth_names,
877
+ :return_type => 'SuccessResponse')
878
+ if @api_client.config.debugging
879
+ @api_client.config.logger.debug "API called: AlertApi#delete_saved_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
880
+ end
881
+ return data, status_code, headers
882
+ end
883
+ # Escalate Alert
884
+ # Escalate alert with given identifier
885
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
886
+ # @param body Request payload of escalating alert action
887
+ # @param [Hash] opts the optional parameters
888
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
889
+ # @return [SuccessResponse]
890
+ def escalate_alert(identifier, body, opts = {})
891
+ data, _status_code, _headers = escalate_alert_with_http_info(identifier, body, opts)
892
+ data
893
+ end
894
+
895
+ # Escalate Alert
896
+ # Escalate alert with given identifier
897
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
898
+ # @param body Request payload of escalating alert action
899
+ # @param [Hash] opts the optional parameters
900
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
901
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
902
+ def escalate_alert_with_http_info(identifier, body, opts = {})
903
+ if @api_client.config.debugging
904
+ @api_client.config.logger.debug 'Calling API: AlertApi.escalate_alert ...'
905
+ end
906
+ # verify the required parameter 'identifier' is set
907
+ if @api_client.config.client_side_validation && identifier.nil?
908
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.escalate_alert"
909
+ end
910
+ # verify the required parameter 'body' is set
911
+ if @api_client.config.client_side_validation && body.nil?
912
+ fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.escalate_alert"
913
+ end
914
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
915
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
916
+ end
917
+ # resource path
918
+ local_var_path = '/v2/alerts/{identifier}/escalate'.sub('{' + 'identifier' + '}', identifier.to_s)
919
+
920
+ # query parameters
921
+ query_params = {}
922
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
923
+
924
+ # header parameters
925
+ header_params = {}
926
+ # HTTP header 'Accept' (if needed)
927
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
928
+
929
+ # form parameters
930
+ form_params = {}
931
+
932
+ # http body (model)
933
+ post_body = @api_client.object_to_http_body(body)
934
+ auth_names = ['GenieKey']
935
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
936
+ :header_params => header_params,
937
+ :query_params => query_params,
938
+ :form_params => form_params,
939
+ :body => post_body,
940
+ :auth_names => auth_names,
941
+ :return_type => 'SuccessResponse')
942
+ if @api_client.config.debugging
943
+ @api_client.config.logger.debug "API called: AlertApi#escalate_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
944
+ end
945
+ return data, status_code, headers
946
+ end
947
+ # Custom Alert Action
948
+ # Custom actions for the alert
949
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
950
+ # @param action_name Name of the action to execute
951
+ # @param [Hash] opts the optional parameters
952
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
953
+ # @option opts [ExecuteCustomAlertActionPayload] :body Request payload of executing custom alert action
954
+ # @return [SuccessResponse]
955
+ def execute_custom_alert_action(identifier, action_name, opts = {})
956
+ data, _status_code, _headers = execute_custom_alert_action_with_http_info(identifier, action_name, opts)
957
+ data
958
+ end
959
+
960
+ # Custom Alert Action
961
+ # Custom actions for the alert
962
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
963
+ # @param action_name Name of the action to execute
964
+ # @param [Hash] opts the optional parameters
965
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
966
+ # @option opts [ExecuteCustomAlertActionPayload] :body Request payload of executing custom alert action
967
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
968
+ def execute_custom_alert_action_with_http_info(identifier, action_name, opts = {})
969
+ if @api_client.config.debugging
970
+ @api_client.config.logger.debug 'Calling API: AlertApi.execute_custom_alert_action ...'
971
+ end
972
+ # verify the required parameter 'identifier' is set
973
+ if @api_client.config.client_side_validation && identifier.nil?
974
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.execute_custom_alert_action"
975
+ end
976
+ # verify the required parameter 'action_name' is set
977
+ if @api_client.config.client_side_validation && action_name.nil?
978
+ fail ArgumentError, "Missing the required parameter 'action_name' when calling AlertApi.execute_custom_alert_action"
979
+ end
980
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
981
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
982
+ end
983
+ # resource path
984
+ local_var_path = '/v2/alerts/{identifier}/actions/{actionName}'.sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'actionName' + '}', action_name.to_s)
985
+
986
+ # query parameters
987
+ query_params = {}
988
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
989
+
990
+ # header parameters
991
+ header_params = {}
992
+ # HTTP header 'Accept' (if needed)
993
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
994
+
995
+ # form parameters
996
+ form_params = {}
997
+
998
+ # http body (model)
999
+ post_body = @api_client.object_to_http_body(opts[:'body'])
1000
+ auth_names = ['GenieKey']
1001
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1002
+ :header_params => header_params,
1003
+ :query_params => query_params,
1004
+ :form_params => form_params,
1005
+ :body => post_body,
1006
+ :auth_names => auth_names,
1007
+ :return_type => 'SuccessResponse')
1008
+ if @api_client.config.debugging
1009
+ @api_client.config.logger.debug "API called: AlertApi#execute_custom_alert_action\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1010
+ end
1011
+ return data, status_code, headers
1012
+ end
1013
+ # Get Alert
1014
+ # Returns alert with given id, tiny id or alias
1015
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1016
+ # @param [Hash] opts the optional parameters
1017
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
1018
+ # @return [GetAlertResponse]
1019
+ def get_alert(identifier, opts = {})
1020
+ data, _status_code, _headers = get_alert_with_http_info(identifier, opts)
1021
+ data
1022
+ end
1023
+
1024
+ # Get Alert
1025
+ # Returns alert with given id, tiny id or alias
1026
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1027
+ # @param [Hash] opts the optional parameters
1028
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
1029
+ # @return [Array<(GetAlertResponse, Fixnum, Hash)>] GetAlertResponse data, response status code and response headers
1030
+ def get_alert_with_http_info(identifier, opts = {})
1031
+ if @api_client.config.debugging
1032
+ @api_client.config.logger.debug 'Calling API: AlertApi.get_alert ...'
1033
+ end
1034
+ # verify the required parameter 'identifier' is set
1035
+ if @api_client.config.client_side_validation && identifier.nil?
1036
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.get_alert"
1037
+ end
1038
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
1039
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
1040
+ end
1041
+ # resource path
1042
+ local_var_path = '/v2/alerts/{identifier}'.sub('{' + 'identifier' + '}', identifier.to_s)
1043
+
1044
+ # query parameters
1045
+ query_params = {}
1046
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
1047
+
1048
+ # header parameters
1049
+ header_params = {}
1050
+ # HTTP header 'Accept' (if needed)
1051
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1052
+
1053
+ # form parameters
1054
+ form_params = {}
1055
+
1056
+ # http body (model)
1057
+ post_body = nil
1058
+ auth_names = ['GenieKey']
1059
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1060
+ :header_params => header_params,
1061
+ :query_params => query_params,
1062
+ :form_params => form_params,
1063
+ :body => post_body,
1064
+ :auth_names => auth_names,
1065
+ :return_type => 'GetAlertResponse')
1066
+ if @api_client.config.debugging
1067
+ @api_client.config.logger.debug "API called: AlertApi#get_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1068
+ end
1069
+ return data, status_code, headers
1070
+ end
1071
+ # Get Alert Attachment
1072
+ # Get alert attachment name and url for the given identifier
1073
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1074
+ # @param attachment_id Identifier of alert attachment
1075
+ # @param [Hash] opts the optional parameters
1076
+ # @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
1077
+ # @return [GetAlertAttachmentResponse]
1078
+ def get_attachment(identifier, attachment_id, opts = {})
1079
+ data, _status_code, _headers = get_attachment_with_http_info(identifier, attachment_id, opts)
1080
+ data
1081
+ end
1082
+
1083
+ # Get Alert Attachment
1084
+ # Get alert attachment name and url for the given identifier
1085
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1086
+ # @param attachment_id Identifier of alert attachment
1087
+ # @param [Hash] opts the optional parameters
1088
+ # @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
1089
+ # @return [Array<(GetAlertAttachmentResponse, Fixnum, Hash)>] GetAlertAttachmentResponse data, response status code and response headers
1090
+ def get_attachment_with_http_info(identifier, attachment_id, opts = {})
1091
+ if @api_client.config.debugging
1092
+ @api_client.config.logger.debug 'Calling API: AlertApi.get_attachment ...'
1093
+ end
1094
+ # verify the required parameter 'identifier' is set
1095
+ if @api_client.config.client_side_validation && identifier.nil?
1096
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.get_attachment"
1097
+ end
1098
+ # verify the required parameter 'attachment_id' is set
1099
+ if @api_client.config.client_side_validation && attachment_id.nil?
1100
+ fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AlertApi.get_attachment"
1101
+ end
1102
+ if @api_client.config.client_side_validation && opts[:'alert_identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'alert_identifier_type'])
1103
+ fail ArgumentError, 'invalid value for "alert_identifier_type", must be one of id, alias, tiny'
1104
+ end
1105
+ # resource path
1106
+ local_var_path = '/v2/alerts/{identifier}/attachments/{attachmentId}'.sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'attachmentId' + '}', attachment_id.to_s)
1107
+
1108
+ # query parameters
1109
+ query_params = {}
1110
+ query_params[:'alertIdentifierType'] = opts[:'alert_identifier_type'] if !opts[:'alert_identifier_type'].nil?
1111
+
1112
+ # header parameters
1113
+ header_params = {}
1114
+ # HTTP header 'Accept' (if needed)
1115
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1116
+
1117
+ # form parameters
1118
+ form_params = {}
1119
+
1120
+ # http body (model)
1121
+ post_body = nil
1122
+ auth_names = ['GenieKey']
1123
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1124
+ :header_params => header_params,
1125
+ :query_params => query_params,
1126
+ :form_params => form_params,
1127
+ :body => post_body,
1128
+ :auth_names => auth_names,
1129
+ :return_type => 'GetAlertAttachmentResponse')
1130
+ if @api_client.config.debugging
1131
+ @api_client.config.logger.debug "API called: AlertApi#get_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1132
+ end
1133
+ return data, status_code, headers
1134
+ end
1135
+ # Get Request Status of Alert
1136
+ # Used to track the status and alert details (if any) of the request whose identifier is given
1137
+ # @param request_id Universally unique identifier of the questioned request
1138
+ # @param [Hash] opts the optional parameters
1139
+ # @return [GetRequestStatusResponse]
1140
+ def get_request_status(request_id, opts = {})
1141
+ data, _status_code, _headers = get_request_status_with_http_info(request_id, opts)
1142
+ data
1143
+ end
1144
+
1145
+ # Get Request Status of Alert
1146
+ # Used to track the status and alert details (if any) of the request whose identifier is given
1147
+ # @param request_id Universally unique identifier of the questioned request
1148
+ # @param [Hash] opts the optional parameters
1149
+ # @return [Array<(GetRequestStatusResponse, Fixnum, Hash)>] GetRequestStatusResponse data, response status code and response headers
1150
+ def get_request_status_with_http_info(request_id, opts = {})
1151
+ if @api_client.config.debugging
1152
+ @api_client.config.logger.debug 'Calling API: AlertApi.get_request_status ...'
1153
+ end
1154
+ # verify the required parameter 'request_id' is set
1155
+ if @api_client.config.client_side_validation && request_id.nil?
1156
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling AlertApi.get_request_status"
1157
+ end
1158
+ # resource path
1159
+ local_var_path = '/v2/alerts/requests/{requestId}'.sub('{' + 'requestId' + '}', request_id.to_s)
1160
+
1161
+ # query parameters
1162
+ query_params = {}
1163
+
1164
+ # header parameters
1165
+ header_params = {}
1166
+ # HTTP header 'Accept' (if needed)
1167
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1168
+
1169
+ # form parameters
1170
+ form_params = {}
1171
+
1172
+ # http body (model)
1173
+ post_body = nil
1174
+ auth_names = ['GenieKey']
1175
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1176
+ :header_params => header_params,
1177
+ :query_params => query_params,
1178
+ :form_params => form_params,
1179
+ :body => post_body,
1180
+ :auth_names => auth_names,
1181
+ :return_type => 'GetRequestStatusResponse')
1182
+ if @api_client.config.debugging
1183
+ @api_client.config.logger.debug "API called: AlertApi#get_request_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1184
+ end
1185
+ return data, status_code, headers
1186
+ end
1187
+ # Get Saved Search
1188
+ # Get saved search for the given search identifier
1189
+ # @param identifier Identifier of the saved search which could be &#39;id&#39; or &#39;name&#39;
1190
+ # @param [Hash] opts the optional parameters
1191
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, or &#39;name&#39; (default to id)
1192
+ # @return [GetSavedSearchResponse]
1193
+ def get_saved_search(identifier, opts = {})
1194
+ data, _status_code, _headers = get_saved_search_with_http_info(identifier, opts)
1195
+ data
1196
+ end
1197
+
1198
+ # Get Saved Search
1199
+ # Get saved search for the given search identifier
1200
+ # @param identifier Identifier of the saved search which could be &#39;id&#39; or &#39;name&#39;
1201
+ # @param [Hash] opts the optional parameters
1202
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, or &#39;name&#39;
1203
+ # @return [Array<(GetSavedSearchResponse, Fixnum, Hash)>] GetSavedSearchResponse data, response status code and response headers
1204
+ def get_saved_search_with_http_info(identifier, opts = {})
1205
+ if @api_client.config.debugging
1206
+ @api_client.config.logger.debug 'Calling API: AlertApi.get_saved_search ...'
1207
+ end
1208
+ # verify the required parameter 'identifier' is set
1209
+ if @api_client.config.client_side_validation && identifier.nil?
1210
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.get_saved_search"
1211
+ end
1212
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'name'].include?(opts[:'identifier_type'])
1213
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, name'
1214
+ end
1215
+ # resource path
1216
+ local_var_path = '/v2/alerts/saved-searches/{identifier}'.sub('{' + 'identifier' + '}', identifier.to_s)
1217
+
1218
+ # query parameters
1219
+ query_params = {}
1220
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
1221
+
1222
+ # header parameters
1223
+ header_params = {}
1224
+ # HTTP header 'Accept' (if needed)
1225
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1226
+
1227
+ # form parameters
1228
+ form_params = {}
1229
+
1230
+ # http body (model)
1231
+ post_body = nil
1232
+ auth_names = ['GenieKey']
1233
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1234
+ :header_params => header_params,
1235
+ :query_params => query_params,
1236
+ :form_params => form_params,
1237
+ :body => post_body,
1238
+ :auth_names => auth_names,
1239
+ :return_type => 'GetSavedSearchResponse')
1240
+ if @api_client.config.debugging
1241
+ @api_client.config.logger.debug "API called: AlertApi#get_saved_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1242
+ end
1243
+ return data, status_code, headers
1244
+ end
1245
+ # List Alerts
1246
+ # Returns list of alerts
1247
+ # @param [Hash] opts the optional parameters
1248
+ # @option opts [String] :query Search query to apply while filtering the alerts
1249
+ # @option opts [String] :search_identifier Identifier of the saved search query to apply while filtering the alerts
1250
+ # @option opts [String] :search_identifier_type Identifier type of the saved search query. Possible values are &#39;id&#39;, or &#39;name&#39; (default to id)
1251
+ # @option opts [Integer] :offset Start index of the result set (to apply pagination). Minimum value (and also default value) is 0
1252
+ # @option opts [Integer] :limit Maximum number of items to provide in the result. Must be a positive integer value. Default value is 20 and maximum value is 100
1253
+ # @option opts [String] :sort Name of the field that result set will be sorted by (default to createdAt)
1254
+ # @option opts [String] :order Sorting order of the result set (default to desc)
1255
+ # @return [ListAlertsResponse]
1256
+ def list_alerts(opts = {})
1257
+ data, _status_code, _headers = list_alerts_with_http_info(opts)
1258
+ data
1259
+ end
1260
+
1261
+ # List Alerts
1262
+ # Returns list of alerts
1263
+ # @param [Hash] opts the optional parameters
1264
+ # @option opts [String] :query Search query to apply while filtering the alerts
1265
+ # @option opts [String] :search_identifier Identifier of the saved search query to apply while filtering the alerts
1266
+ # @option opts [String] :search_identifier_type Identifier type of the saved search query. Possible values are &#39;id&#39;, or &#39;name&#39;
1267
+ # @option opts [Integer] :offset Start index of the result set (to apply pagination). Minimum value (and also default value) is 0
1268
+ # @option opts [Integer] :limit Maximum number of items to provide in the result. Must be a positive integer value. Default value is 20 and maximum value is 100
1269
+ # @option opts [String] :sort Name of the field that result set will be sorted by
1270
+ # @option opts [String] :order Sorting order of the result set
1271
+ # @return [Array<(ListAlertsResponse, Fixnum, Hash)>] ListAlertsResponse data, response status code and response headers
1272
+ def list_alerts_with_http_info(opts = {})
1273
+ if @api_client.config.debugging
1274
+ @api_client.config.logger.debug 'Calling API: AlertApi.list_alerts ...'
1275
+ end
1276
+ if @api_client.config.client_side_validation && opts[:'search_identifier_type'] && !['id', 'name'].include?(opts[:'search_identifier_type'])
1277
+ fail ArgumentError, 'invalid value for "search_identifier_type", must be one of id, name'
1278
+ end
1279
+ if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
1280
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling AlertApi.list_alerts, must be greater than or equal to 0.'
1281
+ end
1282
+
1283
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
1284
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AlertApi.list_alerts, must be smaller than or equal to 100.'
1285
+ end
1286
+
1287
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1288
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AlertApi.list_alerts, must be greater than or equal to 1.'
1289
+ end
1290
+
1291
+ if @api_client.config.client_side_validation && opts[:'sort'] && !['createdAt', 'updatedAt', 'tinyId', 'alias', 'message', 'status', 'acknowledged', 'isSeen', 'snoozed', 'snoozedUntil', 'count', 'lastOccurredAt', 'source', 'owner', 'integration.name', 'integration.type', 'report.ackTime', 'report.closeTime', 'report.acknowledgedBy', 'report.closedBy'].include?(opts[:'sort'])
1292
+ fail ArgumentError, 'invalid value for "sort", must be one of createdAt, updatedAt, tinyId, alias, message, status, acknowledged, isSeen, snoozed, snoozedUntil, count, lastOccurredAt, source, owner, integration.name, integration.type, report.ackTime, report.closeTime, report.acknowledgedBy, report.closedBy'
1293
+ end
1294
+ if @api_client.config.client_side_validation && opts[:'order'] && !['asc', 'desc'].include?(opts[:'order'])
1295
+ fail ArgumentError, 'invalid value for "order", must be one of asc, desc'
1296
+ end
1297
+ # resource path
1298
+ local_var_path = '/v2/alerts'
1299
+
1300
+ # query parameters
1301
+ query_params = {}
1302
+ query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
1303
+ query_params[:'searchIdentifier'] = opts[:'search_identifier'] if !opts[:'search_identifier'].nil?
1304
+ query_params[:'searchIdentifierType'] = opts[:'search_identifier_type'] if !opts[:'search_identifier_type'].nil?
1305
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
1306
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1307
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1308
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
1309
+
1310
+ # header parameters
1311
+ header_params = {}
1312
+ # HTTP header 'Accept' (if needed)
1313
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1314
+
1315
+ # form parameters
1316
+ form_params = {}
1317
+
1318
+ # http body (model)
1319
+ post_body = nil
1320
+ auth_names = ['GenieKey']
1321
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1322
+ :header_params => header_params,
1323
+ :query_params => query_params,
1324
+ :form_params => form_params,
1325
+ :body => post_body,
1326
+ :auth_names => auth_names,
1327
+ :return_type => 'ListAlertsResponse')
1328
+ if @api_client.config.debugging
1329
+ @api_client.config.logger.debug "API called: AlertApi#list_alerts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1330
+ end
1331
+ return data, status_code, headers
1332
+ end
1333
+ # List Alert Attachments
1334
+ # List alert attachment names and urls for related alert
1335
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1336
+ # @param [Hash] opts the optional parameters
1337
+ # @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
1338
+ # @return [ListAlertAttachmentsResponse]
1339
+ def list_attachments(identifier, opts = {})
1340
+ data, _status_code, _headers = list_attachments_with_http_info(identifier, opts)
1341
+ data
1342
+ end
1343
+
1344
+ # List Alert Attachments
1345
+ # List alert attachment names and urls for related alert
1346
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1347
+ # @param [Hash] opts the optional parameters
1348
+ # @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
1349
+ # @return [Array<(ListAlertAttachmentsResponse, Fixnum, Hash)>] ListAlertAttachmentsResponse data, response status code and response headers
1350
+ def list_attachments_with_http_info(identifier, opts = {})
1351
+ if @api_client.config.debugging
1352
+ @api_client.config.logger.debug 'Calling API: AlertApi.list_attachments ...'
1353
+ end
1354
+ # verify the required parameter 'identifier' is set
1355
+ if @api_client.config.client_side_validation && identifier.nil?
1356
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.list_attachments"
1357
+ end
1358
+ if @api_client.config.client_side_validation && opts[:'alert_identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'alert_identifier_type'])
1359
+ fail ArgumentError, 'invalid value for "alert_identifier_type", must be one of id, alias, tiny'
1360
+ end
1361
+ # resource path
1362
+ local_var_path = '/v2/alerts/{identifier}/attachments'.sub('{' + 'identifier' + '}', identifier.to_s)
1363
+
1364
+ # query parameters
1365
+ query_params = {}
1366
+ query_params[:'alertIdentifierType'] = opts[:'alert_identifier_type'] if !opts[:'alert_identifier_type'].nil?
1367
+
1368
+ # header parameters
1369
+ header_params = {}
1370
+ # HTTP header 'Accept' (if needed)
1371
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1372
+
1373
+ # form parameters
1374
+ form_params = {}
1375
+
1376
+ # http body (model)
1377
+ post_body = nil
1378
+ auth_names = ['GenieKey']
1379
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1380
+ :header_params => header_params,
1381
+ :query_params => query_params,
1382
+ :form_params => form_params,
1383
+ :body => post_body,
1384
+ :auth_names => auth_names,
1385
+ :return_type => 'ListAlertAttachmentsResponse')
1386
+ if @api_client.config.debugging
1387
+ @api_client.config.logger.debug "API called: AlertApi#list_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1388
+ end
1389
+ return data, status_code, headers
1390
+ end
1391
+ # List Alert Logs
1392
+ # List alert logs for the given alert identifier
1393
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1394
+ # @param [Hash] opts the optional parameters
1395
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
1396
+ # @option opts [String] :offset Starting value of the offset property
1397
+ # @option opts [String] :direction Page direction to apply for the given offset with &#39;next&#39; and &#39;prev&#39; (default to next)
1398
+ # @option opts [Integer] :limit Maximum number of items to provide in the result. Must be a positive integer value. Default value is 20 and maximum value is 100
1399
+ # @option opts [String] :order Sorting order of the result set (default to desc)
1400
+ # @return [ListAlertLogsResponse]
1401
+ def list_logs(identifier, opts = {})
1402
+ data, _status_code, _headers = list_logs_with_http_info(identifier, opts)
1403
+ data
1404
+ end
1405
+
1406
+ # List Alert Logs
1407
+ # List alert logs for the given alert identifier
1408
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1409
+ # @param [Hash] opts the optional parameters
1410
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
1411
+ # @option opts [String] :offset Starting value of the offset property
1412
+ # @option opts [String] :direction Page direction to apply for the given offset with &#39;next&#39; and &#39;prev&#39;
1413
+ # @option opts [Integer] :limit Maximum number of items to provide in the result. Must be a positive integer value. Default value is 20 and maximum value is 100
1414
+ # @option opts [String] :order Sorting order of the result set
1415
+ # @return [Array<(ListAlertLogsResponse, Fixnum, Hash)>] ListAlertLogsResponse data, response status code and response headers
1416
+ def list_logs_with_http_info(identifier, opts = {})
1417
+ if @api_client.config.debugging
1418
+ @api_client.config.logger.debug 'Calling API: AlertApi.list_logs ...'
1419
+ end
1420
+ # verify the required parameter 'identifier' is set
1421
+ if @api_client.config.client_side_validation && identifier.nil?
1422
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.list_logs"
1423
+ end
1424
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
1425
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
1426
+ end
1427
+ if @api_client.config.client_side_validation && opts[:'direction'] && !['next', 'prev'].include?(opts[:'direction'])
1428
+ fail ArgumentError, 'invalid value for "direction", must be one of next, prev'
1429
+ end
1430
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
1431
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AlertApi.list_logs, must be smaller than or equal to 100.'
1432
+ end
1433
+
1434
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1435
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AlertApi.list_logs, must be greater than or equal to 1.'
1436
+ end
1437
+
1438
+ if @api_client.config.client_side_validation && opts[:'order'] && !['asc', 'desc'].include?(opts[:'order'])
1439
+ fail ArgumentError, 'invalid value for "order", must be one of asc, desc'
1440
+ end
1441
+ # resource path
1442
+ local_var_path = '/v2/alerts/{identifier}/logs'.sub('{' + 'identifier' + '}', identifier.to_s)
1443
+
1444
+ # query parameters
1445
+ query_params = {}
1446
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
1447
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
1448
+ query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
1449
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1450
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
1451
+
1452
+ # header parameters
1453
+ header_params = {}
1454
+ # HTTP header 'Accept' (if needed)
1455
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1456
+
1457
+ # form parameters
1458
+ form_params = {}
1459
+
1460
+ # http body (model)
1461
+ post_body = nil
1462
+ auth_names = ['GenieKey']
1463
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1464
+ :header_params => header_params,
1465
+ :query_params => query_params,
1466
+ :form_params => form_params,
1467
+ :body => post_body,
1468
+ :auth_names => auth_names,
1469
+ :return_type => 'ListAlertLogsResponse')
1470
+ if @api_client.config.debugging
1471
+ @api_client.config.logger.debug "API called: AlertApi#list_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1472
+ end
1473
+ return data, status_code, headers
1474
+ end
1475
+ # List Alert Notes
1476
+ # List alert notes for the given alert identifier
1477
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1478
+ # @param [Hash] opts the optional parameters
1479
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
1480
+ # @option opts [String] :offset Starting value of the offset property
1481
+ # @option opts [String] :direction Page direction to apply for the given offset with &#39;next&#39; and &#39;prev&#39; (default to next)
1482
+ # @option opts [Integer] :limit Maximum number of items to provide in the result. Must be a positive integer value. Default value is 20 and maximum value is 100
1483
+ # @option opts [String] :order Sorting order of the result set (default to desc)
1484
+ # @return [ListAlertNotesResponse]
1485
+ def list_notes(identifier, opts = {})
1486
+ data, _status_code, _headers = list_notes_with_http_info(identifier, opts)
1487
+ data
1488
+ end
1489
+
1490
+ # List Alert Notes
1491
+ # List alert notes for the given alert identifier
1492
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1493
+ # @param [Hash] opts the optional parameters
1494
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
1495
+ # @option opts [String] :offset Starting value of the offset property
1496
+ # @option opts [String] :direction Page direction to apply for the given offset with &#39;next&#39; and &#39;prev&#39;
1497
+ # @option opts [Integer] :limit Maximum number of items to provide in the result. Must be a positive integer value. Default value is 20 and maximum value is 100
1498
+ # @option opts [String] :order Sorting order of the result set
1499
+ # @return [Array<(ListAlertNotesResponse, Fixnum, Hash)>] ListAlertNotesResponse data, response status code and response headers
1500
+ def list_notes_with_http_info(identifier, opts = {})
1501
+ if @api_client.config.debugging
1502
+ @api_client.config.logger.debug 'Calling API: AlertApi.list_notes ...'
1503
+ end
1504
+ # verify the required parameter 'identifier' is set
1505
+ if @api_client.config.client_side_validation && identifier.nil?
1506
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.list_notes"
1507
+ end
1508
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
1509
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
1510
+ end
1511
+ if @api_client.config.client_side_validation && opts[:'direction'] && !['next', 'prev'].include?(opts[:'direction'])
1512
+ fail ArgumentError, 'invalid value for "direction", must be one of next, prev'
1513
+ end
1514
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
1515
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AlertApi.list_notes, must be smaller than or equal to 100.'
1516
+ end
1517
+
1518
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1519
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AlertApi.list_notes, must be greater than or equal to 1.'
1520
+ end
1521
+
1522
+ if @api_client.config.client_side_validation && opts[:'order'] && !['asc', 'desc'].include?(opts[:'order'])
1523
+ fail ArgumentError, 'invalid value for "order", must be one of asc, desc'
1524
+ end
1525
+ # resource path
1526
+ local_var_path = '/v2/alerts/{identifier}/notes'.sub('{' + 'identifier' + '}', identifier.to_s)
1527
+
1528
+ # query parameters
1529
+ query_params = {}
1530
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
1531
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
1532
+ query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
1533
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1534
+ query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
1535
+
1536
+ # header parameters
1537
+ header_params = {}
1538
+ # HTTP header 'Accept' (if needed)
1539
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1540
+
1541
+ # form parameters
1542
+ form_params = {}
1543
+
1544
+ # http body (model)
1545
+ post_body = nil
1546
+ auth_names = ['GenieKey']
1547
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1548
+ :header_params => header_params,
1549
+ :query_params => query_params,
1550
+ :form_params => form_params,
1551
+ :body => post_body,
1552
+ :auth_names => auth_names,
1553
+ :return_type => 'ListAlertNotesResponse')
1554
+ if @api_client.config.debugging
1555
+ @api_client.config.logger.debug "API called: AlertApi#list_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1556
+ end
1557
+ return data, status_code, headers
1558
+ end
1559
+ # List Alert Recipients
1560
+ # List alert recipients for the given alert identifier
1561
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1562
+ # @param [Hash] opts the optional parameters
1563
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
1564
+ # @return [ListAlertRecipientsResponse]
1565
+ def list_recipients(identifier, opts = {})
1566
+ data, _status_code, _headers = list_recipients_with_http_info(identifier, opts)
1567
+ data
1568
+ end
1569
+
1570
+ # List Alert Recipients
1571
+ # List alert recipients for the given alert identifier
1572
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1573
+ # @param [Hash] opts the optional parameters
1574
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
1575
+ # @return [Array<(ListAlertRecipientsResponse, Fixnum, Hash)>] ListAlertRecipientsResponse data, response status code and response headers
1576
+ def list_recipients_with_http_info(identifier, opts = {})
1577
+ if @api_client.config.debugging
1578
+ @api_client.config.logger.debug 'Calling API: AlertApi.list_recipients ...'
1579
+ end
1580
+ # verify the required parameter 'identifier' is set
1581
+ if @api_client.config.client_side_validation && identifier.nil?
1582
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.list_recipients"
1583
+ end
1584
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
1585
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
1586
+ end
1587
+ # resource path
1588
+ local_var_path = '/v2/alerts/{identifier}/recipients'.sub('{' + 'identifier' + '}', identifier.to_s)
1589
+
1590
+ # query parameters
1591
+ query_params = {}
1592
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
1593
+
1594
+ # header parameters
1595
+ header_params = {}
1596
+ # HTTP header 'Accept' (if needed)
1597
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1598
+
1599
+ # form parameters
1600
+ form_params = {}
1601
+
1602
+ # http body (model)
1603
+ post_body = nil
1604
+ auth_names = ['GenieKey']
1605
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1606
+ :header_params => header_params,
1607
+ :query_params => query_params,
1608
+ :form_params => form_params,
1609
+ :body => post_body,
1610
+ :auth_names => auth_names,
1611
+ :return_type => 'ListAlertRecipientsResponse')
1612
+ if @api_client.config.debugging
1613
+ @api_client.config.logger.debug "API called: AlertApi#list_recipients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1614
+ end
1615
+ return data, status_code, headers
1616
+ end
1617
+ # Lists Saved Searches
1618
+ # List all saved searches
1619
+ # @param [Hash] opts the optional parameters
1620
+ # @return [ListSavedSearchesResponse]
1621
+ def list_saved_searches(opts = {})
1622
+ data, _status_code, _headers = list_saved_searches_with_http_info(opts)
1623
+ data
1624
+ end
1625
+
1626
+ # Lists Saved Searches
1627
+ # List all saved searches
1628
+ # @param [Hash] opts the optional parameters
1629
+ # @return [Array<(ListSavedSearchesResponse, Fixnum, Hash)>] ListSavedSearchesResponse data, response status code and response headers
1630
+ def list_saved_searches_with_http_info(opts = {})
1631
+ if @api_client.config.debugging
1632
+ @api_client.config.logger.debug 'Calling API: AlertApi.list_saved_searches ...'
1633
+ end
1634
+ # resource path
1635
+ local_var_path = '/v2/alerts/saved-searches'
1636
+
1637
+ # query parameters
1638
+ query_params = {}
1639
+
1640
+ # header parameters
1641
+ header_params = {}
1642
+ # HTTP header 'Accept' (if needed)
1643
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1644
+
1645
+ # form parameters
1646
+ form_params = {}
1647
+
1648
+ # http body (model)
1649
+ post_body = nil
1650
+ auth_names = ['GenieKey']
1651
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1652
+ :header_params => header_params,
1653
+ :query_params => query_params,
1654
+ :form_params => form_params,
1655
+ :body => post_body,
1656
+ :auth_names => auth_names,
1657
+ :return_type => 'ListSavedSearchesResponse')
1658
+ if @api_client.config.debugging
1659
+ @api_client.config.logger.debug "API called: AlertApi#list_saved_searches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1660
+ end
1661
+ return data, status_code, headers
1662
+ end
1663
+ # Remove Alert Attachment
1664
+ # Remove alert attachment for the given identifier
1665
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1666
+ # @param attachment_id Identifier of alert attachment
1667
+ # @param [Hash] opts the optional parameters
1668
+ # @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
1669
+ # @option opts [String] :user Display name of the request owner
1670
+ # @return [SuccessResponse]
1671
+ def remove_attachment(identifier, attachment_id, opts = {})
1672
+ data, _status_code, _headers = remove_attachment_with_http_info(identifier, attachment_id, opts)
1673
+ data
1674
+ end
1675
+
1676
+ # Remove Alert Attachment
1677
+ # Remove alert attachment for the given identifier
1678
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1679
+ # @param attachment_id Identifier of alert attachment
1680
+ # @param [Hash] opts the optional parameters
1681
+ # @option opts [String] :alert_identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
1682
+ # @option opts [String] :user Display name of the request owner
1683
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
1684
+ def remove_attachment_with_http_info(identifier, attachment_id, opts = {})
1685
+ if @api_client.config.debugging
1686
+ @api_client.config.logger.debug 'Calling API: AlertApi.remove_attachment ...'
1687
+ end
1688
+ # verify the required parameter 'identifier' is set
1689
+ if @api_client.config.client_side_validation && identifier.nil?
1690
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.remove_attachment"
1691
+ end
1692
+ # verify the required parameter 'attachment_id' is set
1693
+ if @api_client.config.client_side_validation && attachment_id.nil?
1694
+ fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AlertApi.remove_attachment"
1695
+ end
1696
+ if @api_client.config.client_side_validation && opts[:'alert_identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'alert_identifier_type'])
1697
+ fail ArgumentError, 'invalid value for "alert_identifier_type", must be one of id, alias, tiny'
1698
+ end
1699
+ # resource path
1700
+ local_var_path = '/v2/alerts/{identifier}/attachments/{attachmentId}'.sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'attachmentId' + '}', attachment_id.to_s)
1701
+
1702
+ # query parameters
1703
+ query_params = {}
1704
+ query_params[:'alertIdentifierType'] = opts[:'alert_identifier_type'] if !opts[:'alert_identifier_type'].nil?
1705
+ query_params[:'user'] = opts[:'user'] if !opts[:'user'].nil?
1706
+
1707
+ # header parameters
1708
+ header_params = {}
1709
+ # HTTP header 'Accept' (if needed)
1710
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1711
+
1712
+ # form parameters
1713
+ form_params = {}
1714
+
1715
+ # http body (model)
1716
+ post_body = nil
1717
+ auth_names = ['GenieKey']
1718
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1719
+ :header_params => header_params,
1720
+ :query_params => query_params,
1721
+ :form_params => form_params,
1722
+ :body => post_body,
1723
+ :auth_names => auth_names,
1724
+ :return_type => 'SuccessResponse')
1725
+ if @api_client.config.debugging
1726
+ @api_client.config.logger.debug "API called: AlertApi#remove_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1727
+ end
1728
+ return data, status_code, headers
1729
+ end
1730
+ # Remove Details
1731
+ # Remove details of the alert with given identifier
1732
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1733
+ # @param keys Comma separated list of keys to remove from the custom properties of the alert (e.g. &#39;key1,key2&#39;)
1734
+ # @param [Hash] opts the optional parameters
1735
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
1736
+ # @option opts [String] :user Display name of the request owner
1737
+ # @option opts [String] :note Additional alert note to add
1738
+ # @option opts [String] :source Display name of the request source
1739
+ # @return [SuccessResponse]
1740
+ def remove_details(identifier, keys, opts = {})
1741
+ data, _status_code, _headers = remove_details_with_http_info(identifier, keys, opts)
1742
+ data
1743
+ end
1744
+
1745
+ # Remove Details
1746
+ # Remove details of the alert with given identifier
1747
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1748
+ # @param keys Comma separated list of keys to remove from the custom properties of the alert (e.g. &#39;key1,key2&#39;)
1749
+ # @param [Hash] opts the optional parameters
1750
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
1751
+ # @option opts [String] :user Display name of the request owner
1752
+ # @option opts [String] :note Additional alert note to add
1753
+ # @option opts [String] :source Display name of the request source
1754
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
1755
+ def remove_details_with_http_info(identifier, keys, opts = {})
1756
+ if @api_client.config.debugging
1757
+ @api_client.config.logger.debug 'Calling API: AlertApi.remove_details ...'
1758
+ end
1759
+ # verify the required parameter 'identifier' is set
1760
+ if @api_client.config.client_side_validation && identifier.nil?
1761
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.remove_details"
1762
+ end
1763
+ # verify the required parameter 'keys' is set
1764
+ if @api_client.config.client_side_validation && keys.nil?
1765
+ fail ArgumentError, "Missing the required parameter 'keys' when calling AlertApi.remove_details"
1766
+ end
1767
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
1768
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
1769
+ end
1770
+ # resource path
1771
+ local_var_path = '/v2/alerts/{identifier}/details'.sub('{' + 'identifier' + '}', identifier.to_s)
1772
+
1773
+ # query parameters
1774
+ query_params = {}
1775
+ query_params[:'keys'] = @api_client.build_collection_param(keys, :csv)
1776
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
1777
+ query_params[:'user'] = opts[:'user'] if !opts[:'user'].nil?
1778
+ query_params[:'note'] = opts[:'note'] if !opts[:'note'].nil?
1779
+ query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
1780
+
1781
+ # header parameters
1782
+ header_params = {}
1783
+ # HTTP header 'Accept' (if needed)
1784
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1785
+
1786
+ # form parameters
1787
+ form_params = {}
1788
+
1789
+ # http body (model)
1790
+ post_body = nil
1791
+ auth_names = ['GenieKey']
1792
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1793
+ :header_params => header_params,
1794
+ :query_params => query_params,
1795
+ :form_params => form_params,
1796
+ :body => post_body,
1797
+ :auth_names => auth_names,
1798
+ :return_type => 'SuccessResponse')
1799
+ if @api_client.config.debugging
1800
+ @api_client.config.logger.debug "API called: AlertApi#remove_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1801
+ end
1802
+ return data, status_code, headers
1803
+ end
1804
+ # Remove Tags
1805
+ # Remove tags of the alert with given identifier
1806
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1807
+ # @param tags Tags field of the given alert as comma seperated values (e.g. &#39;tag1, tag2&#39;)
1808
+ # @param [Hash] opts the optional parameters
1809
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
1810
+ # @option opts [String] :user Display name of the request owner
1811
+ # @option opts [String] :note Additional alert note to add
1812
+ # @option opts [String] :source Display name of the request source
1813
+ # @return [SuccessResponse]
1814
+ def remove_tags(identifier, tags, opts = {})
1815
+ data, _status_code, _headers = remove_tags_with_http_info(identifier, tags, opts)
1816
+ data
1817
+ end
1818
+
1819
+ # Remove Tags
1820
+ # Remove tags of the alert with given identifier
1821
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1822
+ # @param tags Tags field of the given alert as comma seperated values (e.g. &#39;tag1, tag2&#39;)
1823
+ # @param [Hash] opts the optional parameters
1824
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
1825
+ # @option opts [String] :user Display name of the request owner
1826
+ # @option opts [String] :note Additional alert note to add
1827
+ # @option opts [String] :source Display name of the request source
1828
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
1829
+ def remove_tags_with_http_info(identifier, tags, opts = {})
1830
+ if @api_client.config.debugging
1831
+ @api_client.config.logger.debug 'Calling API: AlertApi.remove_tags ...'
1832
+ end
1833
+ # verify the required parameter 'identifier' is set
1834
+ if @api_client.config.client_side_validation && identifier.nil?
1835
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.remove_tags"
1836
+ end
1837
+ # verify the required parameter 'tags' is set
1838
+ if @api_client.config.client_side_validation && tags.nil?
1839
+ fail ArgumentError, "Missing the required parameter 'tags' when calling AlertApi.remove_tags"
1840
+ end
1841
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
1842
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
1843
+ end
1844
+ # resource path
1845
+ local_var_path = '/v2/alerts/{identifier}/tags'.sub('{' + 'identifier' + '}', identifier.to_s)
1846
+
1847
+ # query parameters
1848
+ query_params = {}
1849
+ query_params[:'tags'] = @api_client.build_collection_param(tags, :csv)
1850
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
1851
+ query_params[:'user'] = opts[:'user'] if !opts[:'user'].nil?
1852
+ query_params[:'note'] = opts[:'note'] if !opts[:'note'].nil?
1853
+ query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
1854
+
1855
+ # header parameters
1856
+ header_params = {}
1857
+ # HTTP header 'Accept' (if needed)
1858
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1859
+
1860
+ # form parameters
1861
+ form_params = {}
1862
+
1863
+ # http body (model)
1864
+ post_body = nil
1865
+ auth_names = ['GenieKey']
1866
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1867
+ :header_params => header_params,
1868
+ :query_params => query_params,
1869
+ :form_params => form_params,
1870
+ :body => post_body,
1871
+ :auth_names => auth_names,
1872
+ :return_type => 'SuccessResponse')
1873
+ if @api_client.config.debugging
1874
+ @api_client.config.logger.debug "API called: AlertApi#remove_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1875
+ end
1876
+ return data, status_code, headers
1877
+ end
1878
+ # Snooze Alert
1879
+ # Snooze alert with given identifier
1880
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1881
+ # @param body Request payload of snoozing alert action
1882
+ # @param [Hash] opts the optional parameters
1883
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
1884
+ # @return [SuccessResponse]
1885
+ def snooze_alert(identifier, body, opts = {})
1886
+ data, _status_code, _headers = snooze_alert_with_http_info(identifier, body, opts)
1887
+ data
1888
+ end
1889
+
1890
+ # Snooze Alert
1891
+ # Snooze alert with given identifier
1892
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1893
+ # @param body Request payload of snoozing alert action
1894
+ # @param [Hash] opts the optional parameters
1895
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
1896
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
1897
+ def snooze_alert_with_http_info(identifier, body, opts = {})
1898
+ if @api_client.config.debugging
1899
+ @api_client.config.logger.debug 'Calling API: AlertApi.snooze_alert ...'
1900
+ end
1901
+ # verify the required parameter 'identifier' is set
1902
+ if @api_client.config.client_side_validation && identifier.nil?
1903
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.snooze_alert"
1904
+ end
1905
+ # verify the required parameter 'body' is set
1906
+ if @api_client.config.client_side_validation && body.nil?
1907
+ fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.snooze_alert"
1908
+ end
1909
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
1910
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
1911
+ end
1912
+ # resource path
1913
+ local_var_path = '/v2/alerts/{identifier}/snooze'.sub('{' + 'identifier' + '}', identifier.to_s)
1914
+
1915
+ # query parameters
1916
+ query_params = {}
1917
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
1918
+
1919
+ # header parameters
1920
+ header_params = {}
1921
+ # HTTP header 'Accept' (if needed)
1922
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1923
+
1924
+ # form parameters
1925
+ form_params = {}
1926
+
1927
+ # http body (model)
1928
+ post_body = @api_client.object_to_http_body(body)
1929
+ auth_names = ['GenieKey']
1930
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1931
+ :header_params => header_params,
1932
+ :query_params => query_params,
1933
+ :form_params => form_params,
1934
+ :body => post_body,
1935
+ :auth_names => auth_names,
1936
+ :return_type => 'SuccessResponse')
1937
+ if @api_client.config.debugging
1938
+ @api_client.config.logger.debug "API called: AlertApi#snooze_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1939
+ end
1940
+ return data, status_code, headers
1941
+ end
1942
+ # UnAcknowledge Alert
1943
+ # UnAcknowledge alert with given identifier
1944
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1945
+ # @param [Hash] opts the optional parameters
1946
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
1947
+ # @option opts [UnAcknowledgeAlertPayload] :body Request payload of unacknowledging alert action
1948
+ # @return [SuccessResponse]
1949
+ def un_acknowledge_alert(identifier, opts = {})
1950
+ data, _status_code, _headers = un_acknowledge_alert_with_http_info(identifier, opts)
1951
+ data
1952
+ end
1953
+
1954
+ # UnAcknowledge Alert
1955
+ # UnAcknowledge alert with given identifier
1956
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
1957
+ # @param [Hash] opts the optional parameters
1958
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
1959
+ # @option opts [UnAcknowledgeAlertPayload] :body Request payload of unacknowledging alert action
1960
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
1961
+ def un_acknowledge_alert_with_http_info(identifier, opts = {})
1962
+ if @api_client.config.debugging
1963
+ @api_client.config.logger.debug 'Calling API: AlertApi.un_acknowledge_alert ...'
1964
+ end
1965
+ # verify the required parameter 'identifier' is set
1966
+ if @api_client.config.client_side_validation && identifier.nil?
1967
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.un_acknowledge_alert"
1968
+ end
1969
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
1970
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
1971
+ end
1972
+ # resource path
1973
+ local_var_path = '/v2/alerts/{identifier}/unacknowledge'.sub('{' + 'identifier' + '}', identifier.to_s)
1974
+
1975
+ # query parameters
1976
+ query_params = {}
1977
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
1978
+
1979
+ # header parameters
1980
+ header_params = {}
1981
+ # HTTP header 'Accept' (if needed)
1982
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1983
+
1984
+ # form parameters
1985
+ form_params = {}
1986
+
1987
+ # http body (model)
1988
+ post_body = @api_client.object_to_http_body(opts[:'body'])
1989
+ auth_names = ['GenieKey']
1990
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1991
+ :header_params => header_params,
1992
+ :query_params => query_params,
1993
+ :form_params => form_params,
1994
+ :body => post_body,
1995
+ :auth_names => auth_names,
1996
+ :return_type => 'SuccessResponse')
1997
+ if @api_client.config.debugging
1998
+ @api_client.config.logger.debug "API called: AlertApi#un_acknowledge_alert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1999
+ end
2000
+ return data, status_code, headers
2001
+ end
2002
+ # Update Alert Description
2003
+ # Update the description of the alert with given identifier
2004
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
2005
+ # @param body Request payload of update alert description
2006
+ # @param [Hash] opts the optional parameters
2007
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
2008
+ # @return [SuccessResponse]
2009
+ def update_alert_description(identifier, body, opts = {})
2010
+ data, _status_code, _headers = update_alert_description_with_http_info(identifier, body, opts)
2011
+ data
2012
+ end
2013
+
2014
+ # Update Alert Description
2015
+ # Update the description of the alert with given identifier
2016
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
2017
+ # @param body Request payload of update alert description
2018
+ # @param [Hash] opts the optional parameters
2019
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
2020
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
2021
+ def update_alert_description_with_http_info(identifier, body, opts = {})
2022
+ if @api_client.config.debugging
2023
+ @api_client.config.logger.debug 'Calling API: AlertApi.update_alert_description ...'
2024
+ end
2025
+ # verify the required parameter 'identifier' is set
2026
+ if @api_client.config.client_side_validation && identifier.nil?
2027
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.update_alert_description"
2028
+ end
2029
+ # verify the required parameter 'body' is set
2030
+ if @api_client.config.client_side_validation && body.nil?
2031
+ fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.update_alert_description"
2032
+ end
2033
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
2034
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
2035
+ end
2036
+ # resource path
2037
+ local_var_path = '/v2/alerts/{identifier}/description'.sub('{' + 'identifier' + '}', identifier.to_s)
2038
+
2039
+ # query parameters
2040
+ query_params = {}
2041
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
2042
+
2043
+ # header parameters
2044
+ header_params = {}
2045
+ # HTTP header 'Accept' (if needed)
2046
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2047
+
2048
+ # form parameters
2049
+ form_params = {}
2050
+
2051
+ # http body (model)
2052
+ post_body = @api_client.object_to_http_body(body)
2053
+ auth_names = ['GenieKey']
2054
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2055
+ :header_params => header_params,
2056
+ :query_params => query_params,
2057
+ :form_params => form_params,
2058
+ :body => post_body,
2059
+ :auth_names => auth_names,
2060
+ :return_type => 'SuccessResponse')
2061
+ if @api_client.config.debugging
2062
+ @api_client.config.logger.debug "API called: AlertApi#update_alert_description\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2063
+ end
2064
+ return data, status_code, headers
2065
+ end
2066
+ # Update Alert Message
2067
+ # Update the message of the alert with given identifier
2068
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
2069
+ # @param body Request payload of update alert message
2070
+ # @param [Hash] opts the optional parameters
2071
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
2072
+ # @return [SuccessResponse]
2073
+ def update_alert_message(identifier, body, opts = {})
2074
+ data, _status_code, _headers = update_alert_message_with_http_info(identifier, body, opts)
2075
+ data
2076
+ end
2077
+
2078
+ # Update Alert Message
2079
+ # Update the message of the alert with given identifier
2080
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
2081
+ # @param body Request payload of update alert message
2082
+ # @param [Hash] opts the optional parameters
2083
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
2084
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
2085
+ def update_alert_message_with_http_info(identifier, body, opts = {})
2086
+ if @api_client.config.debugging
2087
+ @api_client.config.logger.debug 'Calling API: AlertApi.update_alert_message ...'
2088
+ end
2089
+ # verify the required parameter 'identifier' is set
2090
+ if @api_client.config.client_side_validation && identifier.nil?
2091
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.update_alert_message"
2092
+ end
2093
+ # verify the required parameter 'body' is set
2094
+ if @api_client.config.client_side_validation && body.nil?
2095
+ fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.update_alert_message"
2096
+ end
2097
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
2098
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
2099
+ end
2100
+ # resource path
2101
+ local_var_path = '/v2/alerts/{identifier}/message'.sub('{' + 'identifier' + '}', identifier.to_s)
2102
+
2103
+ # query parameters
2104
+ query_params = {}
2105
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
2106
+
2107
+ # header parameters
2108
+ header_params = {}
2109
+ # HTTP header 'Accept' (if needed)
2110
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2111
+
2112
+ # form parameters
2113
+ form_params = {}
2114
+
2115
+ # http body (model)
2116
+ post_body = @api_client.object_to_http_body(body)
2117
+ auth_names = ['GenieKey']
2118
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2119
+ :header_params => header_params,
2120
+ :query_params => query_params,
2121
+ :form_params => form_params,
2122
+ :body => post_body,
2123
+ :auth_names => auth_names,
2124
+ :return_type => 'SuccessResponse')
2125
+ if @api_client.config.debugging
2126
+ @api_client.config.logger.debug "API called: AlertApi#update_alert_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2127
+ end
2128
+ return data, status_code, headers
2129
+ end
2130
+ # Update Alert Priority
2131
+ # Update the priority of the alert with given identifier
2132
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
2133
+ # @param body Request payload of update alert priority
2134
+ # @param [Hash] opts the optional parameters
2135
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39; (default to id)
2136
+ # @return [SuccessResponse]
2137
+ def update_alert_priority(identifier, body, opts = {})
2138
+ data, _status_code, _headers = update_alert_priority_with_http_info(identifier, body, opts)
2139
+ data
2140
+ end
2141
+
2142
+ # Update Alert Priority
2143
+ # Update the priority of the alert with given identifier
2144
+ # @param identifier Identifier of alert which could be alert id, tiny id or alert alias
2145
+ # @param body Request payload of update alert priority
2146
+ # @param [Hash] opts the optional parameters
2147
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, &#39;alias&#39; or &#39;tiny&#39;
2148
+ # @return [Array<(SuccessResponse, Fixnum, Hash)>] SuccessResponse data, response status code and response headers
2149
+ def update_alert_priority_with_http_info(identifier, body, opts = {})
2150
+ if @api_client.config.debugging
2151
+ @api_client.config.logger.debug 'Calling API: AlertApi.update_alert_priority ...'
2152
+ end
2153
+ # verify the required parameter 'identifier' is set
2154
+ if @api_client.config.client_side_validation && identifier.nil?
2155
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.update_alert_priority"
2156
+ end
2157
+ # verify the required parameter 'body' is set
2158
+ if @api_client.config.client_side_validation && body.nil?
2159
+ fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.update_alert_priority"
2160
+ end
2161
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'alias', 'tiny'].include?(opts[:'identifier_type'])
2162
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, alias, tiny'
2163
+ end
2164
+ # resource path
2165
+ local_var_path = '/v2/alerts/{identifier}/priority'.sub('{' + 'identifier' + '}', identifier.to_s)
2166
+
2167
+ # query parameters
2168
+ query_params = {}
2169
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
2170
+
2171
+ # header parameters
2172
+ header_params = {}
2173
+ # HTTP header 'Accept' (if needed)
2174
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2175
+
2176
+ # form parameters
2177
+ form_params = {}
2178
+
2179
+ # http body (model)
2180
+ post_body = @api_client.object_to_http_body(body)
2181
+ auth_names = ['GenieKey']
2182
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2183
+ :header_params => header_params,
2184
+ :query_params => query_params,
2185
+ :form_params => form_params,
2186
+ :body => post_body,
2187
+ :auth_names => auth_names,
2188
+ :return_type => 'SuccessResponse')
2189
+ if @api_client.config.debugging
2190
+ @api_client.config.logger.debug "API called: AlertApi#update_alert_priority\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2191
+ end
2192
+ return data, status_code, headers
2193
+ end
2194
+ # Update Saved Search
2195
+ # Update saved search for the given search identifier
2196
+ # @param identifier Identifier of the saved search which could be &#39;id&#39; or &#39;name&#39;
2197
+ # @param body Request payload of updating saved search
2198
+ # @param [Hash] opts the optional parameters
2199
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, or &#39;name&#39; (default to id)
2200
+ # @return [GetSavedSearchResponse]
2201
+ def update_saved_search(identifier, body, opts = {})
2202
+ data, _status_code, _headers = update_saved_search_with_http_info(identifier, body, opts)
2203
+ data
2204
+ end
2205
+
2206
+ # Update Saved Search
2207
+ # Update saved search for the given search identifier
2208
+ # @param identifier Identifier of the saved search which could be &#39;id&#39; or &#39;name&#39;
2209
+ # @param body Request payload of updating saved search
2210
+ # @param [Hash] opts the optional parameters
2211
+ # @option opts [String] :identifier_type Type of the identifier that is provided as an in-line parameter. Possible values are &#39;id&#39;, or &#39;name&#39;
2212
+ # @return [Array<(GetSavedSearchResponse, Fixnum, Hash)>] GetSavedSearchResponse data, response status code and response headers
2213
+ def update_saved_search_with_http_info(identifier, body, opts = {})
2214
+ if @api_client.config.debugging
2215
+ @api_client.config.logger.debug 'Calling API: AlertApi.update_saved_search ...'
2216
+ end
2217
+ # verify the required parameter 'identifier' is set
2218
+ if @api_client.config.client_side_validation && identifier.nil?
2219
+ fail ArgumentError, "Missing the required parameter 'identifier' when calling AlertApi.update_saved_search"
2220
+ end
2221
+ # verify the required parameter 'body' is set
2222
+ if @api_client.config.client_side_validation && body.nil?
2223
+ fail ArgumentError, "Missing the required parameter 'body' when calling AlertApi.update_saved_search"
2224
+ end
2225
+ if @api_client.config.client_side_validation && opts[:'identifier_type'] && !['id', 'name'].include?(opts[:'identifier_type'])
2226
+ fail ArgumentError, 'invalid value for "identifier_type", must be one of id, name'
2227
+ end
2228
+ # resource path
2229
+ local_var_path = '/v2/alerts/saved-searches/{identifier}'.sub('{' + 'identifier' + '}', identifier.to_s)
2230
+
2231
+ # query parameters
2232
+ query_params = {}
2233
+ query_params[:'identifierType'] = opts[:'identifier_type'] if !opts[:'identifier_type'].nil?
2234
+
2235
+ # header parameters
2236
+ header_params = {}
2237
+ # HTTP header 'Accept' (if needed)
2238
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2239
+
2240
+ # form parameters
2241
+ form_params = {}
2242
+
2243
+ # http body (model)
2244
+ post_body = @api_client.object_to_http_body(body)
2245
+ auth_names = ['GenieKey']
2246
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
2247
+ :header_params => header_params,
2248
+ :query_params => query_params,
2249
+ :form_params => form_params,
2250
+ :body => post_body,
2251
+ :auth_names => auth_names,
2252
+ :return_type => 'GetSavedSearchResponse')
2253
+ if @api_client.config.debugging
2254
+ @api_client.config.logger.debug "API called: AlertApi#update_saved_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2255
+ end
2256
+ return data, status_code, headers
2257
+ end
2258
+ end
2259
+ end