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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e02157243792ed2da42cf0e768259e5fb5e3efaadeb402619dc1d41db47c44b0
4
- data.tar.gz: 37f8ec819b6635cf2966a407b2d6a6d171d4ad459b4708aba35e87578bbbb52b
3
+ metadata.gz: ef10f207ed544a26c74fb1a7d75c5d63d8afb8a0ff8935dd0d611ef566a9eb9f
4
+ data.tar.gz: 3d305adc37d2ec007967bd419504a654271c2f7bcf2f1ecfa4db62ce338deabf
5
5
  SHA512:
6
- metadata.gz: a1a1933a983f68df58a09dbf738a88d152aa46b992e00426653826f11a86cdd8d1c058238369297b3756e5e37597d30c0b2eb1146aa409054ba46e4be29a4806
7
- data.tar.gz: 83f79b176019641320b8787d67d577cc425d067ec30a4c2f820cf591074272bdaf25b2a1bb5bae2bc7ee23d08a918e9b18d83ff3f2c92988897c3053ca9d8e9e
6
+ metadata.gz: eec06551d32dc728dd895f5a128e60f6b4d3ca1e8a17b5b002e3f3ff9191d84f9422ba5a34cd540c1354235bc7aa7caa074663c9eb31f62753b5f6a3669cacfd
7
+ data.tar.gz: 97b5174f474ae58bfb8d27bca2854d96285343d279f86b998fffe2effb7b53b2fcc2113d8e5ffc6cd5180a378a2fdfe8717f328872cb4d9c2b28c5c2acd7957b
data/README.md CHANGED
@@ -6,8 +6,8 @@ Moonlogs API
6
6
 
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
- - API version: 0.6.1
10
- - Package version: 0.6.1
9
+ - API version: 0.7.0
10
+ - Package version: 0.7.0
11
11
  - Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build moonlogs-ruby.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./moonlogs-ruby-0.6.1.gem
26
+ gem install ./moonlogs-ruby-0.7.0.gem
27
27
  ```
28
- (for development, run `gem install --dev ./moonlogs-ruby-0.6.1.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./moonlogs-ruby-0.7.0.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'moonlogs-ruby', '~> 0.6.1'
34
+ gem 'moonlogs-ruby', '~> 0.7.0'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -58,56 +58,57 @@ MoonlogsRuby.configure do |config|
58
58
  end
59
59
 
60
60
  api_instance = MoonlogsRuby::DefaultApi.new
61
+ opts = {
62
+ body: MoonlogsRuby::RecordRequest.new # RecordRequest |
63
+ }
61
64
 
62
65
  begin
63
- result = api_instance.api_api_tokens_get
66
+ result = api_instance.create_log(opts)
64
67
  p result
65
68
  rescue MoonlogsRuby::ApiError => e
66
- puts "Exception when calling DefaultApi->api_api_tokens_get: #{e}"
69
+ puts "Exception when calling DefaultApi->create_log: #{e}"
67
70
  end
68
71
  # Setup authorization
69
72
  MoonlogsRuby.configure do |config|
70
73
  end
71
74
 
72
75
  api_instance = MoonlogsRuby::DefaultApi.new
73
- id = 56 # Integer |
74
-
76
+ opts = {
77
+ body: MoonlogsRuby::SchemaRequest.new # SchemaRequest |
78
+ }
75
79
 
76
80
  begin
77
- result = api_instance.api_api_tokens_id_delete(id)
81
+ result = api_instance.create_schema(opts)
78
82
  p result
79
83
  rescue MoonlogsRuby::ApiError => e
80
- puts "Exception when calling DefaultApi->api_api_tokens_id_delete: #{e}"
81
- end
82
- # Setup authorization
83
- MoonlogsRuby.configure do |config|
84
+ puts "Exception when calling DefaultApi->create_schema: #{e}"
84
85
  end
85
86
 
86
87
  api_instance = MoonlogsRuby::DefaultApi.new
87
- id = 56 # Integer |
88
-
88
+ opts = {
89
+ body: MoonlogsRuby::Credentials.new # Credentials |
90
+ }
89
91
 
90
92
  begin
91
- result = api_instance.api_api_tokens_id_get(id)
93
+ result = api_instance.create_session(opts)
92
94
  p result
93
95
  rescue MoonlogsRuby::ApiError => e
94
- puts "Exception when calling DefaultApi->api_api_tokens_id_get: #{e}"
96
+ puts "Exception when calling DefaultApi->create_session: #{e}"
95
97
  end
96
98
  # Setup authorization
97
99
  MoonlogsRuby.configure do |config|
98
100
  end
99
101
 
100
102
  api_instance = MoonlogsRuby::DefaultApi.new
101
- id = 56 # Integer |
102
103
  opts = {
103
- body: MoonlogsRuby::ApiToken.new # ApiToken |
104
+ body: MoonlogsRuby::TagRequest.new # TagRequest |
104
105
  }
105
106
 
106
107
  begin
107
- result = api_instance.api_api_tokens_id_put(id, opts)
108
+ result = api_instance.create_tag(opts)
108
109
  p result
109
110
  rescue MoonlogsRuby::ApiError => e
110
- puts "Exception when calling DefaultApi->api_api_tokens_id_put: #{e}"
111
+ puts "Exception when calling DefaultApi->create_tag: #{e}"
111
112
  end
112
113
  # Setup authorization
113
114
  MoonlogsRuby.configure do |config|
@@ -115,14 +116,14 @@ end
115
116
 
116
117
  api_instance = MoonlogsRuby::DefaultApi.new
117
118
  opts = {
118
- body: MoonlogsRuby::ApiToken.new # ApiToken |
119
+ body: MoonlogsRuby::ApiTokenRequest.new # ApiTokenRequest |
119
120
  }
120
121
 
121
122
  begin
122
- result = api_instance.api_api_tokens_post(opts)
123
+ result = api_instance.create_token(opts)
123
124
  p result
124
125
  rescue MoonlogsRuby::ApiError => e
125
- puts "Exception when calling DefaultApi->api_api_tokens_post: #{e}"
126
+ puts "Exception when calling DefaultApi->create_token: #{e}"
126
127
  end
127
128
  # Setup authorization
128
129
  MoonlogsRuby.configure do |config|
@@ -130,30 +131,28 @@ end
130
131
 
131
132
  api_instance = MoonlogsRuby::DefaultApi.new
132
133
  opts = {
133
- page: 56, # Integer |
134
- limit: 56 # Integer |
134
+ body: MoonlogsRuby::UserRequest.new # UserRequest |
135
135
  }
136
136
 
137
137
  begin
138
- result = api_instance.api_logs_get(opts)
138
+ result = api_instance.create_user(opts)
139
139
  p result
140
140
  rescue MoonlogsRuby::ApiError => e
141
- puts "Exception when calling DefaultApi->api_logs_get: #{e}"
141
+ puts "Exception when calling DefaultApi->create_user: #{e}"
142
142
  end
143
143
  # Setup authorization
144
144
  MoonlogsRuby.configure do |config|
145
145
  end
146
146
 
147
147
  api_instance = MoonlogsRuby::DefaultApi.new
148
- schema_name = 'schema_name_example' # String |
149
- hash = 'hash_example' # String |
148
+ id = 56 # Integer |
150
149
 
151
150
 
152
151
  begin
153
- result = api_instance.api_logs_group_schema_name_hash_get(schema_name, hash)
152
+ result = api_instance.delete_schema_by_id(id)
154
153
  p result
155
154
  rescue MoonlogsRuby::ApiError => e
156
- puts "Exception when calling DefaultApi->api_logs_group_schema_name_hash_get: #{e}"
155
+ puts "Exception when calling DefaultApi->delete_schema_by_id: #{e}"
157
156
  end
158
157
  # Setup authorization
159
158
  MoonlogsRuby.configure do |config|
@@ -164,56 +163,54 @@ id = 56 # Integer |
164
163
 
165
164
 
166
165
  begin
167
- result = api_instance.api_logs_id_get(id)
166
+ result = api_instance.delete_tag_by_id(id)
168
167
  p result
169
168
  rescue MoonlogsRuby::ApiError => e
170
- puts "Exception when calling DefaultApi->api_logs_id_get: #{e}"
169
+ puts "Exception when calling DefaultApi->delete_tag_by_id: #{e}"
171
170
  end
172
171
  # Setup authorization
173
172
  MoonlogsRuby.configure do |config|
174
173
  end
175
174
 
176
175
  api_instance = MoonlogsRuby::DefaultApi.new
177
- opts = {
178
- body: MoonlogsRuby::RecordRequest.new # RecordRequest |
179
- }
176
+ id = 56 # Integer |
177
+
180
178
 
181
179
  begin
182
- result = api_instance.api_logs_post(opts)
180
+ result = api_instance.delete_token_by_id(id)
183
181
  p result
184
182
  rescue MoonlogsRuby::ApiError => e
185
- puts "Exception when calling DefaultApi->api_logs_post: #{e}"
183
+ puts "Exception when calling DefaultApi->delete_token_by_id: #{e}"
186
184
  end
187
185
  # Setup authorization
188
186
  MoonlogsRuby.configure do |config|
189
187
  end
190
188
 
191
189
  api_instance = MoonlogsRuby::DefaultApi.new
192
- opts = {
193
- body: MoonlogsRuby::RecordRequest.new, # RecordRequest |
194
- page: 56, # Integer |
195
- limit: 56, # Integer |
196
- from: 'from_example', # String | Time in format \"YYYY-DD-MMTHH:SS\"
197
- to: 'to_example' # String | Time in format \"YYYY-DD-MMTHH:SS\"
198
- }
190
+ id = 56 # Integer |
191
+
199
192
 
200
193
  begin
201
- result = api_instance.api_logs_search_post(opts)
194
+ result = api_instance.delete_user_by_id(id)
202
195
  p result
203
196
  rescue MoonlogsRuby::ApiError => e
204
- puts "Exception when calling DefaultApi->api_logs_search_post: #{e}"
197
+ puts "Exception when calling DefaultApi->delete_user_by_id: #{e}"
205
198
  end
206
199
  # Setup authorization
207
200
  MoonlogsRuby.configure do |config|
208
201
  end
209
202
 
210
203
  api_instance = MoonlogsRuby::DefaultApi.new
204
+ opts = {
205
+ page: 56, # Integer |
206
+ limit: 56 # Integer |
207
+ }
211
208
 
212
209
  begin
213
- result = api_instance.api_schemas_get
210
+ result = api_instance.get_log(opts)
214
211
  p result
215
212
  rescue MoonlogsRuby::ApiError => e
216
- puts "Exception when calling DefaultApi->api_schemas_get: #{e}"
213
+ puts "Exception when calling DefaultApi->get_log: #{e}"
217
214
  end
218
215
  # Setup authorization
219
216
  MoonlogsRuby.configure do |config|
@@ -224,24 +221,25 @@ id = 56 # Integer |
224
221
 
225
222
 
226
223
  begin
227
- result = api_instance.api_schemas_id_delete(id)
224
+ result = api_instance.get_log_by_id(id)
228
225
  p result
229
226
  rescue MoonlogsRuby::ApiError => e
230
- puts "Exception when calling DefaultApi->api_schemas_id_delete: #{e}"
227
+ puts "Exception when calling DefaultApi->get_log_by_id: #{e}"
231
228
  end
232
229
  # Setup authorization
233
230
  MoonlogsRuby.configure do |config|
234
231
  end
235
232
 
236
233
  api_instance = MoonlogsRuby::DefaultApi.new
237
- id = 56 # Integer |
234
+ schema_name = 'schema_name_example' # String |
235
+ hash = 'hash_example' # String |
238
236
 
239
237
 
240
238
  begin
241
- result = api_instance.api_schemas_id_get(id)
239
+ result = api_instance.get_logs_by_schema_and_hash(schema_name, hash)
242
240
  p result
243
241
  rescue MoonlogsRuby::ApiError => e
244
- puts "Exception when calling DefaultApi->api_schemas_id_get: #{e}"
242
+ puts "Exception when calling DefaultApi->get_logs_by_schema_and_hash: #{e}"
245
243
  end
246
244
  # Setup authorization
247
245
  MoonlogsRuby.configure do |config|
@@ -249,89 +247,86 @@ end
249
247
 
250
248
  api_instance = MoonlogsRuby::DefaultApi.new
251
249
  id = 56 # Integer |
252
- opts = {
253
- body: MoonlogsRuby::SchemaRequest.new # SchemaRequest |
254
- }
250
+
255
251
 
256
252
  begin
257
- result = api_instance.api_schemas_id_put(id, opts)
253
+ result = api_instance.get_schema_by_id(id)
258
254
  p result
259
255
  rescue MoonlogsRuby::ApiError => e
260
- puts "Exception when calling DefaultApi->api_schemas_id_put: #{e}"
256
+ puts "Exception when calling DefaultApi->get_schema_by_id: #{e}"
261
257
  end
262
258
  # Setup authorization
263
259
  MoonlogsRuby.configure do |config|
264
260
  end
265
261
 
266
262
  api_instance = MoonlogsRuby::DefaultApi.new
267
- opts = {
268
- body: MoonlogsRuby::SchemaRequest.new # SchemaRequest |
269
- }
270
263
 
271
264
  begin
272
- result = api_instance.api_schemas_post(opts)
265
+ result = api_instance.get_schemas
273
266
  p result
274
267
  rescue MoonlogsRuby::ApiError => e
275
- puts "Exception when calling DefaultApi->api_schemas_post: #{e}"
268
+ puts "Exception when calling DefaultApi->get_schemas: #{e}"
276
269
  end
277
270
 
278
271
  api_instance = MoonlogsRuby::DefaultApi.new
279
272
 
280
273
  begin
281
- result = api_instance.api_session_get
274
+ result = api_instance.get_session
282
275
  p result
283
276
  rescue MoonlogsRuby::ApiError => e
284
- puts "Exception when calling DefaultApi->api_session_get: #{e}"
277
+ puts "Exception when calling DefaultApi->get_session: #{e}"
278
+ end
279
+ # Setup authorization
280
+ MoonlogsRuby.configure do |config|
285
281
  end
286
282
 
287
283
  api_instance = MoonlogsRuby::DefaultApi.new
288
- opts = {
289
- body: MoonlogsRuby::Credentials.new # Credentials |
290
- }
284
+ id = 56 # Integer |
285
+
291
286
 
292
287
  begin
293
- result = api_instance.api_session_post(opts)
288
+ result = api_instance.get_tag_by_id(id)
294
289
  p result
295
290
  rescue MoonlogsRuby::ApiError => e
296
- puts "Exception when calling DefaultApi->api_session_post: #{e}"
291
+ puts "Exception when calling DefaultApi->get_tag_by_id: #{e}"
292
+ end
293
+ # Setup authorization
294
+ MoonlogsRuby.configure do |config|
297
295
  end
298
296
 
299
297
  api_instance = MoonlogsRuby::DefaultApi.new
300
- opts = {
301
- body: MoonlogsRuby::UserResponse.new # UserResponse |
302
- }
303
298
 
304
299
  begin
305
- result = api_instance.api_setup_register_admin_post(opts)
300
+ result = api_instance.get_tags
306
301
  p result
307
302
  rescue MoonlogsRuby::ApiError => e
308
- puts "Exception when calling DefaultApi->api_setup_register_admin_post: #{e}"
303
+ puts "Exception when calling DefaultApi->get_tags: #{e}"
309
304
  end
310
305
  # Setup authorization
311
306
  MoonlogsRuby.configure do |config|
312
307
  end
313
308
 
314
309
  api_instance = MoonlogsRuby::DefaultApi.new
310
+ id = 56 # Integer |
311
+
315
312
 
316
313
  begin
317
- result = api_instance.api_tags_get
314
+ result = api_instance.get_token_by_id(id)
318
315
  p result
319
316
  rescue MoonlogsRuby::ApiError => e
320
- puts "Exception when calling DefaultApi->api_tags_get: #{e}"
317
+ puts "Exception when calling DefaultApi->get_token_by_id: #{e}"
321
318
  end
322
319
  # Setup authorization
323
320
  MoonlogsRuby.configure do |config|
324
321
  end
325
322
 
326
323
  api_instance = MoonlogsRuby::DefaultApi.new
327
- id = 56 # Integer |
328
-
329
324
 
330
325
  begin
331
- result = api_instance.api_tags_id_delete(id)
326
+ result = api_instance.get_tokens
332
327
  p result
333
328
  rescue MoonlogsRuby::ApiError => e
334
- puts "Exception when calling DefaultApi->api_tags_id_delete: #{e}"
329
+ puts "Exception when calling DefaultApi->get_tokens: #{e}"
335
330
  end
336
331
  # Setup authorization
337
332
  MoonlogsRuby.configure do |config|
@@ -342,53 +337,53 @@ id = 56 # Integer |
342
337
 
343
338
 
344
339
  begin
345
- result = api_instance.api_tags_id_get(id)
340
+ result = api_instance.get_user_by_id(id)
346
341
  p result
347
342
  rescue MoonlogsRuby::ApiError => e
348
- puts "Exception when calling DefaultApi->api_tags_id_get: #{e}"
343
+ puts "Exception when calling DefaultApi->get_user_by_id: #{e}"
349
344
  end
350
345
  # Setup authorization
351
346
  MoonlogsRuby.configure do |config|
352
347
  end
353
348
 
354
349
  api_instance = MoonlogsRuby::DefaultApi.new
355
- id = 56 # Integer |
356
- opts = {
357
- body: MoonlogsRuby::Tag.new # Tag |
358
- }
359
350
 
360
351
  begin
361
- result = api_instance.api_tags_id_put(id, opts)
352
+ result = api_instance.get_users
362
353
  p result
363
354
  rescue MoonlogsRuby::ApiError => e
364
- puts "Exception when calling DefaultApi->api_tags_id_put: #{e}"
365
- end
366
- # Setup authorization
367
- MoonlogsRuby.configure do |config|
355
+ puts "Exception when calling DefaultApi->get_users: #{e}"
368
356
  end
369
357
 
370
358
  api_instance = MoonlogsRuby::DefaultApi.new
371
359
  opts = {
372
- body: MoonlogsRuby::Tag.new # Tag |
360
+ body: MoonlogsRuby::UserRequest.new # UserRequest |
373
361
  }
374
362
 
375
363
  begin
376
- result = api_instance.api_tags_post(opts)
364
+ result = api_instance.register_admin(opts)
377
365
  p result
378
366
  rescue MoonlogsRuby::ApiError => e
379
- puts "Exception when calling DefaultApi->api_tags_post: #{e}"
367
+ puts "Exception when calling DefaultApi->register_admin: #{e}"
380
368
  end
381
369
  # Setup authorization
382
370
  MoonlogsRuby.configure do |config|
383
371
  end
384
372
 
385
373
  api_instance = MoonlogsRuby::DefaultApi.new
374
+ opts = {
375
+ body: MoonlogsRuby::RecordRequest.new, # RecordRequest |
376
+ page: 56, # Integer |
377
+ limit: 56, # Integer |
378
+ from: 'from_example', # String | Time in format \"YYYY-DD-MMTHH:SS\"
379
+ to: 'to_example' # String | Time in format \"YYYY-DD-MMTHH:SS\"
380
+ }
386
381
 
387
382
  begin
388
- result = api_instance.api_users_get
383
+ result = api_instance.search_logs(opts)
389
384
  p result
390
385
  rescue MoonlogsRuby::ApiError => e
391
- puts "Exception when calling DefaultApi->api_users_get: #{e}"
386
+ puts "Exception when calling DefaultApi->search_logs: #{e}"
392
387
  end
393
388
  # Setup authorization
394
389
  MoonlogsRuby.configure do |config|
@@ -396,13 +391,15 @@ end
396
391
 
397
392
  api_instance = MoonlogsRuby::DefaultApi.new
398
393
  id = 56 # Integer |
399
-
394
+ opts = {
395
+ body: MoonlogsRuby::SchemaRequest.new # SchemaRequest |
396
+ }
400
397
 
401
398
  begin
402
- result = api_instance.api_users_id_delete(id)
399
+ result = api_instance.update_schema_by_id(id, opts)
403
400
  p result
404
401
  rescue MoonlogsRuby::ApiError => e
405
- puts "Exception when calling DefaultApi->api_users_id_delete: #{e}"
402
+ puts "Exception when calling DefaultApi->update_schema_by_id: #{e}"
406
403
  end
407
404
  # Setup authorization
408
405
  MoonlogsRuby.configure do |config|
@@ -410,13 +407,15 @@ end
410
407
 
411
408
  api_instance = MoonlogsRuby::DefaultApi.new
412
409
  id = 56 # Integer |
413
-
410
+ opts = {
411
+ body: MoonlogsRuby::TagRequest.new # TagRequest |
412
+ }
414
413
 
415
414
  begin
416
- result = api_instance.api_users_id_get(id)
415
+ result = api_instance.update_tag_by_id(id, opts)
417
416
  p result
418
417
  rescue MoonlogsRuby::ApiError => e
419
- puts "Exception when calling DefaultApi->api_users_id_get: #{e}"
418
+ puts "Exception when calling DefaultApi->update_tag_by_id: #{e}"
420
419
  end
421
420
  # Setup authorization
422
421
  MoonlogsRuby.configure do |config|
@@ -425,29 +424,30 @@ end
425
424
  api_instance = MoonlogsRuby::DefaultApi.new
426
425
  id = 56 # Integer |
427
426
  opts = {
428
- body: MoonlogsRuby::UserRequest.new # UserRequest |
427
+ body: MoonlogsRuby::ApiTokenRequest.new # ApiTokenRequest |
429
428
  }
430
429
 
431
430
  begin
432
- result = api_instance.api_users_id_put(id, opts)
431
+ result = api_instance.update_token_by_id(id, opts)
433
432
  p result
434
433
  rescue MoonlogsRuby::ApiError => e
435
- puts "Exception when calling DefaultApi->api_users_id_put: #{e}"
434
+ puts "Exception when calling DefaultApi->update_token_by_id: #{e}"
436
435
  end
437
436
  # Setup authorization
438
437
  MoonlogsRuby.configure do |config|
439
438
  end
440
439
 
441
440
  api_instance = MoonlogsRuby::DefaultApi.new
441
+ id = 56 # Integer |
442
442
  opts = {
443
443
  body: MoonlogsRuby::UserRequest.new # UserRequest |
444
444
  }
445
445
 
446
446
  begin
447
- result = api_instance.api_users_post(opts)
447
+ result = api_instance.update_user_by_id(id, opts)
448
448
  p result
449
449
  rescue MoonlogsRuby::ApiError => e
450
- puts "Exception when calling DefaultApi->api_users_post: #{e}"
450
+ puts "Exception when calling DefaultApi->update_user_by_id: #{e}"
451
451
  end
452
452
  ```
453
453
 
@@ -457,38 +457,39 @@ All URIs are relative to */*
457
457
 
458
458
  Class | Method | HTTP request | Description
459
459
  ------------ | ------------- | ------------- | -------------
460
- *MoonlogsRuby::DefaultApi* | [**api_api_tokens_get**](docs/DefaultApi.md#api_api_tokens_get) | **GET** /api/api_tokens |
461
- *MoonlogsRuby::DefaultApi* | [**api_api_tokens_id_delete**](docs/DefaultApi.md#api_api_tokens_id_delete) | **DELETE** /api/api_tokens/{id} |
462
- *MoonlogsRuby::DefaultApi* | [**api_api_tokens_id_get**](docs/DefaultApi.md#api_api_tokens_id_get) | **GET** /api/api_tokens/{id} |
463
- *MoonlogsRuby::DefaultApi* | [**api_api_tokens_id_put**](docs/DefaultApi.md#api_api_tokens_id_put) | **PUT** /api/api_tokens/{id} |
464
- *MoonlogsRuby::DefaultApi* | [**api_api_tokens_post**](docs/DefaultApi.md#api_api_tokens_post) | **POST** /api/api_tokens |
465
- *MoonlogsRuby::DefaultApi* | [**api_logs_get**](docs/DefaultApi.md#api_logs_get) | **GET** /api/logs |
466
- *MoonlogsRuby::DefaultApi* | [**api_logs_group_schema_name_hash_get**](docs/DefaultApi.md#api_logs_group_schema_name_hash_get) | **GET** /api/logs/group/{schema_name}/{hash} |
467
- *MoonlogsRuby::DefaultApi* | [**api_logs_id_get**](docs/DefaultApi.md#api_logs_id_get) | **GET** /api/logs/{id} |
468
- *MoonlogsRuby::DefaultApi* | [**api_logs_post**](docs/DefaultApi.md#api_logs_post) | **POST** /api/logs |
469
- *MoonlogsRuby::DefaultApi* | [**api_logs_search_post**](docs/DefaultApi.md#api_logs_search_post) | **POST** /api/logs/search |
470
- *MoonlogsRuby::DefaultApi* | [**api_schemas_get**](docs/DefaultApi.md#api_schemas_get) | **GET** /api/schemas |
471
- *MoonlogsRuby::DefaultApi* | [**api_schemas_id_delete**](docs/DefaultApi.md#api_schemas_id_delete) | **DELETE** /api/schemas/{id} |
472
- *MoonlogsRuby::DefaultApi* | [**api_schemas_id_get**](docs/DefaultApi.md#api_schemas_id_get) | **GET** /api/schemas/{id} |
473
- *MoonlogsRuby::DefaultApi* | [**api_schemas_id_put**](docs/DefaultApi.md#api_schemas_id_put) | **PUT** /api/schemas/{id} |
474
- *MoonlogsRuby::DefaultApi* | [**api_schemas_post**](docs/DefaultApi.md#api_schemas_post) | **POST** /api/schemas |
475
- *MoonlogsRuby::DefaultApi* | [**api_session_get**](docs/DefaultApi.md#api_session_get) | **GET** /api/session |
476
- *MoonlogsRuby::DefaultApi* | [**api_session_post**](docs/DefaultApi.md#api_session_post) | **POST** /api/session |
477
- *MoonlogsRuby::DefaultApi* | [**api_setup_register_admin_post**](docs/DefaultApi.md#api_setup_register_admin_post) | **POST** /api/setup/register_admin |
478
- *MoonlogsRuby::DefaultApi* | [**api_tags_get**](docs/DefaultApi.md#api_tags_get) | **GET** /api/tags |
479
- *MoonlogsRuby::DefaultApi* | [**api_tags_id_delete**](docs/DefaultApi.md#api_tags_id_delete) | **DELETE** /api/tags/{id} |
480
- *MoonlogsRuby::DefaultApi* | [**api_tags_id_get**](docs/DefaultApi.md#api_tags_id_get) | **GET** /api/tags/{id} |
481
- *MoonlogsRuby::DefaultApi* | [**api_tags_id_put**](docs/DefaultApi.md#api_tags_id_put) | **PUT** /api/tags/{id} |
482
- *MoonlogsRuby::DefaultApi* | [**api_tags_post**](docs/DefaultApi.md#api_tags_post) | **POST** /api/tags |
483
- *MoonlogsRuby::DefaultApi* | [**api_users_get**](docs/DefaultApi.md#api_users_get) | **GET** /api/users |
484
- *MoonlogsRuby::DefaultApi* | [**api_users_id_delete**](docs/DefaultApi.md#api_users_id_delete) | **DELETE** /api/users/{id} |
485
- *MoonlogsRuby::DefaultApi* | [**api_users_id_get**](docs/DefaultApi.md#api_users_id_get) | **GET** /api/users/{id} |
486
- *MoonlogsRuby::DefaultApi* | [**api_users_id_put**](docs/DefaultApi.md#api_users_id_put) | **PUT** /api/users/{id} |
487
- *MoonlogsRuby::DefaultApi* | [**api_users_post**](docs/DefaultApi.md#api_users_post) | **POST** /api/users |
460
+ *MoonlogsRuby::DefaultApi* | [**create_log**](docs/DefaultApi.md#create_log) | **POST** /api/logs |
461
+ *MoonlogsRuby::DefaultApi* | [**create_schema**](docs/DefaultApi.md#create_schema) | **POST** /api/schemas |
462
+ *MoonlogsRuby::DefaultApi* | [**create_session**](docs/DefaultApi.md#create_session) | **POST** /api/session |
463
+ *MoonlogsRuby::DefaultApi* | [**create_tag**](docs/DefaultApi.md#create_tag) | **POST** /api/tags |
464
+ *MoonlogsRuby::DefaultApi* | [**create_token**](docs/DefaultApi.md#create_token) | **POST** /api/api_tokens |
465
+ *MoonlogsRuby::DefaultApi* | [**create_user**](docs/DefaultApi.md#create_user) | **POST** /api/users |
466
+ *MoonlogsRuby::DefaultApi* | [**delete_schema_by_id**](docs/DefaultApi.md#delete_schema_by_id) | **DELETE** /api/schemas/{id} |
467
+ *MoonlogsRuby::DefaultApi* | [**delete_tag_by_id**](docs/DefaultApi.md#delete_tag_by_id) | **DELETE** /api/tags/{id} |
468
+ *MoonlogsRuby::DefaultApi* | [**delete_token_by_id**](docs/DefaultApi.md#delete_token_by_id) | **DELETE** /api/api_tokens/{id} |
469
+ *MoonlogsRuby::DefaultApi* | [**delete_user_by_id**](docs/DefaultApi.md#delete_user_by_id) | **DELETE** /api/users/{id} |
470
+ *MoonlogsRuby::DefaultApi* | [**get_log**](docs/DefaultApi.md#get_log) | **GET** /api/logs |
471
+ *MoonlogsRuby::DefaultApi* | [**get_log_by_id**](docs/DefaultApi.md#get_log_by_id) | **GET** /api/logs/{id} |
472
+ *MoonlogsRuby::DefaultApi* | [**get_logs_by_schema_and_hash**](docs/DefaultApi.md#get_logs_by_schema_and_hash) | **GET** /api/logs/group/{schema_name}/{hash} |
473
+ *MoonlogsRuby::DefaultApi* | [**get_schema_by_id**](docs/DefaultApi.md#get_schema_by_id) | **GET** /api/schemas/{id} |
474
+ *MoonlogsRuby::DefaultApi* | [**get_schemas**](docs/DefaultApi.md#get_schemas) | **GET** /api/schemas |
475
+ *MoonlogsRuby::DefaultApi* | [**get_session**](docs/DefaultApi.md#get_session) | **GET** /api/session |
476
+ *MoonlogsRuby::DefaultApi* | [**get_tag_by_id**](docs/DefaultApi.md#get_tag_by_id) | **GET** /api/tags/{id} |
477
+ *MoonlogsRuby::DefaultApi* | [**get_tags**](docs/DefaultApi.md#get_tags) | **GET** /api/tags |
478
+ *MoonlogsRuby::DefaultApi* | [**get_token_by_id**](docs/DefaultApi.md#get_token_by_id) | **GET** /api/api_tokens/{id} |
479
+ *MoonlogsRuby::DefaultApi* | [**get_tokens**](docs/DefaultApi.md#get_tokens) | **GET** /api/api_tokens |
480
+ *MoonlogsRuby::DefaultApi* | [**get_user_by_id**](docs/DefaultApi.md#get_user_by_id) | **GET** /api/users/{id} |
481
+ *MoonlogsRuby::DefaultApi* | [**get_users**](docs/DefaultApi.md#get_users) | **GET** /api/users |
482
+ *MoonlogsRuby::DefaultApi* | [**register_admin**](docs/DefaultApi.md#register_admin) | **POST** /api/setup/register_admin |
483
+ *MoonlogsRuby::DefaultApi* | [**search_logs**](docs/DefaultApi.md#search_logs) | **POST** /api/logs/search |
484
+ *MoonlogsRuby::DefaultApi* | [**update_schema_by_id**](docs/DefaultApi.md#update_schema_by_id) | **PUT** /api/schemas/{id} |
485
+ *MoonlogsRuby::DefaultApi* | [**update_tag_by_id**](docs/DefaultApi.md#update_tag_by_id) | **PUT** /api/tags/{id} |
486
+ *MoonlogsRuby::DefaultApi* | [**update_token_by_id**](docs/DefaultApi.md#update_token_by_id) | **PUT** /api/api_tokens/{id} |
487
+ *MoonlogsRuby::DefaultApi* | [**update_user_by_id**](docs/DefaultApi.md#update_user_by_id) | **PUT** /api/users/{id} |
488
488
 
489
489
  ## Documentation for Models
490
490
 
491
- - [MoonlogsRuby::ApiToken](docs/ApiToken.md)
491
+ - [MoonlogsRuby::ApiTokenRequest](docs/ApiTokenRequest.md)
492
+ - [MoonlogsRuby::ApiTokenResponse](docs/ApiTokenResponse.md)
492
493
  - [MoonlogsRuby::Credentials](docs/Credentials.md)
493
494
  - [MoonlogsRuby::InlineResponse200](docs/InlineResponse200.md)
494
495
  - [MoonlogsRuby::InlineResponse2001](docs/InlineResponse2001.md)
@@ -518,7 +519,8 @@ Class | Method | HTTP request | Description
518
519
  - [MoonlogsRuby::SchemaRequest](docs/SchemaRequest.md)
519
520
  - [MoonlogsRuby::SchemaResponse](docs/SchemaResponse.md)
520
521
  - [MoonlogsRuby::Session](docs/Session.md)
521
- - [MoonlogsRuby::Tag](docs/Tag.md)
522
+ - [MoonlogsRuby::TagRequest](docs/TagRequest.md)
523
+ - [MoonlogsRuby::TagResponse](docs/TagResponse.md)
522
524
  - [MoonlogsRuby::UserRequest](docs/UserRequest.md)
523
525
  - [MoonlogsRuby::UserResponse](docs/UserResponse.md)
524
526
 
@@ -0,0 +1,7 @@
1
+ # MoonlogsRuby::ApiTokenRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | |
7
+
@@ -0,0 +1,10 @@
1
+ # MoonlogsRuby::ApiTokenResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | [**BigDecimal**](BigDecimal.md) | |
7
+ **token** | **String** | |
8
+ **name** | **String** | |
9
+ **is_revoked** | **BOOLEAN** | |
10
+