SematextCloud 0.1.4 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (298) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +70 -0
  4. data/README.md +76 -65
  5. data/SematextCloud.gemspec +0 -6
  6. data/docs/AlertNotification.md +12 -0
  7. data/docs/AlertNotificationRequest.md +7 -7
  8. data/docs/AlertNotificationsApi.md +33 -37
  9. data/docs/AlertRule.md +51 -51
  10. data/docs/AlertRuleResponse.md +9 -0
  11. data/docs/AlertRuleResponseEntry.md +6 -0
  12. data/docs/AlertRuleScheduleTimeRangeDto.md +5 -5
  13. data/docs/AlertRuleScheduleWeekdayDto.md +8 -8
  14. data/docs/AlertRulesResponse.md +9 -0
  15. data/docs/AlertRulesResponseEntry.md +6 -0
  16. data/docs/AlertsApi.md +60 -66
  17. data/docs/App.md +35 -30
  18. data/docs/AppDescription.md +4 -4
  19. data/docs/AppMetadata.md +8 -8
  20. data/docs/AppResponse.md +9 -0
  21. data/docs/AppResponseEntry.md +6 -0
  22. data/docs/AppTypesResponse.md +9 -0
  23. data/docs/AppTypesResponseEntry.md +6 -0
  24. data/docs/AppsApi.md +135 -90
  25. data/docs/AppsResponse.md +9 -0
  26. data/docs/AppsResponseEntry.md +6 -0
  27. data/docs/AwsSettingsControllerApi.md +19 -22
  28. data/docs/BasicAuthMethodDto.md +5 -5
  29. data/docs/BasicOrganizationDto.md +7 -7
  30. data/docs/BillingApi.md +47 -54
  31. data/docs/BillingInfo.md +6 -6
  32. data/docs/ChargesDetailsResponseDto.md +12 -0
  33. data/docs/CloudWatchSettings.md +7 -7
  34. data/docs/CloudWatchSettingsResponse.md +9 -0
  35. data/docs/CloudWatchSettingsResponseEntry.md +6 -0
  36. data/docs/CreateAppInfo.md +8 -8
  37. data/docs/CreateTokenDto.md +8 -0
  38. data/docs/DailyDto.md +9 -0
  39. data/docs/DataSeriesFilter.md +5 -5
  40. data/docs/DataSeriesRequest.md +9 -9
  41. data/docs/DayUsageData.md +26 -0
  42. data/docs/Dimension.md +7 -0
  43. data/docs/Error.md +5 -5
  44. data/docs/EventDto.md +8 -0
  45. data/docs/FilterValue.md +9 -9
  46. data/docs/GenericApiResponse.md +7 -7
  47. data/docs/GenericMapBasedApiResponse.md +9 -0
  48. data/docs/Invitation.md +13 -13
  49. data/docs/Invoice.md +11 -0
  50. data/docs/InvoiceResponse.md +9 -0
  51. data/docs/InvoiceResponseEntry.md +6 -0
  52. data/docs/LimitChangeEventDTO.md +8 -0
  53. data/docs/LogsAppApi.md +16 -18
  54. data/docs/LogsUsageApiControllerApi.md +60 -0
  55. data/docs/MailReportResponse.md +9 -0
  56. data/docs/MailReportResponseResponseEntry.md +6 -0
  57. data/docs/MetricsApi.md +20 -20
  58. data/docs/MinPeriodFeePeriod.md +16 -0
  59. data/docs/MonitoringAppApi.md +16 -18
  60. data/docs/NotificationIntegration.md +13 -13
  61. data/docs/NotificationsResponse.md +9 -0
  62. data/docs/NotificationsResponseEntry.md +8 -0
  63. data/docs/Plan.md +16 -16
  64. data/docs/PlansResponse.md +9 -0
  65. data/docs/PlansResponseEntry.md +6 -0
  66. data/docs/ReportInfo.md +11 -11
  67. data/docs/ResetPasswordApi.md +16 -18
  68. data/docs/SavedQueriesApi.md +19 -19
  69. data/docs/SavedQuery.md +15 -15
  70. data/docs/ServiceIntegration.md +15 -15
  71. data/docs/Subscription.md +20 -0
  72. data/docs/SubscriptionDashboardDto.md +16 -0
  73. data/docs/SubscriptionDto.md +17 -0
  74. data/docs/SubscriptionResponse.md +9 -0
  75. data/docs/SubscriptionResponseEntry.md +6 -0
  76. data/docs/SubscriptionsApi.md +455 -36
  77. data/docs/SubscriptionsResponse.md +9 -0
  78. data/docs/SubscriptionsResponseEntry.md +6 -0
  79. data/docs/TagApiControllerApi.md +63 -72
  80. data/docs/TagNamesResponse.md +6 -0
  81. data/docs/TokenDto.md +12 -0
  82. data/docs/TokenResponse.md +9 -0
  83. data/docs/TokenResponseEntry.md +6 -0
  84. data/docs/TokensApiControllerApi.md +274 -0
  85. data/docs/TokensResponse.md +9 -0
  86. data/docs/TokensResponseEntry.md +6 -0
  87. data/docs/UpdateAppInfo.md +12 -12
  88. data/docs/UpdatePlanResponse.md +9 -0
  89. data/docs/UpdatePlanResponseDto.md +7 -0
  90. data/docs/UpdatePlanResponseEntry.md +6 -0
  91. data/docs/UpdateSubscriptionDto.md +6 -0
  92. data/docs/UpdateTokenDto.md +7 -0
  93. data/docs/UsageDto.md +16 -0
  94. data/docs/UsageMultiResponse.md +9 -0
  95. data/docs/UsageMultiResponseEntry.md +6 -0
  96. data/docs/UsageResponse.md +9 -0
  97. data/docs/UsageResponseEntry.md +6 -0
  98. data/docs/UserInfo.md +4 -4
  99. data/docs/UserPermissions.md +6 -6
  100. data/docs/UserRole.md +6 -6
  101. data/lib/SematextCloud/api/subscriptions_api.rb +463 -17
  102. data/lib/SematextCloud/api/tokens_api_controller_api.rb +313 -0
  103. data/lib/SematextCloud/models/create_token_dto.rb +201 -0
  104. data/lib/SematextCloud/models/subscription_dashboard_dto.rb +319 -0
  105. data/lib/SematextCloud/models/subscription_dto.rb +328 -0
  106. data/lib/SematextCloud/models/update_subscription_dto.rb +183 -0
  107. data/lib/SematextCloud/models/update_token_dto.rb +192 -0
  108. data/lib/SematextCloud/version.rb +1 -1
  109. data/lib/stcloud/api/alert_notifications_api.rb +142 -0
  110. data/lib/stcloud/api/alerts_api.rb +292 -0
  111. data/lib/stcloud/api/apps_api.rb +452 -0
  112. data/lib/stcloud/api/aws_settings_controller_api.rb +84 -0
  113. data/lib/stcloud/api/billing_api.rb +202 -0
  114. data/lib/stcloud/api/logs_app_api.rb +76 -0
  115. data/lib/stcloud/api/logs_usage_api_controller_api.rb +86 -0
  116. data/lib/stcloud/api/monitoring_app_api.rb +76 -0
  117. data/lib/stcloud/api/reset_password_api.rb +76 -0
  118. data/lib/stcloud/api/subscriptions_api.rb +610 -0
  119. data/lib/stcloud/api/tag_api_controller_api.rb +250 -0
  120. data/lib/stcloud/api/tokens_api_controller_api.rb +324 -0
  121. data/lib/stcloud/api_client.rb +388 -0
  122. data/lib/stcloud/api_error.rb +57 -0
  123. data/lib/stcloud/configuration.rb +205 -0
  124. data/lib/stcloud/models/alert_notification.rb +260 -0
  125. data/lib/stcloud/models/alert_notification_request.rb +235 -0
  126. data/lib/stcloud/models/alert_rule.rb +675 -0
  127. data/lib/stcloud/models/alert_rule_response.rb +235 -0
  128. data/lib/stcloud/models/alert_rule_response_entry.rb +206 -0
  129. data/lib/stcloud/models/alert_rule_schedule_time_range_dto.rb +215 -0
  130. data/lib/stcloud/models/alert_rule_schedule_weekday_dto.rb +244 -0
  131. data/lib/stcloud/models/alert_rules_response.rb +235 -0
  132. data/lib/stcloud/models/alert_rules_response_entry.rb +208 -0
  133. data/lib/stcloud/models/app.rb +489 -0
  134. data/lib/stcloud/models/app_description.rb +206 -0
  135. data/lib/stcloud/models/app_metadata.rb +291 -0
  136. data/lib/stcloud/models/app_response.rb +235 -0
  137. data/lib/stcloud/models/app_response_entry.rb +206 -0
  138. data/lib/stcloud/models/app_types_response.rb +235 -0
  139. data/lib/stcloud/models/app_types_response_entry.rb +208 -0
  140. data/lib/stcloud/models/apps_response.rb +235 -0
  141. data/lib/stcloud/models/apps_response_entry.rb +208 -0
  142. data/lib/stcloud/models/basic_auth_method_dto.rb +249 -0
  143. data/lib/stcloud/models/basic_organization_dto.rb +269 -0
  144. data/lib/stcloud/models/billing_info.rb +224 -0
  145. data/lib/stcloud/models/charges_details_response_dto.rb +298 -0
  146. data/lib/stcloud/models/cloud_watch_settings.rb +279 -0
  147. data/lib/stcloud/models/cloud_watch_settings_response.rb +235 -0
  148. data/lib/stcloud/models/cloud_watch_settings_response_entry.rb +206 -0
  149. data/lib/stcloud/models/create_app_info.rb +242 -0
  150. data/lib/stcloud/models/create_token_dto.rb +224 -0
  151. data/lib/stcloud/models/daily_dto.rb +233 -0
  152. data/lib/stcloud/models/day_usage_data.rb +411 -0
  153. data/lib/stcloud/models/dimension.rb +227 -0
  154. data/lib/stcloud/models/error.rb +215 -0
  155. data/lib/stcloud/models/event_dto.rb +258 -0
  156. data/lib/stcloud/models/filter_value.rb +253 -0
  157. data/lib/stcloud/models/generic_api_response.rb +236 -0
  158. data/lib/stcloud/models/generic_map_based_api_response.rb +236 -0
  159. data/lib/stcloud/models/invitation.rb +348 -0
  160. data/lib/stcloud/models/invoice.rb +253 -0
  161. data/lib/stcloud/models/invoice_response.rb +235 -0
  162. data/lib/stcloud/models/invoice_response_entry.rb +206 -0
  163. data/lib/stcloud/models/limit_change_event_dto.rb +224 -0
  164. data/lib/stcloud/models/mail_report_response.rb +235 -0
  165. data/lib/stcloud/models/mail_report_response_response_entry.rb +206 -0
  166. data/lib/stcloud/models/min_period_fee_period.rb +296 -0
  167. data/lib/stcloud/models/notification_integration.rb +347 -0
  168. data/lib/stcloud/models/notifications_response.rb +235 -0
  169. data/lib/stcloud/models/notifications_response_entry.rb +226 -0
  170. data/lib/stcloud/models/plan.rb +360 -0
  171. data/lib/stcloud/models/plans_response.rb +235 -0
  172. data/lib/stcloud/models/plans_response_entry.rb +208 -0
  173. data/lib/stcloud/models/report_info.rb +270 -0
  174. data/lib/stcloud/models/service_integration.rb +305 -0
  175. data/lib/stcloud/models/subscription.rb +378 -0
  176. data/lib/stcloud/models/subscription_dashboard_dto.rb +342 -0
  177. data/lib/stcloud/models/subscription_dto.rb +351 -0
  178. data/lib/stcloud/models/subscription_response.rb +235 -0
  179. data/lib/stcloud/models/subscription_response_entry.rb +206 -0
  180. data/lib/stcloud/models/subscriptions_response.rb +235 -0
  181. data/lib/stcloud/models/subscriptions_response_entry.rb +208 -0
  182. data/lib/stcloud/models/tag_names_response.rb +213 -0
  183. data/lib/stcloud/models/token_dto.rb +260 -0
  184. data/lib/stcloud/models/token_response.rb +235 -0
  185. data/lib/stcloud/models/token_response_entry.rb +206 -0
  186. data/lib/stcloud/models/tokens_response.rb +235 -0
  187. data/lib/stcloud/models/tokens_response_entry.rb +208 -0
  188. data/lib/stcloud/models/update_app_info.rb +312 -0
  189. data/lib/stcloud/models/update_plan_response.rb +235 -0
  190. data/lib/stcloud/models/update_plan_response_dto.rb +217 -0
  191. data/lib/stcloud/models/update_plan_response_entry.rb +206 -0
  192. data/lib/stcloud/models/update_subscription_dto.rb +206 -0
  193. data/lib/stcloud/models/update_token_dto.rb +215 -0
  194. data/lib/stcloud/models/usage_dto.rb +302 -0
  195. data/lib/stcloud/models/usage_multi_response.rb +235 -0
  196. data/lib/stcloud/models/usage_multi_response_entry.rb +206 -0
  197. data/lib/stcloud/models/usage_response.rb +235 -0
  198. data/lib/stcloud/models/usage_response_entry.rb +206 -0
  199. data/lib/stcloud/models/user_info.rb +206 -0
  200. data/lib/stcloud/models/user_permissions.rb +224 -0
  201. data/lib/stcloud/models/user_role.rb +270 -0
  202. data/lib/stcloud/version.rb +14 -0
  203. data/lib/stcloud.rb +128 -0
  204. data/spec/api/alert_notifications_api_spec.rb +12 -13
  205. data/spec/api/alerts_api_spec.rb +10 -11
  206. data/spec/api/apps_api_spec.rb +31 -21
  207. data/spec/api/aws_settings_controller_api_spec.rb +9 -10
  208. data/spec/api/billing_api_spec.rb +12 -13
  209. data/spec/api/logs_app_api_spec.rb +6 -7
  210. data/spec/api/logs_usage_api_controller_api_spec.rb +47 -0
  211. data/spec/api/monitoring_app_api_spec.rb +6 -7
  212. data/spec/api/reset_password_api_spec.rb +6 -7
  213. data/spec/api/subscriptions_api_spec.rb +106 -14
  214. data/spec/api/tag_api_controller_api_spec.rb +11 -12
  215. data/spec/api/tokens_api_controller_api_spec.rb +94 -0
  216. data/spec/api_client_spec.rb +30 -31
  217. data/spec/base_object_spec.rb +109 -0
  218. data/spec/configuration_spec.rb +7 -8
  219. data/spec/models/alert_notification_request_spec.rb +1 -2
  220. data/spec/models/alert_notification_spec.rb +76 -0
  221. data/spec/models/alert_rule_response_entry_spec.rb +40 -0
  222. data/spec/models/alert_rule_response_spec.rb +58 -0
  223. data/spec/models/alert_rule_schedule_time_range_dto_spec.rb +1 -2
  224. data/spec/models/alert_rule_schedule_weekday_dto_spec.rb +1 -2
  225. data/spec/models/alert_rule_spec.rb +1 -2
  226. data/spec/models/alert_rules_response_entry_spec.rb +40 -0
  227. data/spec/models/alert_rules_response_spec.rb +58 -0
  228. data/spec/models/app_description_spec.rb +1 -2
  229. data/spec/models/app_metadata_spec.rb +1 -2
  230. data/spec/models/app_response_entry_spec.rb +40 -0
  231. data/spec/models/app_response_spec.rb +58 -0
  232. data/spec/models/app_spec.rb +31 -2
  233. data/spec/models/app_types_response_entry_spec.rb +40 -0
  234. data/spec/models/app_types_response_spec.rb +58 -0
  235. data/spec/models/apps_response_entry_spec.rb +40 -0
  236. data/spec/models/apps_response_spec.rb +58 -0
  237. data/spec/models/basic_auth_method_dto_spec.rb +1 -2
  238. data/spec/models/basic_organization_dto_spec.rb +1 -2
  239. data/spec/models/billing_info_spec.rb +1 -2
  240. data/spec/models/charges_details_response_dto_spec.rb +80 -0
  241. data/spec/models/cloud_watch_settings_response_entry_spec.rb +40 -0
  242. data/spec/models/cloud_watch_settings_response_spec.rb +58 -0
  243. data/spec/models/cloud_watch_settings_spec.rb +1 -2
  244. data/spec/models/create_app_info_spec.rb +1 -2
  245. data/spec/models/create_token_dto_spec.rb +52 -0
  246. data/spec/models/daily_dto_spec.rb +58 -0
  247. data/spec/models/day_usage_data_spec.rb +158 -0
  248. data/spec/models/dimension_spec.rb +46 -0
  249. data/spec/models/error_spec.rb +1 -2
  250. data/spec/models/event_dto_spec.rb +56 -0
  251. data/spec/models/filter_value_spec.rb +1 -2
  252. data/spec/models/generic_api_response_spec.rb +1 -2
  253. data/spec/models/generic_map_based_api_response_spec.rb +58 -0
  254. data/spec/models/invitation_spec.rb +1 -2
  255. data/spec/models/invoice_response_entry_spec.rb +40 -0
  256. data/spec/models/invoice_response_spec.rb +58 -0
  257. data/spec/models/invoice_spec.rb +70 -0
  258. data/spec/models/limit_change_event_dto_spec.rb +52 -0
  259. data/spec/models/mail_report_response_response_entry_spec.rb +40 -0
  260. data/spec/models/mail_report_response_spec.rb +58 -0
  261. data/spec/models/min_period_fee_period_spec.rb +100 -0
  262. data/spec/models/notification_integration_spec.rb +1 -2
  263. data/spec/models/notifications_response_entry_spec.rb +52 -0
  264. data/spec/models/notifications_response_spec.rb +58 -0
  265. data/spec/models/plan_spec.rb +2 -3
  266. data/spec/models/plans_response_entry_spec.rb +40 -0
  267. data/spec/models/plans_response_spec.rb +58 -0
  268. data/spec/models/report_info_spec.rb +1 -2
  269. data/spec/models/service_integration_spec.rb +1 -2
  270. data/spec/models/subscription_dashboard_dto_spec.rb +108 -0
  271. data/spec/models/subscription_dto_spec.rb +114 -0
  272. data/spec/models/subscription_response_entry_spec.rb +40 -0
  273. data/spec/models/subscription_response_spec.rb +58 -0
  274. data/spec/models/subscription_spec.rb +132 -0
  275. data/spec/models/subscriptions_response_entry_spec.rb +40 -0
  276. data/spec/models/subscriptions_response_spec.rb +58 -0
  277. data/spec/models/tag_names_response_spec.rb +40 -0
  278. data/spec/models/token_dto_spec.rb +76 -0
  279. data/spec/models/token_response_entry_spec.rb +40 -0
  280. data/spec/models/token_response_spec.rb +58 -0
  281. data/spec/models/tokens_response_entry_spec.rb +40 -0
  282. data/spec/models/tokens_response_spec.rb +58 -0
  283. data/spec/models/update_app_info_spec.rb +1 -2
  284. data/spec/models/update_plan_response_dto_spec.rb +46 -0
  285. data/spec/models/update_plan_response_entry_spec.rb +40 -0
  286. data/spec/models/update_plan_response_spec.rb +58 -0
  287. data/spec/models/update_subscription_dto_spec.rb +40 -0
  288. data/spec/models/update_token_dto_spec.rb +46 -0
  289. data/spec/models/usage_dto_spec.rb +100 -0
  290. data/spec/models/usage_multi_response_entry_spec.rb +40 -0
  291. data/spec/models/usage_multi_response_spec.rb +58 -0
  292. data/spec/models/usage_response_entry_spec.rb +40 -0
  293. data/spec/models/usage_response_spec.rb +58 -0
  294. data/spec/models/user_info_spec.rb +1 -2
  295. data/spec/models/user_permissions_spec.rb +1 -2
  296. data/spec/models/user_role_spec.rb +1 -2
  297. data/spec/spec_helper.rb +2 -3
  298. metadata +300 -148
@@ -0,0 +1,17 @@
1
+ # stcloud::SubscriptionDto
2
+
3
+ ## Properties
4
+ | Name | Type | Description | Notes |
5
+ | -------------------- | ----------------------------------------- | ----------- | ---------- |
6
+ | **addresses** | **String** | | [optional] |
7
+ | **enable** | **BOOLEAN** | | [optional] |
8
+ | **filters** | **String** | | [optional] |
9
+ | **frequency** | **String** | | [optional] |
10
+ | **id** | **Integer** | | [optional] |
11
+ | **report_name** | **String** | | [optional] |
12
+ | **send_time** | **DateTime** | | [optional] |
13
+ | **subject** | **String** | | [optional] |
14
+ | **system_id** | **Integer** | | [optional] |
15
+ | **text** | **String** | | [optional] |
16
+ | **time_range** | **String** | | [optional] |
17
+ | **user_permissions** | [**UserPermissions**](UserPermissions.md) | | [optional] |
@@ -0,0 +1,9 @@
1
+ # stcloud::SubscriptionResponse
2
+
3
+ ## Properties
4
+ | Name | Type | Description | Notes |
5
+ | ----------- | ------------------------------------------------------------- | ----------- | ---------- |
6
+ | **data** | [**SubscriptionResponseEntry**](SubscriptionResponseEntry.md) | | [optional] |
7
+ | **errors** | [**Array<Error>**](Error.md) | | [optional] |
8
+ | **message** | **String** | | [optional] |
9
+ | **success** | **BOOLEAN** | | [optional] |
@@ -0,0 +1,6 @@
1
+ # stcloud::SubscriptionResponseEntry
2
+
3
+ ## Properties
4
+ | Name | Type | Description | Notes |
5
+ | ---------------- | ----------------------------------- | ----------- | ---------- |
6
+ | **subscription** | [**Subscription**](Subscription.md) | | [optional] |
@@ -1,53 +1,368 @@
1
- # SematextCloud::SubscriptionsApi
1
+ # stcloud::SubscriptionsApi
2
2
 
3
- All URIs are relative to *https://localhost*
3
+ All URIs are relative to */*
4
4
 
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**list_using_get1**](SubscriptionsApi.md#list_using_get1) | **GET** /users-web/api/v3/apps/{appId}/subscriptions | Get subscriptions for an app
8
- [**send_report_using_post**](SubscriptionsApi.md#send_report_using_post) | **POST** /users-web/api/v3/apps/{appId}/report/send | Trigger emailing of report for an app
5
+ | Method | HTTP request | Description |
6
+ | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ---------------------------------------- |
7
+ | [**create_for_app_using_post1**](SubscriptionsApi.md#create_for_app_using_post1) | **POST** /users-web/api/v3/apps/{appId}/subscription | Create App subscription |
8
+ | [**create_for_dash_using_post1**](SubscriptionsApi.md#create_for_dash_using_post1) | **POST** /users-web/api/v3/dashboards/{dashId}/subscription | Create dashboard subscription |
9
+ | [**delete_using_delete3**](SubscriptionsApi.md#delete_using_delete3) | **DELETE** /users-web/api/v3/subscriptions/{updateableSubscriptionId} | Delete subscription |
10
+ | [**list_using_get3**](SubscriptionsApi.md#list_using_get3) | **GET** /users-web/api/v3/apps/{appId}/subscriptions | Get subscriptions for an App |
11
+ | [**list_using_get5**](SubscriptionsApi.md#list_using_get5) | **GET** /users-web/api/v3/subscriptions | Get current account's subscriptions |
12
+ | [**send_app_report_using_post**](SubscriptionsApi.md#send_app_report_using_post) | **POST** /users-web/api/v3/apps/{appId}/report/send | Email an App report |
13
+ | [**send_dash_report_using_post**](SubscriptionsApi.md#send_dash_report_using_post) | **POST** /users-web/api/v3/dashboards/{dashId}/report/send | Email a dashboard report |
14
+ | [**toggle_enabled_using_put1**](SubscriptionsApi.md#toggle_enabled_using_put1) | **PUT** /users-web/api/v3/subscriptions/{updateableSubscriptionId} | Toggle subscription status |
15
+ | [**update_for_app_using_put1**](SubscriptionsApi.md#update_for_app_using_put1) | **PUT** /users-web/api/v3/apps/{appId}/subscription | Update App subscription |
16
+ | [**update_for_dash_using_put1**](SubscriptionsApi.md#update_for_dash_using_put1) | **PUT** /users-web/api/v3/dashboards/{dashId}/subscription | Update dashboard subscription |
9
17
 
18
+ # **create_for_app_using_post1**
19
+ > SubscriptionResponse create_for_app_using_post1(bodyapp_id)
10
20
 
11
- # **list_using_get1**
12
- > GenericApiResponse list_using_get1(app_id)
21
+ Create App subscription
13
22
 
14
- Get subscriptions for an app
23
+ ### Example
24
+ ```ruby
25
+ # load the gem
26
+ require 'stcloud'
27
+ # setup authorization
28
+ stcloud.configure do |config|
29
+ # Configure API key authorization: api_key
30
+ config.api_key['Authorization'] = 'YOUR API KEY'
31
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
32
+ #config.api_key_prefix['Authorization'] = 'Bearer'
33
+ end
34
+
35
+ api_instance = stcloud::SubscriptionsApi.new
36
+ body = stcloud::SubscriptionDto.new # SubscriptionDto | subscription
37
+ app_id = 789 # Integer | appId
38
+
39
+
40
+ begin
41
+ #Create App subscription
42
+ result = api_instance.create_for_app_using_post1(bodyapp_id)
43
+ p result
44
+ rescue stcloud::ApiError => e
45
+ puts "Exception when calling SubscriptionsApi->create_for_app_using_post1: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+ | Name | Type | Description | Notes |
52
+ | ---------- | ----------------------------------------- | ------------ | ----- |
53
+ | **body** | [**SubscriptionDto**](SubscriptionDto.md) | subscription |
54
+ | **app_id** | **Integer** | appId |
55
+
56
+ ### Return type
57
+
58
+ [**SubscriptionResponse**](SubscriptionResponse.md)
59
+
60
+ ### Authorization
61
+
62
+ [api_key](../README.md#api_key)
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: application/json
67
+ - **Accept**: application/json
68
+
69
+
70
+
71
+ # **create_for_dash_using_post1**
72
+ > SubscriptionResponse create_for_dash_using_post1(bodydash_id)
73
+
74
+ Create dashboard subscription
15
75
 
16
76
  ### Example
17
77
  ```ruby
18
78
  # load the gem
19
- require 'SematextCloud'
79
+ require 'stcloud'
20
80
  # setup authorization
21
- SematextCloud.configure do |config|
81
+ stcloud.configure do |config|
22
82
  # Configure API key authorization: api_key
23
83
  config.api_key['Authorization'] = 'YOUR API KEY'
24
84
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
25
85
  #config.api_key_prefix['Authorization'] = 'Bearer'
26
86
  end
27
87
 
28
- api_instance = SematextCloud::SubscriptionsApi.new
88
+ api_instance = stcloud::SubscriptionsApi.new
89
+ body = stcloud::SubscriptionDashboardDto.new # SubscriptionDashboardDto | subscription
90
+ dash_id = 789 # Integer | dashId
91
+
92
+
93
+ begin
94
+ #Create dashboard subscription
95
+ result = api_instance.create_for_dash_using_post1(bodydash_id)
96
+ p result
97
+ rescue stcloud::ApiError => e
98
+ puts "Exception when calling SubscriptionsApi->create_for_dash_using_post1: #{e}"
99
+ end
100
+ ```
101
+
102
+ ### Parameters
103
+
104
+ | Name | Type | Description | Notes |
105
+ | ----------- | ----------------------------------------------------------- | ------------ | ----- |
106
+ | **body** | [**SubscriptionDashboardDto**](SubscriptionDashboardDto.md) | subscription |
107
+ | **dash_id** | **Integer** | dashId |
108
+
109
+ ### Return type
110
+
111
+ [**SubscriptionResponse**](SubscriptionResponse.md)
112
+
113
+ ### Authorization
114
+
115
+ [api_key](../README.md#api_key)
116
+
117
+ ### HTTP request headers
118
+
119
+ - **Content-Type**: application/json
120
+ - **Accept**: application/json
121
+
122
+
123
+
124
+ # **delete_using_delete3**
125
+ > GenericMapBasedApiResponse delete_using_delete3(updateable_subscription_id)
126
+
127
+ Delete subscription
128
+
129
+ ### Example
130
+ ```ruby
131
+ # load the gem
132
+ require 'stcloud'
133
+ # setup authorization
134
+ stcloud.configure do |config|
135
+ # Configure API key authorization: api_key
136
+ config.api_key['Authorization'] = 'YOUR API KEY'
137
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
138
+ #config.api_key_prefix['Authorization'] = 'Bearer'
139
+ end
29
140
 
141
+ api_instance = stcloud::SubscriptionsApi.new
142
+ updateable_subscription_id = 789 # Integer | updateableSubscriptionId
143
+
144
+
145
+ begin
146
+ #Delete subscription
147
+ result = api_instance.delete_using_delete3(updateable_subscription_id)
148
+ p result
149
+ rescue stcloud::ApiError => e
150
+ puts "Exception when calling SubscriptionsApi->delete_using_delete3: #{e}"
151
+ end
152
+ ```
153
+
154
+ ### Parameters
155
+
156
+ | Name | Type | Description | Notes |
157
+ | ------------------------------ | ----------- | ------------------------ | ----- |
158
+ | **updateable_subscription_id** | **Integer** | updateableSubscriptionId |
159
+
160
+ ### Return type
161
+
162
+ [**GenericMapBasedApiResponse**](GenericMapBasedApiResponse.md)
163
+
164
+ ### Authorization
165
+
166
+ [api_key](../README.md#api_key)
167
+
168
+ ### HTTP request headers
169
+
170
+ - **Content-Type**: Not defined
171
+ - **Accept**: application/json
172
+
173
+
174
+
175
+ # **list_using_get3**
176
+ > SubscriptionsResponse list_using_get3(app_id)
177
+
178
+ Get subscriptions for an App
179
+
180
+ ### Example
181
+ ```ruby
182
+ # load the gem
183
+ require 'stcloud'
184
+ # setup authorization
185
+ stcloud.configure do |config|
186
+ # Configure API key authorization: api_key
187
+ config.api_key['Authorization'] = 'YOUR API KEY'
188
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
189
+ #config.api_key_prefix['Authorization'] = 'Bearer'
190
+ end
191
+
192
+ api_instance = stcloud::SubscriptionsApi.new
30
193
  app_id = 789 # Integer | appId
31
194
 
32
195
 
33
196
  begin
34
- #Get subscriptions for an app
35
- result = api_instance.list_using_get1(app_id)
197
+ #Get subscriptions for an App
198
+ result = api_instance.list_using_get3(app_id)
36
199
  p result
37
- rescue SematextCloud::ApiError => e
38
- puts "Exception when calling SubscriptionsApi->list_using_get1: #{e}"
200
+ rescue stcloud::ApiError => e
201
+ puts "Exception when calling SubscriptionsApi->list_using_get3: #{e}"
39
202
  end
40
203
  ```
41
204
 
42
205
  ### Parameters
43
206
 
44
- Name | Type | Description | Notes
45
- ------------- | ------------- | ------------- | -------------
46
- **app_id** | **Integer**| appId |
207
+ | Name | Type | Description | Notes |
208
+ | ---------- | ----------- | ----------- | ----- |
209
+ | **app_id** | **Integer** | appId |
47
210
 
48
211
  ### Return type
49
212
 
50
- [**GenericApiResponse**](GenericApiResponse.md)
213
+ [**SubscriptionsResponse**](SubscriptionsResponse.md)
214
+
215
+ ### Authorization
216
+
217
+ [api_key](../README.md#api_key)
218
+
219
+ ### HTTP request headers
220
+
221
+ - **Content-Type**: Not defined
222
+ - **Accept**: application/json
223
+
224
+
225
+
226
+ # **list_using_get5**
227
+ > SubscriptionsResponse list_using_get5
228
+
229
+ Get current account's subscriptions
230
+
231
+ ### Example
232
+ ```ruby
233
+ # load the gem
234
+ require 'stcloud'
235
+ # setup authorization
236
+ stcloud.configure do |config|
237
+ # Configure API key authorization: api_key
238
+ config.api_key['Authorization'] = 'YOUR API KEY'
239
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
240
+ #config.api_key_prefix['Authorization'] = 'Bearer'
241
+ end
242
+
243
+ api_instance = stcloud::SubscriptionsApi.new
244
+
245
+ begin
246
+ #Get current account's subscriptions
247
+ result = api_instance.list_using_get5
248
+ p result
249
+ rescue stcloud::ApiError => e
250
+ puts "Exception when calling SubscriptionsApi->list_using_get5: #{e}"
251
+ end
252
+ ```
253
+
254
+ ### Parameters
255
+ This endpoint does not need any parameter.
256
+
257
+ ### Return type
258
+
259
+ [**SubscriptionsResponse**](SubscriptionsResponse.md)
260
+
261
+ ### Authorization
262
+
263
+ [api_key](../README.md#api_key)
264
+
265
+ ### HTTP request headers
266
+
267
+ - **Content-Type**: Not defined
268
+ - **Accept**: application/json
269
+
270
+
271
+
272
+ # **send_app_report_using_post**
273
+ > MailReportResponse send_app_report_using_post(bodyapp_id)
274
+
275
+ Email an App report
276
+
277
+ ### Example
278
+ ```ruby
279
+ # load the gem
280
+ require 'stcloud'
281
+ # setup authorization
282
+ stcloud.configure do |config|
283
+ # Configure API key authorization: api_key
284
+ config.api_key['Authorization'] = 'YOUR API KEY'
285
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
286
+ #config.api_key_prefix['Authorization'] = 'Bearer'
287
+ end
288
+
289
+ api_instance = stcloud::SubscriptionsApi.new
290
+ body = stcloud::ReportInfo.new # ReportInfo | emailDto
291
+ app_id = 789 # Integer | appId
292
+
293
+
294
+ begin
295
+ #Email an App report
296
+ result = api_instance.send_app_report_using_post(bodyapp_id)
297
+ p result
298
+ rescue stcloud::ApiError => e
299
+ puts "Exception when calling SubscriptionsApi->send_app_report_using_post: #{e}"
300
+ end
301
+ ```
302
+
303
+ ### Parameters
304
+
305
+ | Name | Type | Description | Notes |
306
+ | ---------- | ------------------------------- | ----------- | ----- |
307
+ | **body** | [**ReportInfo**](ReportInfo.md) | emailDto |
308
+ | **app_id** | **Integer** | appId |
309
+
310
+ ### Return type
311
+
312
+ [**MailReportResponse**](MailReportResponse.md)
313
+
314
+ ### Authorization
315
+
316
+ [api_key](../README.md#api_key)
317
+
318
+ ### HTTP request headers
319
+
320
+ - **Content-Type**: application/json
321
+ - **Accept**: application/json
322
+
323
+
324
+
325
+ # **send_dash_report_using_post**
326
+ > MailReportResponse send_dash_report_using_post(bodydash_id)
327
+
328
+ Email a dashboard report
329
+
330
+ ### Example
331
+ ```ruby
332
+ # load the gem
333
+ require 'stcloud'
334
+ # setup authorization
335
+ stcloud.configure do |config|
336
+ # Configure API key authorization: api_key
337
+ config.api_key['Authorization'] = 'YOUR API KEY'
338
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
339
+ #config.api_key_prefix['Authorization'] = 'Bearer'
340
+ end
341
+
342
+ api_instance = stcloud::SubscriptionsApi.new
343
+ body = stcloud::ReportInfo.new # ReportInfo | emailDto
344
+ dash_id = 789 # Integer | dashId
345
+
346
+
347
+ begin
348
+ #Email a dashboard report
349
+ result = api_instance.send_dash_report_using_post(bodydash_id)
350
+ p result
351
+ rescue stcloud::ApiError => e
352
+ puts "Exception when calling SubscriptionsApi->send_dash_report_using_post: #{e}"
353
+ end
354
+ ```
355
+
356
+ ### Parameters
357
+
358
+ | Name | Type | Description | Notes |
359
+ | ----------- | ------------------------------- | ----------- | ----- |
360
+ | **body** | [**ReportInfo**](ReportInfo.md) | emailDto |
361
+ | **dash_id** | **Integer** | dashId |
362
+
363
+ ### Return type
364
+
365
+ [**MailReportResponse**](MailReportResponse.md)
51
366
 
52
367
  ### Authorization
53
368
 
@@ -60,49 +375,153 @@ Name | Type | Description | Notes
60
375
 
61
376
 
62
377
 
63
- # **send_report_using_post**
64
- > GenericApiResponse send_report_using_post(app_id, email_dto)
378
+ # **toggle_enabled_using_put1**
379
+ > SubscriptionResponse toggle_enabled_using_put1(bodyupdateable_subscription_id)
65
380
 
66
- Trigger emailing of report for an app
381
+ Toggle subscription status
67
382
 
68
383
  ### Example
69
384
  ```ruby
70
385
  # load the gem
71
- require 'SematextCloud'
386
+ require 'stcloud'
72
387
  # setup authorization
73
- SematextCloud.configure do |config|
388
+ stcloud.configure do |config|
74
389
  # Configure API key authorization: api_key
75
390
  config.api_key['Authorization'] = 'YOUR API KEY'
76
391
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
77
392
  #config.api_key_prefix['Authorization'] = 'Bearer'
78
393
  end
79
394
 
80
- api_instance = SematextCloud::SubscriptionsApi.new
395
+ api_instance = stcloud::SubscriptionsApi.new
396
+ body = stcloud::UpdateSubscriptionDto.new # UpdateSubscriptionDto | dto
397
+ updateable_subscription_id = 789 # Integer | updateableSubscriptionId
81
398
 
399
+
400
+ begin
401
+ #Toggle subscription status
402
+ result = api_instance.toggle_enabled_using_put1(bodyupdateable_subscription_id)
403
+ p result
404
+ rescue stcloud::ApiError => e
405
+ puts "Exception when calling SubscriptionsApi->toggle_enabled_using_put1: #{e}"
406
+ end
407
+ ```
408
+
409
+ ### Parameters
410
+
411
+ | Name | Type | Description | Notes |
412
+ | ------------------------------ | ----------------------------------------------------- | ------------------------ | ----- |
413
+ | **body** | [**UpdateSubscriptionDto**](UpdateSubscriptionDto.md) | dto |
414
+ | **updateable_subscription_id** | **Integer** | updateableSubscriptionId |
415
+
416
+ ### Return type
417
+
418
+ [**SubscriptionResponse**](SubscriptionResponse.md)
419
+
420
+ ### Authorization
421
+
422
+ [api_key](../README.md#api_key)
423
+
424
+ ### HTTP request headers
425
+
426
+ - **Content-Type**: application/json
427
+ - **Accept**: application/json
428
+
429
+
430
+
431
+ # **update_for_app_using_put1**
432
+ > SubscriptionResponse update_for_app_using_put1(bodyapp_id)
433
+
434
+ Update App subscription
435
+
436
+ ### Example
437
+ ```ruby
438
+ # load the gem
439
+ require 'stcloud'
440
+ # setup authorization
441
+ stcloud.configure do |config|
442
+ # Configure API key authorization: api_key
443
+ config.api_key['Authorization'] = 'YOUR API KEY'
444
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
445
+ #config.api_key_prefix['Authorization'] = 'Bearer'
446
+ end
447
+
448
+ api_instance = stcloud::SubscriptionsApi.new
449
+ body = stcloud::SubscriptionDto.new # SubscriptionDto | subscription
82
450
  app_id = 789 # Integer | appId
83
451
 
84
- email_dto = SematextCloud::ReportInfo.new # ReportInfo | emailDto
452
+
453
+ begin
454
+ #Update App subscription
455
+ result = api_instance.update_for_app_using_put1(bodyapp_id)
456
+ p result
457
+ rescue stcloud::ApiError => e
458
+ puts "Exception when calling SubscriptionsApi->update_for_app_using_put1: #{e}"
459
+ end
460
+ ```
461
+
462
+ ### Parameters
463
+
464
+ | Name | Type | Description | Notes |
465
+ | ---------- | ----------------------------------------- | ------------ | ----- |
466
+ | **body** | [**SubscriptionDto**](SubscriptionDto.md) | subscription |
467
+ | **app_id** | **Integer** | appId |
468
+
469
+ ### Return type
470
+
471
+ [**SubscriptionResponse**](SubscriptionResponse.md)
472
+
473
+ ### Authorization
474
+
475
+ [api_key](../README.md#api_key)
476
+
477
+ ### HTTP request headers
478
+
479
+ - **Content-Type**: application/json
480
+ - **Accept**: application/json
481
+
482
+
483
+
484
+ # **update_for_dash_using_put1**
485
+ > SubscriptionResponse update_for_dash_using_put1(bodydash_id)
486
+
487
+ Update dashboard subscription
488
+
489
+ ### Example
490
+ ```ruby
491
+ # load the gem
492
+ require 'stcloud'
493
+ # setup authorization
494
+ stcloud.configure do |config|
495
+ # Configure API key authorization: api_key
496
+ config.api_key['Authorization'] = 'YOUR API KEY'
497
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
498
+ #config.api_key_prefix['Authorization'] = 'Bearer'
499
+ end
500
+
501
+ api_instance = stcloud::SubscriptionsApi.new
502
+ body = stcloud::SubscriptionDashboardDto.new # SubscriptionDashboardDto | subscription
503
+ dash_id = 789 # Integer | dashId
85
504
 
86
505
 
87
506
  begin
88
- #Trigger emailing of report for an app
89
- result = api_instance.send_report_using_post(app_id, email_dto)
507
+ #Update dashboard subscription
508
+ result = api_instance.update_for_dash_using_put1(bodydash_id)
90
509
  p result
91
- rescue SematextCloud::ApiError => e
92
- puts "Exception when calling SubscriptionsApi->send_report_using_post: #{e}"
510
+ rescue stcloud::ApiError => e
511
+ puts "Exception when calling SubscriptionsApi->update_for_dash_using_put1: #{e}"
93
512
  end
94
513
  ```
95
514
 
96
515
  ### Parameters
97
516
 
98
- Name | Type | Description | Notes
99
- ------------- | ------------- | ------------- | -------------
100
- **app_id** | **Integer**| appId |
101
- **email_dto** | [**ReportInfo**](ReportInfo.md)| emailDto |
517
+ | Name | Type | Description | Notes |
518
+ | ----------- | ----------------------------------------------------------- | ------------ | ----- |
519
+ | **body** | [**SubscriptionDashboardDto**](SubscriptionDashboardDto.md) | subscription |
520
+ | **dash_id** | **Integer** | dashId |
102
521
 
103
522
  ### Return type
104
523
 
105
- [**GenericApiResponse**](GenericApiResponse.md)
524
+ [**SubscriptionResponse**](SubscriptionResponse.md)
106
525
 
107
526
  ### Authorization
108
527
 
@@ -0,0 +1,9 @@
1
+ # stcloud::SubscriptionsResponse
2
+
3
+ ## Properties
4
+ | Name | Type | Description | Notes |
5
+ | ----------- | --------------------------------------------------------------- | ----------- | ---------- |
6
+ | **data** | [**SubscriptionsResponseEntry**](SubscriptionsResponseEntry.md) | | [optional] |
7
+ | **errors** | [**Array<Error>**](Error.md) | | [optional] |
8
+ | **message** | **String** | | [optional] |
9
+ | **success** | **BOOLEAN** | | [optional] |
@@ -0,0 +1,6 @@
1
+ # stcloud::SubscriptionsResponseEntry
2
+
3
+ ## Properties
4
+ | Name | Type | Description | Notes |
5
+ | ----------------- | ------------------------------------------------ | ----------- | ---------- |
6
+ | **subscriptions** | [**Array<Subscription>**](Subscription.md) | | [optional] |