SematextCloud 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,8 +6,7 @@
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
12
  require 'date'
@@ -57,76 +56,89 @@ module SematextCloud
57
56
  end
58
57
 
59
58
  # Attribute type mapping.
60
- def self.swagger_types
59
+ def self.openapi_types
61
60
  {
62
- :'app_type_id' => :'Integer',
63
- :'app_type_name' => :'String',
64
- :'display_name' => :'String',
65
- :'enabled' => :'BOOLEAN',
66
- :'external_product_id' => :'Integer',
67
- :'external_product_name' => :'String',
68
- :'id' => :'Integer',
69
- :'integration_type' => :'String',
70
- :'ordinal' => :'Integer',
71
- :'parent_integration_id' => :'Integer',
72
- :'sematext_service' => :'String',
73
- :'visible' => :'BOOLEAN'
61
+ :'app_type_id' => :'Object',
62
+ :'app_type_name' => :'Object',
63
+ :'display_name' => :'Object',
64
+ :'enabled' => :'Object',
65
+ :'external_product_id' => :'Object',
66
+ :'external_product_name' => :'Object',
67
+ :'id' => :'Object',
68
+ :'integration_type' => :'Object',
69
+ :'ordinal' => :'Object',
70
+ :'parent_integration_id' => :'Object',
71
+ :'sematext_service' => :'Object',
72
+ :'visible' => :'Object'
74
73
  }
75
74
  end
76
75
 
76
+ # List of attributes with nullable: true
77
+ def self.openapi_nullable
78
+ Set.new([
79
+ ])
80
+ end
81
+
77
82
  # Initializes the object
78
83
  # @param [Hash] attributes Model attributes in the form of hash
79
84
  def initialize(attributes = {})
80
- return unless attributes.is_a?(Hash)
85
+ if (!attributes.is_a?(Hash))
86
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SematextCloud::ServiceIntegration` initialize method"
87
+ end
81
88
 
82
- # convert string to symbol for hash key
83
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
89
+ # check to see if the attribute exists and convert string to symbol for hash key
90
+ attributes = attributes.each_with_object({}) { |(k, v), h|
91
+ if (!self.class.attribute_map.key?(k.to_sym))
92
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SematextCloud::ServiceIntegration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
93
+ end
94
+ h[k.to_sym] = v
95
+ }
84
96
 
85
- if attributes.has_key?(:'appTypeId')
86
- self.app_type_id = attributes[:'appTypeId']
97
+ if attributes.key?(:'app_type_id')
98
+ self.app_type_id = attributes[:'app_type_id']
87
99
  end
88
100
 
89
- if attributes.has_key?(:'appTypeName')
90
- self.app_type_name = attributes[:'appTypeName']
101
+ if attributes.key?(:'app_type_name')
102
+ self.app_type_name = attributes[:'app_type_name']
91
103
  end
92
104
 
93
- if attributes.has_key?(:'displayName')
94
- self.display_name = attributes[:'displayName']
105
+ if attributes.key?(:'display_name')
106
+ self.display_name = attributes[:'display_name']
95
107
  end
96
108
 
97
- if attributes.has_key?(:'enabled')
109
+ if attributes.key?(:'enabled')
98
110
  self.enabled = attributes[:'enabled']
99
111
  end
100
112
 
101
- if attributes.has_key?(:'externalProductId')
102
- self.external_product_id = attributes[:'externalProductId']
113
+ if attributes.key?(:'external_product_id')
114
+ self.external_product_id = attributes[:'external_product_id']
103
115
  end
104
116
 
105
- if attributes.has_key?(:'externalProductName')
106
- self.external_product_name = attributes[:'externalProductName']
117
+ if attributes.key?(:'external_product_name')
118
+ self.external_product_name = attributes[:'external_product_name']
107
119
  end
108
120
 
109
- if attributes.has_key?(:'id')
121
+ if attributes.key?(:'id')
110
122
  self.id = attributes[:'id']
111
123
  end
112
124
 
113
- if attributes.has_key?(:'integrationType')
114
- self.integration_type = attributes[:'integrationType']
125
+ if attributes.key?(:'integration_type')
126
+ self.integration_type = attributes[:'integration_type']
115
127
  end
116
128
 
117
- if attributes.has_key?(:'ordinal')
129
+ if attributes.key?(:'ordinal')
118
130
  self.ordinal = attributes[:'ordinal']
119
131
  end
120
132
 
121
- if attributes.has_key?(:'parentIntegrationId')
122
- self.parent_integration_id = attributes[:'parentIntegrationId']
133
+ if attributes.key?(:'parent_integration_id')
134
+ self.parent_integration_id = attributes[:'parent_integration_id']
123
135
  end
124
136
 
125
- if attributes.has_key?(:'sematextService')
126
- self.sematext_service = attributes[:'sematextService']
137
+ if attributes.key?(:'sematext_service')
138
+ self.sematext_service = attributes[:'sematext_service']
127
139
  end
128
140
 
129
- if attributes.has_key?(:'visible')
141
+ if attributes.key?(:'visible')
130
142
  self.visible = attributes[:'visible']
131
143
  end
132
144
  end
@@ -170,26 +182,35 @@ module SematextCloud
170
182
  end
171
183
 
172
184
  # Calculates hash code according to all attributes.
173
- # @return [Fixnum] Hash code
185
+ # @return [Integer] Hash code
174
186
  def hash
175
187
  [app_type_id, app_type_name, display_name, enabled, external_product_id, external_product_name, id, integration_type, ordinal, parent_integration_id, sematext_service, visible].hash
176
188
  end
177
189
 
190
+ # Builds the object from hash
191
+ # @param [Hash] attributes Model attributes in the form of hash
192
+ # @return [Object] Returns the model itself
193
+ def self.build_from_hash(attributes)
194
+ new.build_from_hash(attributes)
195
+ end
196
+
178
197
  # Builds the object from hash
179
198
  # @param [Hash] attributes Model attributes in the form of hash
180
199
  # @return [Object] Returns the model itself
181
200
  def build_from_hash(attributes)
182
201
  return nil unless attributes.is_a?(Hash)
183
- self.class.swagger_types.each_pair do |key, type|
202
+ self.class.openapi_types.each_pair do |key, type|
184
203
  if type =~ /\AArray<(.*)>/i
185
- # check to ensure the input is an array given that the the attribute
204
+ # check to ensure the input is an array given that the attribute
186
205
  # is documented as an array but the input is not
187
206
  if attributes[self.class.attribute_map[key]].is_a?(Array)
188
207
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
189
208
  end
190
209
  elsif !attributes[self.class.attribute_map[key]].nil?
191
210
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
192
- end # or else data not found in attributes(hash), not an issue as the data can be optional
211
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
212
+ self.send("#{key}=", nil)
213
+ end
193
214
  end
194
215
 
195
216
  self
@@ -211,7 +232,7 @@ module SematextCloud
211
232
  value.to_i
212
233
  when :Float
213
234
  value.to_f
214
- when :BOOLEAN
235
+ when :Boolean
215
236
  if value.to_s =~ /\A(true|t|yes|y|1)\z/i
216
237
  true
217
238
  else
@@ -232,8 +253,7 @@ module SematextCloud
232
253
  end
233
254
  end
234
255
  else # model
235
- temp_model = SematextCloud.const_get(type).new
236
- temp_model.build_from_hash(value)
256
+ SematextCloud.const_get(type).build_from_hash(value)
237
257
  end
238
258
  end
239
259
 
@@ -255,7 +275,11 @@ module SematextCloud
255
275
  hash = {}
256
276
  self.class.attribute_map.each_pair do |attr, param|
257
277
  value = self.send(attr)
258
- next if value.nil?
278
+ if value.nil?
279
+ is_nullable = self.class.openapi_nullable.include?(attr)
280
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
281
+ end
282
+
259
283
  hash[param] = _to_hash(value)
260
284
  end
261
285
  hash
@@ -277,6 +301,5 @@ module SematextCloud
277
301
  else
278
302
  value
279
303
  end
280
- end
281
- end
304
+ end end
282
305
  end
@@ -6,13 +6,15 @@
6
6
  OpenAPI spec version: v3
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.25
9
+ Swagger Codegen version: 3.0.30
10
10
  =end
11
11
 
12
12
  require 'date'
13
13
 
14
- module stcloud
14
+ module SematextCloud
15
15
  class Subscription
16
+ attr_accessor :additional_params
17
+
16
18
  attr_accessor :addresses
17
19
 
18
20
  attr_accessor :created_by
@@ -68,6 +70,7 @@ module stcloud
68
70
  # Attribute mapping from ruby-style variable name to JSON key.
69
71
  def self.attribute_map
70
72
  {
73
+ :'additional_params' => :'additionalParams',
71
74
  :'addresses' => :'addresses',
72
75
  :'created_by' => :'createdBy',
73
76
  :'dashboard_id' => :'dashboardId',
@@ -89,6 +92,7 @@ module stcloud
89
92
  # Attribute type mapping.
90
93
  def self.openapi_types
91
94
  {
95
+ :'additional_params' => :'Object',
92
96
  :'addresses' => :'Object',
93
97
  :'created_by' => :'Object',
94
98
  :'dashboard_id' => :'Object',
@@ -117,17 +121,21 @@ module stcloud
117
121
  # @param [Hash] attributes Model attributes in the form of hash
118
122
  def initialize(attributes = {})
119
123
  if (!attributes.is_a?(Hash))
120
- fail ArgumentError, "The input argument (attributes) must be a hash in `stcloud::Subscription` initialize method"
124
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SematextCloud::Subscription` initialize method"
121
125
  end
122
126
 
123
127
  # check to see if the attribute exists and convert string to symbol for hash key
124
128
  attributes = attributes.each_with_object({}) { |(k, v), h|
125
129
  if (!self.class.attribute_map.key?(k.to_sym))
126
- fail ArgumentError, "`#{k}` is not a valid attribute in `stcloud::Subscription`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
130
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SematextCloud::Subscription`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
127
131
  end
128
132
  h[k.to_sym] = v
129
133
  }
130
134
 
135
+ if attributes.key?(:'additional_params')
136
+ self.additional_params = attributes[:'additional_params']
137
+ end
138
+
131
139
  if attributes.key?(:'addresses')
132
140
  self.addresses = attributes[:'addresses']
133
141
  end
@@ -231,6 +239,7 @@ module stcloud
231
239
  def ==(o)
232
240
  return true if self.equal?(o)
233
241
  self.class == o.class &&
242
+ additional_params == o.additional_params &&
234
243
  addresses == o.addresses &&
235
244
  created_by == o.created_by &&
236
245
  dashboard_id == o.dashboard_id &&
@@ -257,7 +266,7 @@ module stcloud
257
266
  # Calculates hash code according to all attributes.
258
267
  # @return [Integer] Hash code
259
268
  def hash
260
- [addresses, created_by, dashboard_id, dashboard_name, enabled, filters, frequency, id, next_send_date, subject, system_id, system_name, text, time_range, user_permissions].hash
269
+ [additional_params, addresses, created_by, dashboard_id, dashboard_name, enabled, filters, frequency, id, next_send_date, subject, system_id, system_name, text, time_range, user_permissions].hash
261
270
  end
262
271
 
263
272
  # Builds the object from hash
@@ -326,7 +335,7 @@ module stcloud
326
335
  end
327
336
  end
328
337
  else # model
329
- stcloud.const_get(type).build_from_hash(value)
338
+ SematextCloud.const_get(type).build_from_hash(value)
330
339
  end
331
340
  end
332
341
 
@@ -6,13 +6,12 @@
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
12
  require 'date'
14
13
 
15
- module stcloud
14
+ module SematextCloud
16
15
  class SubscriptionDashboardDto
17
16
  attr_accessor :addresses
18
17
 
@@ -76,72 +75,85 @@ module stcloud
76
75
  end
77
76
 
78
77
  # Attribute type mapping.
79
- def self.swagger_types
78
+ def self.openapi_types
80
79
  {
81
- :'addresses' => :'String',
82
- :'dashboard_id' => :'Integer',
83
- :'enable' => :'BOOLEAN',
84
- :'filters' => :'String',
85
- :'frequency' => :'String',
86
- :'id' => :'Integer',
87
- :'report_name' => :'String',
88
- :'send_time' => :'DateTime',
89
- :'subject' => :'String',
90
- :'text' => :'String',
91
- :'time_range' => :'String'
80
+ :'addresses' => :'Object',
81
+ :'dashboard_id' => :'Object',
82
+ :'enable' => :'Object',
83
+ :'filters' => :'Object',
84
+ :'frequency' => :'Object',
85
+ :'id' => :'Object',
86
+ :'report_name' => :'Object',
87
+ :'send_time' => :'Object',
88
+ :'subject' => :'Object',
89
+ :'text' => :'Object',
90
+ :'time_range' => :'Object'
92
91
  }
93
92
  end
94
93
 
94
+ # List of attributes with nullable: true
95
+ def self.openapi_nullable
96
+ Set.new([
97
+ ])
98
+ end
99
+
95
100
  # Initializes the object
96
101
  # @param [Hash] attributes Model attributes in the form of hash
97
102
  def initialize(attributes = {})
98
- return unless attributes.is_a?(Hash)
103
+ if (!attributes.is_a?(Hash))
104
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SematextCloud::SubscriptionDashboardDto` initialize method"
105
+ end
99
106
 
100
- # convert string to symbol for hash key
101
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
107
+ # check to see if the attribute exists and convert string to symbol for hash key
108
+ attributes = attributes.each_with_object({}) { |(k, v), h|
109
+ if (!self.class.attribute_map.key?(k.to_sym))
110
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SematextCloud::SubscriptionDashboardDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
111
+ end
112
+ h[k.to_sym] = v
113
+ }
102
114
 
103
- if attributes.has_key?(:'addresses')
115
+ if attributes.key?(:'addresses')
104
116
  self.addresses = attributes[:'addresses']
105
117
  end
106
118
 
107
- if attributes.has_key?(:'dashboardId')
108
- self.dashboard_id = attributes[:'dashboardId']
119
+ if attributes.key?(:'dashboard_id')
120
+ self.dashboard_id = attributes[:'dashboard_id']
109
121
  end
110
122
 
111
- if attributes.has_key?(:'enable')
123
+ if attributes.key?(:'enable')
112
124
  self.enable = attributes[:'enable']
113
125
  end
114
126
 
115
- if attributes.has_key?(:'filters')
127
+ if attributes.key?(:'filters')
116
128
  self.filters = attributes[:'filters']
117
129
  end
118
130
 
119
- if attributes.has_key?(:'frequency')
131
+ if attributes.key?(:'frequency')
120
132
  self.frequency = attributes[:'frequency']
121
133
  end
122
134
 
123
- if attributes.has_key?(:'id')
135
+ if attributes.key?(:'id')
124
136
  self.id = attributes[:'id']
125
137
  end
126
138
 
127
- if attributes.has_key?(:'reportName')
128
- self.report_name = attributes[:'reportName']
139
+ if attributes.key?(:'report_name')
140
+ self.report_name = attributes[:'report_name']
129
141
  end
130
142
 
131
- if attributes.has_key?(:'sendTime')
132
- self.send_time = attributes[:'sendTime']
143
+ if attributes.key?(:'send_time')
144
+ self.send_time = attributes[:'send_time']
133
145
  end
134
146
 
135
- if attributes.has_key?(:'subject')
147
+ if attributes.key?(:'subject')
136
148
  self.subject = attributes[:'subject']
137
149
  end
138
150
 
139
- if attributes.has_key?(:'text')
151
+ if attributes.key?(:'text')
140
152
  self.text = attributes[:'text']
141
153
  end
142
154
 
143
- if attributes.has_key?(:'timeRange')
144
- self.time_range = attributes[:'timeRange']
155
+ if attributes.key?(:'time_range')
156
+ self.time_range = attributes[:'time_range']
145
157
  end
146
158
  end
147
159
 
@@ -155,9 +167,9 @@ module stcloud
155
167
  # Check to see if the all the properties in the model are valid
156
168
  # @return true if the model is valid
157
169
  def valid?
158
- frequency_validator = EnumAttributeValidator.new('String', ['EVERY_FIVE_MINUTES', 'DAILY', 'WEEKLY', 'MONTHLY', 'QUARTERLY'])
170
+ frequency_validator = EnumAttributeValidator.new('Object', ['EVERY_FIVE_MINUTES', 'DAILY', 'WEEKLY', 'MONTHLY', 'QUARTERLY'])
159
171
  return false unless frequency_validator.valid?(@frequency)
160
- time_range_validator = EnumAttributeValidator.new('String', ['ONE_DAY', 'ONE_WEEK', 'ONE_MONTH', 'TWO_MONTH', 'SIX_MONTH', 'ONE_YEAR'])
172
+ time_range_validator = EnumAttributeValidator.new('Object', ['ONE_DAY', 'ONE_WEEK', 'ONE_MONTH', 'TWO_MONTH', 'SIX_MONTH', 'ONE_YEAR'])
161
173
  return false unless time_range_validator.valid?(@time_range)
162
174
  true
163
175
  end
@@ -165,9 +177,9 @@ module stcloud
165
177
  # Custom attribute writer method checking allowed values (enum).
166
178
  # @param [Object] frequency Object to be assigned
167
179
  def frequency=(frequency)
168
- validator = EnumAttributeValidator.new('String', ['EVERY_FIVE_MINUTES', 'DAILY', 'WEEKLY', 'MONTHLY', 'QUARTERLY'])
180
+ validator = EnumAttributeValidator.new('Object', ['EVERY_FIVE_MINUTES', 'DAILY', 'WEEKLY', 'MONTHLY', 'QUARTERLY'])
169
181
  unless validator.valid?(frequency)
170
- fail ArgumentError, 'invalid value for "frequency", must be one of #{validator.allowable_values}.'
182
+ fail ArgumentError, "invalid value for \"frequency\", must be one of #{validator.allowable_values}."
171
183
  end
172
184
  @frequency = frequency
173
185
  end
@@ -175,9 +187,9 @@ module stcloud
175
187
  # Custom attribute writer method checking allowed values (enum).
176
188
  # @param [Object] time_range Object to be assigned
177
189
  def time_range=(time_range)
178
- validator = EnumAttributeValidator.new('String', ['ONE_DAY', 'ONE_WEEK', 'ONE_MONTH', 'TWO_MONTH', 'SIX_MONTH', 'ONE_YEAR'])
190
+ validator = EnumAttributeValidator.new('Object', ['ONE_DAY', 'ONE_WEEK', 'ONE_MONTH', 'TWO_MONTH', 'SIX_MONTH', 'ONE_YEAR'])
179
191
  unless validator.valid?(time_range)
180
- fail ArgumentError, 'invalid value for "time_range", must be one of #{validator.allowable_values}.'
192
+ fail ArgumentError, "invalid value for \"time_range\", must be one of #{validator.allowable_values}."
181
193
  end
182
194
  @time_range = time_range
183
195
  end
@@ -207,26 +219,35 @@ module stcloud
207
219
  end
208
220
 
209
221
  # Calculates hash code according to all attributes.
210
- # @return [Fixnum] Hash code
222
+ # @return [Integer] Hash code
211
223
  def hash
212
224
  [addresses, dashboard_id, enable, filters, frequency, id, report_name, send_time, subject, text, time_range].hash
213
225
  end
214
226
 
227
+ # Builds the object from hash
228
+ # @param [Hash] attributes Model attributes in the form of hash
229
+ # @return [Object] Returns the model itself
230
+ def self.build_from_hash(attributes)
231
+ new.build_from_hash(attributes)
232
+ end
233
+
215
234
  # Builds the object from hash
216
235
  # @param [Hash] attributes Model attributes in the form of hash
217
236
  # @return [Object] Returns the model itself
218
237
  def build_from_hash(attributes)
219
238
  return nil unless attributes.is_a?(Hash)
220
- self.class.swagger_types.each_pair do |key, type|
239
+ self.class.openapi_types.each_pair do |key, type|
221
240
  if type =~ /\AArray<(.*)>/i
222
- # check to ensure the input is an array given that the the attribute
241
+ # check to ensure the input is an array given that the attribute
223
242
  # is documented as an array but the input is not
224
243
  if attributes[self.class.attribute_map[key]].is_a?(Array)
225
244
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
226
245
  end
227
246
  elsif !attributes[self.class.attribute_map[key]].nil?
228
247
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
229
- end # or else data not found in attributes(hash), not an issue as the data can be optional
248
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
249
+ self.send("#{key}=", nil)
250
+ end
230
251
  end
231
252
 
232
253
  self
@@ -248,7 +269,7 @@ module stcloud
248
269
  value.to_i
249
270
  when :Float
250
271
  value.to_f
251
- when :BOOLEAN
272
+ when :Boolean
252
273
  if value.to_s =~ /\A(true|t|yes|y|1)\z/i
253
274
  true
254
275
  else
@@ -269,8 +290,7 @@ module stcloud
269
290
  end
270
291
  end
271
292
  else # model
272
- temp_model = stcloud.const_get(type).new
273
- temp_model.build_from_hash(value)
293
+ SematextCloud.const_get(type).build_from_hash(value)
274
294
  end
275
295
  end
276
296
 
@@ -292,7 +312,11 @@ module stcloud
292
312
  hash = {}
293
313
  self.class.attribute_map.each_pair do |attr, param|
294
314
  value = self.send(attr)
295
- next if value.nil?
315
+ if value.nil?
316
+ is_nullable = self.class.openapi_nullable.include?(attr)
317
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
318
+ end
319
+
296
320
  hash[param] = _to_hash(value)
297
321
  end
298
322
  hash
@@ -314,6 +338,5 @@ module stcloud
314
338
  else
315
339
  value
316
340
  end
317
- end
318
- end
341
+ end end
319
342
  end