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