fn_ruby 0.1.32 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -12
  3. data/VERSION +1 -1
  4. data/docs/Call.md +14 -0
  5. data/docs/CallApi.md +212 -0
  6. data/docs/CallWrapper.md +8 -0
  7. data/docs/CallsWrapper.md +9 -0
  8. data/docs/Log.md +9 -0
  9. data/docs/LogApi.md +109 -0
  10. data/docs/LogWrapper.md +8 -0
  11. data/docs/Route.md +2 -3
  12. data/docs/RoutesApi.md +58 -4
  13. data/fn_ruby-0.1.32.gem +0 -0
  14. data/fn_ruby.gemspec +2 -2
  15. data/lib/fn_ruby.rb +9 -7
  16. data/lib/fn_ruby/api/apps_api.rb +2 -2
  17. data/lib/fn_ruby/api/call_api.rb +263 -0
  18. data/lib/fn_ruby/api/log_api.rb +144 -0
  19. data/lib/fn_ruby/api/routes_api.rb +73 -6
  20. data/lib/fn_ruby/api_client.rb +2 -2
  21. data/lib/fn_ruby/api_error.rb +2 -2
  22. data/lib/fn_ruby/configuration.rb +2 -2
  23. data/lib/fn_ruby/models/app.rb +2 -2
  24. data/lib/fn_ruby/models/app_wrapper.rb +2 -2
  25. data/lib/fn_ruby/models/apps_wrapper.rb +2 -2
  26. data/lib/fn_ruby/models/call.rb +249 -0
  27. data/lib/fn_ruby/models/call_wrapper.rb +194 -0
  28. data/lib/fn_ruby/models/calls_wrapper.rb +204 -0
  29. data/lib/fn_ruby/models/error.rb +2 -2
  30. data/lib/fn_ruby/models/error_body.rb +2 -2
  31. data/lib/fn_ruby/models/log.rb +198 -0
  32. data/lib/fn_ruby/models/log_wrapper.rb +194 -0
  33. data/lib/fn_ruby/models/route.rb +7 -13
  34. data/lib/fn_ruby/models/route_wrapper.rb +2 -2
  35. data/lib/fn_ruby/models/routes_wrapper.rb +2 -2
  36. data/lib/fn_ruby/models/version.rb +2 -2
  37. data/lib/fn_ruby/version.rb +3 -3
  38. data/spec/api/apps_api_spec.rb +2 -2
  39. data/spec/api/call_api_spec.rb +87 -0
  40. data/spec/api/log_api_spec.rb +61 -0
  41. data/spec/api/routes_api_spec.rb +18 -4
  42. data/spec/api_client_spec.rb +2 -2
  43. data/spec/configuration_spec.rb +2 -2
  44. data/spec/models/app_spec.rb +2 -2
  45. data/spec/models/app_wrapper_spec.rb +2 -2
  46. data/spec/models/apps_wrapper_spec.rb +2 -2
  47. data/spec/models/call_spec.rb +78 -0
  48. data/spec/models/call_wrapper_spec.rb +42 -0
  49. data/spec/models/calls_wrapper_spec.rb +48 -0
  50. data/spec/models/error_body_spec.rb +2 -2
  51. data/spec/models/error_spec.rb +2 -2
  52. data/spec/models/log_spec.rb +48 -0
  53. data/spec/models/log_wrapper_spec.rb +42 -0
  54. data/spec/models/route_spec.rb +2 -8
  55. data/spec/models/route_wrapper_spec.rb +2 -2
  56. data/spec/models/routes_wrapper_spec.rb +2 -2
  57. data/spec/models/version_spec.rb +2 -2
  58. data/spec/spec_helper.rb +2 -2
  59. metadata +31 -2
@@ -0,0 +1,8 @@
1
+ # Fn::LogWrapper
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **log** | [**Log**](Log.md) | Call log entry. |
7
+
8
+
@@ -9,9 +9,8 @@ Name | Type | Description | Notes
9
9
  **memory** | **Integer** | Max usable memory for this route (MiB). | [optional]
10
10
  **type** | **String** | Route type | [optional]
11
11
  **format** | **String** | Payload format sent into function. | [optional]
12
- **max_concurrency** | **Integer** | Maximum number of hot functions concurrency | [optional]
13
12
  **config** | **Hash<String, String>** | Route configuration - overrides application configuration | [optional]
14
- **timeout** | **Integer** | Timeout for executions of this route. Value in Seconds | [optional]
15
- **idle_timeout** | **Integer** | Hot functions idle timeout before termination. Value in Seconds | [optional]
13
+ **timeout** | **Integer** | Timeout for executions of this route. Value in Seconds | [optional] [default to 30]
14
+ **idle_timeout** | **Integer** | Hot functions idle timeout before termination. Value in Seconds | [optional] [default to 30]
16
15
 
17
16
 
@@ -8,7 +8,8 @@ Method | HTTP request | Description
8
8
  [**apps_app_routes_post**](RoutesApi.md#apps_app_routes_post) | **POST** /apps/{app}/routes | Create new Route
9
9
  [**apps_app_routes_route_delete**](RoutesApi.md#apps_app_routes_route_delete) | **DELETE** /apps/{app}/routes/{route} | Deletes the route
10
10
  [**apps_app_routes_route_get**](RoutesApi.md#apps_app_routes_route_get) | **GET** /apps/{app}/routes/{route} | Gets route by name
11
- [**apps_app_routes_route_patch**](RoutesApi.md#apps_app_routes_route_patch) | **PATCH** /apps/{app}/routes/{route} | Update a Route
11
+ [**apps_app_routes_route_patch**](RoutesApi.md#apps_app_routes_route_patch) | **PATCH** /apps/{app}/routes/{route} | Update a Route, Fails if the route or app does not exist. Accepts partial updates / skips validation of zero values.
12
+ [**apps_app_routes_route_put**](RoutesApi.md#apps_app_routes_route_put) | **PUT** /apps/{app}/routes/{route} | Create a Route if it does not exist. Update if it does. Will also create app if it does not exist. Put does not skip validation of zero values
12
13
 
13
14
 
14
15
  # **apps_app_routes_get**
@@ -63,7 +64,7 @@ No authorization required
63
64
 
64
65
  Create new Route
65
66
 
66
- Create a new route in an app, if app doesn't exists, it creates the app
67
+ Create a new route in an app, if app doesn't exists, it creates the app. Post does not skip validation of zero values.
67
68
 
68
69
  ### Example
69
70
  ```ruby
@@ -210,7 +211,7 @@ No authorization required
210
211
  # **apps_app_routes_route_patch**
211
212
  > RouteWrapper apps_app_routes_route_patch(app, route, body)
212
213
 
213
- Update a Route
214
+ Update a Route, Fails if the route or app does not exist. Accepts partial updates / skips validation of zero values.
214
215
 
215
216
  Update a route
216
217
 
@@ -229,7 +230,7 @@ body = Fn::RouteWrapper.new # RouteWrapper | One route to post.
229
230
 
230
231
 
231
232
  begin
232
- #Update a Route
233
+ #Update a Route, Fails if the route or app does not exist. Accepts partial updates / skips validation of zero values.
233
234
  result = api_instance.apps_app_routes_route_patch(app, route, body)
234
235
  p result
235
236
  rescue Fn::ApiError => e
@@ -260,3 +261,56 @@ No authorization required
260
261
 
261
262
 
262
263
 
264
+ # **apps_app_routes_route_put**
265
+ > RouteWrapper apps_app_routes_route_put(app, route, body)
266
+
267
+ Create a Route if it does not exist. Update if it does. Will also create app if it does not exist. Put does not skip validation of zero values
268
+
269
+ Update or Create a route
270
+
271
+ ### Example
272
+ ```ruby
273
+ # load the gem
274
+ require 'fn_ruby'
275
+
276
+ api_instance = Fn::RoutesApi.new
277
+
278
+ app = "app_example" # String | name of the app.
279
+
280
+ route = "route_example" # String | route path.
281
+
282
+ body = Fn::RouteWrapper.new # RouteWrapper | One route to post.
283
+
284
+
285
+ begin
286
+ #Create a Route if it does not exist. Update if it does. Will also create app if it does not exist. Put does not skip validation of zero values
287
+ result = api_instance.apps_app_routes_route_put(app, route, body)
288
+ p result
289
+ rescue Fn::ApiError => e
290
+ puts "Exception when calling RoutesApi->apps_app_routes_route_put: #{e}"
291
+ end
292
+ ```
293
+
294
+ ### Parameters
295
+
296
+ Name | Type | Description | Notes
297
+ ------------- | ------------- | ------------- | -------------
298
+ **app** | **String**| name of the app. |
299
+ **route** | **String**| route path. |
300
+ **body** | [**RouteWrapper**](RouteWrapper.md)| One route to post. |
301
+
302
+ ### Return type
303
+
304
+ [**RouteWrapper**](RouteWrapper.md)
305
+
306
+ ### Authorization
307
+
308
+ No authorization required
309
+
310
+ ### HTTP request headers
311
+
312
+ - **Content-Type**: application/json
313
+ - **Accept**: application/json
314
+
315
+
316
+
Binary file
@@ -1,11 +1,11 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  #
3
3
  =begin
4
- #IronFunctions
4
+ #fn
5
5
 
6
6
  #The open source serverless platform.
7
7
 
8
- OpenAPI spec version: 0.1.29
8
+ OpenAPI spec version: 0.2.0
9
9
 
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
11
  Swagger Codegen version: 2.2.3
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #IronFunctions
2
+ #fn
3
3
 
4
4
  #The open source serverless platform.
5
5
 
6
- OpenAPI spec version: 0.1.29
6
+ OpenAPI spec version: 0.2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3
@@ -20,21 +20,23 @@ require 'fn_ruby/configuration'
20
20
  require 'fn_ruby/models/app'
21
21
  require 'fn_ruby/models/app_wrapper'
22
22
  require 'fn_ruby/models/apps_wrapper'
23
+ require 'fn_ruby/models/call'
24
+ require 'fn_ruby/models/call_wrapper'
25
+ require 'fn_ruby/models/calls_wrapper'
23
26
  require 'fn_ruby/models/error'
24
27
  require 'fn_ruby/models/error_body'
25
- require 'fn_ruby/models/new_task'
28
+ require 'fn_ruby/models/log'
29
+ require 'fn_ruby/models/log_wrapper'
26
30
  require 'fn_ruby/models/route'
27
31
  require 'fn_ruby/models/route_wrapper'
28
32
  require 'fn_ruby/models/routes_wrapper'
29
- require 'fn_ruby/models/task_wrapper'
30
33
  require 'fn_ruby/models/version'
31
- require 'fn_ruby/models/task'
32
34
 
33
35
  # APIs
34
36
  require 'fn_ruby/api/apps_api'
37
+ require 'fn_ruby/api/call_api'
38
+ require 'fn_ruby/api/log_api'
35
39
  require 'fn_ruby/api/routes_api'
36
- require 'fn_ruby/api/tasks_api'
37
- require 'fn_ruby/api/version_api'
38
40
 
39
41
  module Fn
40
42
  class << self
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #IronFunctions
2
+ #fn
3
3
 
4
4
  #The open source serverless platform.
5
5
 
6
- OpenAPI spec version: 0.1.29
6
+ OpenAPI spec version: 0.2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3
@@ -0,0 +1,263 @@
1
+ =begin
2
+ #fn
3
+
4
+ #The open source serverless platform.
5
+
6
+ OpenAPI spec version: 0.2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module Fn
16
+ class CallApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Get call information
24
+ # Get call information
25
+ # @param app app name
26
+ # @param call Call ID.
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [CallWrapper]
29
+ def apps_app_calls_call_get(app, call, opts = {})
30
+ data, _status_code, _headers = apps_app_calls_call_get_with_http_info(app, call, opts)
31
+ return data
32
+ end
33
+
34
+ # Get call information
35
+ # Get call information
36
+ # @param app app name
37
+ # @param call Call ID.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Array<(CallWrapper, Fixnum, Hash)>] CallWrapper data, response status code and response headers
40
+ def apps_app_calls_call_get_with_http_info(app, call, opts = {})
41
+ if @api_client.config.debugging
42
+ @api_client.config.logger.debug "Calling API: CallApi.apps_app_calls_call_get ..."
43
+ end
44
+ # verify the required parameter 'app' is set
45
+ if @api_client.config.client_side_validation && app.nil?
46
+ fail ArgumentError, "Missing the required parameter 'app' when calling CallApi.apps_app_calls_call_get"
47
+ end
48
+ # verify the required parameter 'call' is set
49
+ if @api_client.config.client_side_validation && call.nil?
50
+ fail ArgumentError, "Missing the required parameter 'call' when calling CallApi.apps_app_calls_call_get"
51
+ end
52
+ # resource path
53
+ local_var_path = "/apps/{app}/calls/{call}".sub('{' + 'app' + '}', app.to_s).sub('{' + 'call' + '}', call.to_s)
54
+
55
+ # query parameters
56
+ query_params = {}
57
+
58
+ # header parameters
59
+ header_params = {}
60
+ # HTTP header 'Accept' (if needed)
61
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
62
+ # HTTP header 'Content-Type'
63
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
64
+
65
+ # form parameters
66
+ form_params = {}
67
+
68
+ # http body (model)
69
+ post_body = nil
70
+ auth_names = []
71
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
72
+ :header_params => header_params,
73
+ :query_params => query_params,
74
+ :form_params => form_params,
75
+ :body => post_body,
76
+ :auth_names => auth_names,
77
+ :return_type => 'CallWrapper')
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: CallApi#apps_app_calls_call_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+
84
+ # Delete call log entry
85
+ # Delete call log entry
86
+ # @param call Call ID.
87
+ # @param app App name.
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [nil]
90
+ def apps_app_calls_call_log_delete(call, app, opts = {})
91
+ apps_app_calls_call_log_delete_with_http_info(call, app, opts)
92
+ return nil
93
+ end
94
+
95
+ # Delete call log entry
96
+ # Delete call log entry
97
+ # @param call Call ID.
98
+ # @param app App name.
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
101
+ def apps_app_calls_call_log_delete_with_http_info(call, app, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug "Calling API: CallApi.apps_app_calls_call_log_delete ..."
104
+ end
105
+ # verify the required parameter 'call' is set
106
+ if @api_client.config.client_side_validation && call.nil?
107
+ fail ArgumentError, "Missing the required parameter 'call' when calling CallApi.apps_app_calls_call_log_delete"
108
+ end
109
+ # verify the required parameter 'app' is set
110
+ if @api_client.config.client_side_validation && app.nil?
111
+ fail ArgumentError, "Missing the required parameter 'app' when calling CallApi.apps_app_calls_call_log_delete"
112
+ end
113
+ # resource path
114
+ local_var_path = "/apps/{app}/calls/{call}/log".sub('{' + 'call' + '}', call.to_s).sub('{' + 'app' + '}', app.to_s)
115
+
116
+ # query parameters
117
+ query_params = {}
118
+
119
+ # header parameters
120
+ header_params = {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
123
+ # HTTP header 'Content-Type'
124
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
125
+
126
+ # form parameters
127
+ form_params = {}
128
+
129
+ # http body (model)
130
+ post_body = nil
131
+ auth_names = []
132
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
133
+ :header_params => header_params,
134
+ :query_params => query_params,
135
+ :form_params => form_params,
136
+ :body => post_body,
137
+ :auth_names => auth_names)
138
+ if @api_client.config.debugging
139
+ @api_client.config.logger.debug "API called: CallApi#apps_app_calls_call_log_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
140
+ end
141
+ return data, status_code, headers
142
+ end
143
+
144
+ # Get call logs
145
+ # Get call logs
146
+ # @param app App Name
147
+ # @param call Call ID.
148
+ # @param [Hash] opts the optional parameters
149
+ # @return [LogWrapper]
150
+ def apps_app_calls_call_log_get(app, call, opts = {})
151
+ data, _status_code, _headers = apps_app_calls_call_log_get_with_http_info(app, call, opts)
152
+ return data
153
+ end
154
+
155
+ # Get call logs
156
+ # Get call logs
157
+ # @param app App Name
158
+ # @param call Call ID.
159
+ # @param [Hash] opts the optional parameters
160
+ # @return [Array<(LogWrapper, Fixnum, Hash)>] LogWrapper data, response status code and response headers
161
+ def apps_app_calls_call_log_get_with_http_info(app, call, opts = {})
162
+ if @api_client.config.debugging
163
+ @api_client.config.logger.debug "Calling API: CallApi.apps_app_calls_call_log_get ..."
164
+ end
165
+ # verify the required parameter 'app' is set
166
+ if @api_client.config.client_side_validation && app.nil?
167
+ fail ArgumentError, "Missing the required parameter 'app' when calling CallApi.apps_app_calls_call_log_get"
168
+ end
169
+ # verify the required parameter 'call' is set
170
+ if @api_client.config.client_side_validation && call.nil?
171
+ fail ArgumentError, "Missing the required parameter 'call' when calling CallApi.apps_app_calls_call_log_get"
172
+ end
173
+ # resource path
174
+ local_var_path = "/apps/{app}/calls/{call}/log".sub('{' + 'app' + '}', app.to_s).sub('{' + 'call' + '}', call.to_s)
175
+
176
+ # query parameters
177
+ query_params = {}
178
+
179
+ # header parameters
180
+ header_params = {}
181
+ # HTTP header 'Accept' (if needed)
182
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
183
+ # HTTP header 'Content-Type'
184
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
185
+
186
+ # form parameters
187
+ form_params = {}
188
+
189
+ # http body (model)
190
+ post_body = nil
191
+ auth_names = []
192
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
193
+ :header_params => header_params,
194
+ :query_params => query_params,
195
+ :form_params => form_params,
196
+ :body => post_body,
197
+ :auth_names => auth_names,
198
+ :return_type => 'LogWrapper')
199
+ if @api_client.config.debugging
200
+ @api_client.config.logger.debug "API called: CallApi#apps_app_calls_call_log_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
201
+ end
202
+ return data, status_code, headers
203
+ end
204
+
205
+ # Get app-bound calls.
206
+ # Get app-bound calls can filter to route-bound calls.
207
+ # @param app App name.
208
+ # @param [Hash] opts the optional parameters
209
+ # @option opts [String] :route App route.
210
+ # @return [CallsWrapper]
211
+ def apps_app_calls_get(app, opts = {})
212
+ data, _status_code, _headers = apps_app_calls_get_with_http_info(app, opts)
213
+ return data
214
+ end
215
+
216
+ # Get app-bound calls.
217
+ # Get app-bound calls can filter to route-bound calls.
218
+ # @param app App name.
219
+ # @param [Hash] opts the optional parameters
220
+ # @option opts [String] :route App route.
221
+ # @return [Array<(CallsWrapper, Fixnum, Hash)>] CallsWrapper data, response status code and response headers
222
+ def apps_app_calls_get_with_http_info(app, opts = {})
223
+ if @api_client.config.debugging
224
+ @api_client.config.logger.debug "Calling API: CallApi.apps_app_calls_get ..."
225
+ end
226
+ # verify the required parameter 'app' is set
227
+ if @api_client.config.client_side_validation && app.nil?
228
+ fail ArgumentError, "Missing the required parameter 'app' when calling CallApi.apps_app_calls_get"
229
+ end
230
+ # resource path
231
+ local_var_path = "/apps/{app}/calls".sub('{' + 'app' + '}', app.to_s)
232
+
233
+ # query parameters
234
+ query_params = {}
235
+ query_params[:'route'] = opts[:'route'] if !opts[:'route'].nil?
236
+
237
+ # header parameters
238
+ header_params = {}
239
+ # HTTP header 'Accept' (if needed)
240
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
241
+ # HTTP header 'Content-Type'
242
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
243
+
244
+ # form parameters
245
+ form_params = {}
246
+
247
+ # http body (model)
248
+ post_body = nil
249
+ auth_names = []
250
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
251
+ :header_params => header_params,
252
+ :query_params => query_params,
253
+ :form_params => form_params,
254
+ :body => post_body,
255
+ :auth_names => auth_names,
256
+ :return_type => 'CallsWrapper')
257
+ if @api_client.config.debugging
258
+ @api_client.config.logger.debug "API called: CallApi#apps_app_calls_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
259
+ end
260
+ return data, status_code, headers
261
+ end
262
+ end
263
+ end
@@ -0,0 +1,144 @@
1
+ =begin
2
+ #fn
3
+
4
+ #The open source serverless platform.
5
+
6
+ OpenAPI spec version: 0.2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module Fn
16
+ class LogApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Delete call log entry
24
+ # Delete call log entry
25
+ # @param call Call ID.
26
+ # @param app App name.
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [nil]
29
+ def apps_app_calls_call_log_delete(call, app, opts = {})
30
+ apps_app_calls_call_log_delete_with_http_info(call, app, opts)
31
+ return nil
32
+ end
33
+
34
+ # Delete call log entry
35
+ # Delete call log entry
36
+ # @param call Call ID.
37
+ # @param app App name.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
40
+ def apps_app_calls_call_log_delete_with_http_info(call, app, opts = {})
41
+ if @api_client.config.debugging
42
+ @api_client.config.logger.debug "Calling API: LogApi.apps_app_calls_call_log_delete ..."
43
+ end
44
+ # verify the required parameter 'call' is set
45
+ if @api_client.config.client_side_validation && call.nil?
46
+ fail ArgumentError, "Missing the required parameter 'call' when calling LogApi.apps_app_calls_call_log_delete"
47
+ end
48
+ # verify the required parameter 'app' is set
49
+ if @api_client.config.client_side_validation && app.nil?
50
+ fail ArgumentError, "Missing the required parameter 'app' when calling LogApi.apps_app_calls_call_log_delete"
51
+ end
52
+ # resource path
53
+ local_var_path = "/apps/{app}/calls/{call}/log".sub('{' + 'call' + '}', call.to_s).sub('{' + 'app' + '}', app.to_s)
54
+
55
+ # query parameters
56
+ query_params = {}
57
+
58
+ # header parameters
59
+ header_params = {}
60
+ # HTTP header 'Accept' (if needed)
61
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
62
+ # HTTP header 'Content-Type'
63
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
64
+
65
+ # form parameters
66
+ form_params = {}
67
+
68
+ # http body (model)
69
+ post_body = nil
70
+ auth_names = []
71
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
72
+ :header_params => header_params,
73
+ :query_params => query_params,
74
+ :form_params => form_params,
75
+ :body => post_body,
76
+ :auth_names => auth_names)
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: LogApi#apps_app_calls_call_log_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+
83
+ # Get call logs
84
+ # Get call logs
85
+ # @param app App Name
86
+ # @param call Call ID.
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [LogWrapper]
89
+ def apps_app_calls_call_log_get(app, call, opts = {})
90
+ data, _status_code, _headers = apps_app_calls_call_log_get_with_http_info(app, call, opts)
91
+ return data
92
+ end
93
+
94
+ # Get call logs
95
+ # Get call logs
96
+ # @param app App Name
97
+ # @param call Call ID.
98
+ # @param [Hash] opts the optional parameters
99
+ # @return [Array<(LogWrapper, Fixnum, Hash)>] LogWrapper data, response status code and response headers
100
+ def apps_app_calls_call_log_get_with_http_info(app, call, opts = {})
101
+ if @api_client.config.debugging
102
+ @api_client.config.logger.debug "Calling API: LogApi.apps_app_calls_call_log_get ..."
103
+ end
104
+ # verify the required parameter 'app' is set
105
+ if @api_client.config.client_side_validation && app.nil?
106
+ fail ArgumentError, "Missing the required parameter 'app' when calling LogApi.apps_app_calls_call_log_get"
107
+ end
108
+ # verify the required parameter 'call' is set
109
+ if @api_client.config.client_side_validation && call.nil?
110
+ fail ArgumentError, "Missing the required parameter 'call' when calling LogApi.apps_app_calls_call_log_get"
111
+ end
112
+ # resource path
113
+ local_var_path = "/apps/{app}/calls/{call}/log".sub('{' + 'app' + '}', app.to_s).sub('{' + 'call' + '}', call.to_s)
114
+
115
+ # query parameters
116
+ query_params = {}
117
+
118
+ # header parameters
119
+ header_params = {}
120
+ # HTTP header 'Accept' (if needed)
121
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
122
+ # HTTP header 'Content-Type'
123
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
124
+
125
+ # form parameters
126
+ form_params = {}
127
+
128
+ # http body (model)
129
+ post_body = nil
130
+ auth_names = []
131
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
132
+ :header_params => header_params,
133
+ :query_params => query_params,
134
+ :form_params => form_params,
135
+ :body => post_body,
136
+ :auth_names => auth_names,
137
+ :return_type => 'LogWrapper')
138
+ if @api_client.config.debugging
139
+ @api_client.config.logger.debug "API called: LogApi#apps_app_calls_call_log_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
140
+ end
141
+ return data, status_code, headers
142
+ end
143
+ end
144
+ end