SematextCloud 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (345) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/SematextCloud.gemspec +4 -5
  4. data/docs/AlertNotification.md +2 -1
  5. data/docs/AlertNotificationRequest.md +2 -1
  6. data/docs/AlertNotificationsApi.md +30 -28
  7. data/docs/AlertRule.md +2 -1
  8. data/docs/AlertRuleResponse.md +2 -1
  9. data/docs/AlertRuleResponseEntry.md +2 -1
  10. data/docs/AlertRuleScheduleTimeRangeDto.md +2 -1
  11. data/docs/AlertRuleScheduleWeekdayDto.md +2 -1
  12. data/docs/AlertRulesResponse.md +2 -1
  13. data/docs/AlertRulesResponseEntry.md +2 -1
  14. data/docs/AlertsApi.md +55 -53
  15. data/docs/App.md +2 -1
  16. data/docs/AppDescription.md +2 -1
  17. data/docs/AppMetadata.md +2 -1
  18. data/docs/AppResponse.md +2 -1
  19. data/docs/AppResponseEntry.md +2 -1
  20. data/docs/AppTypesResponse.md +2 -1
  21. data/docs/AppTypesResponseEntry.md +2 -1
  22. data/docs/AppsApi.md +85 -80
  23. data/docs/AppsResponse.md +2 -1
  24. data/docs/AppsResponseEntry.md +2 -1
  25. data/docs/AwsSettingsControllerApi.md +10 -8
  26. data/docs/BasicAuthMethodDto.md +2 -1
  27. data/docs/BasicOrganizationDto.md +2 -1
  28. data/docs/BillingApi.md +31 -29
  29. data/docs/BillingInfo.md +2 -1
  30. data/docs/ChargesDetailsResponseDto.md +2 -1
  31. data/docs/CloudWatchSettings.md +2 -1
  32. data/docs/CloudWatchSettingsResponse.md +2 -1
  33. data/docs/CloudWatchSettingsResponseEntry.md +2 -1
  34. data/docs/CreateAppInfo.md +2 -1
  35. data/docs/CreateTokenDto.md +2 -1
  36. data/docs/DailyDto.md +10 -7
  37. data/docs/DayUsageData.md +23 -23
  38. data/docs/Dimension.md +2 -1
  39. data/docs/Error.md +2 -1
  40. data/docs/EventDto.md +2 -1
  41. data/docs/FilterValue.md +2 -1
  42. data/docs/GenericApiResponse.md +2 -1
  43. data/docs/GenericMapBasedApiResponse.md +2 -1
  44. data/docs/Invitation.md +2 -1
  45. data/docs/Invoice.md +2 -1
  46. data/docs/InvoiceResponse.md +2 -1
  47. data/docs/InvoiceResponseEntry.md +2 -1
  48. data/docs/LimitChangeEventDTO.md +2 -1
  49. data/docs/LogsAppApi.md +10 -8
  50. data/docs/LogsUsageApiControllerApi.md +9 -7
  51. data/docs/MailReportResponse.md +2 -1
  52. data/docs/MailReportResponseResponseEntry.md +2 -1
  53. data/docs/MinPeriodFeePeriod.md +17 -14
  54. data/docs/MonitoringAppApi.md +17 -15
  55. data/docs/NotificationIntegration.md +2 -1
  56. data/docs/NotificationsResponse.md +2 -1
  57. data/docs/NotificationsResponseEntry.md +2 -1
  58. data/docs/Plan.md +2 -1
  59. data/docs/PlansResponse.md +2 -1
  60. data/docs/PlansResponseEntry.md +2 -1
  61. data/docs/ReportInfo.md +13 -11
  62. data/docs/ResetPasswordApi.md +10 -8
  63. data/docs/ServiceIntegration.md +2 -1
  64. data/docs/Subscription.md +20 -18
  65. data/docs/SubscriptionDashboardDto.md +2 -1
  66. data/docs/SubscriptionDto.md +17 -15
  67. data/docs/SubscriptionResponse.md +2 -1
  68. data/docs/SubscriptionResponseEntry.md +2 -1
  69. data/docs/SubscriptionsApi.md +102 -99
  70. data/docs/SubscriptionsResponse.md +2 -1
  71. data/docs/SubscriptionsResponseEntry.md +2 -1
  72. data/docs/TagApiControllerApi.md +32 -30
  73. data/docs/TagNamesResponse.md +2 -1
  74. data/docs/TokenDto.md +2 -1
  75. data/docs/TokenResponse.md +2 -1
  76. data/docs/TokenResponseEntry.md +2 -1
  77. data/docs/TokensApiControllerApi.md +62 -60
  78. data/docs/TokensResponse.md +2 -1
  79. data/docs/TokensResponseEntry.md +2 -1
  80. data/docs/UpdateAppInfo.md +2 -1
  81. data/docs/UpdatePlanResponse.md +2 -1
  82. data/docs/UpdatePlanResponseDto.md +2 -1
  83. data/docs/UpdatePlanResponseEntry.md +2 -1
  84. data/docs/UpdateSubscriptionDto.md +2 -1
  85. data/docs/UpdateTokenDto.md +2 -1
  86. data/docs/UsageDto.md +6 -3
  87. data/docs/UsageMultiResponse.md +2 -1
  88. data/docs/UsageMultiResponseEntry.md +2 -1
  89. data/docs/UsageResponse.md +2 -1
  90. data/docs/UsageResponseEntry.md +2 -1
  91. data/docs/UserInfo.md +2 -1
  92. data/docs/UserPermissions.md +2 -1
  93. data/docs/UserRole.md +2 -1
  94. data/lib/SematextCloud/api/alert_notifications_api.rb +42 -37
  95. data/lib/SematextCloud/api/alerts_api.rb +81 -72
  96. data/lib/SematextCloud/api/apps_api.rb +125 -106
  97. data/lib/SematextCloud/api/aws_settings_controller_api.rb +26 -25
  98. data/lib/SematextCloud/api/billing_api.rb +51 -46
  99. data/lib/SematextCloud/api/logs_app_api.rb +21 -20
  100. data/lib/{stcloud → SematextCloud}/api/logs_usage_api_controller_api.rb +2 -2
  101. data/lib/SematextCloud/api/monitoring_app_api.rb +23 -22
  102. data/lib/SematextCloud/api/reset_password_api.rb +21 -20
  103. data/lib/SematextCloud/api/subscriptions_api.rb +203 -172
  104. data/lib/SematextCloud/api/tag_api_controller_api.rb +53 -50
  105. data/lib/SematextCloud/api/tokens_api_controller_api.rb +84 -73
  106. data/lib/SematextCloud/api_client.rb +41 -42
  107. data/lib/SematextCloud/api_error.rb +21 -2
  108. data/lib/SematextCloud/configuration.rb +5 -9
  109. data/lib/{stcloud → SematextCloud}/models/alert_notification.rb +5 -5
  110. data/lib/SematextCloud/models/alert_notification_request.rb +49 -26
  111. data/lib/SematextCloud/models/alert_rule.rb +175 -152
  112. data/lib/{stcloud/models/app_response.rb → SematextCloud/models/alert_rule_response.rb} +6 -6
  113. data/lib/{stcloud → SematextCloud}/models/alert_rule_response_entry.rb +5 -5
  114. data/lib/SematextCloud/models/alert_rule_schedule_time_range_dto.rb +44 -21
  115. data/lib/SematextCloud/models/alert_rule_schedule_weekday_dto.rb +49 -26
  116. data/lib/SematextCloud/models/alert_rules_response.rb +235 -0
  117. data/lib/{stcloud → SematextCloud}/models/alert_rules_response_entry.rb +5 -5
  118. data/lib/SematextCloud/models/app.rb +163 -93
  119. data/lib/SematextCloud/models/app_description.rb +41 -18
  120. data/lib/SematextCloud/models/app_metadata.rb +60 -37
  121. data/lib/{stcloud/models/alert_rule_response.rb → SematextCloud/models/app_response.rb} +6 -6
  122. data/lib/{stcloud → SematextCloud}/models/app_response_entry.rb +5 -5
  123. data/lib/{stcloud → SematextCloud}/models/app_types_response.rb +5 -5
  124. data/lib/{stcloud → SematextCloud}/models/app_types_response_entry.rb +5 -5
  125. data/lib/{stcloud/models/alert_rules_response.rb → SematextCloud/models/apps_response.rb} +6 -6
  126. data/lib/{stcloud → SematextCloud}/models/apps_response_entry.rb +5 -5
  127. data/lib/SematextCloud/models/basic_auth_method_dto.rb +47 -24
  128. data/lib/SematextCloud/models/basic_organization_dto.rb +51 -28
  129. data/lib/SematextCloud/models/billing_info.rb +48 -25
  130. data/lib/{stcloud → SematextCloud}/models/charges_details_response_dto.rb +5 -5
  131. data/lib/SematextCloud/models/cloud_watch_settings.rb +56 -33
  132. data/lib/SematextCloud/models/cloud_watch_settings_response.rb +235 -0
  133. data/lib/{stcloud → SematextCloud}/models/cloud_watch_settings_response_entry.rb +5 -5
  134. data/lib/SematextCloud/models/create_app_info.rb +53 -31
  135. data/lib/SematextCloud/models/create_token_dto.rb +46 -23
  136. data/lib/{stcloud → SematextCloud}/models/daily_dto.rb +36 -18
  137. data/lib/{stcloud → SematextCloud}/models/day_usage_data.rb +5 -5
  138. data/lib/{stcloud → SematextCloud}/models/dimension.rb +5 -5
  139. data/lib/SematextCloud/models/error.rb +43 -20
  140. data/lib/{stcloud → SematextCloud}/models/event_dto.rb +7 -7
  141. data/lib/SematextCloud/models/filter_value.rb +53 -30
  142. data/lib/SematextCloud/models/generic_api_response.rb +46 -24
  143. data/lib/{stcloud → SematextCloud}/models/generic_map_based_api_response.rb +5 -5
  144. data/lib/SematextCloud/models/invitation.rb +74 -52
  145. data/lib/{stcloud → SematextCloud}/models/invoice.rb +5 -5
  146. data/lib/{stcloud/models/notifications_response.rb → SematextCloud/models/invoice_response.rb} +6 -6
  147. data/lib/{stcloud → SematextCloud}/models/invoice_response_entry.rb +5 -5
  148. data/lib/{stcloud → SematextCloud}/models/limit_change_event_dto.rb +5 -5
  149. data/lib/{stcloud → SematextCloud}/models/mail_report_response.rb +5 -5
  150. data/lib/{stcloud/models/subscription_response_entry.rb → SematextCloud/models/mail_report_response_response_entry.rb} +6 -6
  151. data/lib/{stcloud → SematextCloud}/models/min_period_fee_period.rb +24 -6
  152. data/lib/SematextCloud/models/notification_integration.rb +73 -50
  153. data/lib/SematextCloud/models/notifications_response.rb +235 -0
  154. data/lib/{stcloud → SematextCloud}/models/notifications_response_entry.rb +5 -5
  155. data/lib/SematextCloud/models/plan.rb +80 -57
  156. data/lib/{stcloud → SematextCloud}/models/plans_response.rb +5 -5
  157. data/lib/{stcloud → SematextCloud}/models/plans_response_entry.rb +5 -5
  158. data/lib/SematextCloud/models/report_info.rb +69 -37
  159. data/lib/SematextCloud/models/service_integration.rb +71 -48
  160. data/lib/{stcloud → SematextCloud}/models/subscription.rb +15 -6
  161. data/lib/SematextCloud/models/subscription_dashboard_dto.rb +72 -49
  162. data/lib/SematextCloud/models/subscription_dto.rb +85 -53
  163. data/lib/{stcloud/models/cloud_watch_settings_response.rb → SematextCloud/models/subscription_response.rb} +6 -6
  164. data/lib/{stcloud/models/mail_report_response_response_entry.rb → SematextCloud/models/subscription_response_entry.rb} +6 -6
  165. data/lib/{stcloud → SematextCloud}/models/subscriptions_response.rb +5 -5
  166. data/lib/{stcloud → SematextCloud}/models/subscriptions_response_entry.rb +5 -5
  167. data/lib/{stcloud → SematextCloud}/models/tag_names_response.rb +5 -5
  168. data/lib/{stcloud → SematextCloud}/models/token_dto.rb +5 -5
  169. data/lib/{stcloud → SematextCloud}/models/token_response.rb +5 -5
  170. data/lib/{stcloud → SematextCloud}/models/token_response_entry.rb +5 -5
  171. data/lib/{stcloud/models/subscription_response.rb → SematextCloud/models/tokens_response.rb} +6 -6
  172. data/lib/{stcloud → SematextCloud}/models/tokens_response_entry.rb +5 -5
  173. data/lib/SematextCloud/models/update_app_info.rb +64 -41
  174. data/lib/{stcloud → SematextCloud}/models/update_plan_response.rb +5 -5
  175. data/lib/{stcloud → SematextCloud}/models/update_plan_response_dto.rb +5 -5
  176. data/lib/{stcloud → SematextCloud}/models/update_plan_response_entry.rb +5 -5
  177. data/lib/SematextCloud/models/update_subscription_dto.rb +42 -19
  178. data/lib/SematextCloud/models/update_token_dto.rb +44 -21
  179. data/lib/{stcloud → SematextCloud}/models/usage_dto.rb +39 -21
  180. data/lib/{stcloud → SematextCloud}/models/usage_multi_response.rb +5 -5
  181. data/lib/{stcloud → SematextCloud}/models/usage_multi_response_entry.rb +5 -5
  182. data/lib/{stcloud → SematextCloud}/models/usage_response.rb +5 -5
  183. data/lib/{stcloud → SematextCloud}/models/usage_response_entry.rb +5 -5
  184. data/lib/SematextCloud/models/user_info.rb +42 -19
  185. data/lib/SematextCloud/models/user_permissions.rb +48 -25
  186. data/lib/SematextCloud/models/user_role.rb +53 -30
  187. data/lib/SematextCloud/version.rb +2 -3
  188. data/lib/SematextCloud.rb +57 -7
  189. data/spec/api/alert_notifications_api_spec.rb +8 -8
  190. data/spec/api/alerts_api_spec.rb +8 -8
  191. data/spec/api/apps_api_spec.rb +10 -10
  192. data/spec/api/aws_settings_controller_api_spec.rb +4 -4
  193. data/spec/api/billing_api_spec.rb +6 -6
  194. data/spec/api/logs_app_api_spec.rb +4 -4
  195. data/spec/api/logs_usage_api_controller_api_spec.rb +4 -4
  196. data/spec/api/monitoring_app_api_spec.rb +6 -6
  197. data/spec/api/reset_password_api_spec.rb +4 -4
  198. data/spec/api/subscriptions_api_spec.rb +10 -10
  199. data/spec/api/tag_api_controller_api_spec.rb +6 -6
  200. data/spec/api/tokens_api_controller_api_spec.rb +12 -12
  201. data/spec/api_client_spec.rb +30 -30
  202. data/spec/configuration_spec.rb +4 -4
  203. data/spec/models/alert_notification_request_spec.rb +4 -4
  204. data/spec/models/alert_notification_spec.rb +4 -4
  205. data/spec/models/alert_rule_response_entry_spec.rb +4 -4
  206. data/spec/models/alert_rule_response_spec.rb +4 -4
  207. data/spec/models/alert_rule_schedule_time_range_dto_spec.rb +4 -4
  208. data/spec/models/alert_rule_schedule_weekday_dto_spec.rb +4 -4
  209. data/spec/models/alert_rule_spec.rb +4 -4
  210. data/spec/models/alert_rules_response_entry_spec.rb +4 -4
  211. data/spec/models/alert_rules_response_spec.rb +4 -4
  212. data/spec/models/app_description_spec.rb +4 -4
  213. data/spec/models/app_metadata_spec.rb +4 -4
  214. data/spec/models/app_response_entry_spec.rb +4 -4
  215. data/spec/models/app_response_spec.rb +4 -4
  216. data/spec/models/app_spec.rb +4 -4
  217. data/spec/models/app_types_response_entry_spec.rb +4 -4
  218. data/spec/models/app_types_response_spec.rb +4 -4
  219. data/spec/models/apps_response_entry_spec.rb +4 -4
  220. data/spec/models/apps_response_spec.rb +4 -4
  221. data/spec/models/basic_auth_method_dto_spec.rb +4 -4
  222. data/spec/models/basic_organization_dto_spec.rb +4 -4
  223. data/spec/models/billing_info_spec.rb +4 -4
  224. data/spec/models/charges_details_response_dto_spec.rb +4 -4
  225. data/spec/models/cloud_watch_settings_response_entry_spec.rb +4 -4
  226. data/spec/models/cloud_watch_settings_response_spec.rb +4 -4
  227. data/spec/models/cloud_watch_settings_spec.rb +4 -4
  228. data/spec/models/create_app_info_spec.rb +4 -4
  229. data/spec/models/create_token_dto_spec.rb +4 -4
  230. data/spec/models/daily_dto_spec.rb +18 -6
  231. data/spec/models/day_usage_data_spec.rb +4 -4
  232. data/spec/models/dimension_spec.rb +4 -4
  233. data/spec/models/error_spec.rb +4 -4
  234. data/spec/models/event_dto_spec.rb +5 -5
  235. data/spec/models/filter_value_spec.rb +4 -4
  236. data/spec/models/generic_api_response_spec.rb +4 -4
  237. data/spec/models/generic_map_based_api_response_spec.rb +4 -4
  238. data/spec/models/invitation_spec.rb +4 -4
  239. data/spec/models/invoice_response_entry_spec.rb +4 -4
  240. data/spec/models/invoice_response_spec.rb +4 -4
  241. data/spec/models/invoice_spec.rb +4 -4
  242. data/spec/models/limit_change_event_dto_spec.rb +4 -4
  243. data/spec/models/mail_report_response_response_entry_spec.rb +4 -4
  244. data/spec/models/mail_report_response_spec.rb +4 -4
  245. data/spec/models/min_period_fee_period_spec.rb +16 -4
  246. data/spec/models/notification_integration_spec.rb +4 -4
  247. data/spec/models/notifications_response_entry_spec.rb +4 -4
  248. data/spec/models/notifications_response_spec.rb +4 -4
  249. data/spec/models/plan_spec.rb +5 -5
  250. data/spec/models/plans_response_entry_spec.rb +4 -4
  251. data/spec/models/plans_response_spec.rb +4 -4
  252. data/spec/models/report_info_spec.rb +10 -4
  253. data/spec/models/service_integration_spec.rb +4 -4
  254. data/spec/models/subscription_dashboard_dto_spec.rb +4 -4
  255. data/spec/models/subscription_dto_spec.rb +10 -4
  256. data/spec/models/subscription_response_entry_spec.rb +4 -4
  257. data/spec/models/subscription_response_spec.rb +4 -4
  258. data/spec/models/subscription_spec.rb +10 -4
  259. data/spec/models/subscriptions_response_entry_spec.rb +4 -4
  260. data/spec/models/subscriptions_response_spec.rb +4 -4
  261. data/spec/models/tag_names_response_spec.rb +4 -4
  262. data/spec/models/token_dto_spec.rb +4 -4
  263. data/spec/models/token_response_entry_spec.rb +4 -4
  264. data/spec/models/token_response_spec.rb +4 -4
  265. data/spec/models/tokens_response_entry_spec.rb +4 -4
  266. data/spec/models/tokens_response_spec.rb +4 -4
  267. data/spec/models/update_app_info_spec.rb +4 -4
  268. data/spec/models/update_plan_response_dto_spec.rb +4 -4
  269. data/spec/models/update_plan_response_entry_spec.rb +4 -4
  270. data/spec/models/update_plan_response_spec.rb +4 -4
  271. data/spec/models/update_subscription_dto_spec.rb +4 -4
  272. data/spec/models/update_token_dto_spec.rb +4 -4
  273. data/spec/models/usage_dto_spec.rb +22 -10
  274. data/spec/models/usage_multi_response_entry_spec.rb +4 -4
  275. data/spec/models/usage_multi_response_spec.rb +4 -4
  276. data/spec/models/usage_response_entry_spec.rb +4 -4
  277. data/spec/models/usage_response_spec.rb +4 -4
  278. data/spec/models/user_info_spec.rb +4 -4
  279. data/spec/models/user_permissions_spec.rb +4 -4
  280. data/spec/models/user_role_spec.rb +4 -4
  281. data/spec/spec_helper.rb +2 -2
  282. metadata +55 -121
  283. data/docs/DataSeriesFilter.md +0 -8
  284. data/docs/DataSeriesRequest.md +0 -12
  285. data/docs/MetricsApi.md +0 -227
  286. data/docs/SavedQueriesApi.md +0 -220
  287. data/docs/SavedQuery.md +0 -18
  288. data/lib/SematextCloud/api/metrics_api.rb +0 -247
  289. data/lib/SematextCloud/api/saved_queries_api.rb +0 -237
  290. data/lib/SematextCloud/models/data_series_filter.rb +0 -237
  291. data/lib/SematextCloud/models/data_series_request.rb +0 -283
  292. data/lib/SematextCloud/models/saved_query.rb +0 -291
  293. data/lib/stcloud/api/alert_notifications_api.rb +0 -142
  294. data/lib/stcloud/api/alerts_api.rb +0 -292
  295. data/lib/stcloud/api/apps_api.rb +0 -452
  296. data/lib/stcloud/api/aws_settings_controller_api.rb +0 -84
  297. data/lib/stcloud/api/billing_api.rb +0 -202
  298. data/lib/stcloud/api/logs_app_api.rb +0 -76
  299. data/lib/stcloud/api/monitoring_app_api.rb +0 -76
  300. data/lib/stcloud/api/reset_password_api.rb +0 -76
  301. data/lib/stcloud/api/subscriptions_api.rb +0 -610
  302. data/lib/stcloud/api/tag_api_controller_api.rb +0 -250
  303. data/lib/stcloud/api/tokens_api_controller_api.rb +0 -324
  304. data/lib/stcloud/api_client.rb +0 -388
  305. data/lib/stcloud/api_error.rb +0 -57
  306. data/lib/stcloud/configuration.rb +0 -205
  307. data/lib/stcloud/models/alert_notification_request.rb +0 -235
  308. data/lib/stcloud/models/alert_rule.rb +0 -675
  309. data/lib/stcloud/models/alert_rule_schedule_time_range_dto.rb +0 -215
  310. data/lib/stcloud/models/alert_rule_schedule_weekday_dto.rb +0 -244
  311. data/lib/stcloud/models/app.rb +0 -489
  312. data/lib/stcloud/models/app_description.rb +0 -206
  313. data/lib/stcloud/models/app_metadata.rb +0 -291
  314. data/lib/stcloud/models/apps_response.rb +0 -235
  315. data/lib/stcloud/models/basic_auth_method_dto.rb +0 -249
  316. data/lib/stcloud/models/basic_organization_dto.rb +0 -269
  317. data/lib/stcloud/models/billing_info.rb +0 -224
  318. data/lib/stcloud/models/cloud_watch_settings.rb +0 -279
  319. data/lib/stcloud/models/create_app_info.rb +0 -242
  320. data/lib/stcloud/models/create_token_dto.rb +0 -224
  321. data/lib/stcloud/models/error.rb +0 -215
  322. data/lib/stcloud/models/filter_value.rb +0 -253
  323. data/lib/stcloud/models/generic_api_response.rb +0 -236
  324. data/lib/stcloud/models/invitation.rb +0 -348
  325. data/lib/stcloud/models/invoice_response.rb +0 -235
  326. data/lib/stcloud/models/notification_integration.rb +0 -347
  327. data/lib/stcloud/models/plan.rb +0 -360
  328. data/lib/stcloud/models/report_info.rb +0 -270
  329. data/lib/stcloud/models/service_integration.rb +0 -305
  330. data/lib/stcloud/models/subscription_dashboard_dto.rb +0 -342
  331. data/lib/stcloud/models/subscription_dto.rb +0 -351
  332. data/lib/stcloud/models/tokens_response.rb +0 -235
  333. data/lib/stcloud/models/update_app_info.rb +0 -312
  334. data/lib/stcloud/models/update_subscription_dto.rb +0 -206
  335. data/lib/stcloud/models/update_token_dto.rb +0 -215
  336. data/lib/stcloud/models/user_info.rb +0 -206
  337. data/lib/stcloud/models/user_permissions.rb +0 -224
  338. data/lib/stcloud/models/user_role.rb +0 -270
  339. data/lib/stcloud/version.rb +0 -14
  340. data/lib/stcloud.rb +0 -128
  341. data/spec/api/metrics_api_spec.rb +0 -83
  342. data/spec/api/saved_queries_api_spec.rb +0 -80
  343. data/spec/models/data_series_filter_spec.rb +0 -57
  344. data/spec/models/data_series_request_spec.rb +0 -81
  345. data/spec/models/saved_query_spec.rb +0 -113
@@ -6,12 +6,9 @@
6
6
  OpenAPI spec version: v3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.12
10
-
9
+ Swagger Codegen version: 3.0.30
11
10
  =end
12
11
 
13
- require 'uri'
14
-
15
12
  module SematextCloud
16
13
  class SubscriptionsApi
17
14
  attr_accessor :api_client
@@ -20,116 +17,124 @@ module SematextCloud
20
17
  @api_client = api_client
21
18
  end
22
19
  # Create App subscription
20
+ # @param body subscription
23
21
  # @param app_id appId
24
- # @param subscription subscription
25
22
  # @param [Hash] opts the optional parameters
26
- # @return [GenericApiResponse]
27
- def create_for_app_using_post(app_id, subscription, opts = {})
28
- data, _status_code, _headers = create_for_app_using_post_with_http_info(app_id, subscription, opts)
23
+ # @return [SubscriptionResponse]
24
+ def create_for_app_using_post(body, app_id, opts = {})
25
+ data, _status_code, _headers = create_for_app_using_post_with_http_info(body, app_id, opts)
29
26
  data
30
27
  end
31
28
 
32
29
  # Create App subscription
30
+ # @param body subscription
33
31
  # @param app_id appId
34
- # @param subscription subscription
35
32
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
37
- def create_for_app_using_post_with_http_info(app_id, subscription, opts = {})
33
+ # @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
34
+ def create_for_app_using_post_with_http_info(body, app_id, opts = {})
38
35
  if @api_client.config.debugging
39
36
  @api_client.config.logger.debug 'Calling API: SubscriptionsApi.create_for_app_using_post ...'
40
37
  end
38
+ # verify the required parameter 'body' is set
39
+ if @api_client.config.client_side_validation && body.nil?
40
+ fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.create_for_app_using_post"
41
+ end
41
42
  # verify the required parameter 'app_id' is set
42
43
  if @api_client.config.client_side_validation && app_id.nil?
43
44
  fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.create_for_app_using_post"
44
45
  end
45
- # verify the required parameter 'subscription' is set
46
- if @api_client.config.client_side_validation && subscription.nil?
47
- fail ArgumentError, "Missing the required parameter 'subscription' when calling SubscriptionsApi.create_for_app_using_post"
48
- end
49
46
  # resource path
50
47
  local_var_path = '/users-web/api/v3/apps/{appId}/subscription'.sub('{' + 'appId' + '}', app_id.to_s)
51
48
 
52
49
  # query parameters
53
- query_params = {}
50
+ query_params = opts[:query_params] || {}
54
51
 
55
52
  # header parameters
56
- header_params = {}
53
+ header_params = opts[:header_params] || {}
57
54
  # HTTP header 'Accept' (if needed)
58
55
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
56
  # HTTP header 'Content-Type'
60
57
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
61
58
 
62
59
  # form parameters
63
- form_params = {}
60
+ form_params = opts[:form_params] || {}
64
61
 
65
62
  # http body (model)
66
- post_body = @api_client.object_to_http_body(subscription)
67
- auth_names = ['api_key']
63
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
64
+
65
+ return_type = opts[:return_type] || 'SubscriptionResponse'
66
+
67
+ auth_names = opts[:auth_names] || ['api_key']
68
68
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
69
69
  :header_params => header_params,
70
70
  :query_params => query_params,
71
71
  :form_params => form_params,
72
72
  :body => post_body,
73
73
  :auth_names => auth_names,
74
- :return_type => 'GenericApiResponse')
74
+ :return_type => return_type)
75
+
75
76
  if @api_client.config.debugging
76
77
  @api_client.config.logger.debug "API called: SubscriptionsApi#create_for_app_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
77
78
  end
78
79
  return data, status_code, headers
79
80
  end
80
81
  # Create dashboard subscription
82
+ # @param body subscription
81
83
  # @param dash_id dashId
82
- # @param subscription subscription
83
84
  # @param [Hash] opts the optional parameters
84
- # @return [GenericApiResponse]
85
- def create_for_dash_using_post1(dash_id, subscription, opts = {})
86
- data, _status_code, _headers = create_for_dash_using_post1_with_http_info(dash_id, subscription, opts)
85
+ # @return [SubscriptionResponse]
86
+ def create_for_dash_using_post1(body, dash_id, opts = {})
87
+ data, _status_code, _headers = create_for_dash_using_post1_with_http_info(body, dash_id, opts)
87
88
  data
88
89
  end
89
90
 
90
91
  # Create dashboard subscription
92
+ # @param body subscription
91
93
  # @param dash_id dashId
92
- # @param subscription subscription
93
94
  # @param [Hash] opts the optional parameters
94
- # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
95
- def create_for_dash_using_post1_with_http_info(dash_id, subscription, opts = {})
95
+ # @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
96
+ def create_for_dash_using_post1_with_http_info(body, dash_id, opts = {})
96
97
  if @api_client.config.debugging
97
98
  @api_client.config.logger.debug 'Calling API: SubscriptionsApi.create_for_dash_using_post1 ...'
98
99
  end
100
+ # verify the required parameter 'body' is set
101
+ if @api_client.config.client_side_validation && body.nil?
102
+ fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.create_for_dash_using_post1"
103
+ end
99
104
  # verify the required parameter 'dash_id' is set
100
105
  if @api_client.config.client_side_validation && dash_id.nil?
101
106
  fail ArgumentError, "Missing the required parameter 'dash_id' when calling SubscriptionsApi.create_for_dash_using_post1"
102
107
  end
103
- # verify the required parameter 'subscription' is set
104
- if @api_client.config.client_side_validation && subscription.nil?
105
- fail ArgumentError, "Missing the required parameter 'subscription' when calling SubscriptionsApi.create_for_dash_using_post1"
106
- end
107
108
  # resource path
108
109
  local_var_path = '/users-web/api/v3/dashboards/{dashId}/subscription'.sub('{' + 'dashId' + '}', dash_id.to_s)
109
110
 
110
111
  # query parameters
111
- query_params = {}
112
+ query_params = opts[:query_params] || {}
112
113
 
113
114
  # header parameters
114
- header_params = {}
115
+ header_params = opts[:header_params] || {}
115
116
  # HTTP header 'Accept' (if needed)
116
117
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
117
118
  # HTTP header 'Content-Type'
118
119
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
119
120
 
120
121
  # form parameters
121
- form_params = {}
122
+ form_params = opts[:form_params] || {}
122
123
 
123
124
  # http body (model)
124
- post_body = @api_client.object_to_http_body(subscription)
125
- auth_names = ['api_key']
125
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
126
+
127
+ return_type = opts[:return_type] || 'SubscriptionResponse'
128
+
129
+ auth_names = opts[:auth_names] || ['api_key']
126
130
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
127
131
  :header_params => header_params,
128
132
  :query_params => query_params,
129
133
  :form_params => form_params,
130
134
  :body => post_body,
131
135
  :auth_names => auth_names,
132
- :return_type => 'GenericApiResponse')
136
+ :return_type => return_type)
137
+
133
138
  if @api_client.config.debugging
134
139
  @api_client.config.logger.debug "API called: SubscriptionsApi#create_for_dash_using_post1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
140
  end
@@ -138,7 +143,7 @@ module SematextCloud
138
143
  # Delete subscription
139
144
  # @param updateable_subscription_id updateableSubscriptionId
140
145
  # @param [Hash] opts the optional parameters
141
- # @return [GenericApiResponse]
146
+ # @return [GenericMapBasedApiResponse]
142
147
  def delete_using_delete2(updateable_subscription_id, opts = {})
143
148
  data, _status_code, _headers = delete_using_delete2_with_http_info(updateable_subscription_id, opts)
144
149
  data
@@ -147,7 +152,7 @@ module SematextCloud
147
152
  # Delete subscription
148
153
  # @param updateable_subscription_id updateableSubscriptionId
149
154
  # @param [Hash] opts the optional parameters
150
- # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
155
+ # @return [Array<(GenericMapBasedApiResponse, Integer, Hash)>] GenericMapBasedApiResponse data, response status code and response headers
151
156
  def delete_using_delete2_with_http_info(updateable_subscription_id, opts = {})
152
157
  if @api_client.config.debugging
153
158
  @api_client.config.logger.debug 'Calling API: SubscriptionsApi.delete_using_delete2 ...'
@@ -160,28 +165,30 @@ module SematextCloud
160
165
  local_var_path = '/users-web/api/v3/subscriptions/{updateableSubscriptionId}'.sub('{' + 'updateableSubscriptionId' + '}', updateable_subscription_id.to_s)
161
166
 
162
167
  # query parameters
163
- query_params = {}
168
+ query_params = opts[:query_params] || {}
164
169
 
165
170
  # header parameters
166
- header_params = {}
171
+ header_params = opts[:header_params] || {}
167
172
  # HTTP header 'Accept' (if needed)
168
173
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
169
- # HTTP header 'Content-Type'
170
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
171
174
 
172
175
  # form parameters
173
- form_params = {}
176
+ form_params = opts[:form_params] || {}
174
177
 
175
178
  # http body (model)
176
- post_body = nil
177
- auth_names = ['api_key']
179
+ post_body = opts[:body]
180
+
181
+ return_type = opts[:return_type] || 'GenericMapBasedApiResponse'
182
+
183
+ auth_names = opts[:auth_names] || ['api_key']
178
184
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
179
185
  :header_params => header_params,
180
186
  :query_params => query_params,
181
187
  :form_params => form_params,
182
188
  :body => post_body,
183
189
  :auth_names => auth_names,
184
- :return_type => 'GenericApiResponse')
190
+ :return_type => return_type)
191
+
185
192
  if @api_client.config.debugging
186
193
  @api_client.config.logger.debug "API called: SubscriptionsApi#delete_using_delete2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
187
194
  end
@@ -190,66 +197,68 @@ module SematextCloud
190
197
  # Get subscriptions for an App
191
198
  # @param app_id appId
192
199
  # @param [Hash] opts the optional parameters
193
- # @return [GenericApiResponse]
194
- def list_using_get2(app_id, opts = {})
195
- data, _status_code, _headers = list_using_get2_with_http_info(app_id, opts)
200
+ # @return [SubscriptionsResponse]
201
+ def list_using_get3(app_id, opts = {})
202
+ data, _status_code, _headers = list_using_get3_with_http_info(app_id, opts)
196
203
  data
197
204
  end
198
205
 
199
206
  # Get subscriptions for an App
200
207
  # @param app_id appId
201
208
  # @param [Hash] opts the optional parameters
202
- # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
203
- def list_using_get2_with_http_info(app_id, opts = {})
209
+ # @return [Array<(SubscriptionsResponse, Integer, Hash)>] SubscriptionsResponse data, response status code and response headers
210
+ def list_using_get3_with_http_info(app_id, opts = {})
204
211
  if @api_client.config.debugging
205
- @api_client.config.logger.debug 'Calling API: SubscriptionsApi.list_using_get2 ...'
212
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.list_using_get3 ...'
206
213
  end
207
214
  # verify the required parameter 'app_id' is set
208
215
  if @api_client.config.client_side_validation && app_id.nil?
209
- fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.list_using_get2"
216
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.list_using_get3"
210
217
  end
211
218
  # resource path
212
219
  local_var_path = '/users-web/api/v3/apps/{appId}/subscriptions'.sub('{' + 'appId' + '}', app_id.to_s)
213
220
 
214
221
  # query parameters
215
- query_params = {}
222
+ query_params = opts[:query_params] || {}
216
223
 
217
224
  # header parameters
218
- header_params = {}
225
+ header_params = opts[:header_params] || {}
219
226
  # HTTP header 'Accept' (if needed)
220
227
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
221
- # HTTP header 'Content-Type'
222
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
223
228
 
224
229
  # form parameters
225
- form_params = {}
230
+ form_params = opts[:form_params] || {}
226
231
 
227
232
  # http body (model)
228
- post_body = nil
229
- auth_names = ['api_key']
233
+ post_body = opts[:body]
234
+
235
+ return_type = opts[:return_type] || 'SubscriptionsResponse'
236
+
237
+ auth_names = opts[:auth_names] || ['api_key']
230
238
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
231
239
  :header_params => header_params,
232
240
  :query_params => query_params,
233
241
  :form_params => form_params,
234
242
  :body => post_body,
235
243
  :auth_names => auth_names,
236
- :return_type => 'GenericApiResponse')
244
+ :return_type => return_type)
245
+
237
246
  if @api_client.config.debugging
238
- @api_client.config.logger.debug "API called: SubscriptionsApi#list_using_get2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
247
+ @api_client.config.logger.debug "API called: SubscriptionsApi#list_using_get3\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
239
248
  end
240
249
  return data, status_code, headers
241
250
  end
242
251
  # Get current account's subscriptions
243
252
  # @param [Hash] opts the optional parameters
244
- # @return [GenericApiResponse]
253
+ # @return [SubscriptionsResponse]
245
254
  def list_using_get5(opts = {})
246
255
  data, _status_code, _headers = list_using_get5_with_http_info(opts)
247
256
  data
248
257
  end
249
258
 
250
- # Get current account&#39;s subscriptions
259
+ # Get current account&#x27;s subscriptions
251
260
  # @param [Hash] opts the optional parameters
252
- # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
261
+ # @return [Array<(SubscriptionsResponse, Integer, Hash)>] SubscriptionsResponse data, response status code and response headers
253
262
  def list_using_get5_with_http_info(opts = {})
254
263
  if @api_client.config.debugging
255
264
  @api_client.config.logger.debug 'Calling API: SubscriptionsApi.list_using_get5 ...'
@@ -258,320 +267,342 @@ module SematextCloud
258
267
  local_var_path = '/users-web/api/v3/subscriptions'
259
268
 
260
269
  # query parameters
261
- query_params = {}
270
+ query_params = opts[:query_params] || {}
262
271
 
263
272
  # header parameters
264
- header_params = {}
273
+ header_params = opts[:header_params] || {}
265
274
  # HTTP header 'Accept' (if needed)
266
275
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
267
- # HTTP header 'Content-Type'
268
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
269
276
 
270
277
  # form parameters
271
- form_params = {}
278
+ form_params = opts[:form_params] || {}
272
279
 
273
280
  # http body (model)
274
- post_body = nil
275
- auth_names = ['api_key']
281
+ post_body = opts[:body]
282
+
283
+ return_type = opts[:return_type] || 'SubscriptionsResponse'
284
+
285
+ auth_names = opts[:auth_names] || ['api_key']
276
286
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
277
287
  :header_params => header_params,
278
288
  :query_params => query_params,
279
289
  :form_params => form_params,
280
290
  :body => post_body,
281
291
  :auth_names => auth_names,
282
- :return_type => 'GenericApiResponse')
292
+ :return_type => return_type)
293
+
283
294
  if @api_client.config.debugging
284
295
  @api_client.config.logger.debug "API called: SubscriptionsApi#list_using_get5\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
285
296
  end
286
297
  return data, status_code, headers
287
298
  end
288
299
  # Email an App report
300
+ # @param body emailDto
289
301
  # @param app_id appId
290
- # @param email_dto emailDto
291
302
  # @param [Hash] opts the optional parameters
292
- # @return [GenericApiResponse]
293
- def send_app_report_using_post1(app_id, email_dto, opts = {})
294
- data, _status_code, _headers = send_app_report_using_post1_with_http_info(app_id, email_dto, opts)
303
+ # @return [MailReportResponse]
304
+ def send_app_report_using_post(body, app_id, opts = {})
305
+ data, _status_code, _headers = send_app_report_using_post_with_http_info(body, app_id, opts)
295
306
  data
296
307
  end
297
308
 
298
309
  # Email an App report
310
+ # @param body emailDto
299
311
  # @param app_id appId
300
- # @param email_dto emailDto
301
312
  # @param [Hash] opts the optional parameters
302
- # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
303
- def send_app_report_using_post1_with_http_info(app_id, email_dto, opts = {})
313
+ # @return [Array<(MailReportResponse, Integer, Hash)>] MailReportResponse data, response status code and response headers
314
+ def send_app_report_using_post_with_http_info(body, app_id, opts = {})
304
315
  if @api_client.config.debugging
305
- @api_client.config.logger.debug 'Calling API: SubscriptionsApi.send_app_report_using_post1 ...'
316
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.send_app_report_using_post ...'
317
+ end
318
+ # verify the required parameter 'body' is set
319
+ if @api_client.config.client_side_validation && body.nil?
320
+ fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.send_app_report_using_post"
306
321
  end
307
322
  # verify the required parameter 'app_id' is set
308
323
  if @api_client.config.client_side_validation && app_id.nil?
309
- fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.send_app_report_using_post1"
310
- end
311
- # verify the required parameter 'email_dto' is set
312
- if @api_client.config.client_side_validation && email_dto.nil?
313
- fail ArgumentError, "Missing the required parameter 'email_dto' when calling SubscriptionsApi.send_app_report_using_post1"
324
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.send_app_report_using_post"
314
325
  end
315
326
  # resource path
316
327
  local_var_path = '/users-web/api/v3/apps/{appId}/report/send'.sub('{' + 'appId' + '}', app_id.to_s)
317
328
 
318
329
  # query parameters
319
- query_params = {}
330
+ query_params = opts[:query_params] || {}
320
331
 
321
332
  # header parameters
322
- header_params = {}
333
+ header_params = opts[:header_params] || {}
323
334
  # HTTP header 'Accept' (if needed)
324
335
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
325
336
  # HTTP header 'Content-Type'
326
337
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
327
338
 
328
339
  # form parameters
329
- form_params = {}
340
+ form_params = opts[:form_params] || {}
330
341
 
331
342
  # http body (model)
332
- post_body = @api_client.object_to_http_body(email_dto)
333
- auth_names = ['api_key']
343
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
344
+
345
+ return_type = opts[:return_type] || 'MailReportResponse'
346
+
347
+ auth_names = opts[:auth_names] || ['api_key']
334
348
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
335
349
  :header_params => header_params,
336
350
  :query_params => query_params,
337
351
  :form_params => form_params,
338
352
  :body => post_body,
339
353
  :auth_names => auth_names,
340
- :return_type => 'GenericApiResponse')
354
+ :return_type => return_type)
355
+
341
356
  if @api_client.config.debugging
342
- @api_client.config.logger.debug "API called: SubscriptionsApi#send_app_report_using_post1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
357
+ @api_client.config.logger.debug "API called: SubscriptionsApi#send_app_report_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
343
358
  end
344
359
  return data, status_code, headers
345
360
  end
346
361
  # Email a dashboard report
362
+ # @param body emailDto
347
363
  # @param dash_id dashId
348
- # @param email_dto emailDto
349
364
  # @param [Hash] opts the optional parameters
350
- # @return [GenericApiResponse]
351
- def send_dash_report_using_post1(dash_id, email_dto, opts = {})
352
- data, _status_code, _headers = send_dash_report_using_post1_with_http_info(dash_id, email_dto, opts)
365
+ # @return [MailReportResponse]
366
+ def send_dash_report_using_post(body, dash_id, opts = {})
367
+ data, _status_code, _headers = send_dash_report_using_post_with_http_info(body, dash_id, opts)
353
368
  data
354
369
  end
355
370
 
356
371
  # Email a dashboard report
372
+ # @param body emailDto
357
373
  # @param dash_id dashId
358
- # @param email_dto emailDto
359
374
  # @param [Hash] opts the optional parameters
360
- # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
361
- def send_dash_report_using_post1_with_http_info(dash_id, email_dto, opts = {})
375
+ # @return [Array<(MailReportResponse, Integer, Hash)>] MailReportResponse data, response status code and response headers
376
+ def send_dash_report_using_post_with_http_info(body, dash_id, opts = {})
362
377
  if @api_client.config.debugging
363
- @api_client.config.logger.debug 'Calling API: SubscriptionsApi.send_dash_report_using_post1 ...'
378
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.send_dash_report_using_post ...'
379
+ end
380
+ # verify the required parameter 'body' is set
381
+ if @api_client.config.client_side_validation && body.nil?
382
+ fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.send_dash_report_using_post"
364
383
  end
365
384
  # verify the required parameter 'dash_id' is set
366
385
  if @api_client.config.client_side_validation && dash_id.nil?
367
- fail ArgumentError, "Missing the required parameter 'dash_id' when calling SubscriptionsApi.send_dash_report_using_post1"
368
- end
369
- # verify the required parameter 'email_dto' is set
370
- if @api_client.config.client_side_validation && email_dto.nil?
371
- fail ArgumentError, "Missing the required parameter 'email_dto' when calling SubscriptionsApi.send_dash_report_using_post1"
386
+ fail ArgumentError, "Missing the required parameter 'dash_id' when calling SubscriptionsApi.send_dash_report_using_post"
372
387
  end
373
388
  # resource path
374
389
  local_var_path = '/users-web/api/v3/dashboards/{dashId}/report/send'.sub('{' + 'dashId' + '}', dash_id.to_s)
375
390
 
376
391
  # query parameters
377
- query_params = {}
392
+ query_params = opts[:query_params] || {}
378
393
 
379
394
  # header parameters
380
- header_params = {}
395
+ header_params = opts[:header_params] || {}
381
396
  # HTTP header 'Accept' (if needed)
382
397
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
383
398
  # HTTP header 'Content-Type'
384
399
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
385
400
 
386
401
  # form parameters
387
- form_params = {}
402
+ form_params = opts[:form_params] || {}
388
403
 
389
404
  # http body (model)
390
- post_body = @api_client.object_to_http_body(email_dto)
391
- auth_names = ['api_key']
405
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
406
+
407
+ return_type = opts[:return_type] || 'MailReportResponse'
408
+
409
+ auth_names = opts[:auth_names] || ['api_key']
392
410
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
393
411
  :header_params => header_params,
394
412
  :query_params => query_params,
395
413
  :form_params => form_params,
396
414
  :body => post_body,
397
415
  :auth_names => auth_names,
398
- :return_type => 'GenericApiResponse')
416
+ :return_type => return_type)
417
+
399
418
  if @api_client.config.debugging
400
- @api_client.config.logger.debug "API called: SubscriptionsApi#send_dash_report_using_post1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
419
+ @api_client.config.logger.debug "API called: SubscriptionsApi#send_dash_report_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
401
420
  end
402
421
  return data, status_code, headers
403
422
  end
404
423
  # Toggle subscription status
424
+ # @param body dto
405
425
  # @param updateable_subscription_id updateableSubscriptionId
406
- # @param dto dto
407
426
  # @param [Hash] opts the optional parameters
408
- # @return [GenericApiResponse]
409
- def toggle_enabled_using_put1(updateable_subscription_id, dto, opts = {})
410
- data, _status_code, _headers = toggle_enabled_using_put1_with_http_info(updateable_subscription_id, dto, opts)
427
+ # @return [SubscriptionResponse]
428
+ def toggle_enabled_using_put1(body, updateable_subscription_id, opts = {})
429
+ data, _status_code, _headers = toggle_enabled_using_put1_with_http_info(body, updateable_subscription_id, opts)
411
430
  data
412
431
  end
413
432
 
414
433
  # Toggle subscription status
434
+ # @param body dto
415
435
  # @param updateable_subscription_id updateableSubscriptionId
416
- # @param dto dto
417
436
  # @param [Hash] opts the optional parameters
418
- # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
419
- def toggle_enabled_using_put1_with_http_info(updateable_subscription_id, dto, opts = {})
437
+ # @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
438
+ def toggle_enabled_using_put1_with_http_info(body, updateable_subscription_id, opts = {})
420
439
  if @api_client.config.debugging
421
440
  @api_client.config.logger.debug 'Calling API: SubscriptionsApi.toggle_enabled_using_put1 ...'
422
441
  end
442
+ # verify the required parameter 'body' is set
443
+ if @api_client.config.client_side_validation && body.nil?
444
+ fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.toggle_enabled_using_put1"
445
+ end
423
446
  # verify the required parameter 'updateable_subscription_id' is set
424
447
  if @api_client.config.client_side_validation && updateable_subscription_id.nil?
425
448
  fail ArgumentError, "Missing the required parameter 'updateable_subscription_id' when calling SubscriptionsApi.toggle_enabled_using_put1"
426
449
  end
427
- # verify the required parameter 'dto' is set
428
- if @api_client.config.client_side_validation && dto.nil?
429
- fail ArgumentError, "Missing the required parameter 'dto' when calling SubscriptionsApi.toggle_enabled_using_put1"
430
- end
431
450
  # resource path
432
451
  local_var_path = '/users-web/api/v3/subscriptions/{updateableSubscriptionId}'.sub('{' + 'updateableSubscriptionId' + '}', updateable_subscription_id.to_s)
433
452
 
434
453
  # query parameters
435
- query_params = {}
454
+ query_params = opts[:query_params] || {}
436
455
 
437
456
  # header parameters
438
- header_params = {}
457
+ header_params = opts[:header_params] || {}
439
458
  # HTTP header 'Accept' (if needed)
440
459
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
441
460
  # HTTP header 'Content-Type'
442
461
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
443
462
 
444
463
  # form parameters
445
- form_params = {}
464
+ form_params = opts[:form_params] || {}
446
465
 
447
466
  # http body (model)
448
- post_body = @api_client.object_to_http_body(dto)
449
- auth_names = ['api_key']
467
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
468
+
469
+ return_type = opts[:return_type] || 'SubscriptionResponse'
470
+
471
+ auth_names = opts[:auth_names] || ['api_key']
450
472
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
451
473
  :header_params => header_params,
452
474
  :query_params => query_params,
453
475
  :form_params => form_params,
454
476
  :body => post_body,
455
477
  :auth_names => auth_names,
456
- :return_type => 'GenericApiResponse')
478
+ :return_type => return_type)
479
+
457
480
  if @api_client.config.debugging
458
481
  @api_client.config.logger.debug "API called: SubscriptionsApi#toggle_enabled_using_put1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
459
482
  end
460
483
  return data, status_code, headers
461
484
  end
462
485
  # Update App subscription
486
+ # @param body subscription
463
487
  # @param app_id appId
464
- # @param subscription subscription
465
488
  # @param [Hash] opts the optional parameters
466
- # @return [GenericApiResponse]
467
- def update_for_app_using_put1(app_id, subscription, opts = {})
468
- data, _status_code, _headers = update_for_app_using_put1_with_http_info(app_id, subscription, opts)
489
+ # @return [SubscriptionResponse]
490
+ def update_for_app_using_put(body, app_id, opts = {})
491
+ data, _status_code, _headers = update_for_app_using_put_with_http_info(body, app_id, opts)
469
492
  data
470
493
  end
471
494
 
472
495
  # Update App subscription
496
+ # @param body subscription
473
497
  # @param app_id appId
474
- # @param subscription subscription
475
498
  # @param [Hash] opts the optional parameters
476
- # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
477
- def update_for_app_using_put1_with_http_info(app_id, subscription, opts = {})
499
+ # @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
500
+ def update_for_app_using_put_with_http_info(body, app_id, opts = {})
478
501
  if @api_client.config.debugging
479
- @api_client.config.logger.debug 'Calling API: SubscriptionsApi.update_for_app_using_put1 ...'
502
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.update_for_app_using_put ...'
503
+ end
504
+ # verify the required parameter 'body' is set
505
+ if @api_client.config.client_side_validation && body.nil?
506
+ fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.update_for_app_using_put"
480
507
  end
481
508
  # verify the required parameter 'app_id' is set
482
509
  if @api_client.config.client_side_validation && app_id.nil?
483
- fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.update_for_app_using_put1"
484
- end
485
- # verify the required parameter 'subscription' is set
486
- if @api_client.config.client_side_validation && subscription.nil?
487
- fail ArgumentError, "Missing the required parameter 'subscription' when calling SubscriptionsApi.update_for_app_using_put1"
510
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.update_for_app_using_put"
488
511
  end
489
512
  # resource path
490
513
  local_var_path = '/users-web/api/v3/apps/{appId}/subscription'.sub('{' + 'appId' + '}', app_id.to_s)
491
514
 
492
515
  # query parameters
493
- query_params = {}
516
+ query_params = opts[:query_params] || {}
494
517
 
495
518
  # header parameters
496
- header_params = {}
519
+ header_params = opts[:header_params] || {}
497
520
  # HTTP header 'Accept' (if needed)
498
521
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
499
522
  # HTTP header 'Content-Type'
500
523
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
501
524
 
502
525
  # form parameters
503
- form_params = {}
526
+ form_params = opts[:form_params] || {}
504
527
 
505
528
  # http body (model)
506
- post_body = @api_client.object_to_http_body(subscription)
507
- auth_names = ['api_key']
529
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
530
+
531
+ return_type = opts[:return_type] || 'SubscriptionResponse'
532
+
533
+ auth_names = opts[:auth_names] || ['api_key']
508
534
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
509
535
  :header_params => header_params,
510
536
  :query_params => query_params,
511
537
  :form_params => form_params,
512
538
  :body => post_body,
513
539
  :auth_names => auth_names,
514
- :return_type => 'GenericApiResponse')
540
+ :return_type => return_type)
541
+
515
542
  if @api_client.config.debugging
516
- @api_client.config.logger.debug "API called: SubscriptionsApi#update_for_app_using_put1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
543
+ @api_client.config.logger.debug "API called: SubscriptionsApi#update_for_app_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
517
544
  end
518
545
  return data, status_code, headers
519
546
  end
520
547
  # Update dashboard subscription
548
+ # @param body subscription
521
549
  # @param dash_id dashId
522
- # @param subscription subscription
523
550
  # @param [Hash] opts the optional parameters
524
- # @return [GenericApiResponse]
525
- def update_for_dash_using_put(dash_id, subscription, opts = {})
526
- data, _status_code, _headers = update_for_dash_using_put_with_http_info(dash_id, subscription, opts)
551
+ # @return [SubscriptionResponse]
552
+ def update_for_dash_using_put1(body, dash_id, opts = {})
553
+ data, _status_code, _headers = update_for_dash_using_put1_with_http_info(body, dash_id, opts)
527
554
  data
528
555
  end
529
556
 
530
557
  # Update dashboard subscription
558
+ # @param body subscription
531
559
  # @param dash_id dashId
532
- # @param subscription subscription
533
560
  # @param [Hash] opts the optional parameters
534
- # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
535
- def update_for_dash_using_put_with_http_info(dash_id, subscription, opts = {})
561
+ # @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
562
+ def update_for_dash_using_put1_with_http_info(body, dash_id, opts = {})
536
563
  if @api_client.config.debugging
537
- @api_client.config.logger.debug 'Calling API: SubscriptionsApi.update_for_dash_using_put ...'
564
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.update_for_dash_using_put1 ...'
565
+ end
566
+ # verify the required parameter 'body' is set
567
+ if @api_client.config.client_side_validation && body.nil?
568
+ fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.update_for_dash_using_put1"
538
569
  end
539
570
  # verify the required parameter 'dash_id' is set
540
571
  if @api_client.config.client_side_validation && dash_id.nil?
541
- fail ArgumentError, "Missing the required parameter 'dash_id' when calling SubscriptionsApi.update_for_dash_using_put"
542
- end
543
- # verify the required parameter 'subscription' is set
544
- if @api_client.config.client_side_validation && subscription.nil?
545
- fail ArgumentError, "Missing the required parameter 'subscription' when calling SubscriptionsApi.update_for_dash_using_put"
572
+ fail ArgumentError, "Missing the required parameter 'dash_id' when calling SubscriptionsApi.update_for_dash_using_put1"
546
573
  end
547
574
  # resource path
548
575
  local_var_path = '/users-web/api/v3/dashboards/{dashId}/subscription'.sub('{' + 'dashId' + '}', dash_id.to_s)
549
576
 
550
577
  # query parameters
551
- query_params = {}
578
+ query_params = opts[:query_params] || {}
552
579
 
553
580
  # header parameters
554
- header_params = {}
581
+ header_params = opts[:header_params] || {}
555
582
  # HTTP header 'Accept' (if needed)
556
583
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
557
584
  # HTTP header 'Content-Type'
558
585
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
559
586
 
560
587
  # form parameters
561
- form_params = {}
588
+ form_params = opts[:form_params] || {}
562
589
 
563
590
  # http body (model)
564
- post_body = @api_client.object_to_http_body(subscription)
565
- auth_names = ['api_key']
591
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
592
+
593
+ return_type = opts[:return_type] || 'SubscriptionResponse'
594
+
595
+ auth_names = opts[:auth_names] || ['api_key']
566
596
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
567
597
  :header_params => header_params,
568
598
  :query_params => query_params,
569
599
  :form_params => form_params,
570
600
  :body => post_body,
571
601
  :auth_names => auth_names,
572
- :return_type => 'GenericApiResponse')
602
+ :return_type => return_type)
603
+
573
604
  if @api_client.config.debugging
574
- @api_client.config.logger.debug "API called: SubscriptionsApi#update_for_dash_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
605
+ @api_client.config.logger.debug "API called: SubscriptionsApi#update_for_dash_using_put1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
575
606
  end
576
607
  return data, status_code, headers
577
608
  end