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
data/docs/UsageDto.md ADDED
@@ -0,0 +1,16 @@
1
+ # stcloud::UsageDto
2
+
3
+ ## Properties
4
+ | Name | Type | Description | Notes |
5
+ | ------------------------ | -------------------------------------------------------------- | ----------- | ---------- |
6
+ | **count** | **Integer** | | [optional] |
7
+ | **daily_usage** | [**Array<DailyDto>**](DailyDto.md) | | [optional] |
8
+ | **daily_volume_mb** | **Integer** | | [optional] |
9
+ | **_end** | **DateTime** | | [optional] |
10
+ | **failed_count** | **Integer** | | [optional] |
11
+ | **limit_change_events** | [**Array<LimitChangeEventDTO>**](LimitChangeEventDTO.md) | | [optional] |
12
+ | **max_allowed_mb** | **Integer** | | [optional] |
13
+ | **max_limit_mb** | **Integer** | | [optional] |
14
+ | **start** | **DateTime** | | [optional] |
15
+ | **volume** | **Integer** | | [optional] |
16
+ | **volume_change_events** | [**Array<LimitChangeEventDTO>**](LimitChangeEventDTO.md) | | [optional] |
@@ -0,0 +1,9 @@
1
+ # stcloud::UsageMultiResponse
2
+
3
+ ## Properties
4
+ | Name | Type | Description | Notes |
5
+ | ----------- | --------------------------------------------------------- | ----------- | ---------- |
6
+ | **data** | [**UsageMultiResponseEntry**](UsageMultiResponseEntry.md) | | [optional] |
7
+ | **errors** | [**Array<Error>**](Error.md) | | [optional] |
8
+ | **message** | **String** | | [optional] |
9
+ | **success** | **BOOLEAN** | | [optional] |
@@ -0,0 +1,6 @@
1
+ # stcloud::UsageMultiResponseEntry
2
+
3
+ ## Properties
4
+ | Name | Type | Description | Notes |
5
+ | --------- | --------------------------- | ----------- | ---------- |
6
+ | **usage** | [**UsageDto**](UsageDto.md) | | [optional] |
@@ -0,0 +1,9 @@
1
+ # stcloud::UsageResponse
2
+
3
+ ## Properties
4
+ | Name | Type | Description | Notes |
5
+ | ----------- | ----------------------------------------------- | ----------- | ---------- |
6
+ | **data** | [**UsageResponseEntry**](UsageResponseEntry.md) | | [optional] |
7
+ | **errors** | [**Array<Error>**](Error.md) | | [optional] |
8
+ | **message** | **String** | | [optional] |
9
+ | **success** | **BOOLEAN** | | [optional] |
@@ -0,0 +1,6 @@
1
+ # stcloud::UsageResponseEntry
2
+
3
+ ## Properties
4
+ | Name | Type | Description | Notes |
5
+ | --------- | --------------------------- | ----------- | ---------- |
6
+ | **usage** | [**UsageDto**](UsageDto.md) | | [optional] |
data/docs/UserInfo.md CHANGED
@@ -1,6 +1,6 @@
1
- # SematextCloud::UserInfo
1
+ # stcloud::UserInfo
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **login_name** | **String** | | [optional]
4
+ | Name | Type | Description | Notes |
5
+ | -------------- | ---------- | ----------- | ---------- |
6
+ | **login_name** | **String** | | [optional] |
@@ -1,8 +1,8 @@
1
- # SematextCloud::UserPermissions
1
+ # stcloud::UserPermissions
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **can_delete** | **BOOLEAN** | | [optional]
7
- **can_edit** | **BOOLEAN** | | [optional]
8
- **can_view** | **BOOLEAN** | | [optional]
4
+ | Name | Type | Description | Notes |
5
+ | -------------- | ----------- | ----------- | ---------- |
6
+ | **can_delete** | **BOOLEAN** | | [optional] |
7
+ | **can_edit** | **BOOLEAN** | | [optional] |
8
+ | **can_view** | **BOOLEAN** | | [optional] |
data/docs/UserRole.md CHANGED
@@ -1,8 +1,8 @@
1
- # SematextCloud::UserRole
1
+ # stcloud::UserRole
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **role** | **String** | | [optional]
7
- **role_status** | **String** | | [optional]
8
- **user_email** | **String** | | [optional]
4
+ | Name | Type | Description | Notes |
5
+ | --------------- | ---------- | ----------- | ---------- |
6
+ | **role** | **String** | | [optional] |
7
+ | **role_status** | **String** | | [optional] |
8
+ | **user_email** | **String** | | [optional] |
@@ -19,26 +19,194 @@ module SematextCloud
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Get subscriptions for an app
22
+ # Create App subscription
23
23
  # @param app_id appId
24
+ # @param subscription subscription
24
25
  # @param [Hash] opts the optional parameters
25
26
  # @return [GenericApiResponse]
26
- def list_using_get1(app_id, opts = {})
27
- data, _status_code, _headers = list_using_get1_with_http_info(app_id, opts)
27
+ def create_for_app_using_post(app_id, subscription, opts = {})
28
+ data, _status_code, _headers = create_for_app_using_post_with_http_info(app_id, subscription, opts)
28
29
  data
29
30
  end
30
31
 
31
- # Get subscriptions for an app
32
+ # Create App subscription
32
33
  # @param app_id appId
34
+ # @param subscription subscription
33
35
  # @param [Hash] opts the optional parameters
34
36
  # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
35
- def list_using_get1_with_http_info(app_id, opts = {})
37
+ def create_for_app_using_post_with_http_info(app_id, subscription, opts = {})
36
38
  if @api_client.config.debugging
37
- @api_client.config.logger.debug 'Calling API: SubscriptionsApi.list_using_get1 ...'
39
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.create_for_app_using_post ...'
38
40
  end
39
41
  # verify the required parameter 'app_id' is set
40
42
  if @api_client.config.client_side_validation && app_id.nil?
41
- fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.list_using_get1"
43
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.create_for_app_using_post"
44
+ end
45
+ # verify the required parameter 'subscription' is set
46
+ if @api_client.config.client_side_validation && subscription.nil?
47
+ fail ArgumentError, "Missing the required parameter 'subscription' when calling SubscriptionsApi.create_for_app_using_post"
48
+ end
49
+ # resource path
50
+ local_var_path = '/users-web/api/v3/apps/{appId}/subscription'.sub('{' + 'appId' + '}', app_id.to_s)
51
+
52
+ # query parameters
53
+ query_params = {}
54
+
55
+ # header parameters
56
+ header_params = {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
+ # HTTP header 'Content-Type'
60
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
61
+
62
+ # form parameters
63
+ form_params = {}
64
+
65
+ # http body (model)
66
+ post_body = @api_client.object_to_http_body(subscription)
67
+ auth_names = ['api_key']
68
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
69
+ :header_params => header_params,
70
+ :query_params => query_params,
71
+ :form_params => form_params,
72
+ :body => post_body,
73
+ :auth_names => auth_names,
74
+ :return_type => 'GenericApiResponse')
75
+ if @api_client.config.debugging
76
+ @api_client.config.logger.debug "API called: SubscriptionsApi#create_for_app_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
77
+ end
78
+ return data, status_code, headers
79
+ end
80
+ # Create dashboard subscription
81
+ # @param dash_id dashId
82
+ # @param subscription subscription
83
+ # @param [Hash] opts the optional parameters
84
+ # @return [GenericApiResponse]
85
+ def create_for_dash_using_post1(dash_id, subscription, opts = {})
86
+ data, _status_code, _headers = create_for_dash_using_post1_with_http_info(dash_id, subscription, opts)
87
+ data
88
+ end
89
+
90
+ # Create dashboard subscription
91
+ # @param dash_id dashId
92
+ # @param subscription subscription
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
95
+ def create_for_dash_using_post1_with_http_info(dash_id, subscription, opts = {})
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.create_for_dash_using_post1 ...'
98
+ end
99
+ # verify the required parameter 'dash_id' is set
100
+ if @api_client.config.client_side_validation && dash_id.nil?
101
+ fail ArgumentError, "Missing the required parameter 'dash_id' when calling SubscriptionsApi.create_for_dash_using_post1"
102
+ end
103
+ # verify the required parameter 'subscription' is set
104
+ if @api_client.config.client_side_validation && subscription.nil?
105
+ fail ArgumentError, "Missing the required parameter 'subscription' when calling SubscriptionsApi.create_for_dash_using_post1"
106
+ end
107
+ # resource path
108
+ local_var_path = '/users-web/api/v3/dashboards/{dashId}/subscription'.sub('{' + 'dashId' + '}', dash_id.to_s)
109
+
110
+ # query parameters
111
+ query_params = {}
112
+
113
+ # header parameters
114
+ header_params = {}
115
+ # HTTP header 'Accept' (if needed)
116
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
117
+ # HTTP header 'Content-Type'
118
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
119
+
120
+ # form parameters
121
+ form_params = {}
122
+
123
+ # http body (model)
124
+ post_body = @api_client.object_to_http_body(subscription)
125
+ auth_names = ['api_key']
126
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
127
+ :header_params => header_params,
128
+ :query_params => query_params,
129
+ :form_params => form_params,
130
+ :body => post_body,
131
+ :auth_names => auth_names,
132
+ :return_type => 'GenericApiResponse')
133
+ if @api_client.config.debugging
134
+ @api_client.config.logger.debug "API called: SubscriptionsApi#create_for_dash_using_post1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
+ end
136
+ return data, status_code, headers
137
+ end
138
+ # Delete subscription
139
+ # @param updateable_subscription_id updateableSubscriptionId
140
+ # @param [Hash] opts the optional parameters
141
+ # @return [GenericApiResponse]
142
+ def delete_using_delete2(updateable_subscription_id, opts = {})
143
+ data, _status_code, _headers = delete_using_delete2_with_http_info(updateable_subscription_id, opts)
144
+ data
145
+ end
146
+
147
+ # Delete subscription
148
+ # @param updateable_subscription_id updateableSubscriptionId
149
+ # @param [Hash] opts the optional parameters
150
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
151
+ def delete_using_delete2_with_http_info(updateable_subscription_id, opts = {})
152
+ if @api_client.config.debugging
153
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.delete_using_delete2 ...'
154
+ end
155
+ # verify the required parameter 'updateable_subscription_id' is set
156
+ if @api_client.config.client_side_validation && updateable_subscription_id.nil?
157
+ fail ArgumentError, "Missing the required parameter 'updateable_subscription_id' when calling SubscriptionsApi.delete_using_delete2"
158
+ end
159
+ # resource path
160
+ local_var_path = '/users-web/api/v3/subscriptions/{updateableSubscriptionId}'.sub('{' + 'updateableSubscriptionId' + '}', updateable_subscription_id.to_s)
161
+
162
+ # query parameters
163
+ query_params = {}
164
+
165
+ # header parameters
166
+ header_params = {}
167
+ # HTTP header 'Accept' (if needed)
168
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
169
+ # HTTP header 'Content-Type'
170
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
171
+
172
+ # form parameters
173
+ form_params = {}
174
+
175
+ # http body (model)
176
+ post_body = nil
177
+ auth_names = ['api_key']
178
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
179
+ :header_params => header_params,
180
+ :query_params => query_params,
181
+ :form_params => form_params,
182
+ :body => post_body,
183
+ :auth_names => auth_names,
184
+ :return_type => 'GenericApiResponse')
185
+ if @api_client.config.debugging
186
+ @api_client.config.logger.debug "API called: SubscriptionsApi#delete_using_delete2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
187
+ end
188
+ return data, status_code, headers
189
+ end
190
+ # Get subscriptions for an App
191
+ # @param app_id appId
192
+ # @param [Hash] opts the optional parameters
193
+ # @return [GenericApiResponse]
194
+ def list_using_get2(app_id, opts = {})
195
+ data, _status_code, _headers = list_using_get2_with_http_info(app_id, opts)
196
+ data
197
+ end
198
+
199
+ # Get subscriptions for an App
200
+ # @param app_id appId
201
+ # @param [Hash] opts the optional parameters
202
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
203
+ def list_using_get2_with_http_info(app_id, opts = {})
204
+ if @api_client.config.debugging
205
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.list_using_get2 ...'
206
+ end
207
+ # verify the required parameter 'app_id' is set
208
+ if @api_client.config.client_side_validation && app_id.nil?
209
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.list_using_get2"
42
210
  end
43
211
  # resource path
44
212
  local_var_path = '/users-web/api/v3/apps/{appId}/subscriptions'.sub('{' + 'appId' + '}', app_id.to_s)
@@ -67,36 +235,82 @@ module SematextCloud
67
235
  :auth_names => auth_names,
68
236
  :return_type => 'GenericApiResponse')
69
237
  if @api_client.config.debugging
70
- @api_client.config.logger.debug "API called: SubscriptionsApi#list_using_get1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
238
+ @api_client.config.logger.debug "API called: SubscriptionsApi#list_using_get2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
71
239
  end
72
240
  return data, status_code, headers
73
241
  end
74
- # Trigger emailing of report for an app
242
+ # Get current account's subscriptions
243
+ # @param [Hash] opts the optional parameters
244
+ # @return [GenericApiResponse]
245
+ def list_using_get5(opts = {})
246
+ data, _status_code, _headers = list_using_get5_with_http_info(opts)
247
+ data
248
+ end
249
+
250
+ # Get current account&#39;s subscriptions
251
+ # @param [Hash] opts the optional parameters
252
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
253
+ def list_using_get5_with_http_info(opts = {})
254
+ if @api_client.config.debugging
255
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.list_using_get5 ...'
256
+ end
257
+ # resource path
258
+ local_var_path = '/users-web/api/v3/subscriptions'
259
+
260
+ # query parameters
261
+ query_params = {}
262
+
263
+ # header parameters
264
+ header_params = {}
265
+ # HTTP header 'Accept' (if needed)
266
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
267
+ # HTTP header 'Content-Type'
268
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
269
+
270
+ # form parameters
271
+ form_params = {}
272
+
273
+ # http body (model)
274
+ post_body = nil
275
+ auth_names = ['api_key']
276
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
277
+ :header_params => header_params,
278
+ :query_params => query_params,
279
+ :form_params => form_params,
280
+ :body => post_body,
281
+ :auth_names => auth_names,
282
+ :return_type => 'GenericApiResponse')
283
+ if @api_client.config.debugging
284
+ @api_client.config.logger.debug "API called: SubscriptionsApi#list_using_get5\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
285
+ end
286
+ return data, status_code, headers
287
+ end
288
+ # Email an App report
75
289
  # @param app_id appId
76
290
  # @param email_dto emailDto
77
291
  # @param [Hash] opts the optional parameters
78
292
  # @return [GenericApiResponse]
79
- def send_report_using_post(app_id, email_dto, opts = {})
80
- data, _status_code, _headers = send_report_using_post_with_http_info(app_id, email_dto, opts)
293
+ def send_app_report_using_post1(app_id, email_dto, opts = {})
294
+ data, _status_code, _headers = send_app_report_using_post1_with_http_info(app_id, email_dto, opts)
81
295
  data
82
296
  end
83
297
 
84
- # Trigger emailing of report for an app
298
+ # Email an App report
85
299
  # @param app_id appId
86
300
  # @param email_dto emailDto
87
301
  # @param [Hash] opts the optional parameters
88
302
  # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
89
- def send_report_using_post_with_http_info(app_id, email_dto, opts = {})
303
+ def send_app_report_using_post1_with_http_info(app_id, email_dto, opts = {})
90
304
  if @api_client.config.debugging
91
- @api_client.config.logger.debug 'Calling API: SubscriptionsApi.send_report_using_post ...'
305
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.send_app_report_using_post1 ...'
92
306
  end
93
307
  # verify the required parameter 'app_id' is set
94
308
  if @api_client.config.client_side_validation && app_id.nil?
95
- fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.send_report_using_post"
309
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.send_app_report_using_post1"
96
310
  end
97
311
  # verify the required parameter 'email_dto' is set
98
312
  if @api_client.config.client_side_validation && email_dto.nil?
99
- fail ArgumentError, "Missing the required parameter 'email_dto' when calling SubscriptionsApi.send_report_using_post"
313
+ fail ArgumentError, "Missing the required parameter 'email_dto' when calling SubscriptionsApi.send_app_report_using_post1"
100
314
  end
101
315
  # resource path
102
316
  local_var_path = '/users-web/api/v3/apps/{appId}/report/send'.sub('{' + 'appId' + '}', app_id.to_s)
@@ -125,7 +339,239 @@ module SematextCloud
125
339
  :auth_names => auth_names,
126
340
  :return_type => 'GenericApiResponse')
127
341
  if @api_client.config.debugging
128
- @api_client.config.logger.debug "API called: SubscriptionsApi#send_report_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
342
+ @api_client.config.logger.debug "API called: SubscriptionsApi#send_app_report_using_post1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
343
+ end
344
+ return data, status_code, headers
345
+ end
346
+ # Email a dashboard report
347
+ # @param dash_id dashId
348
+ # @param email_dto emailDto
349
+ # @param [Hash] opts the optional parameters
350
+ # @return [GenericApiResponse]
351
+ def send_dash_report_using_post1(dash_id, email_dto, opts = {})
352
+ data, _status_code, _headers = send_dash_report_using_post1_with_http_info(dash_id, email_dto, opts)
353
+ data
354
+ end
355
+
356
+ # Email a dashboard report
357
+ # @param dash_id dashId
358
+ # @param email_dto emailDto
359
+ # @param [Hash] opts the optional parameters
360
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
361
+ def send_dash_report_using_post1_with_http_info(dash_id, email_dto, opts = {})
362
+ if @api_client.config.debugging
363
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.send_dash_report_using_post1 ...'
364
+ end
365
+ # verify the required parameter 'dash_id' is set
366
+ if @api_client.config.client_side_validation && dash_id.nil?
367
+ fail ArgumentError, "Missing the required parameter 'dash_id' when calling SubscriptionsApi.send_dash_report_using_post1"
368
+ end
369
+ # verify the required parameter 'email_dto' is set
370
+ if @api_client.config.client_side_validation && email_dto.nil?
371
+ fail ArgumentError, "Missing the required parameter 'email_dto' when calling SubscriptionsApi.send_dash_report_using_post1"
372
+ end
373
+ # resource path
374
+ local_var_path = '/users-web/api/v3/dashboards/{dashId}/report/send'.sub('{' + 'dashId' + '}', dash_id.to_s)
375
+
376
+ # query parameters
377
+ query_params = {}
378
+
379
+ # header parameters
380
+ header_params = {}
381
+ # HTTP header 'Accept' (if needed)
382
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
383
+ # HTTP header 'Content-Type'
384
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
385
+
386
+ # form parameters
387
+ form_params = {}
388
+
389
+ # http body (model)
390
+ post_body = @api_client.object_to_http_body(email_dto)
391
+ auth_names = ['api_key']
392
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
393
+ :header_params => header_params,
394
+ :query_params => query_params,
395
+ :form_params => form_params,
396
+ :body => post_body,
397
+ :auth_names => auth_names,
398
+ :return_type => 'GenericApiResponse')
399
+ if @api_client.config.debugging
400
+ @api_client.config.logger.debug "API called: SubscriptionsApi#send_dash_report_using_post1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
401
+ end
402
+ return data, status_code, headers
403
+ end
404
+ # Toggle subscription status
405
+ # @param updateable_subscription_id updateableSubscriptionId
406
+ # @param dto dto
407
+ # @param [Hash] opts the optional parameters
408
+ # @return [GenericApiResponse]
409
+ def toggle_enabled_using_put1(updateable_subscription_id, dto, opts = {})
410
+ data, _status_code, _headers = toggle_enabled_using_put1_with_http_info(updateable_subscription_id, dto, opts)
411
+ data
412
+ end
413
+
414
+ # Toggle subscription status
415
+ # @param updateable_subscription_id updateableSubscriptionId
416
+ # @param dto dto
417
+ # @param [Hash] opts the optional parameters
418
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
419
+ def toggle_enabled_using_put1_with_http_info(updateable_subscription_id, dto, opts = {})
420
+ if @api_client.config.debugging
421
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.toggle_enabled_using_put1 ...'
422
+ end
423
+ # verify the required parameter 'updateable_subscription_id' is set
424
+ if @api_client.config.client_side_validation && updateable_subscription_id.nil?
425
+ fail ArgumentError, "Missing the required parameter 'updateable_subscription_id' when calling SubscriptionsApi.toggle_enabled_using_put1"
426
+ end
427
+ # verify the required parameter 'dto' is set
428
+ if @api_client.config.client_side_validation && dto.nil?
429
+ fail ArgumentError, "Missing the required parameter 'dto' when calling SubscriptionsApi.toggle_enabled_using_put1"
430
+ end
431
+ # resource path
432
+ local_var_path = '/users-web/api/v3/subscriptions/{updateableSubscriptionId}'.sub('{' + 'updateableSubscriptionId' + '}', updateable_subscription_id.to_s)
433
+
434
+ # query parameters
435
+ query_params = {}
436
+
437
+ # header parameters
438
+ header_params = {}
439
+ # HTTP header 'Accept' (if needed)
440
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
441
+ # HTTP header 'Content-Type'
442
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
443
+
444
+ # form parameters
445
+ form_params = {}
446
+
447
+ # http body (model)
448
+ post_body = @api_client.object_to_http_body(dto)
449
+ auth_names = ['api_key']
450
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
451
+ :header_params => header_params,
452
+ :query_params => query_params,
453
+ :form_params => form_params,
454
+ :body => post_body,
455
+ :auth_names => auth_names,
456
+ :return_type => 'GenericApiResponse')
457
+ if @api_client.config.debugging
458
+ @api_client.config.logger.debug "API called: SubscriptionsApi#toggle_enabled_using_put1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
459
+ end
460
+ return data, status_code, headers
461
+ end
462
+ # Update App subscription
463
+ # @param app_id appId
464
+ # @param subscription subscription
465
+ # @param [Hash] opts the optional parameters
466
+ # @return [GenericApiResponse]
467
+ def update_for_app_using_put1(app_id, subscription, opts = {})
468
+ data, _status_code, _headers = update_for_app_using_put1_with_http_info(app_id, subscription, opts)
469
+ data
470
+ end
471
+
472
+ # Update App subscription
473
+ # @param app_id appId
474
+ # @param subscription subscription
475
+ # @param [Hash] opts the optional parameters
476
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
477
+ def update_for_app_using_put1_with_http_info(app_id, subscription, opts = {})
478
+ if @api_client.config.debugging
479
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.update_for_app_using_put1 ...'
480
+ end
481
+ # verify the required parameter 'app_id' is set
482
+ if @api_client.config.client_side_validation && app_id.nil?
483
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.update_for_app_using_put1"
484
+ end
485
+ # verify the required parameter 'subscription' is set
486
+ if @api_client.config.client_side_validation && subscription.nil?
487
+ fail ArgumentError, "Missing the required parameter 'subscription' when calling SubscriptionsApi.update_for_app_using_put1"
488
+ end
489
+ # resource path
490
+ local_var_path = '/users-web/api/v3/apps/{appId}/subscription'.sub('{' + 'appId' + '}', app_id.to_s)
491
+
492
+ # query parameters
493
+ query_params = {}
494
+
495
+ # header parameters
496
+ header_params = {}
497
+ # HTTP header 'Accept' (if needed)
498
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
499
+ # HTTP header 'Content-Type'
500
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
501
+
502
+ # form parameters
503
+ form_params = {}
504
+
505
+ # http body (model)
506
+ post_body = @api_client.object_to_http_body(subscription)
507
+ auth_names = ['api_key']
508
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
509
+ :header_params => header_params,
510
+ :query_params => query_params,
511
+ :form_params => form_params,
512
+ :body => post_body,
513
+ :auth_names => auth_names,
514
+ :return_type => 'GenericApiResponse')
515
+ if @api_client.config.debugging
516
+ @api_client.config.logger.debug "API called: SubscriptionsApi#update_for_app_using_put1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
517
+ end
518
+ return data, status_code, headers
519
+ end
520
+ # Update dashboard subscription
521
+ # @param dash_id dashId
522
+ # @param subscription subscription
523
+ # @param [Hash] opts the optional parameters
524
+ # @return [GenericApiResponse]
525
+ def update_for_dash_using_put(dash_id, subscription, opts = {})
526
+ data, _status_code, _headers = update_for_dash_using_put_with_http_info(dash_id, subscription, opts)
527
+ data
528
+ end
529
+
530
+ # Update dashboard subscription
531
+ # @param dash_id dashId
532
+ # @param subscription subscription
533
+ # @param [Hash] opts the optional parameters
534
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
535
+ def update_for_dash_using_put_with_http_info(dash_id, subscription, opts = {})
536
+ if @api_client.config.debugging
537
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.update_for_dash_using_put ...'
538
+ end
539
+ # verify the required parameter 'dash_id' is set
540
+ if @api_client.config.client_side_validation && dash_id.nil?
541
+ fail ArgumentError, "Missing the required parameter 'dash_id' when calling SubscriptionsApi.update_for_dash_using_put"
542
+ end
543
+ # verify the required parameter 'subscription' is set
544
+ if @api_client.config.client_side_validation && subscription.nil?
545
+ fail ArgumentError, "Missing the required parameter 'subscription' when calling SubscriptionsApi.update_for_dash_using_put"
546
+ end
547
+ # resource path
548
+ local_var_path = '/users-web/api/v3/dashboards/{dashId}/subscription'.sub('{' + 'dashId' + '}', dash_id.to_s)
549
+
550
+ # query parameters
551
+ query_params = {}
552
+
553
+ # header parameters
554
+ header_params = {}
555
+ # HTTP header 'Accept' (if needed)
556
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
557
+ # HTTP header 'Content-Type'
558
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
559
+
560
+ # form parameters
561
+ form_params = {}
562
+
563
+ # http body (model)
564
+ post_body = @api_client.object_to_http_body(subscription)
565
+ auth_names = ['api_key']
566
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
567
+ :header_params => header_params,
568
+ :query_params => query_params,
569
+ :form_params => form_params,
570
+ :body => post_body,
571
+ :auth_names => auth_names,
572
+ :return_type => 'GenericApiResponse')
573
+ if @api_client.config.debugging
574
+ @api_client.config.logger.debug "API called: SubscriptionsApi#update_for_dash_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
129
575
  end
130
576
  return data, status_code, headers
131
577
  end