svix 0.83.1 → 0.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/svix/api/application_api.rb +247 -181
- data/lib/svix/api/authentication_api.rb +82 -150
- data/lib/svix/api/background_tasks_api.rb +161 -0
- data/lib/svix/api/endpoint_api.rb +561 -485
- data/lib/svix/api/environment_api.rb +16 -16
- data/lib/svix/api/environment_settings_api.rb +7 -10
- data/lib/svix/api/event_type_api.rb +152 -81
- data/lib/svix/api/health_api.rb +6 -9
- data/lib/svix/api/integration_api.rb +123 -134
- data/lib/svix/api/message_api.rb +96 -102
- data/lib/svix/api/message_attempt_api.rb +382 -406
- data/lib/svix/api/statistics_api.rb +107 -45
- data/lib/svix/api_client.rb +0 -1
- data/lib/svix/application_api.rb +22 -22
- data/lib/svix/authentication_api.rb +3 -3
- data/lib/svix/configuration.rb +0 -7
- data/lib/svix/endpoint_api.rb +16 -16
- data/lib/svix/event_type_api.rb +19 -19
- data/lib/svix/integration_api.rb +26 -26
- data/lib/svix/message_api.rb +4 -4
- data/lib/svix/message_attempt_api.rb +8 -8
- data/lib/svix/models/app_portal_access_in.rb +1 -0
- data/lib/svix/models/application_in.rb +34 -1
- data/lib/svix/models/application_out.rb +20 -2
- data/lib/svix/models/application_patch.rb +299 -0
- data/lib/svix/models/application_stats.rb +0 -1
- data/lib/svix/models/{webhook_types.rb → background_task_out.rb} +40 -69
- data/lib/svix/models/background_task_out_common.rb +251 -0
- data/lib/svix/models/background_task_status.rb +38 -0
- data/lib/svix/models/background_task_type.rb +38 -0
- data/lib/svix/models/calculate_app_stats_in.rb +255 -0
- data/lib/svix/models/endpoint_created_event.rb +5 -0
- data/lib/svix/models/endpoint_created_event_data.rb +0 -2
- data/lib/svix/models/endpoint_deleted_event.rb +5 -0
- data/lib/svix/models/endpoint_deleted_event_data.rb +0 -2
- data/lib/svix/models/endpoint_disabled_event.rb +5 -0
- data/lib/svix/models/endpoint_disabled_event_data.rb +1 -2
- data/lib/svix/models/endpoint_in.rb +19 -10
- data/lib/svix/models/endpoint_message_out.rb +1 -0
- data/lib/svix/models/endpoint_out.rb +33 -15
- data/lib/svix/models/endpoint_patch.rb +405 -0
- data/lib/svix/models/endpoint_secret_rotate_in.rb +2 -0
- data/lib/svix/models/endpoint_transformation_in.rb +0 -2
- data/lib/svix/models/endpoint_transformation_simulate_in.rb +6 -0
- data/lib/svix/models/endpoint_update.rb +19 -10
- data/lib/svix/models/endpoint_updated_event.rb +5 -0
- data/lib/svix/models/endpoint_updated_event_data.rb +0 -2
- data/lib/svix/models/event_type_example_out.rb +4 -2
- data/lib/svix/models/event_type_patch.rb +275 -0
- data/lib/svix/models/event_type_schema_in.rb +0 -1
- data/lib/svix/models/http_validation_error.rb +5 -0
- data/lib/svix/models/list_response_application_stats.rb +15 -5
- data/lib/svix/models/list_response_background_task_out.rb +259 -0
- data/lib/svix/models/list_response_integration_out.rb +15 -5
- data/lib/svix/models/list_response_message_endpoint_out.rb +15 -5
- data/lib/svix/models/message_attempt_exhausted_event.rb +5 -0
- data/lib/svix/models/message_attempt_exhausted_event_data.rb +1 -2
- data/lib/svix/models/message_attempt_failing_event.rb +5 -0
- data/lib/svix/models/message_attempt_failing_event_data.rb +1 -2
- data/lib/svix/models/message_attempt_headers_out.rb +27 -1
- data/lib/svix/models/message_endpoint_out.rb +45 -29
- data/lib/svix/models/message_in.rb +0 -1
- data/lib/svix/models/{one_time_token_out.rb → recover_out.rb} +41 -13
- data/lib/svix/models/{one_time_token_in.rb → replay_out.rb} +41 -13
- data/lib/svix/models/transformation_http_method.rb +1 -1
- data/lib/svix/models/validation_error.rb +4 -0
- data/lib/svix/version.rb +1 -1
- metadata +14 -5
@@ -19,62 +19,72 @@ module Svix
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
23
|
-
#
|
24
|
-
# @param
|
22
|
+
# Get App Usage Stats
|
23
|
+
# Get basic statistics for all applications.
|
24
|
+
# @param since [Time]
|
25
|
+
# @param _until [Time]
|
25
26
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [
|
27
|
-
# @option opts [String] :
|
28
|
-
# @return [
|
29
|
-
def
|
30
|
-
data, _status_code, _headers =
|
27
|
+
# @option opts [Integer] :limit (default to 50)
|
28
|
+
# @option opts [String] :iterator
|
29
|
+
# @return [ListResponseApplicationStats]
|
30
|
+
def get_app_usage_stats_api_v1_app_stats_usage_get(since, _until, opts = {})
|
31
|
+
data, _status_code, _headers = get_app_usage_stats_api_v1_app_stats_usage_get_with_http_info(since, _until, opts)
|
31
32
|
data
|
32
33
|
end
|
33
34
|
|
34
|
-
#
|
35
|
-
#
|
36
|
-
# @param
|
35
|
+
# Get App Usage Stats
|
36
|
+
# Get basic statistics for all applications.
|
37
|
+
# @param since [Time]
|
38
|
+
# @param _until [Time]
|
37
39
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @option opts [
|
39
|
-
# @option opts [String] :
|
40
|
-
# @return [Array<(
|
41
|
-
def
|
40
|
+
# @option opts [Integer] :limit
|
41
|
+
# @option opts [String] :iterator
|
42
|
+
# @return [Array<(ListResponseApplicationStats, Integer, Hash)>] ListResponseApplicationStats data, response status code and response headers
|
43
|
+
def get_app_usage_stats_api_v1_app_stats_usage_get_with_http_info(since, _until, opts = {})
|
42
44
|
if @api_client.config.debugging
|
43
|
-
@api_client.config.logger.debug 'Calling API: ApplicationApi.
|
45
|
+
@api_client.config.logger.debug 'Calling API: ApplicationApi.get_app_usage_stats_api_v1_app_stats_usage_get ...'
|
44
46
|
end
|
45
|
-
# verify the required parameter '
|
46
|
-
if @api_client.config.client_side_validation &&
|
47
|
-
fail ArgumentError, "Missing the required parameter '
|
47
|
+
# verify the required parameter 'since' is set
|
48
|
+
if @api_client.config.client_side_validation && since.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'since' when calling ApplicationApi.get_app_usage_stats_api_v1_app_stats_usage_get"
|
48
50
|
end
|
51
|
+
# verify the required parameter '_until' is set
|
52
|
+
if @api_client.config.client_side_validation && _until.nil?
|
53
|
+
fail ArgumentError, "Missing the required parameter '_until' when calling ApplicationApi.get_app_usage_stats_api_v1_app_stats_usage_get"
|
54
|
+
end
|
55
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
56
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ApplicationApi.get_app_usage_stats_api_v1_app_stats_usage_get, must be smaller than or equal to 250.'
|
57
|
+
end
|
58
|
+
|
49
59
|
# resource path
|
50
|
-
local_var_path = '/api/v1/app/'
|
60
|
+
local_var_path = '/api/v1/app/stats/usage/'
|
51
61
|
|
52
62
|
# query parameters
|
53
63
|
query_params = opts[:query_params] || {}
|
54
|
-
query_params[:'
|
64
|
+
query_params[:'since'] = since
|
65
|
+
query_params[:'until'] = _until
|
66
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
67
|
+
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
55
68
|
|
56
69
|
# header parameters
|
57
70
|
header_params = opts[:header_params] || {}
|
58
71
|
# HTTP header 'Accept' (if needed)
|
59
72
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
60
|
-
# HTTP header 'Content-Type'
|
61
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
62
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
63
73
|
|
64
74
|
# form parameters
|
65
75
|
form_params = opts[:form_params] || {}
|
66
76
|
|
67
77
|
# http body (model)
|
68
|
-
post_body = opts[:debug_body]
|
78
|
+
post_body = opts[:debug_body]
|
69
79
|
|
70
80
|
# return_type
|
71
|
-
return_type = opts[:debug_return_type] || '
|
81
|
+
return_type = opts[:debug_return_type] || 'ListResponseApplicationStats'
|
72
82
|
|
73
83
|
# auth_names
|
74
|
-
auth_names = opts[:debug_auth_names] || [
|
84
|
+
auth_names = opts[:debug_auth_names] || []
|
75
85
|
|
76
86
|
new_options = opts.merge(
|
77
|
-
:operation => :"ApplicationApi.
|
87
|
+
:operation => :"ApplicationApi.get_app_usage_stats_api_v1_app_stats_usage_get",
|
78
88
|
:header_params => header_params,
|
79
89
|
:query_params => query_params,
|
80
90
|
:form_params => form_params,
|
@@ -83,51 +93,55 @@ module Svix
|
|
83
93
|
:return_type => return_type
|
84
94
|
)
|
85
95
|
|
86
|
-
data, status_code, headers = @api_client.call_api(:
|
96
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
87
97
|
if @api_client.config.debugging
|
88
|
-
@api_client.config.logger.debug "API called: ApplicationApi#
|
98
|
+
@api_client.config.logger.debug "API called: ApplicationApi#get_app_usage_stats_api_v1_app_stats_usage_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
89
99
|
end
|
90
100
|
return data, status_code, headers
|
91
101
|
end
|
92
102
|
|
93
|
-
#
|
94
|
-
#
|
103
|
+
# Patch Application
|
104
|
+
# Partially update an application.
|
95
105
|
# @param app_id [String]
|
106
|
+
# @param application_patch [ApplicationPatch]
|
96
107
|
# @param [Hash] opts the optional parameters
|
97
|
-
# @
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
nil
|
108
|
+
# @return [ApplicationOut]
|
109
|
+
def patch_application(app_id, application_patch, opts = {})
|
110
|
+
data, _status_code, _headers = patch_application_with_http_info(app_id, application_patch, opts)
|
111
|
+
data
|
102
112
|
end
|
103
113
|
|
104
|
-
#
|
105
|
-
#
|
114
|
+
# Patch Application
|
115
|
+
# Partially update an application.
|
106
116
|
# @param app_id [String]
|
117
|
+
# @param application_patch [ApplicationPatch]
|
107
118
|
# @param [Hash] opts the optional parameters
|
108
|
-
# @
|
109
|
-
|
110
|
-
def delete_application_api_v1_app_app_id_delete_with_http_info(app_id, opts = {})
|
119
|
+
# @return [Array<(ApplicationOut, Integer, Hash)>] ApplicationOut data, response status code and response headers
|
120
|
+
def patch_application_with_http_info(app_id, application_patch, opts = {})
|
111
121
|
if @api_client.config.debugging
|
112
|
-
@api_client.config.logger.debug 'Calling API: ApplicationApi.
|
122
|
+
@api_client.config.logger.debug 'Calling API: ApplicationApi.patch_application ...'
|
113
123
|
end
|
114
124
|
# verify the required parameter 'app_id' is set
|
115
125
|
if @api_client.config.client_side_validation && app_id.nil?
|
116
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling ApplicationApi.
|
126
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling ApplicationApi.patch_application"
|
117
127
|
end
|
118
128
|
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
119
|
-
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.
|
129
|
+
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.patch_application, the character length must be smaller than or equal to 256.'
|
120
130
|
end
|
121
131
|
|
122
132
|
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
123
|
-
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.
|
133
|
+
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.patch_application, the character length must be great than or equal to 1.'
|
124
134
|
end
|
125
135
|
|
126
136
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
127
137
|
if @api_client.config.client_side_validation && app_id !~ pattern
|
128
|
-
fail ArgumentError, "invalid value for 'app_id' when calling ApplicationApi.
|
138
|
+
fail ArgumentError, "invalid value for 'app_id' when calling ApplicationApi.patch_application, must conform to the pattern #{pattern}."
|
129
139
|
end
|
130
140
|
|
141
|
+
# verify the required parameter 'application_patch' is set
|
142
|
+
if @api_client.config.client_side_validation && application_patch.nil?
|
143
|
+
fail ArgumentError, "Missing the required parameter 'application_patch' when calling ApplicationApi.patch_application"
|
144
|
+
end
|
131
145
|
# resource path
|
132
146
|
local_var_path = '/api/v1/app/{app_id}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
133
147
|
|
@@ -138,22 +152,23 @@ module Svix
|
|
138
152
|
header_params = opts[:header_params] || {}
|
139
153
|
# HTTP header 'Accept' (if needed)
|
140
154
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
141
|
-
|
155
|
+
# HTTP header 'Content-Type'
|
156
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
142
157
|
|
143
158
|
# form parameters
|
144
159
|
form_params = opts[:form_params] || {}
|
145
160
|
|
146
161
|
# http body (model)
|
147
|
-
post_body = opts[:debug_body]
|
162
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(application_patch)
|
148
163
|
|
149
164
|
# return_type
|
150
|
-
return_type = opts[:debug_return_type]
|
165
|
+
return_type = opts[:debug_return_type] || 'ApplicationOut'
|
151
166
|
|
152
167
|
# auth_names
|
153
|
-
auth_names = opts[:debug_auth_names] || [
|
168
|
+
auth_names = opts[:debug_auth_names] || []
|
154
169
|
|
155
170
|
new_options = opts.merge(
|
156
|
-
:operation => :"ApplicationApi.
|
171
|
+
:operation => :"ApplicationApi.patch_application",
|
157
172
|
:header_params => header_params,
|
158
173
|
:query_params => query_params,
|
159
174
|
:form_params => form_params,
|
@@ -162,76 +177,130 @@ module Svix
|
|
162
177
|
:return_type => return_type
|
163
178
|
)
|
164
179
|
|
165
|
-
data, status_code, headers = @api_client.call_api(:
|
180
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
166
181
|
if @api_client.config.debugging
|
167
|
-
@api_client.config.logger.debug "API called: ApplicationApi#
|
182
|
+
@api_client.config.logger.debug "API called: ApplicationApi#patch_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
168
183
|
end
|
169
184
|
return data, status_code, headers
|
170
185
|
end
|
171
186
|
|
172
|
-
#
|
173
|
-
#
|
174
|
-
# @param
|
175
|
-
# @param since [Time]
|
176
|
-
# @param _until [Time]
|
187
|
+
# Create Application
|
188
|
+
# Create a new application.
|
189
|
+
# @param application_in [ApplicationIn]
|
177
190
|
# @param [Hash] opts the optional parameters
|
191
|
+
# @option opts [Boolean] :get_if_exists Get an existing application, or create a new one if doesn't exist. It's two separate functions in the libs. (default to false)
|
178
192
|
# @option opts [String] :idempotency_key The request's idempotency key
|
179
|
-
# @return [
|
180
|
-
def
|
181
|
-
data, _status_code, _headers =
|
193
|
+
# @return [ApplicationOut]
|
194
|
+
def v1_application_create(application_in, opts = {})
|
195
|
+
data, _status_code, _headers = v1_application_create_with_http_info(application_in, opts)
|
182
196
|
data
|
183
197
|
end
|
184
198
|
|
185
|
-
#
|
186
|
-
#
|
187
|
-
# @param
|
188
|
-
# @param since [Time]
|
189
|
-
# @param _until [Time]
|
199
|
+
# Create Application
|
200
|
+
# Create a new application.
|
201
|
+
# @param application_in [ApplicationIn]
|
190
202
|
# @param [Hash] opts the optional parameters
|
203
|
+
# @option opts [Boolean] :get_if_exists Get an existing application, or create a new one if doesn't exist. It's two separate functions in the libs.
|
191
204
|
# @option opts [String] :idempotency_key The request's idempotency key
|
192
|
-
# @return [Array<(
|
193
|
-
def
|
205
|
+
# @return [Array<(ApplicationOut, Integer, Hash)>] ApplicationOut data, response status code and response headers
|
206
|
+
def v1_application_create_with_http_info(application_in, opts = {})
|
194
207
|
if @api_client.config.debugging
|
195
|
-
@api_client.config.logger.debug 'Calling API: ApplicationApi.
|
208
|
+
@api_client.config.logger.debug 'Calling API: ApplicationApi.v1_application_create ...'
|
209
|
+
end
|
210
|
+
# verify the required parameter 'application_in' is set
|
211
|
+
if @api_client.config.client_side_validation && application_in.nil?
|
212
|
+
fail ArgumentError, "Missing the required parameter 'application_in' when calling ApplicationApi.v1_application_create"
|
213
|
+
end
|
214
|
+
# resource path
|
215
|
+
local_var_path = '/api/v1/app/'
|
216
|
+
|
217
|
+
# query parameters
|
218
|
+
query_params = opts[:query_params] || {}
|
219
|
+
query_params[:'get_if_exists'] = opts[:'get_if_exists'] if !opts[:'get_if_exists'].nil?
|
220
|
+
|
221
|
+
# header parameters
|
222
|
+
header_params = opts[:header_params] || {}
|
223
|
+
# HTTP header 'Accept' (if needed)
|
224
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
225
|
+
# HTTP header 'Content-Type'
|
226
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
227
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
228
|
+
|
229
|
+
# form parameters
|
230
|
+
form_params = opts[:form_params] || {}
|
231
|
+
|
232
|
+
# http body (model)
|
233
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(application_in)
|
234
|
+
|
235
|
+
# return_type
|
236
|
+
return_type = opts[:debug_return_type] || 'ApplicationOut'
|
237
|
+
|
238
|
+
# auth_names
|
239
|
+
auth_names = opts[:debug_auth_names] || []
|
240
|
+
|
241
|
+
new_options = opts.merge(
|
242
|
+
:operation => :"ApplicationApi.v1_application_create",
|
243
|
+
:header_params => header_params,
|
244
|
+
:query_params => query_params,
|
245
|
+
:form_params => form_params,
|
246
|
+
:body => post_body,
|
247
|
+
:auth_names => auth_names,
|
248
|
+
:return_type => return_type
|
249
|
+
)
|
250
|
+
|
251
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
252
|
+
if @api_client.config.debugging
|
253
|
+
@api_client.config.logger.debug "API called: ApplicationApi#v1_application_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
254
|
+
end
|
255
|
+
return data, status_code, headers
|
256
|
+
end
|
257
|
+
|
258
|
+
# Delete Application
|
259
|
+
# Delete an application.
|
260
|
+
# @param app_id [String]
|
261
|
+
# @param [Hash] opts the optional parameters
|
262
|
+
# @return [nil]
|
263
|
+
def v1_application_delete(app_id, opts = {})
|
264
|
+
v1_application_delete_with_http_info(app_id, opts)
|
265
|
+
nil
|
266
|
+
end
|
267
|
+
|
268
|
+
# Delete Application
|
269
|
+
# Delete an application.
|
270
|
+
# @param app_id [String]
|
271
|
+
# @param [Hash] opts the optional parameters
|
272
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
273
|
+
def v1_application_delete_with_http_info(app_id, opts = {})
|
274
|
+
if @api_client.config.debugging
|
275
|
+
@api_client.config.logger.debug 'Calling API: ApplicationApi.v1_application_delete ...'
|
196
276
|
end
|
197
277
|
# verify the required parameter 'app_id' is set
|
198
278
|
if @api_client.config.client_side_validation && app_id.nil?
|
199
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling ApplicationApi.
|
279
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling ApplicationApi.v1_application_delete"
|
200
280
|
end
|
201
281
|
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
202
|
-
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.
|
282
|
+
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.v1_application_delete, the character length must be smaller than or equal to 256.'
|
203
283
|
end
|
204
284
|
|
205
285
|
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
206
|
-
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.
|
286
|
+
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.v1_application_delete, the character length must be great than or equal to 1.'
|
207
287
|
end
|
208
288
|
|
209
289
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
210
290
|
if @api_client.config.client_side_validation && app_id !~ pattern
|
211
|
-
fail ArgumentError, "invalid value for 'app_id' when calling ApplicationApi.
|
291
|
+
fail ArgumentError, "invalid value for 'app_id' when calling ApplicationApi.v1_application_delete, must conform to the pattern #{pattern}."
|
212
292
|
end
|
213
293
|
|
214
|
-
# verify the required parameter 'since' is set
|
215
|
-
if @api_client.config.client_side_validation && since.nil?
|
216
|
-
fail ArgumentError, "Missing the required parameter 'since' when calling ApplicationApi.get_app_stats_api_v1_app_app_id_stats_get"
|
217
|
-
end
|
218
|
-
# verify the required parameter '_until' is set
|
219
|
-
if @api_client.config.client_side_validation && _until.nil?
|
220
|
-
fail ArgumentError, "Missing the required parameter '_until' when calling ApplicationApi.get_app_stats_api_v1_app_app_id_stats_get"
|
221
|
-
end
|
222
294
|
# resource path
|
223
|
-
local_var_path = '/api/v1/app/{app_id}/
|
295
|
+
local_var_path = '/api/v1/app/{app_id}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
224
296
|
|
225
297
|
# query parameters
|
226
298
|
query_params = opts[:query_params] || {}
|
227
|
-
query_params[:'since'] = since
|
228
|
-
query_params[:'until'] = _until
|
229
299
|
|
230
300
|
# header parameters
|
231
301
|
header_params = opts[:header_params] || {}
|
232
302
|
# HTTP header 'Accept' (if needed)
|
233
303
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
234
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
235
304
|
|
236
305
|
# form parameters
|
237
306
|
form_params = opts[:form_params] || {}
|
@@ -240,13 +309,13 @@ module Svix
|
|
240
309
|
post_body = opts[:debug_body]
|
241
310
|
|
242
311
|
# return_type
|
243
|
-
return_type = opts[:debug_return_type]
|
312
|
+
return_type = opts[:debug_return_type]
|
244
313
|
|
245
314
|
# auth_names
|
246
|
-
auth_names = opts[:debug_auth_names] || [
|
315
|
+
auth_names = opts[:debug_auth_names] || []
|
247
316
|
|
248
317
|
new_options = opts.merge(
|
249
|
-
:operation => :"ApplicationApi.
|
318
|
+
:operation => :"ApplicationApi.v1_application_delete",
|
250
319
|
:header_params => header_params,
|
251
320
|
:query_params => query_params,
|
252
321
|
:form_params => form_params,
|
@@ -255,67 +324,59 @@ module Svix
|
|
255
324
|
:return_type => return_type
|
256
325
|
)
|
257
326
|
|
258
|
-
data, status_code, headers = @api_client.call_api(:
|
327
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
259
328
|
if @api_client.config.debugging
|
260
|
-
@api_client.config.logger.debug "API called: ApplicationApi#
|
329
|
+
@api_client.config.logger.debug "API called: ApplicationApi#v1_application_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
261
330
|
end
|
262
331
|
return data, status_code, headers
|
263
332
|
end
|
264
333
|
|
265
|
-
# Get
|
266
|
-
# Get
|
267
|
-
# @param
|
268
|
-
# @param _until [Time]
|
334
|
+
# Get Application
|
335
|
+
# Get an application.
|
336
|
+
# @param app_id [String]
|
269
337
|
# @param [Hash] opts the optional parameters
|
270
|
-
# @
|
271
|
-
|
272
|
-
|
273
|
-
# @return [ListResponseApplicationStats]
|
274
|
-
def get_app_usage_stats_api_v1_app_stats_usage_get(since, _until, opts = {})
|
275
|
-
data, _status_code, _headers = get_app_usage_stats_api_v1_app_stats_usage_get_with_http_info(since, _until, opts)
|
338
|
+
# @return [ApplicationOut]
|
339
|
+
def v1_application_get(app_id, opts = {})
|
340
|
+
data, _status_code, _headers = v1_application_get_with_http_info(app_id, opts)
|
276
341
|
data
|
277
342
|
end
|
278
343
|
|
279
|
-
# Get
|
280
|
-
# Get
|
281
|
-
# @param
|
282
|
-
# @param _until [Time]
|
344
|
+
# Get Application
|
345
|
+
# Get an application.
|
346
|
+
# @param app_id [String]
|
283
347
|
# @param [Hash] opts the optional parameters
|
284
|
-
# @
|
285
|
-
|
286
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
287
|
-
# @return [Array<(ListResponseApplicationStats, Integer, Hash)>] ListResponseApplicationStats data, response status code and response headers
|
288
|
-
def get_app_usage_stats_api_v1_app_stats_usage_get_with_http_info(since, _until, opts = {})
|
348
|
+
# @return [Array<(ApplicationOut, Integer, Hash)>] ApplicationOut data, response status code and response headers
|
349
|
+
def v1_application_get_with_http_info(app_id, opts = {})
|
289
350
|
if @api_client.config.debugging
|
290
|
-
@api_client.config.logger.debug 'Calling API: ApplicationApi.
|
351
|
+
@api_client.config.logger.debug 'Calling API: ApplicationApi.v1_application_get ...'
|
291
352
|
end
|
292
|
-
# verify the required parameter '
|
293
|
-
if @api_client.config.client_side_validation &&
|
294
|
-
fail ArgumentError, "Missing the required parameter '
|
353
|
+
# verify the required parameter 'app_id' is set
|
354
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
355
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling ApplicationApi.v1_application_get"
|
295
356
|
end
|
296
|
-
|
297
|
-
|
298
|
-
fail ArgumentError, "Missing the required parameter '_until' when calling ApplicationApi.get_app_usage_stats_api_v1_app_stats_usage_get"
|
357
|
+
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
358
|
+
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.v1_application_get, the character length must be smaller than or equal to 256.'
|
299
359
|
end
|
300
|
-
|
301
|
-
|
360
|
+
|
361
|
+
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
362
|
+
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.v1_application_get, the character length must be great than or equal to 1.'
|
363
|
+
end
|
364
|
+
|
365
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
366
|
+
if @api_client.config.client_side_validation && app_id !~ pattern
|
367
|
+
fail ArgumentError, "invalid value for 'app_id' when calling ApplicationApi.v1_application_get, must conform to the pattern #{pattern}."
|
302
368
|
end
|
303
369
|
|
304
370
|
# resource path
|
305
|
-
local_var_path = '/api/v1/app/
|
371
|
+
local_var_path = '/api/v1/app/{app_id}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
306
372
|
|
307
373
|
# query parameters
|
308
374
|
query_params = opts[:query_params] || {}
|
309
|
-
query_params[:'since'] = since
|
310
|
-
query_params[:'until'] = _until
|
311
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
312
|
-
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
313
375
|
|
314
376
|
# header parameters
|
315
377
|
header_params = opts[:header_params] || {}
|
316
378
|
# HTTP header 'Accept' (if needed)
|
317
379
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
318
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
319
380
|
|
320
381
|
# form parameters
|
321
382
|
form_params = opts[:form_params] || {}
|
@@ -324,13 +385,13 @@ module Svix
|
|
324
385
|
post_body = opts[:debug_body]
|
325
386
|
|
326
387
|
# return_type
|
327
|
-
return_type = opts[:debug_return_type] || '
|
388
|
+
return_type = opts[:debug_return_type] || 'ApplicationOut'
|
328
389
|
|
329
390
|
# auth_names
|
330
|
-
auth_names = opts[:debug_auth_names] || [
|
391
|
+
auth_names = opts[:debug_auth_names] || []
|
331
392
|
|
332
393
|
new_options = opts.merge(
|
333
|
-
:operation => :"ApplicationApi.
|
394
|
+
:operation => :"ApplicationApi.v1_application_get",
|
334
395
|
:header_params => header_params,
|
335
396
|
:query_params => query_params,
|
336
397
|
:form_params => form_params,
|
@@ -341,60 +402,71 @@ module Svix
|
|
341
402
|
|
342
403
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
343
404
|
if @api_client.config.debugging
|
344
|
-
@api_client.config.logger.debug "API called: ApplicationApi#
|
405
|
+
@api_client.config.logger.debug "API called: ApplicationApi#v1_application_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
345
406
|
end
|
346
407
|
return data, status_code, headers
|
347
408
|
end
|
348
409
|
|
349
|
-
# Get
|
350
|
-
# Get
|
410
|
+
# Get App Stats
|
411
|
+
# Get basic statistics for the application
|
412
|
+
# @param since [Time]
|
413
|
+
# @param _until [Time]
|
351
414
|
# @param app_id [String]
|
352
415
|
# @param [Hash] opts the optional parameters
|
353
|
-
# @
|
354
|
-
|
355
|
-
|
356
|
-
data, _status_code, _headers = get_application_api_v1_app_app_id_get_with_http_info(app_id, opts)
|
416
|
+
# @return [ApplicationStats]
|
417
|
+
def v1_application_get_stats(since, _until, app_id, opts = {})
|
418
|
+
data, _status_code, _headers = v1_application_get_stats_with_http_info(since, _until, app_id, opts)
|
357
419
|
data
|
358
420
|
end
|
359
421
|
|
360
|
-
# Get
|
361
|
-
# Get
|
422
|
+
# Get App Stats
|
423
|
+
# Get basic statistics for the application
|
424
|
+
# @param since [Time]
|
425
|
+
# @param _until [Time]
|
362
426
|
# @param app_id [String]
|
363
427
|
# @param [Hash] opts the optional parameters
|
364
|
-
# @
|
365
|
-
|
366
|
-
def get_application_api_v1_app_app_id_get_with_http_info(app_id, opts = {})
|
428
|
+
# @return [Array<(ApplicationStats, Integer, Hash)>] ApplicationStats data, response status code and response headers
|
429
|
+
def v1_application_get_stats_with_http_info(since, _until, app_id, opts = {})
|
367
430
|
if @api_client.config.debugging
|
368
|
-
@api_client.config.logger.debug 'Calling API: ApplicationApi.
|
431
|
+
@api_client.config.logger.debug 'Calling API: ApplicationApi.v1_application_get_stats ...'
|
432
|
+
end
|
433
|
+
# verify the required parameter 'since' is set
|
434
|
+
if @api_client.config.client_side_validation && since.nil?
|
435
|
+
fail ArgumentError, "Missing the required parameter 'since' when calling ApplicationApi.v1_application_get_stats"
|
436
|
+
end
|
437
|
+
# verify the required parameter '_until' is set
|
438
|
+
if @api_client.config.client_side_validation && _until.nil?
|
439
|
+
fail ArgumentError, "Missing the required parameter '_until' when calling ApplicationApi.v1_application_get_stats"
|
369
440
|
end
|
370
441
|
# verify the required parameter 'app_id' is set
|
371
442
|
if @api_client.config.client_side_validation && app_id.nil?
|
372
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling ApplicationApi.
|
443
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling ApplicationApi.v1_application_get_stats"
|
373
444
|
end
|
374
445
|
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
375
|
-
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.
|
446
|
+
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.v1_application_get_stats, the character length must be smaller than or equal to 256.'
|
376
447
|
end
|
377
448
|
|
378
449
|
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
379
|
-
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.
|
450
|
+
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.v1_application_get_stats, the character length must be great than or equal to 1.'
|
380
451
|
end
|
381
452
|
|
382
453
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
383
454
|
if @api_client.config.client_side_validation && app_id !~ pattern
|
384
|
-
fail ArgumentError, "invalid value for 'app_id' when calling ApplicationApi.
|
455
|
+
fail ArgumentError, "invalid value for 'app_id' when calling ApplicationApi.v1_application_get_stats, must conform to the pattern #{pattern}."
|
385
456
|
end
|
386
457
|
|
387
458
|
# resource path
|
388
|
-
local_var_path = '/api/v1/app/{app_id}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
459
|
+
local_var_path = '/api/v1/app/{app_id}/stats/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
389
460
|
|
390
461
|
# query parameters
|
391
462
|
query_params = opts[:query_params] || {}
|
463
|
+
query_params[:'since'] = since
|
464
|
+
query_params[:'until'] = _until
|
392
465
|
|
393
466
|
# header parameters
|
394
467
|
header_params = opts[:header_params] || {}
|
395
468
|
# HTTP header 'Accept' (if needed)
|
396
469
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
397
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
398
470
|
|
399
471
|
# form parameters
|
400
472
|
form_params = opts[:form_params] || {}
|
@@ -403,13 +475,13 @@ module Svix
|
|
403
475
|
post_body = opts[:debug_body]
|
404
476
|
|
405
477
|
# return_type
|
406
|
-
return_type = opts[:debug_return_type] || '
|
478
|
+
return_type = opts[:debug_return_type] || 'ApplicationStats'
|
407
479
|
|
408
480
|
# auth_names
|
409
|
-
auth_names = opts[:debug_auth_names] || [
|
481
|
+
auth_names = opts[:debug_auth_names] || []
|
410
482
|
|
411
483
|
new_options = opts.merge(
|
412
|
-
:operation => :"ApplicationApi.
|
484
|
+
:operation => :"ApplicationApi.v1_application_get_stats",
|
413
485
|
:header_params => header_params,
|
414
486
|
:query_params => query_params,
|
415
487
|
:form_params => form_params,
|
@@ -420,7 +492,7 @@ module Svix
|
|
420
492
|
|
421
493
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
422
494
|
if @api_client.config.debugging
|
423
|
-
@api_client.config.logger.debug "API called: ApplicationApi#
|
495
|
+
@api_client.config.logger.debug "API called: ApplicationApi#v1_application_get_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
424
496
|
end
|
425
497
|
return data, status_code, headers
|
426
498
|
end
|
@@ -428,30 +500,28 @@ module Svix
|
|
428
500
|
# List Applications
|
429
501
|
# List of all the organization's applications.
|
430
502
|
# @param [Hash] opts the optional parameters
|
503
|
+
# @option opts [Integer] :limit
|
431
504
|
# @option opts [String] :iterator
|
432
|
-
# @option opts [Integer] :limit (default to 50)
|
433
505
|
# @option opts [Ordering] :order
|
434
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
435
506
|
# @return [ListResponseApplicationOut]
|
436
|
-
def
|
437
|
-
data, _status_code, _headers =
|
507
|
+
def v1_application_list(opts = {})
|
508
|
+
data, _status_code, _headers = v1_application_list_with_http_info(opts)
|
438
509
|
data
|
439
510
|
end
|
440
511
|
|
441
512
|
# List Applications
|
442
513
|
# List of all the organization's applications.
|
443
514
|
# @param [Hash] opts the optional parameters
|
444
|
-
# @option opts [String] :iterator
|
445
515
|
# @option opts [Integer] :limit
|
516
|
+
# @option opts [String] :iterator
|
446
517
|
# @option opts [Ordering] :order
|
447
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
448
518
|
# @return [Array<(ListResponseApplicationOut, Integer, Hash)>] ListResponseApplicationOut data, response status code and response headers
|
449
|
-
def
|
519
|
+
def v1_application_list_with_http_info(opts = {})
|
450
520
|
if @api_client.config.debugging
|
451
|
-
@api_client.config.logger.debug 'Calling API: ApplicationApi.
|
521
|
+
@api_client.config.logger.debug 'Calling API: ApplicationApi.v1_application_list ...'
|
452
522
|
end
|
453
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit']
|
454
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ApplicationApi.
|
523
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
|
524
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ApplicationApi.v1_application_list, must be greater than or equal to 0.'
|
455
525
|
end
|
456
526
|
|
457
527
|
# resource path
|
@@ -459,15 +529,14 @@ module Svix
|
|
459
529
|
|
460
530
|
# query parameters
|
461
531
|
query_params = opts[:query_params] || {}
|
462
|
-
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
463
532
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
533
|
+
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
464
534
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
465
535
|
|
466
536
|
# header parameters
|
467
537
|
header_params = opts[:header_params] || {}
|
468
538
|
# HTTP header 'Accept' (if needed)
|
469
539
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
470
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
471
540
|
|
472
541
|
# form parameters
|
473
542
|
form_params = opts[:form_params] || {}
|
@@ -479,10 +548,10 @@ module Svix
|
|
479
548
|
return_type = opts[:debug_return_type] || 'ListResponseApplicationOut'
|
480
549
|
|
481
550
|
# auth_names
|
482
|
-
auth_names = opts[:debug_auth_names] || [
|
551
|
+
auth_names = opts[:debug_auth_names] || []
|
483
552
|
|
484
553
|
new_options = opts.merge(
|
485
|
-
:operation => :"ApplicationApi.
|
554
|
+
:operation => :"ApplicationApi.v1_application_list",
|
486
555
|
:header_params => header_params,
|
487
556
|
:query_params => query_params,
|
488
557
|
:form_params => form_params,
|
@@ -493,7 +562,7 @@ module Svix
|
|
493
562
|
|
494
563
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
495
564
|
if @api_client.config.debugging
|
496
|
-
@api_client.config.logger.debug "API called: ApplicationApi#
|
565
|
+
@api_client.config.logger.debug "API called: ApplicationApi#v1_application_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
497
566
|
end
|
498
567
|
return data, status_code, headers
|
499
568
|
end
|
@@ -503,10 +572,9 @@ module Svix
|
|
503
572
|
# @param app_id [String]
|
504
573
|
# @param application_in [ApplicationIn]
|
505
574
|
# @param [Hash] opts the optional parameters
|
506
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
507
575
|
# @return [ApplicationOut]
|
508
|
-
def
|
509
|
-
data, _status_code, _headers =
|
576
|
+
def v1_application_update(app_id, application_in, opts = {})
|
577
|
+
data, _status_code, _headers = v1_application_update_with_http_info(app_id, application_in, opts)
|
510
578
|
data
|
511
579
|
end
|
512
580
|
|
@@ -515,32 +583,31 @@ module Svix
|
|
515
583
|
# @param app_id [String]
|
516
584
|
# @param application_in [ApplicationIn]
|
517
585
|
# @param [Hash] opts the optional parameters
|
518
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
519
586
|
# @return [Array<(ApplicationOut, Integer, Hash)>] ApplicationOut data, response status code and response headers
|
520
|
-
def
|
587
|
+
def v1_application_update_with_http_info(app_id, application_in, opts = {})
|
521
588
|
if @api_client.config.debugging
|
522
|
-
@api_client.config.logger.debug 'Calling API: ApplicationApi.
|
589
|
+
@api_client.config.logger.debug 'Calling API: ApplicationApi.v1_application_update ...'
|
523
590
|
end
|
524
591
|
# verify the required parameter 'app_id' is set
|
525
592
|
if @api_client.config.client_side_validation && app_id.nil?
|
526
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling ApplicationApi.
|
593
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling ApplicationApi.v1_application_update"
|
527
594
|
end
|
528
595
|
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
529
|
-
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.
|
596
|
+
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.v1_application_update, the character length must be smaller than or equal to 256.'
|
530
597
|
end
|
531
598
|
|
532
599
|
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
533
|
-
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.
|
600
|
+
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.v1_application_update, the character length must be great than or equal to 1.'
|
534
601
|
end
|
535
602
|
|
536
603
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
537
604
|
if @api_client.config.client_side_validation && app_id !~ pattern
|
538
|
-
fail ArgumentError, "invalid value for 'app_id' when calling ApplicationApi.
|
605
|
+
fail ArgumentError, "invalid value for 'app_id' when calling ApplicationApi.v1_application_update, must conform to the pattern #{pattern}."
|
539
606
|
end
|
540
607
|
|
541
608
|
# verify the required parameter 'application_in' is set
|
542
609
|
if @api_client.config.client_side_validation && application_in.nil?
|
543
|
-
fail ArgumentError, "Missing the required parameter 'application_in' when calling ApplicationApi.
|
610
|
+
fail ArgumentError, "Missing the required parameter 'application_in' when calling ApplicationApi.v1_application_update"
|
544
611
|
end
|
545
612
|
# resource path
|
546
613
|
local_var_path = '/api/v1/app/{app_id}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
@@ -554,7 +621,6 @@ module Svix
|
|
554
621
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
555
622
|
# HTTP header 'Content-Type'
|
556
623
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
557
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
558
624
|
|
559
625
|
# form parameters
|
560
626
|
form_params = opts[:form_params] || {}
|
@@ -566,10 +632,10 @@ module Svix
|
|
566
632
|
return_type = opts[:debug_return_type] || 'ApplicationOut'
|
567
633
|
|
568
634
|
# auth_names
|
569
|
-
auth_names = opts[:debug_auth_names] || [
|
635
|
+
auth_names = opts[:debug_auth_names] || []
|
570
636
|
|
571
637
|
new_options = opts.merge(
|
572
|
-
:operation => :"ApplicationApi.
|
638
|
+
:operation => :"ApplicationApi.v1_application_update",
|
573
639
|
:header_params => header_params,
|
574
640
|
:query_params => query_params,
|
575
641
|
:form_params => form_params,
|
@@ -580,7 +646,7 @@ module Svix
|
|
580
646
|
|
581
647
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
582
648
|
if @api_client.config.debugging
|
583
|
-
@api_client.config.logger.debug "API called: ApplicationApi#
|
649
|
+
@api_client.config.logger.debug "API called: ApplicationApi#v1_application_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
584
650
|
end
|
585
651
|
return data, status_code, headers
|
586
652
|
end
|