SematextCloud 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/AlertNotificationsApi.md +12 -12
- data/docs/AlertRule.md +1 -0
- data/docs/AlertsApi.md +15 -15
- data/docs/AppsApi.md +20 -20
- data/docs/AwsSettingsControllerApi.md +7 -7
- data/docs/BillingApi.md +10 -10
- data/docs/MonitoringAppApi.md +7 -7
- data/docs/PlansResponseEntry.md +1 -1
- data/docs/ServiceIntegration.md +14 -14
- data/docs/SubscriptionsApi.md +40 -40
- data/docs/TagApiControllerApi.md +72 -5
- data/docs/TagsGrouped.md +8 -0
- data/docs/TagsGroupedResponse.md +7 -0
- data/docs/TokensApiControllerApi.md +15 -15
- data/docs/UserPermissions.md +5 -5
- data/docs/UserRole.md +5 -5
- data/lib/SematextCloud/api/alert_notifications_api.rb +14 -14
- data/lib/SematextCloud/api/alerts_api.rb +13 -13
- data/lib/SematextCloud/api/apps_api.rb +25 -25
- data/lib/SematextCloud/api/aws_settings_controller_api.rb +8 -8
- data/lib/SematextCloud/api/billing_api.rb +16 -16
- data/lib/SematextCloud/api/logs_app_api.rb +1 -1
- data/lib/SematextCloud/api/logs_usage_api_controller_api.rb +1 -1
- data/lib/SematextCloud/api/monitoring_app_api.rb +7 -7
- data/lib/SematextCloud/api/reset_password_api.rb +1 -1
- data/lib/SematextCloud/api/subscriptions_api.rb +48 -48
- data/lib/SematextCloud/api/tag_api_controller_api.rb +80 -1
- data/lib/SematextCloud/api/tokens_api_controller_api.rb +14 -14
- data/lib/SematextCloud/api_client.rb +1 -1
- data/lib/SematextCloud/api_error.rb +1 -1
- data/lib/SematextCloud/configuration.rb +1 -1
- data/lib/SematextCloud/models/alert_notification.rb +1 -1
- data/lib/SematextCloud/models/alert_notification_request.rb +1 -1
- data/lib/SematextCloud/models/alert_rule.rb +23 -2
- data/lib/SematextCloud/models/alert_rule_response.rb +1 -1
- data/lib/SematextCloud/models/alert_rule_response_entry.rb +1 -1
- data/lib/SematextCloud/models/alert_rule_schedule_time_range_dto.rb +1 -1
- data/lib/SematextCloud/models/alert_rule_schedule_weekday_dto.rb +1 -1
- data/lib/SematextCloud/models/alert_rules_response.rb +1 -1
- data/lib/SematextCloud/models/alert_rules_response_entry.rb +1 -1
- data/lib/SematextCloud/models/app.rb +1 -1
- data/lib/SematextCloud/models/app_description.rb +1 -1
- data/lib/SematextCloud/models/app_metadata.rb +1 -1
- data/lib/SematextCloud/models/app_response.rb +1 -1
- data/lib/SematextCloud/models/app_response_entry.rb +1 -1
- data/lib/SematextCloud/models/app_types_response.rb +1 -1
- data/lib/SematextCloud/models/app_types_response_entry.rb +1 -1
- data/lib/SematextCloud/models/apps_response.rb +1 -1
- data/lib/SematextCloud/models/apps_response_entry.rb +1 -1
- data/lib/SematextCloud/models/basic_auth_method_dto.rb +1 -1
- data/lib/SematextCloud/models/basic_organization_dto.rb +1 -1
- data/lib/SematextCloud/models/billing_info.rb +1 -1
- data/lib/SematextCloud/models/charges_details_response_dto.rb +1 -1
- data/lib/SematextCloud/models/cloud_watch_settings.rb +1 -1
- data/lib/SematextCloud/models/cloud_watch_settings_response.rb +1 -1
- data/lib/SematextCloud/models/cloud_watch_settings_response_entry.rb +1 -1
- data/lib/SematextCloud/models/create_app_info.rb +1 -1
- data/lib/SematextCloud/models/create_token_dto.rb +1 -1
- data/lib/SematextCloud/models/daily_dto.rb +1 -1
- data/lib/SematextCloud/models/day_usage_data.rb +1 -1
- data/lib/SematextCloud/models/dimension.rb +1 -1
- data/lib/SematextCloud/models/error.rb +1 -1
- data/lib/SematextCloud/models/event_dto.rb +1 -1
- data/lib/SematextCloud/models/filter_value.rb +1 -1
- data/lib/SematextCloud/models/generic_api_response.rb +1 -1
- data/lib/SematextCloud/models/generic_map_based_api_response.rb +1 -1
- data/lib/SematextCloud/models/invitation.rb +1 -1
- data/lib/SematextCloud/models/invoice.rb +1 -1
- data/lib/SematextCloud/models/invoice_response.rb +1 -1
- data/lib/SematextCloud/models/invoice_response_entry.rb +1 -1
- data/lib/SematextCloud/models/limit_change_event_dto.rb +1 -1
- data/lib/SematextCloud/models/mail_report_response.rb +1 -1
- data/lib/SematextCloud/models/mail_report_response_response_entry.rb +1 -1
- data/lib/SematextCloud/models/min_period_fee_period.rb +1 -1
- data/lib/SematextCloud/models/notification_integration.rb +1 -1
- data/lib/SematextCloud/models/notifications_response.rb +1 -1
- data/lib/SematextCloud/models/notifications_response_entry.rb +1 -1
- data/lib/SematextCloud/models/plan.rb +1 -1
- data/lib/SematextCloud/models/plans_response.rb +1 -1
- data/lib/SematextCloud/models/plans_response_entry.rb +1 -1
- data/lib/SematextCloud/models/report_info.rb +1 -1
- data/lib/SematextCloud/models/service_integration.rb +1 -1
- data/lib/SematextCloud/models/subscription.rb +1 -1
- data/lib/SematextCloud/models/subscription_dashboard_dto.rb +1 -1
- data/lib/SematextCloud/models/subscription_dto.rb +1 -1
- data/lib/SematextCloud/models/subscription_response.rb +1 -1
- data/lib/SematextCloud/models/subscription_response_entry.rb +1 -1
- data/lib/SematextCloud/models/subscriptions_response.rb +1 -1
- data/lib/SematextCloud/models/subscriptions_response_entry.rb +1 -1
- data/lib/SematextCloud/models/tag_names_response.rb +1 -1
- data/lib/SematextCloud/models/tags_grouped.rb +227 -0
- data/lib/SematextCloud/models/tags_grouped_response.rb +213 -0
- data/lib/SematextCloud/models/token_dto.rb +1 -1
- data/lib/SematextCloud/models/token_response.rb +1 -1
- data/lib/SematextCloud/models/token_response_entry.rb +1 -1
- data/lib/SematextCloud/models/tokens_response.rb +1 -1
- data/lib/SematextCloud/models/tokens_response_entry.rb +1 -1
- data/lib/SematextCloud/models/update_app_info.rb +1 -1
- data/lib/SematextCloud/models/update_plan_response.rb +1 -1
- data/lib/SematextCloud/models/update_plan_response_dto.rb +1 -1
- data/lib/SematextCloud/models/update_plan_response_entry.rb +1 -1
- data/lib/SematextCloud/models/update_subscription_dto.rb +1 -1
- data/lib/SematextCloud/models/update_token_dto.rb +1 -1
- data/lib/SematextCloud/models/usage_dto.rb +1 -1
- data/lib/SematextCloud/models/usage_multi_response.rb +1 -1
- data/lib/SematextCloud/models/usage_multi_response_entry.rb +1 -1
- data/lib/SematextCloud/models/usage_response.rb +1 -1
- data/lib/SematextCloud/models/usage_response_entry.rb +1 -1
- data/lib/SematextCloud/models/user_info.rb +1 -1
- data/lib/SematextCloud/models/user_permissions.rb +1 -1
- data/lib/SematextCloud/models/user_role.rb +1 -1
- data/lib/SematextCloud/version.rb +2 -2
- data/lib/SematextCloud.rb +3 -1
- data/spec/api/alert_notifications_api_spec.rb +5 -5
- data/spec/api/alerts_api_spec.rb +5 -5
- data/spec/api/apps_api_spec.rb +9 -9
- data/spec/api/aws_settings_controller_api_spec.rb +3 -3
- data/spec/api/billing_api_spec.rb +5 -5
- data/spec/api/logs_app_api_spec.rb +1 -1
- data/spec/api/logs_usage_api_controller_api_spec.rb +1 -1
- data/spec/api/monitoring_app_api_spec.rb +3 -3
- data/spec/api/reset_password_api_spec.rb +1 -1
- data/spec/api/subscriptions_api_spec.rb +15 -15
- data/spec/api/tag_api_controller_api_spec.rb +19 -1
- data/spec/api/tokens_api_controller_api_spec.rb +5 -5
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/alert_notification_request_spec.rb +1 -1
- data/spec/models/alert_notification_spec.rb +1 -1
- data/spec/models/alert_rule_response_entry_spec.rb +1 -1
- data/spec/models/alert_rule_response_spec.rb +1 -1
- data/spec/models/alert_rule_schedule_time_range_dto_spec.rb +1 -1
- data/spec/models/alert_rule_schedule_weekday_dto_spec.rb +1 -1
- data/spec/models/alert_rule_spec.rb +11 -1
- data/spec/models/alert_rules_response_entry_spec.rb +1 -1
- data/spec/models/alert_rules_response_spec.rb +1 -1
- data/spec/models/app_description_spec.rb +1 -1
- data/spec/models/app_metadata_spec.rb +1 -1
- data/spec/models/app_response_entry_spec.rb +1 -1
- data/spec/models/app_response_spec.rb +1 -1
- data/spec/models/app_spec.rb +1 -1
- data/spec/models/app_types_response_entry_spec.rb +1 -1
- data/spec/models/app_types_response_spec.rb +1 -1
- data/spec/models/apps_response_entry_spec.rb +1 -1
- data/spec/models/apps_response_spec.rb +1 -1
- data/spec/models/basic_auth_method_dto_spec.rb +1 -1
- data/spec/models/basic_organization_dto_spec.rb +1 -1
- data/spec/models/billing_info_spec.rb +1 -1
- data/spec/models/charges_details_response_dto_spec.rb +1 -1
- data/spec/models/cloud_watch_settings_response_entry_spec.rb +1 -1
- data/spec/models/cloud_watch_settings_response_spec.rb +1 -1
- data/spec/models/cloud_watch_settings_spec.rb +1 -1
- data/spec/models/create_app_info_spec.rb +1 -1
- data/spec/models/create_token_dto_spec.rb +1 -1
- data/spec/models/daily_dto_spec.rb +1 -1
- data/spec/models/day_usage_data_spec.rb +1 -1
- data/spec/models/dimension_spec.rb +1 -1
- data/spec/models/error_spec.rb +1 -1
- data/spec/models/event_dto_spec.rb +1 -1
- data/spec/models/filter_value_spec.rb +1 -1
- data/spec/models/generic_api_response_spec.rb +1 -1
- data/spec/models/generic_map_based_api_response_spec.rb +1 -1
- data/spec/models/invitation_spec.rb +1 -1
- data/spec/models/invoice_response_entry_spec.rb +1 -1
- data/spec/models/invoice_response_spec.rb +1 -1
- data/spec/models/invoice_spec.rb +1 -1
- data/spec/models/limit_change_event_dto_spec.rb +1 -1
- data/spec/models/mail_report_response_response_entry_spec.rb +1 -1
- data/spec/models/mail_report_response_spec.rb +1 -1
- data/spec/models/min_period_fee_period_spec.rb +1 -1
- data/spec/models/notification_integration_spec.rb +1 -1
- data/spec/models/notifications_response_entry_spec.rb +1 -1
- data/spec/models/notifications_response_spec.rb +1 -1
- data/spec/models/plan_spec.rb +1 -1
- data/spec/models/plans_response_entry_spec.rb +1 -1
- data/spec/models/plans_response_spec.rb +1 -1
- data/spec/models/report_info_spec.rb +1 -1
- data/spec/models/service_integration_spec.rb +1 -1
- data/spec/models/subscription_dashboard_dto_spec.rb +1 -1
- data/spec/models/subscription_dto_spec.rb +1 -1
- data/spec/models/subscription_response_entry_spec.rb +1 -1
- data/spec/models/subscription_response_spec.rb +1 -1
- data/spec/models/subscription_spec.rb +1 -1
- data/spec/models/subscriptions_response_entry_spec.rb +1 -1
- data/spec/models/subscriptions_response_spec.rb +1 -1
- data/spec/models/tag_names_response_spec.rb +1 -1
- data/spec/models/tags_grouped_response_spec.rb +40 -0
- data/spec/models/tags_grouped_spec.rb +46 -0
- data/spec/models/token_dto_spec.rb +1 -1
- data/spec/models/token_response_entry_spec.rb +1 -1
- data/spec/models/token_response_spec.rb +1 -1
- data/spec/models/tokens_response_entry_spec.rb +1 -1
- data/spec/models/tokens_response_spec.rb +1 -1
- data/spec/models/update_app_info_spec.rb +1 -1
- data/spec/models/update_plan_response_dto_spec.rb +1 -1
- data/spec/models/update_plan_response_entry_spec.rb +1 -1
- data/spec/models/update_plan_response_spec.rb +1 -1
- data/spec/models/update_subscription_dto_spec.rb +1 -1
- data/spec/models/update_token_dto_spec.rb +1 -1
- data/spec/models/usage_dto_spec.rb +1 -1
- data/spec/models/usage_multi_response_entry_spec.rb +1 -1
- data/spec/models/usage_multi_response_spec.rb +1 -1
- data/spec/models/usage_response_entry_spec.rb +1 -1
- data/spec/models/usage_response_spec.rb +1 -1
- data/spec/models/user_info_spec.rb +1 -1
- data/spec/models/user_permissions_spec.rb +1 -1
- data/spec/models/user_role_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +83 -75
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v3
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.34
|
10
10
|
=end
|
11
11
|
|
12
12
|
module SematextCloud
|
@@ -22,8 +22,8 @@ module SematextCloud
|
|
22
22
|
# @param month month
|
23
23
|
# @param [Hash] opts the optional parameters
|
24
24
|
# @return [InvoiceResponse]
|
25
|
-
def
|
26
|
-
data, _status_code, _headers =
|
25
|
+
def get_detailed_invoice_using_get1(service, year, month, opts = {})
|
26
|
+
data, _status_code, _headers = get_detailed_invoice_using_get1_with_http_info(service, year, month, opts)
|
27
27
|
data
|
28
28
|
end
|
29
29
|
|
@@ -33,21 +33,21 @@ module SematextCloud
|
|
33
33
|
# @param month month
|
34
34
|
# @param [Hash] opts the optional parameters
|
35
35
|
# @return [Array<(InvoiceResponse, Integer, Hash)>] InvoiceResponse data, response status code and response headers
|
36
|
-
def
|
36
|
+
def get_detailed_invoice_using_get1_with_http_info(service, year, month, opts = {})
|
37
37
|
if @api_client.config.debugging
|
38
|
-
@api_client.config.logger.debug 'Calling API: BillingApi.
|
38
|
+
@api_client.config.logger.debug 'Calling API: BillingApi.get_detailed_invoice_using_get1 ...'
|
39
39
|
end
|
40
40
|
# verify the required parameter 'service' is set
|
41
41
|
if @api_client.config.client_side_validation && service.nil?
|
42
|
-
fail ArgumentError, "Missing the required parameter 'service' when calling BillingApi.
|
42
|
+
fail ArgumentError, "Missing the required parameter 'service' when calling BillingApi.get_detailed_invoice_using_get1"
|
43
43
|
end
|
44
44
|
# verify the required parameter 'year' is set
|
45
45
|
if @api_client.config.client_side_validation && year.nil?
|
46
|
-
fail ArgumentError, "Missing the required parameter 'year' when calling BillingApi.
|
46
|
+
fail ArgumentError, "Missing the required parameter 'year' when calling BillingApi.get_detailed_invoice_using_get1"
|
47
47
|
end
|
48
48
|
# verify the required parameter 'month' is set
|
49
49
|
if @api_client.config.client_side_validation && month.nil?
|
50
|
-
fail ArgumentError, "Missing the required parameter 'month' when calling BillingApi.
|
50
|
+
fail ArgumentError, "Missing the required parameter 'month' when calling BillingApi.get_detailed_invoice_using_get1"
|
51
51
|
end
|
52
52
|
# resource path
|
53
53
|
local_var_path = '/users-web/api/v3/billing/invoice/{service}/{year}/{month}'.sub('{' + 'service' + '}', service.to_s).sub('{' + 'year' + '}', year.to_s).sub('{' + 'month' + '}', month.to_s)
|
@@ -78,7 +78,7 @@ module SematextCloud
|
|
78
78
|
:return_type => return_type)
|
79
79
|
|
80
80
|
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called: BillingApi#
|
81
|
+
@api_client.config.logger.debug "API called: BillingApi#get_detailed_invoice_using_get1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
82
|
end
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
@@ -141,8 +141,8 @@ module SematextCloud
|
|
141
141
|
# @param app_id appId
|
142
142
|
# @param [Hash] opts the optional parameters
|
143
143
|
# @return [UpdatePlanResponse]
|
144
|
-
def
|
145
|
-
data, _status_code, _headers =
|
144
|
+
def update_plan_using_put1(body, app_id, opts = {})
|
145
|
+
data, _status_code, _headers = update_plan_using_put1_with_http_info(body, app_id, opts)
|
146
146
|
data
|
147
147
|
end
|
148
148
|
|
@@ -151,17 +151,17 @@ module SematextCloud
|
|
151
151
|
# @param app_id appId
|
152
152
|
# @param [Hash] opts the optional parameters
|
153
153
|
# @return [Array<(UpdatePlanResponse, Integer, Hash)>] UpdatePlanResponse data, response status code and response headers
|
154
|
-
def
|
154
|
+
def update_plan_using_put1_with_http_info(body, app_id, opts = {})
|
155
155
|
if @api_client.config.debugging
|
156
|
-
@api_client.config.logger.debug 'Calling API: BillingApi.
|
156
|
+
@api_client.config.logger.debug 'Calling API: BillingApi.update_plan_using_put1 ...'
|
157
157
|
end
|
158
158
|
# verify the required parameter 'body' is set
|
159
159
|
if @api_client.config.client_side_validation && body.nil?
|
160
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling BillingApi.
|
160
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling BillingApi.update_plan_using_put1"
|
161
161
|
end
|
162
162
|
# verify the required parameter 'app_id' is set
|
163
163
|
if @api_client.config.client_side_validation && app_id.nil?
|
164
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling BillingApi.
|
164
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling BillingApi.update_plan_using_put1"
|
165
165
|
end
|
166
166
|
# resource path
|
167
167
|
local_var_path = '/users-web/api/v3/billing/info/{appId}'.sub('{' + 'appId' + '}', app_id.to_s)
|
@@ -194,7 +194,7 @@ module SematextCloud
|
|
194
194
|
:return_type => return_type)
|
195
195
|
|
196
196
|
if @api_client.config.debugging
|
197
|
-
@api_client.config.logger.debug "API called: BillingApi#
|
197
|
+
@api_client.config.logger.debug "API called: BillingApi#update_plan_using_put1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
198
198
|
end
|
199
199
|
return data, status_code, headers
|
200
200
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v3
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.34
|
10
10
|
=end
|
11
11
|
|
12
12
|
module SematextCloud
|
@@ -20,8 +20,8 @@ module SematextCloud
|
|
20
20
|
# @param body Details of the application to be created
|
21
21
|
# @param [Hash] opts the optional parameters
|
22
22
|
# @return [AppsResponse]
|
23
|
-
def
|
24
|
-
data, _status_code, _headers =
|
23
|
+
def create_spm_application1(body, opts = {})
|
24
|
+
data, _status_code, _headers = create_spm_application1_with_http_info(body, opts)
|
25
25
|
data
|
26
26
|
end
|
27
27
|
|
@@ -29,13 +29,13 @@ module SematextCloud
|
|
29
29
|
# @param body Details of the application to be created
|
30
30
|
# @param [Hash] opts the optional parameters
|
31
31
|
# @return [Array<(AppsResponse, Integer, Hash)>] AppsResponse data, response status code and response headers
|
32
|
-
def
|
32
|
+
def create_spm_application1_with_http_info(body, opts = {})
|
33
33
|
if @api_client.config.debugging
|
34
|
-
@api_client.config.logger.debug 'Calling API: MonitoringAppApi.
|
34
|
+
@api_client.config.logger.debug 'Calling API: MonitoringAppApi.create_spm_application1 ...'
|
35
35
|
end
|
36
36
|
# verify the required parameter 'body' is set
|
37
37
|
if @api_client.config.client_side_validation && body.nil?
|
38
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling MonitoringAppApi.
|
38
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling MonitoringAppApi.create_spm_application1"
|
39
39
|
end
|
40
40
|
# resource path
|
41
41
|
local_var_path = '/spm-reports/api/v3/apps'
|
@@ -68,7 +68,7 @@ module SematextCloud
|
|
68
68
|
:return_type => return_type)
|
69
69
|
|
70
70
|
if @api_client.config.debugging
|
71
|
-
@api_client.config.logger.debug "API called: MonitoringAppApi#
|
71
|
+
@api_client.config.logger.debug "API called: MonitoringAppApi#create_spm_application1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
72
72
|
end
|
73
73
|
return data, status_code, headers
|
74
74
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v3
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.34
|
10
10
|
=end
|
11
11
|
|
12
12
|
module SematextCloud
|
@@ -144,8 +144,8 @@ module SematextCloud
|
|
144
144
|
# @param updateable_subscription_id updateableSubscriptionId
|
145
145
|
# @param [Hash] opts the optional parameters
|
146
146
|
# @return [GenericMapBasedApiResponse]
|
147
|
-
def
|
148
|
-
data, _status_code, _headers =
|
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
149
|
data
|
150
150
|
end
|
151
151
|
|
@@ -153,13 +153,13 @@ module SematextCloud
|
|
153
153
|
# @param updateable_subscription_id updateableSubscriptionId
|
154
154
|
# @param [Hash] opts the optional parameters
|
155
155
|
# @return [Array<(GenericMapBasedApiResponse, Integer, Hash)>] GenericMapBasedApiResponse data, response status code and response headers
|
156
|
-
def
|
156
|
+
def delete_using_delete3_with_http_info(updateable_subscription_id, opts = {})
|
157
157
|
if @api_client.config.debugging
|
158
|
-
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.
|
158
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.delete_using_delete3 ...'
|
159
159
|
end
|
160
160
|
# verify the required parameter 'updateable_subscription_id' is set
|
161
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.
|
162
|
+
fail ArgumentError, "Missing the required parameter 'updateable_subscription_id' when calling SubscriptionsApi.delete_using_delete3"
|
163
163
|
end
|
164
164
|
# resource path
|
165
165
|
local_var_path = '/users-web/api/v3/subscriptions/{updateableSubscriptionId}'.sub('{' + 'updateableSubscriptionId' + '}', updateable_subscription_id.to_s)
|
@@ -190,7 +190,7 @@ module SematextCloud
|
|
190
190
|
:return_type => return_type)
|
191
191
|
|
192
192
|
if @api_client.config.debugging
|
193
|
-
@api_client.config.logger.debug "API called: SubscriptionsApi#
|
193
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#delete_using_delete3\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
194
194
|
end
|
195
195
|
return data, status_code, headers
|
196
196
|
end
|
@@ -198,8 +198,8 @@ module SematextCloud
|
|
198
198
|
# @param app_id appId
|
199
199
|
# @param [Hash] opts the optional parameters
|
200
200
|
# @return [SubscriptionsResponse]
|
201
|
-
def
|
202
|
-
data, _status_code, _headers =
|
201
|
+
def list_using_get2(app_id, opts = {})
|
202
|
+
data, _status_code, _headers = list_using_get2_with_http_info(app_id, opts)
|
203
203
|
data
|
204
204
|
end
|
205
205
|
|
@@ -207,13 +207,13 @@ module SematextCloud
|
|
207
207
|
# @param app_id appId
|
208
208
|
# @param [Hash] opts the optional parameters
|
209
209
|
# @return [Array<(SubscriptionsResponse, Integer, Hash)>] SubscriptionsResponse data, response status code and response headers
|
210
|
-
def
|
210
|
+
def list_using_get2_with_http_info(app_id, opts = {})
|
211
211
|
if @api_client.config.debugging
|
212
|
-
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.
|
212
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.list_using_get2 ...'
|
213
213
|
end
|
214
214
|
# verify the required parameter 'app_id' is set
|
215
215
|
if @api_client.config.client_side_validation && app_id.nil?
|
216
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.
|
216
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.list_using_get2"
|
217
217
|
end
|
218
218
|
# resource path
|
219
219
|
local_var_path = '/users-web/api/v3/apps/{appId}/subscriptions'.sub('{' + 'appId' + '}', app_id.to_s)
|
@@ -244,7 +244,7 @@ module SematextCloud
|
|
244
244
|
:return_type => return_type)
|
245
245
|
|
246
246
|
if @api_client.config.debugging
|
247
|
-
@api_client.config.logger.debug "API called: SubscriptionsApi#
|
247
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#list_using_get2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
248
248
|
end
|
249
249
|
return data, status_code, headers
|
250
250
|
end
|
@@ -301,8 +301,8 @@ module SematextCloud
|
|
301
301
|
# @param app_id appId
|
302
302
|
# @param [Hash] opts the optional parameters
|
303
303
|
# @return [MailReportResponse]
|
304
|
-
def
|
305
|
-
data, _status_code, _headers =
|
304
|
+
def send_app_report_using_post1(body, app_id, opts = {})
|
305
|
+
data, _status_code, _headers = send_app_report_using_post1_with_http_info(body, app_id, opts)
|
306
306
|
data
|
307
307
|
end
|
308
308
|
|
@@ -311,17 +311,17 @@ module SematextCloud
|
|
311
311
|
# @param app_id appId
|
312
312
|
# @param [Hash] opts the optional parameters
|
313
313
|
# @return [Array<(MailReportResponse, Integer, Hash)>] MailReportResponse data, response status code and response headers
|
314
|
-
def
|
314
|
+
def send_app_report_using_post1_with_http_info(body, app_id, opts = {})
|
315
315
|
if @api_client.config.debugging
|
316
|
-
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.
|
316
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.send_app_report_using_post1 ...'
|
317
317
|
end
|
318
318
|
# verify the required parameter 'body' is set
|
319
319
|
if @api_client.config.client_side_validation && body.nil?
|
320
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.
|
320
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.send_app_report_using_post1"
|
321
321
|
end
|
322
322
|
# verify the required parameter 'app_id' is set
|
323
323
|
if @api_client.config.client_side_validation && app_id.nil?
|
324
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.
|
324
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.send_app_report_using_post1"
|
325
325
|
end
|
326
326
|
# resource path
|
327
327
|
local_var_path = '/users-web/api/v3/apps/{appId}/report/send'.sub('{' + 'appId' + '}', app_id.to_s)
|
@@ -354,7 +354,7 @@ module SematextCloud
|
|
354
354
|
:return_type => return_type)
|
355
355
|
|
356
356
|
if @api_client.config.debugging
|
357
|
-
@api_client.config.logger.debug "API called: SubscriptionsApi#
|
357
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#send_app_report_using_post1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
358
358
|
end
|
359
359
|
return data, status_code, headers
|
360
360
|
end
|
@@ -363,8 +363,8 @@ module SematextCloud
|
|
363
363
|
# @param dash_id dashId
|
364
364
|
# @param [Hash] opts the optional parameters
|
365
365
|
# @return [MailReportResponse]
|
366
|
-
def
|
367
|
-
data, _status_code, _headers =
|
366
|
+
def send_dash_report_using_post1(body, dash_id, opts = {})
|
367
|
+
data, _status_code, _headers = send_dash_report_using_post1_with_http_info(body, dash_id, opts)
|
368
368
|
data
|
369
369
|
end
|
370
370
|
|
@@ -373,17 +373,17 @@ module SematextCloud
|
|
373
373
|
# @param dash_id dashId
|
374
374
|
# @param [Hash] opts the optional parameters
|
375
375
|
# @return [Array<(MailReportResponse, Integer, Hash)>] MailReportResponse data, response status code and response headers
|
376
|
-
def
|
376
|
+
def send_dash_report_using_post1_with_http_info(body, dash_id, opts = {})
|
377
377
|
if @api_client.config.debugging
|
378
|
-
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.
|
378
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.send_dash_report_using_post1 ...'
|
379
379
|
end
|
380
380
|
# verify the required parameter 'body' is set
|
381
381
|
if @api_client.config.client_side_validation && body.nil?
|
382
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.
|
382
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.send_dash_report_using_post1"
|
383
383
|
end
|
384
384
|
# verify the required parameter 'dash_id' is set
|
385
385
|
if @api_client.config.client_side_validation && dash_id.nil?
|
386
|
-
fail ArgumentError, "Missing the required parameter 'dash_id' when calling SubscriptionsApi.
|
386
|
+
fail ArgumentError, "Missing the required parameter 'dash_id' when calling SubscriptionsApi.send_dash_report_using_post1"
|
387
387
|
end
|
388
388
|
# resource path
|
389
389
|
local_var_path = '/users-web/api/v3/dashboards/{dashId}/report/send'.sub('{' + 'dashId' + '}', dash_id.to_s)
|
@@ -416,7 +416,7 @@ module SematextCloud
|
|
416
416
|
:return_type => return_type)
|
417
417
|
|
418
418
|
if @api_client.config.debugging
|
419
|
-
@api_client.config.logger.debug "API called: SubscriptionsApi#
|
419
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#send_dash_report_using_post1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
420
420
|
end
|
421
421
|
return data, status_code, headers
|
422
422
|
end
|
@@ -425,8 +425,8 @@ module SematextCloud
|
|
425
425
|
# @param updateable_subscription_id updateableSubscriptionId
|
426
426
|
# @param [Hash] opts the optional parameters
|
427
427
|
# @return [SubscriptionResponse]
|
428
|
-
def
|
429
|
-
data, _status_code, _headers =
|
428
|
+
def toggle_enabled_using_put(body, updateable_subscription_id, opts = {})
|
429
|
+
data, _status_code, _headers = toggle_enabled_using_put_with_http_info(body, updateable_subscription_id, opts)
|
430
430
|
data
|
431
431
|
end
|
432
432
|
|
@@ -435,17 +435,17 @@ module SematextCloud
|
|
435
435
|
# @param updateable_subscription_id updateableSubscriptionId
|
436
436
|
# @param [Hash] opts the optional parameters
|
437
437
|
# @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
|
438
|
-
def
|
438
|
+
def toggle_enabled_using_put_with_http_info(body, updateable_subscription_id, opts = {})
|
439
439
|
if @api_client.config.debugging
|
440
|
-
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.
|
440
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.toggle_enabled_using_put ...'
|
441
441
|
end
|
442
442
|
# verify the required parameter 'body' is set
|
443
443
|
if @api_client.config.client_side_validation && body.nil?
|
444
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.
|
444
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.toggle_enabled_using_put"
|
445
445
|
end
|
446
446
|
# verify the required parameter 'updateable_subscription_id' is set
|
447
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.
|
448
|
+
fail ArgumentError, "Missing the required parameter 'updateable_subscription_id' when calling SubscriptionsApi.toggle_enabled_using_put"
|
449
449
|
end
|
450
450
|
# resource path
|
451
451
|
local_var_path = '/users-web/api/v3/subscriptions/{updateableSubscriptionId}'.sub('{' + 'updateableSubscriptionId' + '}', updateable_subscription_id.to_s)
|
@@ -478,7 +478,7 @@ module SematextCloud
|
|
478
478
|
:return_type => return_type)
|
479
479
|
|
480
480
|
if @api_client.config.debugging
|
481
|
-
@api_client.config.logger.debug "API called: SubscriptionsApi#
|
481
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#toggle_enabled_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
482
482
|
end
|
483
483
|
return data, status_code, headers
|
484
484
|
end
|
@@ -487,8 +487,8 @@ module SematextCloud
|
|
487
487
|
# @param app_id appId
|
488
488
|
# @param [Hash] opts the optional parameters
|
489
489
|
# @return [SubscriptionResponse]
|
490
|
-
def
|
491
|
-
data, _status_code, _headers =
|
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
492
|
data
|
493
493
|
end
|
494
494
|
|
@@ -497,17 +497,17 @@ module SematextCloud
|
|
497
497
|
# @param app_id appId
|
498
498
|
# @param [Hash] opts the optional parameters
|
499
499
|
# @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
|
500
|
-
def
|
500
|
+
def update_for_app_using_put1_with_http_info(body, app_id, opts = {})
|
501
501
|
if @api_client.config.debugging
|
502
|
-
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.
|
502
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.update_for_app_using_put1 ...'
|
503
503
|
end
|
504
504
|
# verify the required parameter 'body' is set
|
505
505
|
if @api_client.config.client_side_validation && body.nil?
|
506
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.
|
506
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.update_for_app_using_put1"
|
507
507
|
end
|
508
508
|
# verify the required parameter 'app_id' is set
|
509
509
|
if @api_client.config.client_side_validation && app_id.nil?
|
510
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.
|
510
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling SubscriptionsApi.update_for_app_using_put1"
|
511
511
|
end
|
512
512
|
# resource path
|
513
513
|
local_var_path = '/users-web/api/v3/apps/{appId}/subscription'.sub('{' + 'appId' + '}', app_id.to_s)
|
@@ -540,7 +540,7 @@ module SematextCloud
|
|
540
540
|
:return_type => return_type)
|
541
541
|
|
542
542
|
if @api_client.config.debugging
|
543
|
-
@api_client.config.logger.debug "API called: SubscriptionsApi#
|
543
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#update_for_app_using_put1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
544
544
|
end
|
545
545
|
return data, status_code, headers
|
546
546
|
end
|
@@ -549,8 +549,8 @@ module SematextCloud
|
|
549
549
|
# @param dash_id dashId
|
550
550
|
# @param [Hash] opts the optional parameters
|
551
551
|
# @return [SubscriptionResponse]
|
552
|
-
def
|
553
|
-
data, _status_code, _headers =
|
552
|
+
def update_for_dash_using_put(body, dash_id, opts = {})
|
553
|
+
data, _status_code, _headers = update_for_dash_using_put_with_http_info(body, dash_id, opts)
|
554
554
|
data
|
555
555
|
end
|
556
556
|
|
@@ -559,17 +559,17 @@ module SematextCloud
|
|
559
559
|
# @param dash_id dashId
|
560
560
|
# @param [Hash] opts the optional parameters
|
561
561
|
# @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
|
562
|
-
def
|
562
|
+
def update_for_dash_using_put_with_http_info(body, dash_id, opts = {})
|
563
563
|
if @api_client.config.debugging
|
564
|
-
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.
|
564
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.update_for_dash_using_put ...'
|
565
565
|
end
|
566
566
|
# verify the required parameter 'body' is set
|
567
567
|
if @api_client.config.client_side_validation && body.nil?
|
568
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.
|
568
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SubscriptionsApi.update_for_dash_using_put"
|
569
569
|
end
|
570
570
|
# verify the required parameter 'dash_id' is set
|
571
571
|
if @api_client.config.client_side_validation && dash_id.nil?
|
572
|
-
fail ArgumentError, "Missing the required parameter 'dash_id' when calling SubscriptionsApi.
|
572
|
+
fail ArgumentError, "Missing the required parameter 'dash_id' when calling SubscriptionsApi.update_for_dash_using_put"
|
573
573
|
end
|
574
574
|
# resource path
|
575
575
|
local_var_path = '/users-web/api/v3/dashboards/{dashId}/subscription'.sub('{' + 'dashId' + '}', dash_id.to_s)
|
@@ -602,7 +602,7 @@ module SematextCloud
|
|
602
602
|
:return_type => return_type)
|
603
603
|
|
604
604
|
if @api_client.config.debugging
|
605
|
-
@api_client.config.logger.debug "API called: SubscriptionsApi#
|
605
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#update_for_dash_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
606
606
|
end
|
607
607
|
return data, status_code, headers
|
608
608
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v3
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.34
|
10
10
|
=end
|
11
11
|
|
12
12
|
module SematextCloud
|
@@ -88,6 +88,85 @@ module SematextCloud
|
|
88
88
|
end
|
89
89
|
return data, status_code, headers
|
90
90
|
end
|
91
|
+
# Gets tag names grouped by application id.
|
92
|
+
# @param app_ids appIds
|
93
|
+
# @param tag tag
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @option opts [Integer] :from from
|
96
|
+
# @option opts [Integer] :to to
|
97
|
+
# @option opts [BOOLEAN] :metrics metrics (default to true)
|
98
|
+
# @option opts [BOOLEAN] :logs logs (default to true)
|
99
|
+
# @option opts [BOOLEAN] :events events (default to false)
|
100
|
+
# @option opts [BOOLEAN] :rum rum (default to true)
|
101
|
+
# @return [TagsGroupedResponse]
|
102
|
+
def get_tags_grouped_by_id_using_get1(app_ids, tag, opts = {})
|
103
|
+
data, _status_code, _headers = get_tags_grouped_by_id_using_get1_with_http_info(app_ids, tag, opts)
|
104
|
+
data
|
105
|
+
end
|
106
|
+
|
107
|
+
# Gets tag names grouped by application id.
|
108
|
+
# @param app_ids appIds
|
109
|
+
# @param tag tag
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @option opts [Integer] :from from
|
112
|
+
# @option opts [Integer] :to to
|
113
|
+
# @option opts [BOOLEAN] :metrics metrics
|
114
|
+
# @option opts [BOOLEAN] :logs logs
|
115
|
+
# @option opts [BOOLEAN] :events events
|
116
|
+
# @option opts [BOOLEAN] :rum rum
|
117
|
+
# @return [Array<(TagsGroupedResponse, Integer, Hash)>] TagsGroupedResponse data, response status code and response headers
|
118
|
+
def get_tags_grouped_by_id_using_get1_with_http_info(app_ids, tag, opts = {})
|
119
|
+
if @api_client.config.debugging
|
120
|
+
@api_client.config.logger.debug 'Calling API: TagApiControllerApi.get_tags_grouped_by_id_using_get1 ...'
|
121
|
+
end
|
122
|
+
# verify the required parameter 'app_ids' is set
|
123
|
+
if @api_client.config.client_side_validation && app_ids.nil?
|
124
|
+
fail ArgumentError, "Missing the required parameter 'app_ids' when calling TagApiControllerApi.get_tags_grouped_by_id_using_get1"
|
125
|
+
end
|
126
|
+
# verify the required parameter 'tag' is set
|
127
|
+
if @api_client.config.client_side_validation && tag.nil?
|
128
|
+
fail ArgumentError, "Missing the required parameter 'tag' when calling TagApiControllerApi.get_tags_grouped_by_id_using_get1"
|
129
|
+
end
|
130
|
+
# resource path
|
131
|
+
local_var_path = '/spm-reports/api/v3/apps/{appIds}/grouped'.sub('{' + 'appIds' + '}', app_ids.to_s)
|
132
|
+
|
133
|
+
# query parameters
|
134
|
+
query_params = opts[:query_params] || {}
|
135
|
+
query_params[:'tag'] = @api_client.build_collection_param(tag, :multi)
|
136
|
+
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
137
|
+
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
138
|
+
query_params[:'metrics'] = opts[:'metrics'] if !opts[:'metrics'].nil?
|
139
|
+
query_params[:'logs'] = opts[:'logs'] if !opts[:'logs'].nil?
|
140
|
+
query_params[:'events'] = opts[:'events'] if !opts[:'events'].nil?
|
141
|
+
query_params[:'rum'] = opts[:'rum'] if !opts[:'rum'].nil?
|
142
|
+
|
143
|
+
# header parameters
|
144
|
+
header_params = opts[:header_params] || {}
|
145
|
+
# HTTP header 'Accept' (if needed)
|
146
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
147
|
+
|
148
|
+
# form parameters
|
149
|
+
form_params = opts[:form_params] || {}
|
150
|
+
|
151
|
+
# http body (model)
|
152
|
+
post_body = opts[:body]
|
153
|
+
|
154
|
+
return_type = opts[:return_type] || 'TagsGroupedResponse'
|
155
|
+
|
156
|
+
auth_names = opts[:auth_names] || ['api_key']
|
157
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
158
|
+
:header_params => header_params,
|
159
|
+
:query_params => query_params,
|
160
|
+
:form_params => form_params,
|
161
|
+
:body => post_body,
|
162
|
+
:auth_names => auth_names,
|
163
|
+
:return_type => return_type)
|
164
|
+
|
165
|
+
if @api_client.config.debugging
|
166
|
+
@api_client.config.logger.debug "API called: TagApiControllerApi#get_tags_grouped_by_id_using_get1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
167
|
+
end
|
168
|
+
return data, status_code, headers
|
169
|
+
end
|
91
170
|
# Gets values for specified tags for the given application identifiers appearing in the given time frame.
|
92
171
|
# @param app_ids appIds
|
93
172
|
# @param tag tag
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v3
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.34
|
10
10
|
=end
|
11
11
|
|
12
12
|
module SematextCloud
|
@@ -142,8 +142,8 @@ module SematextCloud
|
|
142
142
|
# @param app_id appId
|
143
143
|
# @param [Hash] opts the optional parameters
|
144
144
|
# @return [TokensResponse]
|
145
|
-
def
|
146
|
-
data, _status_code, _headers =
|
145
|
+
def get_app_tokens1(app_id, opts = {})
|
146
|
+
data, _status_code, _headers = get_app_tokens1_with_http_info(app_id, opts)
|
147
147
|
data
|
148
148
|
end
|
149
149
|
|
@@ -151,13 +151,13 @@ module SematextCloud
|
|
151
151
|
# @param app_id appId
|
152
152
|
# @param [Hash] opts the optional parameters
|
153
153
|
# @return [Array<(TokensResponse, Integer, Hash)>] TokensResponse data, response status code and response headers
|
154
|
-
def
|
154
|
+
def get_app_tokens1_with_http_info(app_id, opts = {})
|
155
155
|
if @api_client.config.debugging
|
156
|
-
@api_client.config.logger.debug 'Calling API: TokensApiControllerApi.
|
156
|
+
@api_client.config.logger.debug 'Calling API: TokensApiControllerApi.get_app_tokens1 ...'
|
157
157
|
end
|
158
158
|
# verify the required parameter 'app_id' is set
|
159
159
|
if @api_client.config.client_side_validation && app_id.nil?
|
160
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling TokensApiControllerApi.
|
160
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TokensApiControllerApi.get_app_tokens1"
|
161
161
|
end
|
162
162
|
# resource path
|
163
163
|
local_var_path = '/users-web/api/v3/apps/{appId}/tokens'.sub('{' + 'appId' + '}', app_id.to_s)
|
@@ -188,7 +188,7 @@ module SematextCloud
|
|
188
188
|
:return_type => return_type)
|
189
189
|
|
190
190
|
if @api_client.config.debugging
|
191
|
-
@api_client.config.logger.debug "API called: TokensApiControllerApi#
|
191
|
+
@api_client.config.logger.debug "API called: TokensApiControllerApi#get_app_tokens1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
192
192
|
end
|
193
193
|
return data, status_code, headers
|
194
194
|
end
|
@@ -197,8 +197,8 @@ module SematextCloud
|
|
197
197
|
# @param token_id tokenId
|
198
198
|
# @param [Hash] opts the optional parameters
|
199
199
|
# @return [TokenResponse]
|
200
|
-
def
|
201
|
-
data, _status_code, _headers =
|
200
|
+
def regenerate_app_token(app_id, token_id, opts = {})
|
201
|
+
data, _status_code, _headers = regenerate_app_token_with_http_info(app_id, token_id, opts)
|
202
202
|
data
|
203
203
|
end
|
204
204
|
|
@@ -207,17 +207,17 @@ module SematextCloud
|
|
207
207
|
# @param token_id tokenId
|
208
208
|
# @param [Hash] opts the optional parameters
|
209
209
|
# @return [Array<(TokenResponse, Integer, Hash)>] TokenResponse data, response status code and response headers
|
210
|
-
def
|
210
|
+
def regenerate_app_token_with_http_info(app_id, token_id, opts = {})
|
211
211
|
if @api_client.config.debugging
|
212
|
-
@api_client.config.logger.debug 'Calling API: TokensApiControllerApi.
|
212
|
+
@api_client.config.logger.debug 'Calling API: TokensApiControllerApi.regenerate_app_token ...'
|
213
213
|
end
|
214
214
|
# verify the required parameter 'app_id' is set
|
215
215
|
if @api_client.config.client_side_validation && app_id.nil?
|
216
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling TokensApiControllerApi.
|
216
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling TokensApiControllerApi.regenerate_app_token"
|
217
217
|
end
|
218
218
|
# verify the required parameter 'token_id' is set
|
219
219
|
if @api_client.config.client_side_validation && token_id.nil?
|
220
|
-
fail ArgumentError, "Missing the required parameter 'token_id' when calling TokensApiControllerApi.
|
220
|
+
fail ArgumentError, "Missing the required parameter 'token_id' when calling TokensApiControllerApi.regenerate_app_token"
|
221
221
|
end
|
222
222
|
# resource path
|
223
223
|
local_var_path = '/users-web/api/v3/apps/{appId}/tokens/{tokenId}/regenerate'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'tokenId' + '}', token_id.to_s)
|
@@ -248,7 +248,7 @@ module SematextCloud
|
|
248
248
|
:return_type => return_type)
|
249
249
|
|
250
250
|
if @api_client.config.debugging
|
251
|
-
@api_client.config.logger.debug "API called: TokensApiControllerApi#
|
251
|
+
@api_client.config.logger.debug "API called: TokensApiControllerApi#regenerate_app_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
252
252
|
end
|
253
253
|
return data, status_code, headers
|
254
254
|
end
|