moonlogs-ruby 0.0.1.pre.rc

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +524 -0
  4. data/Rakefile +8 -0
  5. data/docs/ApiToken.md +10 -0
  6. data/docs/Credentials.md +8 -0
  7. data/docs/DefaultApi.md +1318 -0
  8. data/docs/InlineResponse200.md +11 -0
  9. data/docs/InlineResponse2001.md +11 -0
  10. data/docs/InlineResponse20010.md +11 -0
  11. data/docs/InlineResponse20011.md +11 -0
  12. data/docs/InlineResponse20012.md +11 -0
  13. data/docs/InlineResponse20013.md +11 -0
  14. data/docs/InlineResponse2002.md +11 -0
  15. data/docs/InlineResponse2003.md +11 -0
  16. data/docs/InlineResponse2004.md +11 -0
  17. data/docs/InlineResponse2005.md +11 -0
  18. data/docs/InlineResponse2006.md +11 -0
  19. data/docs/InlineResponse2007.md +11 -0
  20. data/docs/InlineResponse2008.md +11 -0
  21. data/docs/InlineResponse2009.md +11 -0
  22. data/docs/Level.md +6 -0
  23. data/docs/Meta.md +9 -0
  24. data/docs/OneOfRecordLevel.md +6 -0
  25. data/docs/OneOfUserRole.md +6 -0
  26. data/docs/Record.md +15 -0
  27. data/docs/Role.md +6 -0
  28. data/docs/Schema.md +14 -0
  29. data/docs/SchemaField.md +8 -0
  30. data/docs/SchemaKind.md +8 -0
  31. data/docs/SchemaSearch.md +8 -0
  32. data/docs/Session.md +7 -0
  33. data/docs/Tag.md +8 -0
  34. data/docs/User.md +14 -0
  35. data/git_push.sh +55 -0
  36. data/lib/moonlogs-ruby/api/default_api.rb +1458 -0
  37. data/lib/moonlogs-ruby/api_client.rb +388 -0
  38. data/lib/moonlogs-ruby/api_error.rb +57 -0
  39. data/lib/moonlogs-ruby/configuration.rb +205 -0
  40. data/lib/moonlogs-ruby/models/api_token.rb +253 -0
  41. data/lib/moonlogs-ruby/models/credentials.rb +225 -0
  42. data/lib/moonlogs-ruby/models/inline_response_200.rb +269 -0
  43. data/lib/moonlogs-ruby/models/inline_response_200_1.rb +267 -0
  44. data/lib/moonlogs-ruby/models/inline_response_200_10.rb +267 -0
  45. data/lib/moonlogs-ruby/models/inline_response_200_11.rb +267 -0
  46. data/lib/moonlogs-ruby/models/inline_response_200_12.rb +269 -0
  47. data/lib/moonlogs-ruby/models/inline_response_200_13.rb +267 -0
  48. data/lib/moonlogs-ruby/models/inline_response_200_2.rb +267 -0
  49. data/lib/moonlogs-ruby/models/inline_response_200_3.rb +269 -0
  50. data/lib/moonlogs-ruby/models/inline_response_200_4.rb +267 -0
  51. data/lib/moonlogs-ruby/models/inline_response_200_5.rb +269 -0
  52. data/lib/moonlogs-ruby/models/inline_response_200_6.rb +267 -0
  53. data/lib/moonlogs-ruby/models/inline_response_200_7.rb +268 -0
  54. data/lib/moonlogs-ruby/models/inline_response_200_8.rb +267 -0
  55. data/lib/moonlogs-ruby/models/inline_response_200_9.rb +269 -0
  56. data/lib/moonlogs-ruby/models/level.rb +32 -0
  57. data/lib/moonlogs-ruby/models/meta.rb +239 -0
  58. data/lib/moonlogs-ruby/models/one_of_record_level.rb +197 -0
  59. data/lib/moonlogs-ruby/models/one_of_user_role.rb +197 -0
  60. data/lib/moonlogs-ruby/models/record.rb +303 -0
  61. data/lib/moonlogs-ruby/models/role.rb +28 -0
  62. data/lib/moonlogs-ruby/models/schema.rb +298 -0
  63. data/lib/moonlogs-ruby/models/schema_field.rb +225 -0
  64. data/lib/moonlogs-ruby/models/schema_kind.rb +225 -0
  65. data/lib/moonlogs-ruby/models/schema_search.rb +215 -0
  66. data/lib/moonlogs-ruby/models/session.rb +211 -0
  67. data/lib/moonlogs-ruby/models/tag.rb +225 -0
  68. data/lib/moonlogs-ruby/models/user.rb +301 -0
  69. data/lib/moonlogs-ruby/version.rb +14 -0
  70. data/lib/moonlogs-ruby.rb +68 -0
  71. data/moonlogs-ruby-0.0.1.0.gem +0 -0
  72. data/moonlogs-ruby-0.0.1.gem +0 -0
  73. data/moonlogs-ruby.gemspec +38 -0
  74. data/spec/api/default_api_spec.rb +317 -0
  75. data/spec/api_client_spec.rb +225 -0
  76. data/spec/base_object_spec.rb +109 -0
  77. data/spec/configuration_spec.rb +41 -0
  78. data/spec/models/api_token_spec.rb +58 -0
  79. data/spec/models/credentials_spec.rb +46 -0
  80. data/spec/models/inline_response_200_10_spec.rb +64 -0
  81. data/spec/models/inline_response_200_11_spec.rb +64 -0
  82. data/spec/models/inline_response_200_12_spec.rb +64 -0
  83. data/spec/models/inline_response_200_13_spec.rb +64 -0
  84. data/spec/models/inline_response_200_1_spec.rb +64 -0
  85. data/spec/models/inline_response_200_2_spec.rb +64 -0
  86. data/spec/models/inline_response_200_3_spec.rb +64 -0
  87. data/spec/models/inline_response_200_4_spec.rb +64 -0
  88. data/spec/models/inline_response_200_5_spec.rb +64 -0
  89. data/spec/models/inline_response_200_6_spec.rb +64 -0
  90. data/spec/models/inline_response_200_7_spec.rb +64 -0
  91. data/spec/models/inline_response_200_8_spec.rb +64 -0
  92. data/spec/models/inline_response_200_9_spec.rb +64 -0
  93. data/spec/models/inline_response_200_spec.rb +64 -0
  94. data/spec/models/level_spec.rb +34 -0
  95. data/spec/models/meta_spec.rb +52 -0
  96. data/spec/models/one_of_record_level_spec.rb +34 -0
  97. data/spec/models/one_of_user_role_spec.rb +34 -0
  98. data/spec/models/record_spec.rb +88 -0
  99. data/spec/models/role_spec.rb +34 -0
  100. data/spec/models/schema_field_spec.rb +46 -0
  101. data/spec/models/schema_kind_spec.rb +46 -0
  102. data/spec/models/schema_search_spec.rb +46 -0
  103. data/spec/models/schema_spec.rb +82 -0
  104. data/spec/models/session_spec.rb +40 -0
  105. data/spec/models/tag_spec.rb +46 -0
  106. data/spec/models/user_spec.rb +82 -0
  107. data/spec/spec_helper.rb +110 -0
  108. metadata +243 -0
@@ -0,0 +1,1458 @@
1
+ =begin
2
+ #Moonlogs
3
+
4
+ #Moonlogs API
5
+
6
+ OpenAPI spec version: 0.0.1
7
+ Contact: shalpack@gmail.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.52
10
+ =end
11
+
12
+ module MoonlogsRuby
13
+ class DefaultApi
14
+ attr_accessor :api_client
15
+
16
+ def initialize(api_client = ApiClient.default)
17
+ @api_client = api_client
18
+ end
19
+ # @param [Hash] opts the optional parameters
20
+ # @return [InlineResponse2009]
21
+ def api_api_tokens_get(opts = {})
22
+ data, _status_code, _headers = api_api_tokens_get_with_http_info(opts)
23
+ data
24
+ end
25
+
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [Array<(InlineResponse2009, Integer, Hash)>] InlineResponse2009 data, response status code and response headers
28
+ def api_api_tokens_get_with_http_info(opts = {})
29
+ if @api_client.config.debugging
30
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_api_tokens_get ...'
31
+ end
32
+ # resource path
33
+ local_var_path = '/api/api_tokens'
34
+
35
+ # query parameters
36
+ query_params = opts[:query_params] || {}
37
+
38
+ # header parameters
39
+ header_params = opts[:header_params] || {}
40
+ # HTTP header 'Accept' (if needed)
41
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
42
+
43
+ # form parameters
44
+ form_params = opts[:form_params] || {}
45
+
46
+ # http body (model)
47
+ post_body = opts[:body]
48
+
49
+ return_type = opts[:return_type] || 'InlineResponse2009'
50
+
51
+ auth_names = opts[:auth_names] || ['http1']
52
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
53
+ :header_params => header_params,
54
+ :query_params => query_params,
55
+ :form_params => form_params,
56
+ :body => post_body,
57
+ :auth_names => auth_names,
58
+ :return_type => return_type)
59
+
60
+ if @api_client.config.debugging
61
+ @api_client.config.logger.debug "API called: DefaultApi#api_api_tokens_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
62
+ end
63
+ return data, status_code, headers
64
+ end
65
+ # @param id
66
+ # @param [Hash] opts the optional parameters
67
+ # @return [InlineResponse20011]
68
+ def api_api_tokens_id_delete(id, opts = {})
69
+ data, _status_code, _headers = api_api_tokens_id_delete_with_http_info(id, opts)
70
+ data
71
+ end
72
+
73
+ # @param id
74
+ # @param [Hash] opts the optional parameters
75
+ # @return [Array<(InlineResponse20011, Integer, Hash)>] InlineResponse20011 data, response status code and response headers
76
+ def api_api_tokens_id_delete_with_http_info(id, opts = {})
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_api_tokens_id_delete ...'
79
+ end
80
+ # verify the required parameter 'id' is set
81
+ if @api_client.config.client_side_validation && id.nil?
82
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_api_tokens_id_delete"
83
+ end
84
+ # resource path
85
+ local_var_path = '/api/api_tokens/{id}'.sub('{' + 'id' + '}', id.to_s)
86
+
87
+ # query parameters
88
+ query_params = opts[:query_params] || {}
89
+
90
+ # header parameters
91
+ header_params = opts[:header_params] || {}
92
+ # HTTP header 'Accept' (if needed)
93
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
94
+
95
+ # form parameters
96
+ form_params = opts[:form_params] || {}
97
+
98
+ # http body (model)
99
+ post_body = opts[:body]
100
+
101
+ return_type = opts[:return_type] || 'InlineResponse20011'
102
+
103
+ auth_names = opts[:auth_names] || ['http1']
104
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
105
+ :header_params => header_params,
106
+ :query_params => query_params,
107
+ :form_params => form_params,
108
+ :body => post_body,
109
+ :auth_names => auth_names,
110
+ :return_type => return_type)
111
+
112
+ if @api_client.config.debugging
113
+ @api_client.config.logger.debug "API called: DefaultApi#api_api_tokens_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
114
+ end
115
+ return data, status_code, headers
116
+ end
117
+ # @param id
118
+ # @param [Hash] opts the optional parameters
119
+ # @return [InlineResponse20010]
120
+ def api_api_tokens_id_get(id, opts = {})
121
+ data, _status_code, _headers = api_api_tokens_id_get_with_http_info(id, opts)
122
+ data
123
+ end
124
+
125
+ # @param id
126
+ # @param [Hash] opts the optional parameters
127
+ # @return [Array<(InlineResponse20010, Integer, Hash)>] InlineResponse20010 data, response status code and response headers
128
+ def api_api_tokens_id_get_with_http_info(id, opts = {})
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_api_tokens_id_get ...'
131
+ end
132
+ # verify the required parameter 'id' is set
133
+ if @api_client.config.client_side_validation && id.nil?
134
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_api_tokens_id_get"
135
+ end
136
+ # resource path
137
+ local_var_path = '/api/api_tokens/{id}'.sub('{' + 'id' + '}', id.to_s)
138
+
139
+ # query parameters
140
+ query_params = opts[:query_params] || {}
141
+
142
+ # header parameters
143
+ header_params = opts[:header_params] || {}
144
+ # HTTP header 'Accept' (if needed)
145
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
146
+
147
+ # form parameters
148
+ form_params = opts[:form_params] || {}
149
+
150
+ # http body (model)
151
+ post_body = opts[:body]
152
+
153
+ return_type = opts[:return_type] || 'InlineResponse20010'
154
+
155
+ auth_names = opts[:auth_names] || ['http1']
156
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
157
+ :header_params => header_params,
158
+ :query_params => query_params,
159
+ :form_params => form_params,
160
+ :body => post_body,
161
+ :auth_names => auth_names,
162
+ :return_type => return_type)
163
+
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug "API called: DefaultApi#api_api_tokens_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
166
+ end
167
+ return data, status_code, headers
168
+ end
169
+ # @param id
170
+ # @param [Hash] opts the optional parameters
171
+ # @option opts [ApiToken] :body
172
+ # @return [InlineResponse20010]
173
+ def api_api_tokens_id_put(id, opts = {})
174
+ data, _status_code, _headers = api_api_tokens_id_put_with_http_info(id, opts)
175
+ data
176
+ end
177
+
178
+ # @param id
179
+ # @param [Hash] opts the optional parameters
180
+ # @option opts [ApiToken] :body
181
+ # @return [Array<(InlineResponse20010, Integer, Hash)>] InlineResponse20010 data, response status code and response headers
182
+ def api_api_tokens_id_put_with_http_info(id, opts = {})
183
+ if @api_client.config.debugging
184
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_api_tokens_id_put ...'
185
+ end
186
+ # verify the required parameter 'id' is set
187
+ if @api_client.config.client_side_validation && id.nil?
188
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_api_tokens_id_put"
189
+ end
190
+ # resource path
191
+ local_var_path = '/api/api_tokens/{id}'.sub('{' + 'id' + '}', id.to_s)
192
+
193
+ # query parameters
194
+ query_params = opts[:query_params] || {}
195
+
196
+ # header parameters
197
+ header_params = opts[:header_params] || {}
198
+ # HTTP header 'Accept' (if needed)
199
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
200
+ # HTTP header 'Content-Type'
201
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
202
+
203
+ # form parameters
204
+ form_params = opts[:form_params] || {}
205
+
206
+ # http body (model)
207
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
208
+
209
+ return_type = opts[:return_type] || 'InlineResponse20010'
210
+
211
+ auth_names = opts[:auth_names] || ['http1']
212
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
213
+ :header_params => header_params,
214
+ :query_params => query_params,
215
+ :form_params => form_params,
216
+ :body => post_body,
217
+ :auth_names => auth_names,
218
+ :return_type => return_type)
219
+
220
+ if @api_client.config.debugging
221
+ @api_client.config.logger.debug "API called: DefaultApi#api_api_tokens_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
222
+ end
223
+ return data, status_code, headers
224
+ end
225
+ # @param [Hash] opts the optional parameters
226
+ # @option opts [ApiToken] :body
227
+ # @return [InlineResponse20010]
228
+ def api_api_tokens_post(opts = {})
229
+ data, _status_code, _headers = api_api_tokens_post_with_http_info(opts)
230
+ data
231
+ end
232
+
233
+ # @param [Hash] opts the optional parameters
234
+ # @option opts [ApiToken] :body
235
+ # @return [Array<(InlineResponse20010, Integer, Hash)>] InlineResponse20010 data, response status code and response headers
236
+ def api_api_tokens_post_with_http_info(opts = {})
237
+ if @api_client.config.debugging
238
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_api_tokens_post ...'
239
+ end
240
+ # resource path
241
+ local_var_path = '/api/api_tokens'
242
+
243
+ # query parameters
244
+ query_params = opts[:query_params] || {}
245
+
246
+ # header parameters
247
+ header_params = opts[:header_params] || {}
248
+ # HTTP header 'Accept' (if needed)
249
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
250
+ # HTTP header 'Content-Type'
251
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
252
+
253
+ # form parameters
254
+ form_params = opts[:form_params] || {}
255
+
256
+ # http body (model)
257
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
258
+
259
+ return_type = opts[:return_type] || 'InlineResponse20010'
260
+
261
+ auth_names = opts[:auth_names] || ['http1']
262
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
263
+ :header_params => header_params,
264
+ :query_params => query_params,
265
+ :form_params => form_params,
266
+ :body => post_body,
267
+ :auth_names => auth_names,
268
+ :return_type => return_type)
269
+
270
+ if @api_client.config.debugging
271
+ @api_client.config.logger.debug "API called: DefaultApi#api_api_tokens_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
272
+ end
273
+ return data, status_code, headers
274
+ end
275
+ # @param [Hash] opts the optional parameters
276
+ # @option opts [Integer] :page
277
+ # @option opts [Integer] :limit
278
+ # @return [InlineResponse2003]
279
+ def api_logs_get(opts = {})
280
+ data, _status_code, _headers = api_logs_get_with_http_info(opts)
281
+ data
282
+ end
283
+
284
+ # @param [Hash] opts the optional parameters
285
+ # @option opts [Integer] :page
286
+ # @option opts [Integer] :limit
287
+ # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
288
+ def api_logs_get_with_http_info(opts = {})
289
+ if @api_client.config.debugging
290
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_logs_get ...'
291
+ end
292
+ # resource path
293
+ local_var_path = '/api/logs'
294
+
295
+ # query parameters
296
+ query_params = opts[:query_params] || {}
297
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
298
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
299
+
300
+ # header parameters
301
+ header_params = opts[:header_params] || {}
302
+ # HTTP header 'Accept' (if needed)
303
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
304
+
305
+ # form parameters
306
+ form_params = opts[:form_params] || {}
307
+
308
+ # http body (model)
309
+ post_body = opts[:body]
310
+
311
+ return_type = opts[:return_type] || 'InlineResponse2003'
312
+
313
+ auth_names = opts[:auth_names] || ['http1']
314
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
315
+ :header_params => header_params,
316
+ :query_params => query_params,
317
+ :form_params => form_params,
318
+ :body => post_body,
319
+ :auth_names => auth_names,
320
+ :return_type => return_type)
321
+
322
+ if @api_client.config.debugging
323
+ @api_client.config.logger.debug "API called: DefaultApi#api_logs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
324
+ end
325
+ return data, status_code, headers
326
+ end
327
+ # @param schema_name
328
+ # @param hash
329
+ # @param [Hash] opts the optional parameters
330
+ # @return [InlineResponse2003]
331
+ def api_logs_group_schema_name_hash_get(schema_name, hash, opts = {})
332
+ data, _status_code, _headers = api_logs_group_schema_name_hash_get_with_http_info(schema_name, hash, opts)
333
+ data
334
+ end
335
+
336
+ # @param schema_name
337
+ # @param hash
338
+ # @param [Hash] opts the optional parameters
339
+ # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
340
+ def api_logs_group_schema_name_hash_get_with_http_info(schema_name, hash, opts = {})
341
+ if @api_client.config.debugging
342
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_logs_group_schema_name_hash_get ...'
343
+ end
344
+ # verify the required parameter 'schema_name' is set
345
+ if @api_client.config.client_side_validation && schema_name.nil?
346
+ fail ArgumentError, "Missing the required parameter 'schema_name' when calling DefaultApi.api_logs_group_schema_name_hash_get"
347
+ end
348
+ # verify the required parameter 'hash' is set
349
+ if @api_client.config.client_side_validation && hash.nil?
350
+ fail ArgumentError, "Missing the required parameter 'hash' when calling DefaultApi.api_logs_group_schema_name_hash_get"
351
+ end
352
+ # resource path
353
+ local_var_path = '/api/logs/group/{schema_name}/{hash}'.sub('{' + 'schema_name' + '}', schema_name.to_s).sub('{' + 'hash' + '}', hash.to_s)
354
+
355
+ # query parameters
356
+ query_params = opts[:query_params] || {}
357
+
358
+ # header parameters
359
+ header_params = opts[:header_params] || {}
360
+ # HTTP header 'Accept' (if needed)
361
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
362
+
363
+ # form parameters
364
+ form_params = opts[:form_params] || {}
365
+
366
+ # http body (model)
367
+ post_body = opts[:body]
368
+
369
+ return_type = opts[:return_type] || 'InlineResponse2003'
370
+
371
+ auth_names = opts[:auth_names] || ['http1']
372
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
373
+ :header_params => header_params,
374
+ :query_params => query_params,
375
+ :form_params => form_params,
376
+ :body => post_body,
377
+ :auth_names => auth_names,
378
+ :return_type => return_type)
379
+
380
+ if @api_client.config.debugging
381
+ @api_client.config.logger.debug "API called: DefaultApi#api_logs_group_schema_name_hash_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
382
+ end
383
+ return data, status_code, headers
384
+ end
385
+ # @param id
386
+ # @param [Hash] opts the optional parameters
387
+ # @return [InlineResponse2004]
388
+ def api_logs_id_get(id, opts = {})
389
+ data, _status_code, _headers = api_logs_id_get_with_http_info(id, opts)
390
+ data
391
+ end
392
+
393
+ # @param id
394
+ # @param [Hash] opts the optional parameters
395
+ # @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
396
+ def api_logs_id_get_with_http_info(id, opts = {})
397
+ if @api_client.config.debugging
398
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_logs_id_get ...'
399
+ end
400
+ # verify the required parameter 'id' is set
401
+ if @api_client.config.client_side_validation && id.nil?
402
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_logs_id_get"
403
+ end
404
+ # resource path
405
+ local_var_path = '/api/logs/{id}'.sub('{' + 'id' + '}', id.to_s)
406
+
407
+ # query parameters
408
+ query_params = opts[:query_params] || {}
409
+
410
+ # header parameters
411
+ header_params = opts[:header_params] || {}
412
+ # HTTP header 'Accept' (if needed)
413
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
414
+
415
+ # form parameters
416
+ form_params = opts[:form_params] || {}
417
+
418
+ # http body (model)
419
+ post_body = opts[:body]
420
+
421
+ return_type = opts[:return_type] || 'InlineResponse2004'
422
+
423
+ auth_names = opts[:auth_names] || ['http1']
424
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
425
+ :header_params => header_params,
426
+ :query_params => query_params,
427
+ :form_params => form_params,
428
+ :body => post_body,
429
+ :auth_names => auth_names,
430
+ :return_type => return_type)
431
+
432
+ if @api_client.config.debugging
433
+ @api_client.config.logger.debug "API called: DefaultApi#api_logs_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
434
+ end
435
+ return data, status_code, headers
436
+ end
437
+ # @param [Hash] opts the optional parameters
438
+ # @option opts [Record] :body
439
+ # @return [InlineResponse2004]
440
+ def api_logs_post(opts = {})
441
+ data, _status_code, _headers = api_logs_post_with_http_info(opts)
442
+ data
443
+ end
444
+
445
+ # @param [Hash] opts the optional parameters
446
+ # @option opts [Record] :body
447
+ # @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
448
+ def api_logs_post_with_http_info(opts = {})
449
+ if @api_client.config.debugging
450
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_logs_post ...'
451
+ end
452
+ # resource path
453
+ local_var_path = '/api/logs'
454
+
455
+ # query parameters
456
+ query_params = opts[:query_params] || {}
457
+
458
+ # header parameters
459
+ header_params = opts[:header_params] || {}
460
+ # HTTP header 'Accept' (if needed)
461
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
462
+ # HTTP header 'Content-Type'
463
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
464
+
465
+ # form parameters
466
+ form_params = opts[:form_params] || {}
467
+
468
+ # http body (model)
469
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
470
+
471
+ return_type = opts[:return_type] || 'InlineResponse2004'
472
+
473
+ auth_names = opts[:auth_names] || ['http1']
474
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
475
+ :header_params => header_params,
476
+ :query_params => query_params,
477
+ :form_params => form_params,
478
+ :body => post_body,
479
+ :auth_names => auth_names,
480
+ :return_type => return_type)
481
+
482
+ if @api_client.config.debugging
483
+ @api_client.config.logger.debug "API called: DefaultApi#api_logs_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
484
+ end
485
+ return data, status_code, headers
486
+ end
487
+ # @param [Hash] opts the optional parameters
488
+ # @option opts [Record] :body
489
+ # @option opts [Integer] :page
490
+ # @option opts [Integer] :limit
491
+ # @return [InlineResponse2003]
492
+ def api_logs_search_post(opts = {})
493
+ data, _status_code, _headers = api_logs_search_post_with_http_info(opts)
494
+ data
495
+ end
496
+
497
+ # @param [Hash] opts the optional parameters
498
+ # @option opts [Record] :body
499
+ # @option opts [Integer] :page
500
+ # @option opts [Integer] :limit
501
+ # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
502
+ def api_logs_search_post_with_http_info(opts = {})
503
+ if @api_client.config.debugging
504
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_logs_search_post ...'
505
+ end
506
+ # resource path
507
+ local_var_path = '/api/logs/search'
508
+
509
+ # query parameters
510
+ query_params = opts[:query_params] || {}
511
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
512
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
513
+
514
+ # header parameters
515
+ header_params = opts[:header_params] || {}
516
+ # HTTP header 'Accept' (if needed)
517
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
518
+ # HTTP header 'Content-Type'
519
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
520
+
521
+ # form parameters
522
+ form_params = opts[:form_params] || {}
523
+
524
+ # http body (model)
525
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
526
+
527
+ return_type = opts[:return_type] || 'InlineResponse2003'
528
+
529
+ auth_names = opts[:auth_names] || ['http1']
530
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
531
+ :header_params => header_params,
532
+ :query_params => query_params,
533
+ :form_params => form_params,
534
+ :body => post_body,
535
+ :auth_names => auth_names,
536
+ :return_type => return_type)
537
+
538
+ if @api_client.config.debugging
539
+ @api_client.config.logger.debug "API called: DefaultApi#api_logs_search_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
540
+ end
541
+ return data, status_code, headers
542
+ end
543
+ # @param [Hash] opts the optional parameters
544
+ # @return [InlineResponse200]
545
+ def api_schemas_get(opts = {})
546
+ data, _status_code, _headers = api_schemas_get_with_http_info(opts)
547
+ data
548
+ end
549
+
550
+ # @param [Hash] opts the optional parameters
551
+ # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
552
+ def api_schemas_get_with_http_info(opts = {})
553
+ if @api_client.config.debugging
554
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_schemas_get ...'
555
+ end
556
+ # resource path
557
+ local_var_path = '/api/schemas'
558
+
559
+ # query parameters
560
+ query_params = opts[:query_params] || {}
561
+
562
+ # header parameters
563
+ header_params = opts[:header_params] || {}
564
+ # HTTP header 'Accept' (if needed)
565
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
566
+
567
+ # form parameters
568
+ form_params = opts[:form_params] || {}
569
+
570
+ # http body (model)
571
+ post_body = opts[:body]
572
+
573
+ return_type = opts[:return_type] || 'InlineResponse200'
574
+
575
+ auth_names = opts[:auth_names] || ['http1']
576
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
577
+ :header_params => header_params,
578
+ :query_params => query_params,
579
+ :form_params => form_params,
580
+ :body => post_body,
581
+ :auth_names => auth_names,
582
+ :return_type => return_type)
583
+
584
+ if @api_client.config.debugging
585
+ @api_client.config.logger.debug "API called: DefaultApi#api_schemas_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
586
+ end
587
+ return data, status_code, headers
588
+ end
589
+ # @param id
590
+ # @param [Hash] opts the optional parameters
591
+ # @return [InlineResponse2002]
592
+ def api_schemas_id_delete(id, opts = {})
593
+ data, _status_code, _headers = api_schemas_id_delete_with_http_info(id, opts)
594
+ data
595
+ end
596
+
597
+ # @param id
598
+ # @param [Hash] opts the optional parameters
599
+ # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
600
+ def api_schemas_id_delete_with_http_info(id, opts = {})
601
+ if @api_client.config.debugging
602
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_schemas_id_delete ...'
603
+ end
604
+ # verify the required parameter 'id' is set
605
+ if @api_client.config.client_side_validation && id.nil?
606
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_schemas_id_delete"
607
+ end
608
+ # resource path
609
+ local_var_path = '/api/schemas/{id}'.sub('{' + 'id' + '}', id.to_s)
610
+
611
+ # query parameters
612
+ query_params = opts[:query_params] || {}
613
+
614
+ # header parameters
615
+ header_params = opts[:header_params] || {}
616
+ # HTTP header 'Accept' (if needed)
617
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
618
+
619
+ # form parameters
620
+ form_params = opts[:form_params] || {}
621
+
622
+ # http body (model)
623
+ post_body = opts[:body]
624
+
625
+ return_type = opts[:return_type] || 'InlineResponse2002'
626
+
627
+ auth_names = opts[:auth_names] || ['http1']
628
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
629
+ :header_params => header_params,
630
+ :query_params => query_params,
631
+ :form_params => form_params,
632
+ :body => post_body,
633
+ :auth_names => auth_names,
634
+ :return_type => return_type)
635
+
636
+ if @api_client.config.debugging
637
+ @api_client.config.logger.debug "API called: DefaultApi#api_schemas_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
638
+ end
639
+ return data, status_code, headers
640
+ end
641
+ # @param id
642
+ # @param [Hash] opts the optional parameters
643
+ # @return [InlineResponse2001]
644
+ def api_schemas_id_get(id, opts = {})
645
+ data, _status_code, _headers = api_schemas_id_get_with_http_info(id, opts)
646
+ data
647
+ end
648
+
649
+ # @param id
650
+ # @param [Hash] opts the optional parameters
651
+ # @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
652
+ def api_schemas_id_get_with_http_info(id, opts = {})
653
+ if @api_client.config.debugging
654
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_schemas_id_get ...'
655
+ end
656
+ # verify the required parameter 'id' is set
657
+ if @api_client.config.client_side_validation && id.nil?
658
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_schemas_id_get"
659
+ end
660
+ # resource path
661
+ local_var_path = '/api/schemas/{id}'.sub('{' + 'id' + '}', id.to_s)
662
+
663
+ # query parameters
664
+ query_params = opts[:query_params] || {}
665
+
666
+ # header parameters
667
+ header_params = opts[:header_params] || {}
668
+ # HTTP header 'Accept' (if needed)
669
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
670
+
671
+ # form parameters
672
+ form_params = opts[:form_params] || {}
673
+
674
+ # http body (model)
675
+ post_body = opts[:body]
676
+
677
+ return_type = opts[:return_type] || 'InlineResponse2001'
678
+
679
+ auth_names = opts[:auth_names] || ['http1']
680
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
681
+ :header_params => header_params,
682
+ :query_params => query_params,
683
+ :form_params => form_params,
684
+ :body => post_body,
685
+ :auth_names => auth_names,
686
+ :return_type => return_type)
687
+
688
+ if @api_client.config.debugging
689
+ @api_client.config.logger.debug "API called: DefaultApi#api_schemas_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
690
+ end
691
+ return data, status_code, headers
692
+ end
693
+ # @param id
694
+ # @param [Hash] opts the optional parameters
695
+ # @option opts [Schema] :body
696
+ # @return [InlineResponse2001]
697
+ def api_schemas_id_put(id, opts = {})
698
+ data, _status_code, _headers = api_schemas_id_put_with_http_info(id, opts)
699
+ data
700
+ end
701
+
702
+ # @param id
703
+ # @param [Hash] opts the optional parameters
704
+ # @option opts [Schema] :body
705
+ # @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
706
+ def api_schemas_id_put_with_http_info(id, opts = {})
707
+ if @api_client.config.debugging
708
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_schemas_id_put ...'
709
+ end
710
+ # verify the required parameter 'id' is set
711
+ if @api_client.config.client_side_validation && id.nil?
712
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_schemas_id_put"
713
+ end
714
+ # resource path
715
+ local_var_path = '/api/schemas/{id}'.sub('{' + 'id' + '}', id.to_s)
716
+
717
+ # query parameters
718
+ query_params = opts[:query_params] || {}
719
+
720
+ # header parameters
721
+ header_params = opts[:header_params] || {}
722
+ # HTTP header 'Accept' (if needed)
723
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
724
+ # HTTP header 'Content-Type'
725
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
726
+
727
+ # form parameters
728
+ form_params = opts[:form_params] || {}
729
+
730
+ # http body (model)
731
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
732
+
733
+ return_type = opts[:return_type] || 'InlineResponse2001'
734
+
735
+ auth_names = opts[:auth_names] || ['http1']
736
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
737
+ :header_params => header_params,
738
+ :query_params => query_params,
739
+ :form_params => form_params,
740
+ :body => post_body,
741
+ :auth_names => auth_names,
742
+ :return_type => return_type)
743
+
744
+ if @api_client.config.debugging
745
+ @api_client.config.logger.debug "API called: DefaultApi#api_schemas_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
746
+ end
747
+ return data, status_code, headers
748
+ end
749
+ # @param [Hash] opts the optional parameters
750
+ # @option opts [Schema] :body
751
+ # @return [InlineResponse2001]
752
+ def api_schemas_post(opts = {})
753
+ data, _status_code, _headers = api_schemas_post_with_http_info(opts)
754
+ data
755
+ end
756
+
757
+ # @param [Hash] opts the optional parameters
758
+ # @option opts [Schema] :body
759
+ # @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
760
+ def api_schemas_post_with_http_info(opts = {})
761
+ if @api_client.config.debugging
762
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_schemas_post ...'
763
+ end
764
+ # resource path
765
+ local_var_path = '/api/schemas'
766
+
767
+ # query parameters
768
+ query_params = opts[:query_params] || {}
769
+
770
+ # header parameters
771
+ header_params = opts[:header_params] || {}
772
+ # HTTP header 'Accept' (if needed)
773
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
774
+ # HTTP header 'Content-Type'
775
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
776
+
777
+ # form parameters
778
+ form_params = opts[:form_params] || {}
779
+
780
+ # http body (model)
781
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
782
+
783
+ return_type = opts[:return_type] || 'InlineResponse2001'
784
+
785
+ auth_names = opts[:auth_names] || ['http1']
786
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
787
+ :header_params => header_params,
788
+ :query_params => query_params,
789
+ :form_params => form_params,
790
+ :body => post_body,
791
+ :auth_names => auth_names,
792
+ :return_type => return_type)
793
+
794
+ if @api_client.config.debugging
795
+ @api_client.config.logger.debug "API called: DefaultApi#api_schemas_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
796
+ end
797
+ return data, status_code, headers
798
+ end
799
+ # @param [Hash] opts the optional parameters
800
+ # @return [InlineResponse2008]
801
+ def api_session_get(opts = {})
802
+ data, _status_code, _headers = api_session_get_with_http_info(opts)
803
+ data
804
+ end
805
+
806
+ # @param [Hash] opts the optional parameters
807
+ # @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
808
+ def api_session_get_with_http_info(opts = {})
809
+ if @api_client.config.debugging
810
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_session_get ...'
811
+ end
812
+ # resource path
813
+ local_var_path = '/api/session'
814
+
815
+ # query parameters
816
+ query_params = opts[:query_params] || {}
817
+
818
+ # header parameters
819
+ header_params = opts[:header_params] || {}
820
+ # HTTP header 'Accept' (if needed)
821
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
822
+
823
+ # form parameters
824
+ form_params = opts[:form_params] || {}
825
+
826
+ # http body (model)
827
+ post_body = opts[:body]
828
+
829
+ return_type = opts[:return_type] || 'InlineResponse2008'
830
+
831
+ auth_names = opts[:auth_names] || []
832
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
833
+ :header_params => header_params,
834
+ :query_params => query_params,
835
+ :form_params => form_params,
836
+ :body => post_body,
837
+ :auth_names => auth_names,
838
+ :return_type => return_type)
839
+
840
+ if @api_client.config.debugging
841
+ @api_client.config.logger.debug "API called: DefaultApi#api_session_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
842
+ end
843
+ return data, status_code, headers
844
+ end
845
+ # @param [Hash] opts the optional parameters
846
+ # @option opts [Credentials] :body
847
+ # @return [InlineResponse2008]
848
+ def api_session_post(opts = {})
849
+ data, _status_code, _headers = api_session_post_with_http_info(opts)
850
+ data
851
+ end
852
+
853
+ # @param [Hash] opts the optional parameters
854
+ # @option opts [Credentials] :body
855
+ # @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
856
+ def api_session_post_with_http_info(opts = {})
857
+ if @api_client.config.debugging
858
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_session_post ...'
859
+ end
860
+ # resource path
861
+ local_var_path = '/api/session'
862
+
863
+ # query parameters
864
+ query_params = opts[:query_params] || {}
865
+
866
+ # header parameters
867
+ header_params = opts[:header_params] || {}
868
+ # HTTP header 'Accept' (if needed)
869
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
870
+ # HTTP header 'Content-Type'
871
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
872
+
873
+ # form parameters
874
+ form_params = opts[:form_params] || {}
875
+
876
+ # http body (model)
877
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
878
+
879
+ return_type = opts[:return_type] || 'InlineResponse2008'
880
+
881
+ auth_names = opts[:auth_names] || []
882
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
883
+ :header_params => header_params,
884
+ :query_params => query_params,
885
+ :form_params => form_params,
886
+ :body => post_body,
887
+ :auth_names => auth_names,
888
+ :return_type => return_type)
889
+
890
+ if @api_client.config.debugging
891
+ @api_client.config.logger.debug "API called: DefaultApi#api_session_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
892
+ end
893
+ return data, status_code, headers
894
+ end
895
+ # @param [Hash] opts the optional parameters
896
+ # @option opts [User] :body
897
+ # @return [User]
898
+ def api_setup_register_admin_post(opts = {})
899
+ data, _status_code, _headers = api_setup_register_admin_post_with_http_info(opts)
900
+ data
901
+ end
902
+
903
+ # @param [Hash] opts the optional parameters
904
+ # @option opts [User] :body
905
+ # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
906
+ def api_setup_register_admin_post_with_http_info(opts = {})
907
+ if @api_client.config.debugging
908
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_setup_register_admin_post ...'
909
+ end
910
+ # resource path
911
+ local_var_path = '/api/setup/register_admin'
912
+
913
+ # query parameters
914
+ query_params = opts[:query_params] || {}
915
+
916
+ # header parameters
917
+ header_params = opts[:header_params] || {}
918
+ # HTTP header 'Accept' (if needed)
919
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
920
+ # HTTP header 'Content-Type'
921
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
922
+
923
+ # form parameters
924
+ form_params = opts[:form_params] || {}
925
+
926
+ # http body (model)
927
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
928
+
929
+ return_type = opts[:return_type] || 'User'
930
+
931
+ auth_names = opts[:auth_names] || []
932
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
933
+ :header_params => header_params,
934
+ :query_params => query_params,
935
+ :form_params => form_params,
936
+ :body => post_body,
937
+ :auth_names => auth_names,
938
+ :return_type => return_type)
939
+
940
+ if @api_client.config.debugging
941
+ @api_client.config.logger.debug "API called: DefaultApi#api_setup_register_admin_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
942
+ end
943
+ return data, status_code, headers
944
+ end
945
+ # @param [Hash] opts the optional parameters
946
+ # @return [InlineResponse20012]
947
+ def api_tags_get(opts = {})
948
+ data, _status_code, _headers = api_tags_get_with_http_info(opts)
949
+ data
950
+ end
951
+
952
+ # @param [Hash] opts the optional parameters
953
+ # @return [Array<(InlineResponse20012, Integer, Hash)>] InlineResponse20012 data, response status code and response headers
954
+ def api_tags_get_with_http_info(opts = {})
955
+ if @api_client.config.debugging
956
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_get ...'
957
+ end
958
+ # resource path
959
+ local_var_path = '/api/tags'
960
+
961
+ # query parameters
962
+ query_params = opts[:query_params] || {}
963
+
964
+ # header parameters
965
+ header_params = opts[:header_params] || {}
966
+ # HTTP header 'Accept' (if needed)
967
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
968
+
969
+ # form parameters
970
+ form_params = opts[:form_params] || {}
971
+
972
+ # http body (model)
973
+ post_body = opts[:body]
974
+
975
+ return_type = opts[:return_type] || 'InlineResponse20012'
976
+
977
+ auth_names = opts[:auth_names] || ['http1']
978
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
979
+ :header_params => header_params,
980
+ :query_params => query_params,
981
+ :form_params => form_params,
982
+ :body => post_body,
983
+ :auth_names => auth_names,
984
+ :return_type => return_type)
985
+
986
+ if @api_client.config.debugging
987
+ @api_client.config.logger.debug "API called: DefaultApi#api_tags_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
988
+ end
989
+ return data, status_code, headers
990
+ end
991
+ # @param id
992
+ # @param [Hash] opts the optional parameters
993
+ # @return [InlineResponse20011]
994
+ def api_tags_id_delete(id, opts = {})
995
+ data, _status_code, _headers = api_tags_id_delete_with_http_info(id, opts)
996
+ data
997
+ end
998
+
999
+ # @param id
1000
+ # @param [Hash] opts the optional parameters
1001
+ # @return [Array<(InlineResponse20011, Integer, Hash)>] InlineResponse20011 data, response status code and response headers
1002
+ def api_tags_id_delete_with_http_info(id, opts = {})
1003
+ if @api_client.config.debugging
1004
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_id_delete ...'
1005
+ end
1006
+ # verify the required parameter 'id' is set
1007
+ if @api_client.config.client_side_validation && id.nil?
1008
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_tags_id_delete"
1009
+ end
1010
+ # resource path
1011
+ local_var_path = '/api/tags/{id}'.sub('{' + 'id' + '}', id.to_s)
1012
+
1013
+ # query parameters
1014
+ query_params = opts[:query_params] || {}
1015
+
1016
+ # header parameters
1017
+ header_params = opts[:header_params] || {}
1018
+ # HTTP header 'Accept' (if needed)
1019
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1020
+
1021
+ # form parameters
1022
+ form_params = opts[:form_params] || {}
1023
+
1024
+ # http body (model)
1025
+ post_body = opts[:body]
1026
+
1027
+ return_type = opts[:return_type] || 'InlineResponse20011'
1028
+
1029
+ auth_names = opts[:auth_names] || ['http1']
1030
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1031
+ :header_params => header_params,
1032
+ :query_params => query_params,
1033
+ :form_params => form_params,
1034
+ :body => post_body,
1035
+ :auth_names => auth_names,
1036
+ :return_type => return_type)
1037
+
1038
+ if @api_client.config.debugging
1039
+ @api_client.config.logger.debug "API called: DefaultApi#api_tags_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1040
+ end
1041
+ return data, status_code, headers
1042
+ end
1043
+ # @param id
1044
+ # @param [Hash] opts the optional parameters
1045
+ # @return [InlineResponse20013]
1046
+ def api_tags_id_get(id, opts = {})
1047
+ data, _status_code, _headers = api_tags_id_get_with_http_info(id, opts)
1048
+ data
1049
+ end
1050
+
1051
+ # @param id
1052
+ # @param [Hash] opts the optional parameters
1053
+ # @return [Array<(InlineResponse20013, Integer, Hash)>] InlineResponse20013 data, response status code and response headers
1054
+ def api_tags_id_get_with_http_info(id, opts = {})
1055
+ if @api_client.config.debugging
1056
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_id_get ...'
1057
+ end
1058
+ # verify the required parameter 'id' is set
1059
+ if @api_client.config.client_side_validation && id.nil?
1060
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_tags_id_get"
1061
+ end
1062
+ # resource path
1063
+ local_var_path = '/api/tags/{id}'.sub('{' + 'id' + '}', id.to_s)
1064
+
1065
+ # query parameters
1066
+ query_params = opts[:query_params] || {}
1067
+
1068
+ # header parameters
1069
+ header_params = opts[:header_params] || {}
1070
+ # HTTP header 'Accept' (if needed)
1071
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1072
+
1073
+ # form parameters
1074
+ form_params = opts[:form_params] || {}
1075
+
1076
+ # http body (model)
1077
+ post_body = opts[:body]
1078
+
1079
+ return_type = opts[:return_type] || 'InlineResponse20013'
1080
+
1081
+ auth_names = opts[:auth_names] || ['http1']
1082
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1083
+ :header_params => header_params,
1084
+ :query_params => query_params,
1085
+ :form_params => form_params,
1086
+ :body => post_body,
1087
+ :auth_names => auth_names,
1088
+ :return_type => return_type)
1089
+
1090
+ if @api_client.config.debugging
1091
+ @api_client.config.logger.debug "API called: DefaultApi#api_tags_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1092
+ end
1093
+ return data, status_code, headers
1094
+ end
1095
+ # @param id
1096
+ # @param [Hash] opts the optional parameters
1097
+ # @option opts [Tag] :body
1098
+ # @return [InlineResponse20013]
1099
+ def api_tags_id_put(id, opts = {})
1100
+ data, _status_code, _headers = api_tags_id_put_with_http_info(id, opts)
1101
+ data
1102
+ end
1103
+
1104
+ # @param id
1105
+ # @param [Hash] opts the optional parameters
1106
+ # @option opts [Tag] :body
1107
+ # @return [Array<(InlineResponse20013, Integer, Hash)>] InlineResponse20013 data, response status code and response headers
1108
+ def api_tags_id_put_with_http_info(id, opts = {})
1109
+ if @api_client.config.debugging
1110
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_id_put ...'
1111
+ end
1112
+ # verify the required parameter 'id' is set
1113
+ if @api_client.config.client_side_validation && id.nil?
1114
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_tags_id_put"
1115
+ end
1116
+ # resource path
1117
+ local_var_path = '/api/tags/{id}'.sub('{' + 'id' + '}', id.to_s)
1118
+
1119
+ # query parameters
1120
+ query_params = opts[:query_params] || {}
1121
+
1122
+ # header parameters
1123
+ header_params = opts[:header_params] || {}
1124
+ # HTTP header 'Accept' (if needed)
1125
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1126
+ # HTTP header 'Content-Type'
1127
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1128
+
1129
+ # form parameters
1130
+ form_params = opts[:form_params] || {}
1131
+
1132
+ # http body (model)
1133
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
1134
+
1135
+ return_type = opts[:return_type] || 'InlineResponse20013'
1136
+
1137
+ auth_names = opts[:auth_names] || ['http1']
1138
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1139
+ :header_params => header_params,
1140
+ :query_params => query_params,
1141
+ :form_params => form_params,
1142
+ :body => post_body,
1143
+ :auth_names => auth_names,
1144
+ :return_type => return_type)
1145
+
1146
+ if @api_client.config.debugging
1147
+ @api_client.config.logger.debug "API called: DefaultApi#api_tags_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1148
+ end
1149
+ return data, status_code, headers
1150
+ end
1151
+ # @param [Hash] opts the optional parameters
1152
+ # @option opts [Tag] :body
1153
+ # @return [InlineResponse20013]
1154
+ def api_tags_post(opts = {})
1155
+ data, _status_code, _headers = api_tags_post_with_http_info(opts)
1156
+ data
1157
+ end
1158
+
1159
+ # @param [Hash] opts the optional parameters
1160
+ # @option opts [Tag] :body
1161
+ # @return [Array<(InlineResponse20013, Integer, Hash)>] InlineResponse20013 data, response status code and response headers
1162
+ def api_tags_post_with_http_info(opts = {})
1163
+ if @api_client.config.debugging
1164
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_post ...'
1165
+ end
1166
+ # resource path
1167
+ local_var_path = '/api/tags'
1168
+
1169
+ # query parameters
1170
+ query_params = opts[:query_params] || {}
1171
+
1172
+ # header parameters
1173
+ header_params = opts[:header_params] || {}
1174
+ # HTTP header 'Accept' (if needed)
1175
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1176
+ # HTTP header 'Content-Type'
1177
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1178
+
1179
+ # form parameters
1180
+ form_params = opts[:form_params] || {}
1181
+
1182
+ # http body (model)
1183
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
1184
+
1185
+ return_type = opts[:return_type] || 'InlineResponse20013'
1186
+
1187
+ auth_names = opts[:auth_names] || ['http1']
1188
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1189
+ :header_params => header_params,
1190
+ :query_params => query_params,
1191
+ :form_params => form_params,
1192
+ :body => post_body,
1193
+ :auth_names => auth_names,
1194
+ :return_type => return_type)
1195
+
1196
+ if @api_client.config.debugging
1197
+ @api_client.config.logger.debug "API called: DefaultApi#api_tags_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1198
+ end
1199
+ return data, status_code, headers
1200
+ end
1201
+ # @param [Hash] opts the optional parameters
1202
+ # @return [InlineResponse2005]
1203
+ def api_users_get(opts = {})
1204
+ data, _status_code, _headers = api_users_get_with_http_info(opts)
1205
+ data
1206
+ end
1207
+
1208
+ # @param [Hash] opts the optional parameters
1209
+ # @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
1210
+ def api_users_get_with_http_info(opts = {})
1211
+ if @api_client.config.debugging
1212
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_get ...'
1213
+ end
1214
+ # resource path
1215
+ local_var_path = '/api/users'
1216
+
1217
+ # query parameters
1218
+ query_params = opts[:query_params] || {}
1219
+
1220
+ # header parameters
1221
+ header_params = opts[:header_params] || {}
1222
+ # HTTP header 'Accept' (if needed)
1223
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1224
+
1225
+ # form parameters
1226
+ form_params = opts[:form_params] || {}
1227
+
1228
+ # http body (model)
1229
+ post_body = opts[:body]
1230
+
1231
+ return_type = opts[:return_type] || 'InlineResponse2005'
1232
+
1233
+ auth_names = opts[:auth_names] || ['http1']
1234
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1235
+ :header_params => header_params,
1236
+ :query_params => query_params,
1237
+ :form_params => form_params,
1238
+ :body => post_body,
1239
+ :auth_names => auth_names,
1240
+ :return_type => return_type)
1241
+
1242
+ if @api_client.config.debugging
1243
+ @api_client.config.logger.debug "API called: DefaultApi#api_users_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1244
+ end
1245
+ return data, status_code, headers
1246
+ end
1247
+ # @param id
1248
+ # @param [Hash] opts the optional parameters
1249
+ # @return [InlineResponse2007]
1250
+ def api_users_id_delete(id, opts = {})
1251
+ data, _status_code, _headers = api_users_id_delete_with_http_info(id, opts)
1252
+ data
1253
+ end
1254
+
1255
+ # @param id
1256
+ # @param [Hash] opts the optional parameters
1257
+ # @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
1258
+ def api_users_id_delete_with_http_info(id, opts = {})
1259
+ if @api_client.config.debugging
1260
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_id_delete ...'
1261
+ end
1262
+ # verify the required parameter 'id' is set
1263
+ if @api_client.config.client_side_validation && id.nil?
1264
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_users_id_delete"
1265
+ end
1266
+ # resource path
1267
+ local_var_path = '/api/users/{id}'.sub('{' + 'id' + '}', id.to_s)
1268
+
1269
+ # query parameters
1270
+ query_params = opts[:query_params] || {}
1271
+
1272
+ # header parameters
1273
+ header_params = opts[:header_params] || {}
1274
+ # HTTP header 'Accept' (if needed)
1275
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1276
+
1277
+ # form parameters
1278
+ form_params = opts[:form_params] || {}
1279
+
1280
+ # http body (model)
1281
+ post_body = opts[:body]
1282
+
1283
+ return_type = opts[:return_type] || 'InlineResponse2007'
1284
+
1285
+ auth_names = opts[:auth_names] || ['http1']
1286
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1287
+ :header_params => header_params,
1288
+ :query_params => query_params,
1289
+ :form_params => form_params,
1290
+ :body => post_body,
1291
+ :auth_names => auth_names,
1292
+ :return_type => return_type)
1293
+
1294
+ if @api_client.config.debugging
1295
+ @api_client.config.logger.debug "API called: DefaultApi#api_users_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1296
+ end
1297
+ return data, status_code, headers
1298
+ end
1299
+ # @param id
1300
+ # @param [Hash] opts the optional parameters
1301
+ # @return [InlineResponse2006]
1302
+ def api_users_id_get(id, opts = {})
1303
+ data, _status_code, _headers = api_users_id_get_with_http_info(id, opts)
1304
+ data
1305
+ end
1306
+
1307
+ # @param id
1308
+ # @param [Hash] opts the optional parameters
1309
+ # @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
1310
+ def api_users_id_get_with_http_info(id, opts = {})
1311
+ if @api_client.config.debugging
1312
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_id_get ...'
1313
+ end
1314
+ # verify the required parameter 'id' is set
1315
+ if @api_client.config.client_side_validation && id.nil?
1316
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_users_id_get"
1317
+ end
1318
+ # resource path
1319
+ local_var_path = '/api/users/{id}'.sub('{' + 'id' + '}', id.to_s)
1320
+
1321
+ # query parameters
1322
+ query_params = opts[:query_params] || {}
1323
+
1324
+ # header parameters
1325
+ header_params = opts[:header_params] || {}
1326
+ # HTTP header 'Accept' (if needed)
1327
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1328
+
1329
+ # form parameters
1330
+ form_params = opts[:form_params] || {}
1331
+
1332
+ # http body (model)
1333
+ post_body = opts[:body]
1334
+
1335
+ return_type = opts[:return_type] || 'InlineResponse2006'
1336
+
1337
+ auth_names = opts[:auth_names] || ['http1']
1338
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1339
+ :header_params => header_params,
1340
+ :query_params => query_params,
1341
+ :form_params => form_params,
1342
+ :body => post_body,
1343
+ :auth_names => auth_names,
1344
+ :return_type => return_type)
1345
+
1346
+ if @api_client.config.debugging
1347
+ @api_client.config.logger.debug "API called: DefaultApi#api_users_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1348
+ end
1349
+ return data, status_code, headers
1350
+ end
1351
+ # @param id
1352
+ # @param [Hash] opts the optional parameters
1353
+ # @option opts [User] :body
1354
+ # @return [InlineResponse2006]
1355
+ def api_users_id_put(id, opts = {})
1356
+ data, _status_code, _headers = api_users_id_put_with_http_info(id, opts)
1357
+ data
1358
+ end
1359
+
1360
+ # @param id
1361
+ # @param [Hash] opts the optional parameters
1362
+ # @option opts [User] :body
1363
+ # @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
1364
+ def api_users_id_put_with_http_info(id, opts = {})
1365
+ if @api_client.config.debugging
1366
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_id_put ...'
1367
+ end
1368
+ # verify the required parameter 'id' is set
1369
+ if @api_client.config.client_side_validation && id.nil?
1370
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_users_id_put"
1371
+ end
1372
+ # resource path
1373
+ local_var_path = '/api/users/{id}'.sub('{' + 'id' + '}', id.to_s)
1374
+
1375
+ # query parameters
1376
+ query_params = opts[:query_params] || {}
1377
+
1378
+ # header parameters
1379
+ header_params = opts[:header_params] || {}
1380
+ # HTTP header 'Accept' (if needed)
1381
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1382
+ # HTTP header 'Content-Type'
1383
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1384
+
1385
+ # form parameters
1386
+ form_params = opts[:form_params] || {}
1387
+
1388
+ # http body (model)
1389
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
1390
+
1391
+ return_type = opts[:return_type] || 'InlineResponse2006'
1392
+
1393
+ auth_names = opts[:auth_names] || ['http1']
1394
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1395
+ :header_params => header_params,
1396
+ :query_params => query_params,
1397
+ :form_params => form_params,
1398
+ :body => post_body,
1399
+ :auth_names => auth_names,
1400
+ :return_type => return_type)
1401
+
1402
+ if @api_client.config.debugging
1403
+ @api_client.config.logger.debug "API called: DefaultApi#api_users_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1404
+ end
1405
+ return data, status_code, headers
1406
+ end
1407
+ # @param [Hash] opts the optional parameters
1408
+ # @option opts [User] :body
1409
+ # @return [InlineResponse2006]
1410
+ def api_users_post(opts = {})
1411
+ data, _status_code, _headers = api_users_post_with_http_info(opts)
1412
+ data
1413
+ end
1414
+
1415
+ # @param [Hash] opts the optional parameters
1416
+ # @option opts [User] :body
1417
+ # @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
1418
+ def api_users_post_with_http_info(opts = {})
1419
+ if @api_client.config.debugging
1420
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_post ...'
1421
+ end
1422
+ # resource path
1423
+ local_var_path = '/api/users'
1424
+
1425
+ # query parameters
1426
+ query_params = opts[:query_params] || {}
1427
+
1428
+ # header parameters
1429
+ header_params = opts[:header_params] || {}
1430
+ # HTTP header 'Accept' (if needed)
1431
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1432
+ # HTTP header 'Content-Type'
1433
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1434
+
1435
+ # form parameters
1436
+ form_params = opts[:form_params] || {}
1437
+
1438
+ # http body (model)
1439
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
1440
+
1441
+ return_type = opts[:return_type] || 'InlineResponse2006'
1442
+
1443
+ auth_names = opts[:auth_names] || ['http1']
1444
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1445
+ :header_params => header_params,
1446
+ :query_params => query_params,
1447
+ :form_params => form_params,
1448
+ :body => post_body,
1449
+ :auth_names => auth_names,
1450
+ :return_type => return_type)
1451
+
1452
+ if @api_client.config.debugging
1453
+ @api_client.config.logger.debug "API called: DefaultApi#api_users_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1454
+ end
1455
+ return data, status_code, headers
1456
+ end
1457
+ end
1458
+ end