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