SematextCloud 0.1.5 → 0.4.0

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