SwaggerStableDiffusionWebui 1.0.394ffa7b0a7fff3ec484bcd084e673a8b301ccc8

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 (51) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +150 -0
  4. data/Rakefile +10 -0
  5. data/SwaggerStableDiffusionWebui.gemspec +38 -0
  6. data/docs/BodyDetectControlnetDetectPost.md +26 -0
  7. data/docs/DefaultApi.md +3127 -0
  8. data/docs/Estimation.md +30 -0
  9. data/docs/HTTPValidationError.md +18 -0
  10. data/docs/LocationInner.md +15 -0
  11. data/docs/PredictBody.md +30 -0
  12. data/docs/ProgressRequest.md +20 -0
  13. data/docs/ProgressResponse.md +32 -0
  14. data/docs/QuicksettingsHint.md +20 -0
  15. data/docs/Request.md +15 -0
  16. data/docs/ResetBody.md +20 -0
  17. data/docs/ValidationError.md +22 -0
  18. data/git_push.sh +57 -0
  19. data/lib/SwaggerStableDiffusionWebui/api/default_api.rb +3027 -0
  20. data/lib/SwaggerStableDiffusionWebui/api_client.rb +391 -0
  21. data/lib/SwaggerStableDiffusionWebui/api_error.rb +58 -0
  22. data/lib/SwaggerStableDiffusionWebui/configuration.rb +288 -0
  23. data/lib/SwaggerStableDiffusionWebui/models/body_detect_controlnet_detect_post.rb +265 -0
  24. data/lib/SwaggerStableDiffusionWebui/models/estimation.rb +285 -0
  25. data/lib/SwaggerStableDiffusionWebui/models/http_validation_error.rb +221 -0
  26. data/lib/SwaggerStableDiffusionWebui/models/location_inner.rb +230 -0
  27. data/lib/SwaggerStableDiffusionWebui/models/predict_body.rb +283 -0
  28. data/lib/SwaggerStableDiffusionWebui/models/progress_request.rb +232 -0
  29. data/lib/SwaggerStableDiffusionWebui/models/progress_response.rb +301 -0
  30. data/lib/SwaggerStableDiffusionWebui/models/quicksettings_hint.rb +238 -0
  31. data/lib/SwaggerStableDiffusionWebui/models/request.rb +230 -0
  32. data/lib/SwaggerStableDiffusionWebui/models/reset_body.rb +238 -0
  33. data/lib/SwaggerStableDiffusionWebui/models/validation_error.rb +254 -0
  34. data/lib/SwaggerStableDiffusionWebui/version.rb +15 -0
  35. data/lib/SwaggerStableDiffusionWebui.rb +51 -0
  36. data/spec/api/default_api_spec.rb +574 -0
  37. data/spec/api_client_spec.rb +228 -0
  38. data/spec/configuration_spec.rb +42 -0
  39. data/spec/models/body_detect_controlnet_detect_post_spec.rb +58 -0
  40. data/spec/models/estimation_spec.rb +70 -0
  41. data/spec/models/http_validation_error_spec.rb +34 -0
  42. data/spec/models/location_inner_spec.rb +28 -0
  43. data/spec/models/predict_body_spec.rb +70 -0
  44. data/spec/models/progress_request_spec.rb +40 -0
  45. data/spec/models/progress_response_spec.rb +76 -0
  46. data/spec/models/quicksettings_hint_spec.rb +40 -0
  47. data/spec/models/request_spec.rb +28 -0
  48. data/spec/models/reset_body_spec.rb +40 -0
  49. data/spec/models/validation_error_spec.rb +46 -0
  50. data/spec/spec_helper.rb +111 -0
  51. metadata +147 -0
@@ -0,0 +1,3027 @@
1
+ =begin
2
+ #FastAPI
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.6.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module SwaggerStableDiffusionWebui
16
+ class DefaultApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Api Info
23
+ # @param [Hash] opts the optional parameters
24
+ # @option opts [Boolean] :serialize (default to true)
25
+ # @return [Object]
26
+ def api_info_info_get(opts = {})
27
+ data, _status_code, _headers = api_info_info_get_with_http_info(opts)
28
+ data
29
+ end
30
+
31
+ # Api Info
32
+ # @param [Hash] opts the optional parameters
33
+ # @option opts [Boolean] :serialize (default to true)
34
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
35
+ def api_info_info_get_with_http_info(opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_info_info_get ...'
38
+ end
39
+ # resource path
40
+ local_var_path = '/info'
41
+
42
+ # query parameters
43
+ query_params = opts[:query_params] || {}
44
+ query_params[:'serialize'] = opts[:'serialize'] if !opts[:'serialize'].nil?
45
+
46
+ # header parameters
47
+ header_params = opts[:header_params] || {}
48
+ # HTTP header 'Accept' (if needed)
49
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
50
+
51
+ # form parameters
52
+ form_params = opts[:form_params] || {}
53
+
54
+ # http body (model)
55
+ post_body = opts[:debug_body]
56
+
57
+ # return_type
58
+ return_type = opts[:debug_return_type] || 'Object'
59
+
60
+ # auth_names
61
+ auth_names = opts[:debug_auth_names] || []
62
+
63
+ new_options = opts.merge(
64
+ :operation => :"DefaultApi.api_info_info_get",
65
+ :header_params => header_params,
66
+ :query_params => query_params,
67
+ :form_params => form_params,
68
+ :body => post_body,
69
+ :auth_names => auth_names,
70
+ :return_type => return_type
71
+ )
72
+
73
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
74
+ if @api_client.config.debugging
75
+ @api_client.config.logger.debug "API called: DefaultApi#api_info_info_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
76
+ end
77
+ return data, status_code, headers
78
+ end
79
+
80
+ # Api Info
81
+ # @param [Hash] opts the optional parameters
82
+ # @option opts [Boolean] :serialize (default to true)
83
+ # @return [Object]
84
+ def api_info_info_get_0(opts = {})
85
+ data, _status_code, _headers = api_info_info_get_0_with_http_info(opts)
86
+ data
87
+ end
88
+
89
+ # Api Info
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [Boolean] :serialize (default to true)
92
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
93
+ def api_info_info_get_0_with_http_info(opts = {})
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug 'Calling API: DefaultApi.api_info_info_get_0 ...'
96
+ end
97
+ # resource path
98
+ local_var_path = '/info/'
99
+
100
+ # query parameters
101
+ query_params = opts[:query_params] || {}
102
+ query_params[:'serialize'] = opts[:'serialize'] if !opts[:'serialize'].nil?
103
+
104
+ # header parameters
105
+ header_params = opts[:header_params] || {}
106
+ # HTTP header 'Accept' (if needed)
107
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
108
+
109
+ # form parameters
110
+ form_params = opts[:form_params] || {}
111
+
112
+ # http body (model)
113
+ post_body = opts[:debug_body]
114
+
115
+ # return_type
116
+ return_type = opts[:debug_return_type] || 'Object'
117
+
118
+ # auth_names
119
+ auth_names = opts[:debug_auth_names] || []
120
+
121
+ new_options = opts.merge(
122
+ :operation => :"DefaultApi.api_info_info_get_0",
123
+ :header_params => header_params,
124
+ :query_params => query_params,
125
+ :form_params => form_params,
126
+ :body => post_body,
127
+ :auth_names => auth_names,
128
+ :return_type => return_type
129
+ )
130
+
131
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
132
+ if @api_client.config.debugging
133
+ @api_client.config.logger.debug "API called: DefaultApi#api_info_info_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
134
+ end
135
+ return data, status_code, headers
136
+ end
137
+
138
+ # App Id
139
+ # @param [Hash] opts the optional parameters
140
+ # @return [Object]
141
+ def app_id_app_id_get(opts = {})
142
+ data, _status_code, _headers = app_id_app_id_get_with_http_info(opts)
143
+ data
144
+ end
145
+
146
+ # App Id
147
+ # @param [Hash] opts the optional parameters
148
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
149
+ def app_id_app_id_get_with_http_info(opts = {})
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug 'Calling API: DefaultApi.app_id_app_id_get ...'
152
+ end
153
+ # resource path
154
+ local_var_path = '/app_id/'
155
+
156
+ # query parameters
157
+ query_params = opts[:query_params] || {}
158
+
159
+ # header parameters
160
+ header_params = opts[:header_params] || {}
161
+ # HTTP header 'Accept' (if needed)
162
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
163
+
164
+ # form parameters
165
+ form_params = opts[:form_params] || {}
166
+
167
+ # http body (model)
168
+ post_body = opts[:debug_body]
169
+
170
+ # return_type
171
+ return_type = opts[:debug_return_type] || 'Object'
172
+
173
+ # auth_names
174
+ auth_names = opts[:debug_auth_names] || []
175
+
176
+ new_options = opts.merge(
177
+ :operation => :"DefaultApi.app_id_app_id_get",
178
+ :header_params => header_params,
179
+ :query_params => query_params,
180
+ :form_params => form_params,
181
+ :body => post_body,
182
+ :auth_names => auth_names,
183
+ :return_type => return_type
184
+ )
185
+
186
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
187
+ if @api_client.config.debugging
188
+ @api_client.config.logger.debug "API called: DefaultApi#app_id_app_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
+ end
190
+ return data, status_code, headers
191
+ end
192
+
193
+ # App Id
194
+ # @param [Hash] opts the optional parameters
195
+ # @return [Object]
196
+ def app_id_app_id_get_0(opts = {})
197
+ data, _status_code, _headers = app_id_app_id_get_0_with_http_info(opts)
198
+ data
199
+ end
200
+
201
+ # App Id
202
+ # @param [Hash] opts the optional parameters
203
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
204
+ def app_id_app_id_get_0_with_http_info(opts = {})
205
+ if @api_client.config.debugging
206
+ @api_client.config.logger.debug 'Calling API: DefaultApi.app_id_app_id_get_0 ...'
207
+ end
208
+ # resource path
209
+ local_var_path = '/app_id'
210
+
211
+ # query parameters
212
+ query_params = opts[:query_params] || {}
213
+
214
+ # header parameters
215
+ header_params = opts[:header_params] || {}
216
+ # HTTP header 'Accept' (if needed)
217
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
218
+
219
+ # form parameters
220
+ form_params = opts[:form_params] || {}
221
+
222
+ # http body (model)
223
+ post_body = opts[:debug_body]
224
+
225
+ # return_type
226
+ return_type = opts[:debug_return_type] || 'Object'
227
+
228
+ # auth_names
229
+ auth_names = opts[:debug_auth_names] || []
230
+
231
+ new_options = opts.merge(
232
+ :operation => :"DefaultApi.app_id_app_id_get_0",
233
+ :header_params => header_params,
234
+ :query_params => query_params,
235
+ :form_params => form_params,
236
+ :body => post_body,
237
+ :auth_names => auth_names,
238
+ :return_type => return_type
239
+ )
240
+
241
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
242
+ if @api_client.config.debugging
243
+ @api_client.config.logger.debug "API called: DefaultApi#app_id_app_id_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
244
+ end
245
+ return data, status_code, headers
246
+ end
247
+
248
+ # Build Resource
249
+ # @param path [String]
250
+ # @param [Hash] opts the optional parameters
251
+ # @return [Object]
252
+ def build_resource_assets_path_get(path, opts = {})
253
+ data, _status_code, _headers = build_resource_assets_path_get_with_http_info(path, opts)
254
+ data
255
+ end
256
+
257
+ # Build Resource
258
+ # @param path [String]
259
+ # @param [Hash] opts the optional parameters
260
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
261
+ def build_resource_assets_path_get_with_http_info(path, opts = {})
262
+ if @api_client.config.debugging
263
+ @api_client.config.logger.debug 'Calling API: DefaultApi.build_resource_assets_path_get ...'
264
+ end
265
+ # verify the required parameter 'path' is set
266
+ if @api_client.config.client_side_validation && path.nil?
267
+ fail ArgumentError, "Missing the required parameter 'path' when calling DefaultApi.build_resource_assets_path_get"
268
+ end
269
+ # resource path
270
+ local_var_path = '/assets/{path}'.sub('{' + 'path' + '}', CGI.escape(path.to_s))
271
+
272
+ # query parameters
273
+ query_params = opts[:query_params] || {}
274
+
275
+ # header parameters
276
+ header_params = opts[:header_params] || {}
277
+ # HTTP header 'Accept' (if needed)
278
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
279
+
280
+ # form parameters
281
+ form_params = opts[:form_params] || {}
282
+
283
+ # http body (model)
284
+ post_body = opts[:debug_body]
285
+
286
+ # return_type
287
+ return_type = opts[:debug_return_type] || 'Object'
288
+
289
+ # auth_names
290
+ auth_names = opts[:debug_auth_names] || []
291
+
292
+ new_options = opts.merge(
293
+ :operation => :"DefaultApi.build_resource_assets_path_get",
294
+ :header_params => header_params,
295
+ :query_params => query_params,
296
+ :form_params => form_params,
297
+ :body => post_body,
298
+ :auth_names => auth_names,
299
+ :return_type => return_type
300
+ )
301
+
302
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
303
+ if @api_client.config.debugging
304
+ @api_client.config.logger.debug "API called: DefaultApi#build_resource_assets_path_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
305
+ end
306
+ return data, status_code, headers
307
+ end
308
+
309
+ # Detect
310
+ # @param [Hash] opts the optional parameters
311
+ # @option opts [BodyDetectControlnetDetectPost] :body_detect_controlnet_detect_post
312
+ # @return [Object]
313
+ def detect_controlnet_detect_post(opts = {})
314
+ data, _status_code, _headers = detect_controlnet_detect_post_with_http_info(opts)
315
+ data
316
+ end
317
+
318
+ # Detect
319
+ # @param [Hash] opts the optional parameters
320
+ # @option opts [BodyDetectControlnetDetectPost] :body_detect_controlnet_detect_post
321
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
322
+ def detect_controlnet_detect_post_with_http_info(opts = {})
323
+ if @api_client.config.debugging
324
+ @api_client.config.logger.debug 'Calling API: DefaultApi.detect_controlnet_detect_post ...'
325
+ end
326
+ # resource path
327
+ local_var_path = '/controlnet/detect'
328
+
329
+ # query parameters
330
+ query_params = opts[:query_params] || {}
331
+
332
+ # header parameters
333
+ header_params = opts[:header_params] || {}
334
+ # HTTP header 'Accept' (if needed)
335
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
336
+ # HTTP header 'Content-Type'
337
+ content_type = @api_client.select_header_content_type(['application/json'])
338
+ if !content_type.nil?
339
+ header_params['Content-Type'] = content_type
340
+ end
341
+
342
+ # form parameters
343
+ form_params = opts[:form_params] || {}
344
+
345
+ # http body (model)
346
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body_detect_controlnet_detect_post'])
347
+
348
+ # return_type
349
+ return_type = opts[:debug_return_type] || 'Object'
350
+
351
+ # auth_names
352
+ auth_names = opts[:debug_auth_names] || []
353
+
354
+ new_options = opts.merge(
355
+ :operation => :"DefaultApi.detect_controlnet_detect_post",
356
+ :header_params => header_params,
357
+ :query_params => query_params,
358
+ :form_params => form_params,
359
+ :body => post_body,
360
+ :auth_names => auth_names,
361
+ :return_type => return_type
362
+ )
363
+
364
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
365
+ if @api_client.config.debugging
366
+ @api_client.config.logger.debug "API called: DefaultApi#detect_controlnet_detect_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
367
+ end
368
+ return data, status_code, headers
369
+ end
370
+
371
+ # Download Sysinfo
372
+ # @param [Hash] opts the optional parameters
373
+ # @option opts [Object] :attachment
374
+ # @return [Object]
375
+ def download_sysinfo_internal_sysinfo_get(opts = {})
376
+ data, _status_code, _headers = download_sysinfo_internal_sysinfo_get_with_http_info(opts)
377
+ data
378
+ end
379
+
380
+ # Download Sysinfo
381
+ # @param [Hash] opts the optional parameters
382
+ # @option opts [Object] :attachment
383
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
384
+ def download_sysinfo_internal_sysinfo_get_with_http_info(opts = {})
385
+ if @api_client.config.debugging
386
+ @api_client.config.logger.debug 'Calling API: DefaultApi.download_sysinfo_internal_sysinfo_get ...'
387
+ end
388
+ # resource path
389
+ local_var_path = '/internal/sysinfo'
390
+
391
+ # query parameters
392
+ query_params = opts[:query_params] || {}
393
+ query_params[:'attachment'] = opts[:'attachment'] if !opts[:'attachment'].nil?
394
+
395
+ # header parameters
396
+ header_params = opts[:header_params] || {}
397
+ # HTTP header 'Accept' (if needed)
398
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
399
+
400
+ # form parameters
401
+ form_params = opts[:form_params] || {}
402
+
403
+ # http body (model)
404
+ post_body = opts[:debug_body]
405
+
406
+ # return_type
407
+ return_type = opts[:debug_return_type] || 'Object'
408
+
409
+ # auth_names
410
+ auth_names = opts[:debug_auth_names] || []
411
+
412
+ new_options = opts.merge(
413
+ :operation => :"DefaultApi.download_sysinfo_internal_sysinfo_get",
414
+ :header_params => header_params,
415
+ :query_params => query_params,
416
+ :form_params => form_params,
417
+ :body => post_body,
418
+ :auth_names => auth_names,
419
+ :return_type => return_type
420
+ )
421
+
422
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
423
+ if @api_client.config.debugging
424
+ @api_client.config.logger.debug "API called: DefaultApi#download_sysinfo_internal_sysinfo_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
425
+ end
426
+ return data, status_code, headers
427
+ end
428
+
429
+ # Favicon
430
+ # @param [Hash] opts the optional parameters
431
+ # @return [Object]
432
+ def favicon_favicon_ico_get(opts = {})
433
+ data, _status_code, _headers = favicon_favicon_ico_get_with_http_info(opts)
434
+ data
435
+ end
436
+
437
+ # Favicon
438
+ # @param [Hash] opts the optional parameters
439
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
440
+ def favicon_favicon_ico_get_with_http_info(opts = {})
441
+ if @api_client.config.debugging
442
+ @api_client.config.logger.debug 'Calling API: DefaultApi.favicon_favicon_ico_get ...'
443
+ end
444
+ # resource path
445
+ local_var_path = '/favicon.ico'
446
+
447
+ # query parameters
448
+ query_params = opts[:query_params] || {}
449
+
450
+ # header parameters
451
+ header_params = opts[:header_params] || {}
452
+ # HTTP header 'Accept' (if needed)
453
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
454
+
455
+ # form parameters
456
+ form_params = opts[:form_params] || {}
457
+
458
+ # http body (model)
459
+ post_body = opts[:debug_body]
460
+
461
+ # return_type
462
+ return_type = opts[:debug_return_type] || 'Object'
463
+
464
+ # auth_names
465
+ auth_names = opts[:debug_auth_names] || []
466
+
467
+ new_options = opts.merge(
468
+ :operation => :"DefaultApi.favicon_favicon_ico_get",
469
+ :header_params => header_params,
470
+ :query_params => query_params,
471
+ :form_params => form_params,
472
+ :body => post_body,
473
+ :auth_names => auth_names,
474
+ :return_type => return_type
475
+ )
476
+
477
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
478
+ if @api_client.config.debugging
479
+ @api_client.config.logger.debug "API called: DefaultApi#favicon_favicon_ico_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
480
+ end
481
+ return data, status_code, headers
482
+ end
483
+
484
+ # Fetch File
485
+ # @param [Hash] opts the optional parameters
486
+ # @option opts [String] :filename (default to '')
487
+ # @return [Object]
488
+ def fetch_file_sd_extra_networks_thumb_get(opts = {})
489
+ data, _status_code, _headers = fetch_file_sd_extra_networks_thumb_get_with_http_info(opts)
490
+ data
491
+ end
492
+
493
+ # Fetch File
494
+ # @param [Hash] opts the optional parameters
495
+ # @option opts [String] :filename (default to '')
496
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
497
+ def fetch_file_sd_extra_networks_thumb_get_with_http_info(opts = {})
498
+ if @api_client.config.debugging
499
+ @api_client.config.logger.debug 'Calling API: DefaultApi.fetch_file_sd_extra_networks_thumb_get ...'
500
+ end
501
+ # resource path
502
+ local_var_path = '/sd_extra_networks/thumb'
503
+
504
+ # query parameters
505
+ query_params = opts[:query_params] || {}
506
+ query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?
507
+
508
+ # header parameters
509
+ header_params = opts[:header_params] || {}
510
+ # HTTP header 'Accept' (if needed)
511
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
512
+
513
+ # form parameters
514
+ form_params = opts[:form_params] || {}
515
+
516
+ # http body (model)
517
+ post_body = opts[:debug_body]
518
+
519
+ # return_type
520
+ return_type = opts[:debug_return_type] || 'Object'
521
+
522
+ # auth_names
523
+ auth_names = opts[:debug_auth_names] || []
524
+
525
+ new_options = opts.merge(
526
+ :operation => :"DefaultApi.fetch_file_sd_extra_networks_thumb_get",
527
+ :header_params => header_params,
528
+ :query_params => query_params,
529
+ :form_params => form_params,
530
+ :body => post_body,
531
+ :auth_names => auth_names,
532
+ :return_type => return_type
533
+ )
534
+
535
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
536
+ if @api_client.config.debugging
537
+ @api_client.config.logger.debug "API called: DefaultApi#fetch_file_sd_extra_networks_thumb_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
538
+ end
539
+ return data, status_code, headers
540
+ end
541
+
542
+ # File Deprecated
543
+ # @param path [String]
544
+ # @param [Hash] opts the optional parameters
545
+ # @return [Object]
546
+ def file_deprecated_file_path_get(path, opts = {})
547
+ data, _status_code, _headers = file_deprecated_file_path_get_with_http_info(path, opts)
548
+ data
549
+ end
550
+
551
+ # File Deprecated
552
+ # @param path [String]
553
+ # @param [Hash] opts the optional parameters
554
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
555
+ def file_deprecated_file_path_get_with_http_info(path, opts = {})
556
+ if @api_client.config.debugging
557
+ @api_client.config.logger.debug 'Calling API: DefaultApi.file_deprecated_file_path_get ...'
558
+ end
559
+ # verify the required parameter 'path' is set
560
+ if @api_client.config.client_side_validation && path.nil?
561
+ fail ArgumentError, "Missing the required parameter 'path' when calling DefaultApi.file_deprecated_file_path_get"
562
+ end
563
+ # resource path
564
+ local_var_path = '/file/{path}'.sub('{' + 'path' + '}', CGI.escape(path.to_s))
565
+
566
+ # query parameters
567
+ query_params = opts[:query_params] || {}
568
+
569
+ # header parameters
570
+ header_params = opts[:header_params] || {}
571
+ # HTTP header 'Accept' (if needed)
572
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
573
+
574
+ # form parameters
575
+ form_params = opts[:form_params] || {}
576
+
577
+ # http body (model)
578
+ post_body = opts[:debug_body]
579
+
580
+ # return_type
581
+ return_type = opts[:debug_return_type] || 'Object'
582
+
583
+ # auth_names
584
+ auth_names = opts[:debug_auth_names] || []
585
+
586
+ new_options = opts.merge(
587
+ :operation => :"DefaultApi.file_deprecated_file_path_get",
588
+ :header_params => header_params,
589
+ :query_params => query_params,
590
+ :form_params => form_params,
591
+ :body => post_body,
592
+ :auth_names => auth_names,
593
+ :return_type => return_type
594
+ )
595
+
596
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
597
+ if @api_client.config.debugging
598
+ @api_client.config.logger.debug "API called: DefaultApi#file_deprecated_file_path_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
599
+ end
600
+ return data, status_code, headers
601
+ end
602
+
603
+ # File
604
+ # @param path_or_url [String]
605
+ # @param [Hash] opts the optional parameters
606
+ # @return [Object]
607
+ def file_file_path_or_url_get(path_or_url, opts = {})
608
+ data, _status_code, _headers = file_file_path_or_url_get_with_http_info(path_or_url, opts)
609
+ data
610
+ end
611
+
612
+ # File
613
+ # @param path_or_url [String]
614
+ # @param [Hash] opts the optional parameters
615
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
616
+ def file_file_path_or_url_get_with_http_info(path_or_url, opts = {})
617
+ if @api_client.config.debugging
618
+ @api_client.config.logger.debug 'Calling API: DefaultApi.file_file_path_or_url_get ...'
619
+ end
620
+ # verify the required parameter 'path_or_url' is set
621
+ if @api_client.config.client_side_validation && path_or_url.nil?
622
+ fail ArgumentError, "Missing the required parameter 'path_or_url' when calling DefaultApi.file_file_path_or_url_get"
623
+ end
624
+ # resource path
625
+ local_var_path = '/file={path_or_url}'.sub('{' + 'path_or_url' + '}', CGI.escape(path_or_url.to_s))
626
+
627
+ # query parameters
628
+ query_params = opts[:query_params] || {}
629
+
630
+ # header parameters
631
+ header_params = opts[:header_params] || {}
632
+ # HTTP header 'Accept' (if needed)
633
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
634
+
635
+ # form parameters
636
+ form_params = opts[:form_params] || {}
637
+
638
+ # http body (model)
639
+ post_body = opts[:debug_body]
640
+
641
+ # return_type
642
+ return_type = opts[:debug_return_type] || 'Object'
643
+
644
+ # auth_names
645
+ auth_names = opts[:debug_auth_names] || []
646
+
647
+ new_options = opts.merge(
648
+ :operation => :"DefaultApi.file_file_path_or_url_get",
649
+ :header_params => header_params,
650
+ :query_params => query_params,
651
+ :form_params => form_params,
652
+ :body => post_body,
653
+ :auth_names => auth_names,
654
+ :return_type => return_type
655
+ )
656
+
657
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
658
+ if @api_client.config.debugging
659
+ @api_client.config.logger.debug "API called: DefaultApi#file_file_path_or_url_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
660
+ end
661
+ return data, status_code, headers
662
+ end
663
+
664
+ # File
665
+ # @param path_or_url [String]
666
+ # @param [Hash] opts the optional parameters
667
+ # @return [Object]
668
+ def file_file_path_or_url_head(path_or_url, opts = {})
669
+ data, _status_code, _headers = file_file_path_or_url_head_with_http_info(path_or_url, opts)
670
+ data
671
+ end
672
+
673
+ # File
674
+ # @param path_or_url [String]
675
+ # @param [Hash] opts the optional parameters
676
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
677
+ def file_file_path_or_url_head_with_http_info(path_or_url, opts = {})
678
+ if @api_client.config.debugging
679
+ @api_client.config.logger.debug 'Calling API: DefaultApi.file_file_path_or_url_head ...'
680
+ end
681
+ # verify the required parameter 'path_or_url' is set
682
+ if @api_client.config.client_side_validation && path_or_url.nil?
683
+ fail ArgumentError, "Missing the required parameter 'path_or_url' when calling DefaultApi.file_file_path_or_url_head"
684
+ end
685
+ # resource path
686
+ local_var_path = '/file={path_or_url}'.sub('{' + 'path_or_url' + '}', CGI.escape(path_or_url.to_s))
687
+
688
+ # query parameters
689
+ query_params = opts[:query_params] || {}
690
+
691
+ # header parameters
692
+ header_params = opts[:header_params] || {}
693
+ # HTTP header 'Accept' (if needed)
694
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
695
+
696
+ # form parameters
697
+ form_params = opts[:form_params] || {}
698
+
699
+ # http body (model)
700
+ post_body = opts[:debug_body]
701
+
702
+ # return_type
703
+ return_type = opts[:debug_return_type] || 'Object'
704
+
705
+ # auth_names
706
+ auth_names = opts[:debug_auth_names] || []
707
+
708
+ new_options = opts.merge(
709
+ :operation => :"DefaultApi.file_file_path_or_url_head",
710
+ :header_params => header_params,
711
+ :query_params => query_params,
712
+ :form_params => form_params,
713
+ :body => post_body,
714
+ :auth_names => auth_names,
715
+ :return_type => return_type
716
+ )
717
+
718
+ data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options)
719
+ if @api_client.config.debugging
720
+ @api_client.config.logger.debug "API called: DefaultApi#file_file_path_or_url_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
721
+ end
722
+ return data, status_code, headers
723
+ end
724
+
725
+ # Get Config
726
+ # @param [Hash] opts the optional parameters
727
+ # @return [Object]
728
+ def get_config_config_get(opts = {})
729
+ data, _status_code, _headers = get_config_config_get_with_http_info(opts)
730
+ data
731
+ end
732
+
733
+ # Get Config
734
+ # @param [Hash] opts the optional parameters
735
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
736
+ def get_config_config_get_with_http_info(opts = {})
737
+ if @api_client.config.debugging
738
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_config_config_get ...'
739
+ end
740
+ # resource path
741
+ local_var_path = '/config'
742
+
743
+ # query parameters
744
+ query_params = opts[:query_params] || {}
745
+
746
+ # header parameters
747
+ header_params = opts[:header_params] || {}
748
+ # HTTP header 'Accept' (if needed)
749
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
750
+
751
+ # form parameters
752
+ form_params = opts[:form_params] || {}
753
+
754
+ # http body (model)
755
+ post_body = opts[:debug_body]
756
+
757
+ # return_type
758
+ return_type = opts[:debug_return_type] || 'Object'
759
+
760
+ # auth_names
761
+ auth_names = opts[:debug_auth_names] || []
762
+
763
+ new_options = opts.merge(
764
+ :operation => :"DefaultApi.get_config_config_get",
765
+ :header_params => header_params,
766
+ :query_params => query_params,
767
+ :form_params => form_params,
768
+ :body => post_body,
769
+ :auth_names => auth_names,
770
+ :return_type => return_type
771
+ )
772
+
773
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
774
+ if @api_client.config.debugging
775
+ @api_client.config.logger.debug "API called: DefaultApi#get_config_config_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
776
+ end
777
+ return data, status_code, headers
778
+ end
779
+
780
+ # Get Config
781
+ # @param [Hash] opts the optional parameters
782
+ # @return [Object]
783
+ def get_config_config_get_0(opts = {})
784
+ data, _status_code, _headers = get_config_config_get_0_with_http_info(opts)
785
+ data
786
+ end
787
+
788
+ # Get Config
789
+ # @param [Hash] opts the optional parameters
790
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
791
+ def get_config_config_get_0_with_http_info(opts = {})
792
+ if @api_client.config.debugging
793
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_config_config_get_0 ...'
794
+ end
795
+ # resource path
796
+ local_var_path = '/config/'
797
+
798
+ # query parameters
799
+ query_params = opts[:query_params] || {}
800
+
801
+ # header parameters
802
+ header_params = opts[:header_params] || {}
803
+ # HTTP header 'Accept' (if needed)
804
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
805
+
806
+ # form parameters
807
+ form_params = opts[:form_params] || {}
808
+
809
+ # http body (model)
810
+ post_body = opts[:debug_body]
811
+
812
+ # return_type
813
+ return_type = opts[:debug_return_type] || 'Object'
814
+
815
+ # auth_names
816
+ auth_names = opts[:debug_auth_names] || []
817
+
818
+ new_options = opts.merge(
819
+ :operation => :"DefaultApi.get_config_config_get_0",
820
+ :header_params => header_params,
821
+ :query_params => query_params,
822
+ :form_params => form_params,
823
+ :body => post_body,
824
+ :auth_names => auth_names,
825
+ :return_type => return_type
826
+ )
827
+
828
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
829
+ if @api_client.config.debugging
830
+ @api_client.config.logger.debug "API called: DefaultApi#get_config_config_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
831
+ end
832
+ return data, status_code, headers
833
+ end
834
+
835
+ # Get Current User
836
+ # @param [Hash] opts the optional parameters
837
+ # @return [String]
838
+ def get_current_user_user_get(opts = {})
839
+ data, _status_code, _headers = get_current_user_user_get_with_http_info(opts)
840
+ data
841
+ end
842
+
843
+ # Get Current User
844
+ # @param [Hash] opts the optional parameters
845
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
846
+ def get_current_user_user_get_with_http_info(opts = {})
847
+ if @api_client.config.debugging
848
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_current_user_user_get ...'
849
+ end
850
+ # resource path
851
+ local_var_path = '/user/'
852
+
853
+ # query parameters
854
+ query_params = opts[:query_params] || {}
855
+
856
+ # header parameters
857
+ header_params = opts[:header_params] || {}
858
+ # HTTP header 'Accept' (if needed)
859
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
860
+
861
+ # form parameters
862
+ form_params = opts[:form_params] || {}
863
+
864
+ # http body (model)
865
+ post_body = opts[:debug_body]
866
+
867
+ # return_type
868
+ return_type = opts[:debug_return_type] || 'String'
869
+
870
+ # auth_names
871
+ auth_names = opts[:debug_auth_names] || []
872
+
873
+ new_options = opts.merge(
874
+ :operation => :"DefaultApi.get_current_user_user_get",
875
+ :header_params => header_params,
876
+ :query_params => query_params,
877
+ :form_params => form_params,
878
+ :body => post_body,
879
+ :auth_names => auth_names,
880
+ :return_type => return_type
881
+ )
882
+
883
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
884
+ if @api_client.config.debugging
885
+ @api_client.config.logger.debug "API called: DefaultApi#get_current_user_user_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
886
+ end
887
+ return data, status_code, headers
888
+ end
889
+
890
+ # Get Current User
891
+ # @param [Hash] opts the optional parameters
892
+ # @return [String]
893
+ def get_current_user_user_get_0(opts = {})
894
+ data, _status_code, _headers = get_current_user_user_get_0_with_http_info(opts)
895
+ data
896
+ end
897
+
898
+ # Get Current User
899
+ # @param [Hash] opts the optional parameters
900
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
901
+ def get_current_user_user_get_0_with_http_info(opts = {})
902
+ if @api_client.config.debugging
903
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_current_user_user_get_0 ...'
904
+ end
905
+ # resource path
906
+ local_var_path = '/user'
907
+
908
+ # query parameters
909
+ query_params = opts[:query_params] || {}
910
+
911
+ # header parameters
912
+ header_params = opts[:header_params] || {}
913
+ # HTTP header 'Accept' (if needed)
914
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
915
+
916
+ # form parameters
917
+ form_params = opts[:form_params] || {}
918
+
919
+ # http body (model)
920
+ post_body = opts[:debug_body]
921
+
922
+ # return_type
923
+ return_type = opts[:debug_return_type] || 'String'
924
+
925
+ # auth_names
926
+ auth_names = opts[:debug_auth_names] || []
927
+
928
+ new_options = opts.merge(
929
+ :operation => :"DefaultApi.get_current_user_user_get_0",
930
+ :header_params => header_params,
931
+ :query_params => query_params,
932
+ :form_params => form_params,
933
+ :body => post_body,
934
+ :auth_names => auth_names,
935
+ :return_type => return_type
936
+ )
937
+
938
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
939
+ if @api_client.config.debugging
940
+ @api_client.config.logger.debug "API called: DefaultApi#get_current_user_user_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
941
+ end
942
+ return data, status_code, headers
943
+ end
944
+
945
+ # Get Loras
946
+ # @param [Hash] opts the optional parameters
947
+ # @return [Object]
948
+ def get_loras_sdapi_v1_loras_get(opts = {})
949
+ data, _status_code, _headers = get_loras_sdapi_v1_loras_get_with_http_info(opts)
950
+ data
951
+ end
952
+
953
+ # Get Loras
954
+ # @param [Hash] opts the optional parameters
955
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
956
+ def get_loras_sdapi_v1_loras_get_with_http_info(opts = {})
957
+ if @api_client.config.debugging
958
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_loras_sdapi_v1_loras_get ...'
959
+ end
960
+ # resource path
961
+ local_var_path = '/sdapi/v1/loras'
962
+
963
+ # query parameters
964
+ query_params = opts[:query_params] || {}
965
+
966
+ # header parameters
967
+ header_params = opts[:header_params] || {}
968
+ # HTTP header 'Accept' (if needed)
969
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
970
+
971
+ # form parameters
972
+ form_params = opts[:form_params] || {}
973
+
974
+ # http body (model)
975
+ post_body = opts[:debug_body]
976
+
977
+ # return_type
978
+ return_type = opts[:debug_return_type] || 'Object'
979
+
980
+ # auth_names
981
+ auth_names = opts[:debug_auth_names] || []
982
+
983
+ new_options = opts.merge(
984
+ :operation => :"DefaultApi.get_loras_sdapi_v1_loras_get",
985
+ :header_params => header_params,
986
+ :query_params => query_params,
987
+ :form_params => form_params,
988
+ :body => post_body,
989
+ :auth_names => auth_names,
990
+ :return_type => return_type
991
+ )
992
+
993
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
994
+ if @api_client.config.debugging
995
+ @api_client.config.logger.debug "API called: DefaultApi#get_loras_sdapi_v1_loras_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
996
+ end
997
+ return data, status_code, headers
998
+ end
999
+
1000
+ # Get Metadata
1001
+ # @param [Hash] opts the optional parameters
1002
+ # @option opts [String] :page (default to '')
1003
+ # @option opts [String] :item (default to '')
1004
+ # @return [Object]
1005
+ def get_metadata_sd_extra_networks_metadata_get(opts = {})
1006
+ data, _status_code, _headers = get_metadata_sd_extra_networks_metadata_get_with_http_info(opts)
1007
+ data
1008
+ end
1009
+
1010
+ # Get Metadata
1011
+ # @param [Hash] opts the optional parameters
1012
+ # @option opts [String] :page (default to '')
1013
+ # @option opts [String] :item (default to '')
1014
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1015
+ def get_metadata_sd_extra_networks_metadata_get_with_http_info(opts = {})
1016
+ if @api_client.config.debugging
1017
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_metadata_sd_extra_networks_metadata_get ...'
1018
+ end
1019
+ # resource path
1020
+ local_var_path = '/sd_extra_networks/metadata'
1021
+
1022
+ # query parameters
1023
+ query_params = opts[:query_params] || {}
1024
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1025
+ query_params[:'item'] = opts[:'item'] if !opts[:'item'].nil?
1026
+
1027
+ # header parameters
1028
+ header_params = opts[:header_params] || {}
1029
+ # HTTP header 'Accept' (if needed)
1030
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1031
+
1032
+ # form parameters
1033
+ form_params = opts[:form_params] || {}
1034
+
1035
+ # http body (model)
1036
+ post_body = opts[:debug_body]
1037
+
1038
+ # return_type
1039
+ return_type = opts[:debug_return_type] || 'Object'
1040
+
1041
+ # auth_names
1042
+ auth_names = opts[:debug_auth_names] || []
1043
+
1044
+ new_options = opts.merge(
1045
+ :operation => :"DefaultApi.get_metadata_sd_extra_networks_metadata_get",
1046
+ :header_params => header_params,
1047
+ :query_params => query_params,
1048
+ :form_params => form_params,
1049
+ :body => post_body,
1050
+ :auth_names => auth_names,
1051
+ :return_type => return_type
1052
+ )
1053
+
1054
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1055
+ if @api_client.config.debugging
1056
+ @api_client.config.logger.debug "API called: DefaultApi#get_metadata_sd_extra_networks_metadata_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1057
+ end
1058
+ return data, status_code, headers
1059
+ end
1060
+
1061
+ # Get Queue Status
1062
+ # @param [Hash] opts the optional parameters
1063
+ # @return [Estimation]
1064
+ def get_queue_status_queue_status_get(opts = {})
1065
+ data, _status_code, _headers = get_queue_status_queue_status_get_with_http_info(opts)
1066
+ data
1067
+ end
1068
+
1069
+ # Get Queue Status
1070
+ # @param [Hash] opts the optional parameters
1071
+ # @return [Array<(Estimation, Integer, Hash)>] Estimation data, response status code and response headers
1072
+ def get_queue_status_queue_status_get_with_http_info(opts = {})
1073
+ if @api_client.config.debugging
1074
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_queue_status_queue_status_get ...'
1075
+ end
1076
+ # resource path
1077
+ local_var_path = '/queue/status'
1078
+
1079
+ # query parameters
1080
+ query_params = opts[:query_params] || {}
1081
+
1082
+ # header parameters
1083
+ header_params = opts[:header_params] || {}
1084
+ # HTTP header 'Accept' (if needed)
1085
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1086
+
1087
+ # form parameters
1088
+ form_params = opts[:form_params] || {}
1089
+
1090
+ # http body (model)
1091
+ post_body = opts[:debug_body]
1092
+
1093
+ # return_type
1094
+ return_type = opts[:debug_return_type] || 'Estimation'
1095
+
1096
+ # auth_names
1097
+ auth_names = opts[:debug_auth_names] || []
1098
+
1099
+ new_options = opts.merge(
1100
+ :operation => :"DefaultApi.get_queue_status_queue_status_get",
1101
+ :header_params => header_params,
1102
+ :query_params => query_params,
1103
+ :form_params => form_params,
1104
+ :body => post_body,
1105
+ :auth_names => auth_names,
1106
+ :return_type => return_type
1107
+ )
1108
+
1109
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1110
+ if @api_client.config.debugging
1111
+ @api_client.config.logger.debug "API called: DefaultApi#get_queue_status_queue_status_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1112
+ end
1113
+ return data, status_code, headers
1114
+ end
1115
+
1116
+ # Get Token
1117
+ # @param [Hash] opts the optional parameters
1118
+ # @return [Object]
1119
+ def get_token_token_get(opts = {})
1120
+ data, _status_code, _headers = get_token_token_get_with_http_info(opts)
1121
+ data
1122
+ end
1123
+
1124
+ # Get Token
1125
+ # @param [Hash] opts the optional parameters
1126
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1127
+ def get_token_token_get_with_http_info(opts = {})
1128
+ if @api_client.config.debugging
1129
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_token_token_get ...'
1130
+ end
1131
+ # resource path
1132
+ local_var_path = '/token/'
1133
+
1134
+ # query parameters
1135
+ query_params = opts[:query_params] || {}
1136
+
1137
+ # header parameters
1138
+ header_params = opts[:header_params] || {}
1139
+ # HTTP header 'Accept' (if needed)
1140
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1141
+
1142
+ # form parameters
1143
+ form_params = opts[:form_params] || {}
1144
+
1145
+ # http body (model)
1146
+ post_body = opts[:debug_body]
1147
+
1148
+ # return_type
1149
+ return_type = opts[:debug_return_type] || 'Object'
1150
+
1151
+ # auth_names
1152
+ auth_names = opts[:debug_auth_names] || []
1153
+
1154
+ new_options = opts.merge(
1155
+ :operation => :"DefaultApi.get_token_token_get",
1156
+ :header_params => header_params,
1157
+ :query_params => query_params,
1158
+ :form_params => form_params,
1159
+ :body => post_body,
1160
+ :auth_names => auth_names,
1161
+ :return_type => return_type
1162
+ )
1163
+
1164
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1165
+ if @api_client.config.debugging
1166
+ @api_client.config.logger.debug "API called: DefaultApi#get_token_token_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1167
+ end
1168
+ return data, status_code, headers
1169
+ end
1170
+
1171
+ # Get Token
1172
+ # @param [Hash] opts the optional parameters
1173
+ # @return [Object]
1174
+ def get_token_token_get_0(opts = {})
1175
+ data, _status_code, _headers = get_token_token_get_0_with_http_info(opts)
1176
+ data
1177
+ end
1178
+
1179
+ # Get Token
1180
+ # @param [Hash] opts the optional parameters
1181
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1182
+ def get_token_token_get_0_with_http_info(opts = {})
1183
+ if @api_client.config.debugging
1184
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_token_token_get_0 ...'
1185
+ end
1186
+ # resource path
1187
+ local_var_path = '/token'
1188
+
1189
+ # query parameters
1190
+ query_params = opts[:query_params] || {}
1191
+
1192
+ # header parameters
1193
+ header_params = opts[:header_params] || {}
1194
+ # HTTP header 'Accept' (if needed)
1195
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1196
+
1197
+ # form parameters
1198
+ form_params = opts[:form_params] || {}
1199
+
1200
+ # http body (model)
1201
+ post_body = opts[:debug_body]
1202
+
1203
+ # return_type
1204
+ return_type = opts[:debug_return_type] || 'Object'
1205
+
1206
+ # auth_names
1207
+ auth_names = opts[:debug_auth_names] || []
1208
+
1209
+ new_options = opts.merge(
1210
+ :operation => :"DefaultApi.get_token_token_get_0",
1211
+ :header_params => header_params,
1212
+ :query_params => query_params,
1213
+ :form_params => form_params,
1214
+ :body => post_body,
1215
+ :auth_names => auth_names,
1216
+ :return_type => return_type
1217
+ )
1218
+
1219
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1220
+ if @api_client.config.debugging
1221
+ @api_client.config.logger.debug "API called: DefaultApi#get_token_token_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1222
+ end
1223
+ return data, status_code, headers
1224
+ end
1225
+
1226
+ # <Lambda>
1227
+ # @param [Hash] opts the optional parameters
1228
+ # @return [Object]
1229
+ def lambda_internal_ping_get(opts = {})
1230
+ data, _status_code, _headers = lambda_internal_ping_get_with_http_info(opts)
1231
+ data
1232
+ end
1233
+
1234
+ # &lt;Lambda&gt;
1235
+ # @param [Hash] opts the optional parameters
1236
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1237
+ def lambda_internal_ping_get_with_http_info(opts = {})
1238
+ if @api_client.config.debugging
1239
+ @api_client.config.logger.debug 'Calling API: DefaultApi.lambda_internal_ping_get ...'
1240
+ end
1241
+ # resource path
1242
+ local_var_path = '/internal/ping'
1243
+
1244
+ # query parameters
1245
+ query_params = opts[:query_params] || {}
1246
+
1247
+ # header parameters
1248
+ header_params = opts[:header_params] || {}
1249
+ # HTTP header 'Accept' (if needed)
1250
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1251
+
1252
+ # form parameters
1253
+ form_params = opts[:form_params] || {}
1254
+
1255
+ # http body (model)
1256
+ post_body = opts[:debug_body]
1257
+
1258
+ # return_type
1259
+ return_type = opts[:debug_return_type] || 'Object'
1260
+
1261
+ # auth_names
1262
+ auth_names = opts[:debug_auth_names] || []
1263
+
1264
+ new_options = opts.merge(
1265
+ :operation => :"DefaultApi.lambda_internal_ping_get",
1266
+ :header_params => header_params,
1267
+ :query_params => query_params,
1268
+ :form_params => form_params,
1269
+ :body => post_body,
1270
+ :auth_names => auth_names,
1271
+ :return_type => return_type
1272
+ )
1273
+
1274
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1275
+ if @api_client.config.debugging
1276
+ @api_client.config.logger.debug "API called: DefaultApi#lambda_internal_ping_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1277
+ end
1278
+ return data, status_code, headers
1279
+ end
1280
+
1281
+ # <Lambda>
1282
+ # @param [Hash] opts the optional parameters
1283
+ # @return [Object]
1284
+ def lambda_internal_profile_startup_get(opts = {})
1285
+ data, _status_code, _headers = lambda_internal_profile_startup_get_with_http_info(opts)
1286
+ data
1287
+ end
1288
+
1289
+ # &lt;Lambda&gt;
1290
+ # @param [Hash] opts the optional parameters
1291
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1292
+ def lambda_internal_profile_startup_get_with_http_info(opts = {})
1293
+ if @api_client.config.debugging
1294
+ @api_client.config.logger.debug 'Calling API: DefaultApi.lambda_internal_profile_startup_get ...'
1295
+ end
1296
+ # resource path
1297
+ local_var_path = '/internal/profile-startup'
1298
+
1299
+ # query parameters
1300
+ query_params = opts[:query_params] || {}
1301
+
1302
+ # header parameters
1303
+ header_params = opts[:header_params] || {}
1304
+ # HTTP header 'Accept' (if needed)
1305
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1306
+
1307
+ # form parameters
1308
+ form_params = opts[:form_params] || {}
1309
+
1310
+ # http body (model)
1311
+ post_body = opts[:debug_body]
1312
+
1313
+ # return_type
1314
+ return_type = opts[:debug_return_type] || 'Object'
1315
+
1316
+ # auth_names
1317
+ auth_names = opts[:debug_auth_names] || []
1318
+
1319
+ new_options = opts.merge(
1320
+ :operation => :"DefaultApi.lambda_internal_profile_startup_get",
1321
+ :header_params => header_params,
1322
+ :query_params => query_params,
1323
+ :form_params => form_params,
1324
+ :body => post_body,
1325
+ :auth_names => auth_names,
1326
+ :return_type => return_type
1327
+ )
1328
+
1329
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1330
+ if @api_client.config.debugging
1331
+ @api_client.config.logger.debug "API called: DefaultApi#lambda_internal_profile_startup_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1332
+ end
1333
+ return data, status_code, headers
1334
+ end
1335
+
1336
+ # <Lambda>
1337
+ # @param [Hash] opts the optional parameters
1338
+ # @return [Object]
1339
+ def lambda_internal_sysinfo_download_get(opts = {})
1340
+ data, _status_code, _headers = lambda_internal_sysinfo_download_get_with_http_info(opts)
1341
+ data
1342
+ end
1343
+
1344
+ # &lt;Lambda&gt;
1345
+ # @param [Hash] opts the optional parameters
1346
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1347
+ def lambda_internal_sysinfo_download_get_with_http_info(opts = {})
1348
+ if @api_client.config.debugging
1349
+ @api_client.config.logger.debug 'Calling API: DefaultApi.lambda_internal_sysinfo_download_get ...'
1350
+ end
1351
+ # resource path
1352
+ local_var_path = '/internal/sysinfo-download'
1353
+
1354
+ # query parameters
1355
+ query_params = opts[:query_params] || {}
1356
+
1357
+ # header parameters
1358
+ header_params = opts[:header_params] || {}
1359
+ # HTTP header 'Accept' (if needed)
1360
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1361
+
1362
+ # form parameters
1363
+ form_params = opts[:form_params] || {}
1364
+
1365
+ # http body (model)
1366
+ post_body = opts[:debug_body]
1367
+
1368
+ # return_type
1369
+ return_type = opts[:debug_return_type] || 'Object'
1370
+
1371
+ # auth_names
1372
+ auth_names = opts[:debug_auth_names] || []
1373
+
1374
+ new_options = opts.merge(
1375
+ :operation => :"DefaultApi.lambda_internal_sysinfo_download_get",
1376
+ :header_params => header_params,
1377
+ :query_params => query_params,
1378
+ :form_params => form_params,
1379
+ :body => post_body,
1380
+ :auth_names => auth_names,
1381
+ :return_type => return_type
1382
+ )
1383
+
1384
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1385
+ if @api_client.config.debugging
1386
+ @api_client.config.logger.debug "API called: DefaultApi#lambda_internal_sysinfo_download_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1387
+ end
1388
+ return data, status_code, headers
1389
+ end
1390
+
1391
+ # Login Check
1392
+ # @param [Hash] opts the optional parameters
1393
+ # @return [Object]
1394
+ def login_check_login_check_get(opts = {})
1395
+ data, _status_code, _headers = login_check_login_check_get_with_http_info(opts)
1396
+ data
1397
+ end
1398
+
1399
+ # Login Check
1400
+ # @param [Hash] opts the optional parameters
1401
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1402
+ def login_check_login_check_get_with_http_info(opts = {})
1403
+ if @api_client.config.debugging
1404
+ @api_client.config.logger.debug 'Calling API: DefaultApi.login_check_login_check_get ...'
1405
+ end
1406
+ # resource path
1407
+ local_var_path = '/login_check/'
1408
+
1409
+ # query parameters
1410
+ query_params = opts[:query_params] || {}
1411
+
1412
+ # header parameters
1413
+ header_params = opts[:header_params] || {}
1414
+ # HTTP header 'Accept' (if needed)
1415
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1416
+
1417
+ # form parameters
1418
+ form_params = opts[:form_params] || {}
1419
+
1420
+ # http body (model)
1421
+ post_body = opts[:debug_body]
1422
+
1423
+ # return_type
1424
+ return_type = opts[:debug_return_type] || 'Object'
1425
+
1426
+ # auth_names
1427
+ auth_names = opts[:debug_auth_names] || []
1428
+
1429
+ new_options = opts.merge(
1430
+ :operation => :"DefaultApi.login_check_login_check_get",
1431
+ :header_params => header_params,
1432
+ :query_params => query_params,
1433
+ :form_params => form_params,
1434
+ :body => post_body,
1435
+ :auth_names => auth_names,
1436
+ :return_type => return_type
1437
+ )
1438
+
1439
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1440
+ if @api_client.config.debugging
1441
+ @api_client.config.logger.debug "API called: DefaultApi#login_check_login_check_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1442
+ end
1443
+ return data, status_code, headers
1444
+ end
1445
+
1446
+ # Login Check
1447
+ # @param [Hash] opts the optional parameters
1448
+ # @return [Object]
1449
+ def login_check_login_check_get_0(opts = {})
1450
+ data, _status_code, _headers = login_check_login_check_get_0_with_http_info(opts)
1451
+ data
1452
+ end
1453
+
1454
+ # Login Check
1455
+ # @param [Hash] opts the optional parameters
1456
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1457
+ def login_check_login_check_get_0_with_http_info(opts = {})
1458
+ if @api_client.config.debugging
1459
+ @api_client.config.logger.debug 'Calling API: DefaultApi.login_check_login_check_get_0 ...'
1460
+ end
1461
+ # resource path
1462
+ local_var_path = '/login_check'
1463
+
1464
+ # query parameters
1465
+ query_params = opts[:query_params] || {}
1466
+
1467
+ # header parameters
1468
+ header_params = opts[:header_params] || {}
1469
+ # HTTP header 'Accept' (if needed)
1470
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1471
+
1472
+ # form parameters
1473
+ form_params = opts[:form_params] || {}
1474
+
1475
+ # http body (model)
1476
+ post_body = opts[:debug_body]
1477
+
1478
+ # return_type
1479
+ return_type = opts[:debug_return_type] || 'Object'
1480
+
1481
+ # auth_names
1482
+ auth_names = opts[:debug_auth_names] || []
1483
+
1484
+ new_options = opts.merge(
1485
+ :operation => :"DefaultApi.login_check_login_check_get_0",
1486
+ :header_params => header_params,
1487
+ :query_params => query_params,
1488
+ :form_params => form_params,
1489
+ :body => post_body,
1490
+ :auth_names => auth_names,
1491
+ :return_type => return_type
1492
+ )
1493
+
1494
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1495
+ if @api_client.config.debugging
1496
+ @api_client.config.logger.debug "API called: DefaultApi#login_check_login_check_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1497
+ end
1498
+ return data, status_code, headers
1499
+ end
1500
+
1501
+ # Login
1502
+ # @param username [String]
1503
+ # @param password [String]
1504
+ # @param [Hash] opts the optional parameters
1505
+ # @option opts [String] :grant_type
1506
+ # @option opts [String] :scope (default to '')
1507
+ # @option opts [String] :client_id
1508
+ # @option opts [String] :client_secret
1509
+ # @return [Object]
1510
+ def login_login_post(username, password, opts = {})
1511
+ data, _status_code, _headers = login_login_post_with_http_info(username, password, opts)
1512
+ data
1513
+ end
1514
+
1515
+ # Login
1516
+ # @param username [String]
1517
+ # @param password [String]
1518
+ # @param [Hash] opts the optional parameters
1519
+ # @option opts [String] :grant_type
1520
+ # @option opts [String] :scope (default to '')
1521
+ # @option opts [String] :client_id
1522
+ # @option opts [String] :client_secret
1523
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1524
+ def login_login_post_with_http_info(username, password, opts = {})
1525
+ if @api_client.config.debugging
1526
+ @api_client.config.logger.debug 'Calling API: DefaultApi.login_login_post ...'
1527
+ end
1528
+ # verify the required parameter 'username' is set
1529
+ if @api_client.config.client_side_validation && username.nil?
1530
+ fail ArgumentError, "Missing the required parameter 'username' when calling DefaultApi.login_login_post"
1531
+ end
1532
+ # verify the required parameter 'password' is set
1533
+ if @api_client.config.client_side_validation && password.nil?
1534
+ fail ArgumentError, "Missing the required parameter 'password' when calling DefaultApi.login_login_post"
1535
+ end
1536
+ pattern = Regexp.new(/password/)
1537
+ if @api_client.config.client_side_validation && !opts[:'grant_type'].nil? && opts[:'grant_type'] !~ pattern
1538
+ fail ArgumentError, "invalid value for 'opts[:\"grant_type\"]' when calling DefaultApi.login_login_post, must conform to the pattern #{pattern}."
1539
+ end
1540
+
1541
+ # resource path
1542
+ local_var_path = '/login/'
1543
+
1544
+ # query parameters
1545
+ query_params = opts[:query_params] || {}
1546
+
1547
+ # header parameters
1548
+ header_params = opts[:header_params] || {}
1549
+ # HTTP header 'Accept' (if needed)
1550
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1551
+ # HTTP header 'Content-Type'
1552
+ content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
1553
+ if !content_type.nil?
1554
+ header_params['Content-Type'] = content_type
1555
+ end
1556
+
1557
+ # form parameters
1558
+ form_params = opts[:form_params] || {}
1559
+ form_params['username'] = username
1560
+ form_params['password'] = password
1561
+ form_params['grant_type'] = opts[:'grant_type'] if !opts[:'grant_type'].nil?
1562
+ form_params['scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1563
+ form_params['client_id'] = opts[:'client_id'] if !opts[:'client_id'].nil?
1564
+ form_params['client_secret'] = opts[:'client_secret'] if !opts[:'client_secret'].nil?
1565
+
1566
+ # http body (model)
1567
+ post_body = opts[:debug_body]
1568
+
1569
+ # return_type
1570
+ return_type = opts[:debug_return_type] || 'Object'
1571
+
1572
+ # auth_names
1573
+ auth_names = opts[:debug_auth_names] || []
1574
+
1575
+ new_options = opts.merge(
1576
+ :operation => :"DefaultApi.login_login_post",
1577
+ :header_params => header_params,
1578
+ :query_params => query_params,
1579
+ :form_params => form_params,
1580
+ :body => post_body,
1581
+ :auth_names => auth_names,
1582
+ :return_type => return_type
1583
+ )
1584
+
1585
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1586
+ if @api_client.config.debugging
1587
+ @api_client.config.logger.debug "API called: DefaultApi#login_login_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1588
+ end
1589
+ return data, status_code, headers
1590
+ end
1591
+
1592
+ # Login
1593
+ # @param username [String]
1594
+ # @param password [String]
1595
+ # @param [Hash] opts the optional parameters
1596
+ # @option opts [String] :grant_type
1597
+ # @option opts [String] :scope (default to '')
1598
+ # @option opts [String] :client_id
1599
+ # @option opts [String] :client_secret
1600
+ # @return [Object]
1601
+ def login_login_post_0(username, password, opts = {})
1602
+ data, _status_code, _headers = login_login_post_0_with_http_info(username, password, opts)
1603
+ data
1604
+ end
1605
+
1606
+ # Login
1607
+ # @param username [String]
1608
+ # @param password [String]
1609
+ # @param [Hash] opts the optional parameters
1610
+ # @option opts [String] :grant_type
1611
+ # @option opts [String] :scope (default to '')
1612
+ # @option opts [String] :client_id
1613
+ # @option opts [String] :client_secret
1614
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1615
+ def login_login_post_0_with_http_info(username, password, opts = {})
1616
+ if @api_client.config.debugging
1617
+ @api_client.config.logger.debug 'Calling API: DefaultApi.login_login_post_0 ...'
1618
+ end
1619
+ # verify the required parameter 'username' is set
1620
+ if @api_client.config.client_side_validation && username.nil?
1621
+ fail ArgumentError, "Missing the required parameter 'username' when calling DefaultApi.login_login_post_0"
1622
+ end
1623
+ # verify the required parameter 'password' is set
1624
+ if @api_client.config.client_side_validation && password.nil?
1625
+ fail ArgumentError, "Missing the required parameter 'password' when calling DefaultApi.login_login_post_0"
1626
+ end
1627
+ pattern = Regexp.new(/password/)
1628
+ if @api_client.config.client_side_validation && !opts[:'grant_type'].nil? && opts[:'grant_type'] !~ pattern
1629
+ fail ArgumentError, "invalid value for 'opts[:\"grant_type\"]' when calling DefaultApi.login_login_post_0, must conform to the pattern #{pattern}."
1630
+ end
1631
+
1632
+ # resource path
1633
+ local_var_path = '/login'
1634
+
1635
+ # query parameters
1636
+ query_params = opts[:query_params] || {}
1637
+
1638
+ # header parameters
1639
+ header_params = opts[:header_params] || {}
1640
+ # HTTP header 'Accept' (if needed)
1641
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1642
+ # HTTP header 'Content-Type'
1643
+ content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
1644
+ if !content_type.nil?
1645
+ header_params['Content-Type'] = content_type
1646
+ end
1647
+
1648
+ # form parameters
1649
+ form_params = opts[:form_params] || {}
1650
+ form_params['username'] = username
1651
+ form_params['password'] = password
1652
+ form_params['grant_type'] = opts[:'grant_type'] if !opts[:'grant_type'].nil?
1653
+ form_params['scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1654
+ form_params['client_id'] = opts[:'client_id'] if !opts[:'client_id'].nil?
1655
+ form_params['client_secret'] = opts[:'client_secret'] if !opts[:'client_secret'].nil?
1656
+
1657
+ # http body (model)
1658
+ post_body = opts[:debug_body]
1659
+
1660
+ # return_type
1661
+ return_type = opts[:debug_return_type] || 'Object'
1662
+
1663
+ # auth_names
1664
+ auth_names = opts[:debug_auth_names] || []
1665
+
1666
+ new_options = opts.merge(
1667
+ :operation => :"DefaultApi.login_login_post_0",
1668
+ :header_params => header_params,
1669
+ :query_params => query_params,
1670
+ :form_params => form_params,
1671
+ :body => post_body,
1672
+ :auth_names => auth_names,
1673
+ :return_type => return_type
1674
+ )
1675
+
1676
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1677
+ if @api_client.config.debugging
1678
+ @api_client.config.logger.debug "API called: DefaultApi#login_login_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1679
+ end
1680
+ return data, status_code, headers
1681
+ end
1682
+
1683
+ # Main
1684
+ # @param [Hash] opts the optional parameters
1685
+ # @return [String]
1686
+ def main_get(opts = {})
1687
+ data, _status_code, _headers = main_get_with_http_info(opts)
1688
+ data
1689
+ end
1690
+
1691
+ # Main
1692
+ # @param [Hash] opts the optional parameters
1693
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
1694
+ def main_get_with_http_info(opts = {})
1695
+ if @api_client.config.debugging
1696
+ @api_client.config.logger.debug 'Calling API: DefaultApi.main_get ...'
1697
+ end
1698
+ # resource path
1699
+ local_var_path = '/'
1700
+
1701
+ # query parameters
1702
+ query_params = opts[:query_params] || {}
1703
+
1704
+ # header parameters
1705
+ header_params = opts[:header_params] || {}
1706
+ # HTTP header 'Accept' (if needed)
1707
+ header_params['Accept'] = @api_client.select_header_accept(['text/html'])
1708
+
1709
+ # form parameters
1710
+ form_params = opts[:form_params] || {}
1711
+
1712
+ # http body (model)
1713
+ post_body = opts[:debug_body]
1714
+
1715
+ # return_type
1716
+ return_type = opts[:debug_return_type] || 'String'
1717
+
1718
+ # auth_names
1719
+ auth_names = opts[:debug_auth_names] || []
1720
+
1721
+ new_options = opts.merge(
1722
+ :operation => :"DefaultApi.main_get",
1723
+ :header_params => header_params,
1724
+ :query_params => query_params,
1725
+ :form_params => form_params,
1726
+ :body => post_body,
1727
+ :auth_names => auth_names,
1728
+ :return_type => return_type
1729
+ )
1730
+
1731
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1732
+ if @api_client.config.debugging
1733
+ @api_client.config.logger.debug "API called: DefaultApi#main_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1734
+ end
1735
+ return data, status_code, headers
1736
+ end
1737
+
1738
+ # Main
1739
+ # @param [Hash] opts the optional parameters
1740
+ # @return [String]
1741
+ def main_head(opts = {})
1742
+ data, _status_code, _headers = main_head_with_http_info(opts)
1743
+ data
1744
+ end
1745
+
1746
+ # Main
1747
+ # @param [Hash] opts the optional parameters
1748
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
1749
+ def main_head_with_http_info(opts = {})
1750
+ if @api_client.config.debugging
1751
+ @api_client.config.logger.debug 'Calling API: DefaultApi.main_head ...'
1752
+ end
1753
+ # resource path
1754
+ local_var_path = '/'
1755
+
1756
+ # query parameters
1757
+ query_params = opts[:query_params] || {}
1758
+
1759
+ # header parameters
1760
+ header_params = opts[:header_params] || {}
1761
+ # HTTP header 'Accept' (if needed)
1762
+ header_params['Accept'] = @api_client.select_header_accept(['text/html'])
1763
+
1764
+ # form parameters
1765
+ form_params = opts[:form_params] || {}
1766
+
1767
+ # http body (model)
1768
+ post_body = opts[:debug_body]
1769
+
1770
+ # return_type
1771
+ return_type = opts[:debug_return_type] || 'String'
1772
+
1773
+ # auth_names
1774
+ auth_names = opts[:debug_auth_names] || []
1775
+
1776
+ new_options = opts.merge(
1777
+ :operation => :"DefaultApi.main_head",
1778
+ :header_params => header_params,
1779
+ :query_params => query_params,
1780
+ :form_params => form_params,
1781
+ :body => post_body,
1782
+ :auth_names => auth_names,
1783
+ :return_type => return_type
1784
+ )
1785
+
1786
+ data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options)
1787
+ if @api_client.config.debugging
1788
+ @api_client.config.logger.debug "API called: DefaultApi#main_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1789
+ end
1790
+ return data, status_code, headers
1791
+ end
1792
+
1793
+ # Model List
1794
+ # @param [Hash] opts the optional parameters
1795
+ # @return [Object]
1796
+ def model_list_controlnet_model_list_get(opts = {})
1797
+ data, _status_code, _headers = model_list_controlnet_model_list_get_with_http_info(opts)
1798
+ data
1799
+ end
1800
+
1801
+ # Model List
1802
+ # @param [Hash] opts the optional parameters
1803
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1804
+ def model_list_controlnet_model_list_get_with_http_info(opts = {})
1805
+ if @api_client.config.debugging
1806
+ @api_client.config.logger.debug 'Calling API: DefaultApi.model_list_controlnet_model_list_get ...'
1807
+ end
1808
+ # resource path
1809
+ local_var_path = '/controlnet/model_list'
1810
+
1811
+ # query parameters
1812
+ query_params = opts[:query_params] || {}
1813
+
1814
+ # header parameters
1815
+ header_params = opts[:header_params] || {}
1816
+ # HTTP header 'Accept' (if needed)
1817
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1818
+
1819
+ # form parameters
1820
+ form_params = opts[:form_params] || {}
1821
+
1822
+ # http body (model)
1823
+ post_body = opts[:debug_body]
1824
+
1825
+ # return_type
1826
+ return_type = opts[:debug_return_type] || 'Object'
1827
+
1828
+ # auth_names
1829
+ auth_names = opts[:debug_auth_names] || []
1830
+
1831
+ new_options = opts.merge(
1832
+ :operation => :"DefaultApi.model_list_controlnet_model_list_get",
1833
+ :header_params => header_params,
1834
+ :query_params => query_params,
1835
+ :form_params => form_params,
1836
+ :body => post_body,
1837
+ :auth_names => auth_names,
1838
+ :return_type => return_type
1839
+ )
1840
+
1841
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1842
+ if @api_client.config.debugging
1843
+ @api_client.config.logger.debug "API called: DefaultApi#model_list_controlnet_model_list_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1844
+ end
1845
+ return data, status_code, headers
1846
+ end
1847
+
1848
+ # Module List
1849
+ # @param [Hash] opts the optional parameters
1850
+ # @option opts [Boolean] :alias_names (default to false)
1851
+ # @return [Object]
1852
+ def module_list_controlnet_module_list_get(opts = {})
1853
+ data, _status_code, _headers = module_list_controlnet_module_list_get_with_http_info(opts)
1854
+ data
1855
+ end
1856
+
1857
+ # Module List
1858
+ # @param [Hash] opts the optional parameters
1859
+ # @option opts [Boolean] :alias_names (default to false)
1860
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1861
+ def module_list_controlnet_module_list_get_with_http_info(opts = {})
1862
+ if @api_client.config.debugging
1863
+ @api_client.config.logger.debug 'Calling API: DefaultApi.module_list_controlnet_module_list_get ...'
1864
+ end
1865
+ # resource path
1866
+ local_var_path = '/controlnet/module_list'
1867
+
1868
+ # query parameters
1869
+ query_params = opts[:query_params] || {}
1870
+ query_params[:'alias_names'] = opts[:'alias_names'] if !opts[:'alias_names'].nil?
1871
+
1872
+ # header parameters
1873
+ header_params = opts[:header_params] || {}
1874
+ # HTTP header 'Accept' (if needed)
1875
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1876
+
1877
+ # form parameters
1878
+ form_params = opts[:form_params] || {}
1879
+
1880
+ # http body (model)
1881
+ post_body = opts[:debug_body]
1882
+
1883
+ # return_type
1884
+ return_type = opts[:debug_return_type] || 'Object'
1885
+
1886
+ # auth_names
1887
+ auth_names = opts[:debug_auth_names] || []
1888
+
1889
+ new_options = opts.merge(
1890
+ :operation => :"DefaultApi.module_list_controlnet_module_list_get",
1891
+ :header_params => header_params,
1892
+ :query_params => query_params,
1893
+ :form_params => form_params,
1894
+ :body => post_body,
1895
+ :auth_names => auth_names,
1896
+ :return_type => return_type
1897
+ )
1898
+
1899
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1900
+ if @api_client.config.debugging
1901
+ @api_client.config.logger.debug "API called: DefaultApi#module_list_controlnet_module_list_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1902
+ end
1903
+ return data, status_code, headers
1904
+ end
1905
+
1906
+ # Predict
1907
+ # @param api_name [String]
1908
+ # @param predict_body [PredictBody]
1909
+ # @param [Hash] opts the optional parameters
1910
+ # @return [Object]
1911
+ def predict_api_api_name_post(api_name, predict_body, opts = {})
1912
+ data, _status_code, _headers = predict_api_api_name_post_with_http_info(api_name, predict_body, opts)
1913
+ data
1914
+ end
1915
+
1916
+ # Predict
1917
+ # @param api_name [String]
1918
+ # @param predict_body [PredictBody]
1919
+ # @param [Hash] opts the optional parameters
1920
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1921
+ def predict_api_api_name_post_with_http_info(api_name, predict_body, opts = {})
1922
+ if @api_client.config.debugging
1923
+ @api_client.config.logger.debug 'Calling API: DefaultApi.predict_api_api_name_post ...'
1924
+ end
1925
+ # verify the required parameter 'api_name' is set
1926
+ if @api_client.config.client_side_validation && api_name.nil?
1927
+ fail ArgumentError, "Missing the required parameter 'api_name' when calling DefaultApi.predict_api_api_name_post"
1928
+ end
1929
+ # verify the required parameter 'predict_body' is set
1930
+ if @api_client.config.client_side_validation && predict_body.nil?
1931
+ fail ArgumentError, "Missing the required parameter 'predict_body' when calling DefaultApi.predict_api_api_name_post"
1932
+ end
1933
+ # resource path
1934
+ local_var_path = '/api/{api_name}/'.sub('{' + 'api_name' + '}', CGI.escape(api_name.to_s))
1935
+
1936
+ # query parameters
1937
+ query_params = opts[:query_params] || {}
1938
+
1939
+ # header parameters
1940
+ header_params = opts[:header_params] || {}
1941
+ # HTTP header 'Accept' (if needed)
1942
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1943
+ # HTTP header 'Content-Type'
1944
+ content_type = @api_client.select_header_content_type(['application/json'])
1945
+ if !content_type.nil?
1946
+ header_params['Content-Type'] = content_type
1947
+ end
1948
+
1949
+ # form parameters
1950
+ form_params = opts[:form_params] || {}
1951
+
1952
+ # http body (model)
1953
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(predict_body)
1954
+
1955
+ # return_type
1956
+ return_type = opts[:debug_return_type] || 'Object'
1957
+
1958
+ # auth_names
1959
+ auth_names = opts[:debug_auth_names] || []
1960
+
1961
+ new_options = opts.merge(
1962
+ :operation => :"DefaultApi.predict_api_api_name_post",
1963
+ :header_params => header_params,
1964
+ :query_params => query_params,
1965
+ :form_params => form_params,
1966
+ :body => post_body,
1967
+ :auth_names => auth_names,
1968
+ :return_type => return_type
1969
+ )
1970
+
1971
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1972
+ if @api_client.config.debugging
1973
+ @api_client.config.logger.debug "API called: DefaultApi#predict_api_api_name_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1974
+ end
1975
+ return data, status_code, headers
1976
+ end
1977
+
1978
+ # Predict
1979
+ # @param api_name [String]
1980
+ # @param predict_body [PredictBody]
1981
+ # @param [Hash] opts the optional parameters
1982
+ # @return [Object]
1983
+ def predict_api_api_name_post_0(api_name, predict_body, opts = {})
1984
+ data, _status_code, _headers = predict_api_api_name_post_0_with_http_info(api_name, predict_body, opts)
1985
+ data
1986
+ end
1987
+
1988
+ # Predict
1989
+ # @param api_name [String]
1990
+ # @param predict_body [PredictBody]
1991
+ # @param [Hash] opts the optional parameters
1992
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1993
+ def predict_api_api_name_post_0_with_http_info(api_name, predict_body, opts = {})
1994
+ if @api_client.config.debugging
1995
+ @api_client.config.logger.debug 'Calling API: DefaultApi.predict_api_api_name_post_0 ...'
1996
+ end
1997
+ # verify the required parameter 'api_name' is set
1998
+ if @api_client.config.client_side_validation && api_name.nil?
1999
+ fail ArgumentError, "Missing the required parameter 'api_name' when calling DefaultApi.predict_api_api_name_post_0"
2000
+ end
2001
+ # verify the required parameter 'predict_body' is set
2002
+ if @api_client.config.client_side_validation && predict_body.nil?
2003
+ fail ArgumentError, "Missing the required parameter 'predict_body' when calling DefaultApi.predict_api_api_name_post_0"
2004
+ end
2005
+ # resource path
2006
+ local_var_path = '/api/{api_name}'.sub('{' + 'api_name' + '}', CGI.escape(api_name.to_s))
2007
+
2008
+ # query parameters
2009
+ query_params = opts[:query_params] || {}
2010
+
2011
+ # header parameters
2012
+ header_params = opts[:header_params] || {}
2013
+ # HTTP header 'Accept' (if needed)
2014
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2015
+ # HTTP header 'Content-Type'
2016
+ content_type = @api_client.select_header_content_type(['application/json'])
2017
+ if !content_type.nil?
2018
+ header_params['Content-Type'] = content_type
2019
+ end
2020
+
2021
+ # form parameters
2022
+ form_params = opts[:form_params] || {}
2023
+
2024
+ # http body (model)
2025
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(predict_body)
2026
+
2027
+ # return_type
2028
+ return_type = opts[:debug_return_type] || 'Object'
2029
+
2030
+ # auth_names
2031
+ auth_names = opts[:debug_auth_names] || []
2032
+
2033
+ new_options = opts.merge(
2034
+ :operation => :"DefaultApi.predict_api_api_name_post_0",
2035
+ :header_params => header_params,
2036
+ :query_params => query_params,
2037
+ :form_params => form_params,
2038
+ :body => post_body,
2039
+ :auth_names => auth_names,
2040
+ :return_type => return_type
2041
+ )
2042
+
2043
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2044
+ if @api_client.config.debugging
2045
+ @api_client.config.logger.debug "API called: DefaultApi#predict_api_api_name_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2046
+ end
2047
+ return data, status_code, headers
2048
+ end
2049
+
2050
+ # Predict
2051
+ # @param api_name [String]
2052
+ # @param predict_body [PredictBody]
2053
+ # @param [Hash] opts the optional parameters
2054
+ # @return [Object]
2055
+ def predict_run_api_name_post(api_name, predict_body, opts = {})
2056
+ data, _status_code, _headers = predict_run_api_name_post_with_http_info(api_name, predict_body, opts)
2057
+ data
2058
+ end
2059
+
2060
+ # Predict
2061
+ # @param api_name [String]
2062
+ # @param predict_body [PredictBody]
2063
+ # @param [Hash] opts the optional parameters
2064
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2065
+ def predict_run_api_name_post_with_http_info(api_name, predict_body, opts = {})
2066
+ if @api_client.config.debugging
2067
+ @api_client.config.logger.debug 'Calling API: DefaultApi.predict_run_api_name_post ...'
2068
+ end
2069
+ # verify the required parameter 'api_name' is set
2070
+ if @api_client.config.client_side_validation && api_name.nil?
2071
+ fail ArgumentError, "Missing the required parameter 'api_name' when calling DefaultApi.predict_run_api_name_post"
2072
+ end
2073
+ # verify the required parameter 'predict_body' is set
2074
+ if @api_client.config.client_side_validation && predict_body.nil?
2075
+ fail ArgumentError, "Missing the required parameter 'predict_body' when calling DefaultApi.predict_run_api_name_post"
2076
+ end
2077
+ # resource path
2078
+ local_var_path = '/run/{api_name}/'.sub('{' + 'api_name' + '}', CGI.escape(api_name.to_s))
2079
+
2080
+ # query parameters
2081
+ query_params = opts[:query_params] || {}
2082
+
2083
+ # header parameters
2084
+ header_params = opts[:header_params] || {}
2085
+ # HTTP header 'Accept' (if needed)
2086
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2087
+ # HTTP header 'Content-Type'
2088
+ content_type = @api_client.select_header_content_type(['application/json'])
2089
+ if !content_type.nil?
2090
+ header_params['Content-Type'] = content_type
2091
+ end
2092
+
2093
+ # form parameters
2094
+ form_params = opts[:form_params] || {}
2095
+
2096
+ # http body (model)
2097
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(predict_body)
2098
+
2099
+ # return_type
2100
+ return_type = opts[:debug_return_type] || 'Object'
2101
+
2102
+ # auth_names
2103
+ auth_names = opts[:debug_auth_names] || []
2104
+
2105
+ new_options = opts.merge(
2106
+ :operation => :"DefaultApi.predict_run_api_name_post",
2107
+ :header_params => header_params,
2108
+ :query_params => query_params,
2109
+ :form_params => form_params,
2110
+ :body => post_body,
2111
+ :auth_names => auth_names,
2112
+ :return_type => return_type
2113
+ )
2114
+
2115
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2116
+ if @api_client.config.debugging
2117
+ @api_client.config.logger.debug "API called: DefaultApi#predict_run_api_name_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2118
+ end
2119
+ return data, status_code, headers
2120
+ end
2121
+
2122
+ # Predict
2123
+ # @param api_name [String]
2124
+ # @param predict_body [PredictBody]
2125
+ # @param [Hash] opts the optional parameters
2126
+ # @return [Object]
2127
+ def predict_run_api_name_post_0(api_name, predict_body, opts = {})
2128
+ data, _status_code, _headers = predict_run_api_name_post_0_with_http_info(api_name, predict_body, opts)
2129
+ data
2130
+ end
2131
+
2132
+ # Predict
2133
+ # @param api_name [String]
2134
+ # @param predict_body [PredictBody]
2135
+ # @param [Hash] opts the optional parameters
2136
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2137
+ def predict_run_api_name_post_0_with_http_info(api_name, predict_body, opts = {})
2138
+ if @api_client.config.debugging
2139
+ @api_client.config.logger.debug 'Calling API: DefaultApi.predict_run_api_name_post_0 ...'
2140
+ end
2141
+ # verify the required parameter 'api_name' is set
2142
+ if @api_client.config.client_side_validation && api_name.nil?
2143
+ fail ArgumentError, "Missing the required parameter 'api_name' when calling DefaultApi.predict_run_api_name_post_0"
2144
+ end
2145
+ # verify the required parameter 'predict_body' is set
2146
+ if @api_client.config.client_side_validation && predict_body.nil?
2147
+ fail ArgumentError, "Missing the required parameter 'predict_body' when calling DefaultApi.predict_run_api_name_post_0"
2148
+ end
2149
+ # resource path
2150
+ local_var_path = '/run/{api_name}'.sub('{' + 'api_name' + '}', CGI.escape(api_name.to_s))
2151
+
2152
+ # query parameters
2153
+ query_params = opts[:query_params] || {}
2154
+
2155
+ # header parameters
2156
+ header_params = opts[:header_params] || {}
2157
+ # HTTP header 'Accept' (if needed)
2158
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2159
+ # HTTP header 'Content-Type'
2160
+ content_type = @api_client.select_header_content_type(['application/json'])
2161
+ if !content_type.nil?
2162
+ header_params['Content-Type'] = content_type
2163
+ end
2164
+
2165
+ # form parameters
2166
+ form_params = opts[:form_params] || {}
2167
+
2168
+ # http body (model)
2169
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(predict_body)
2170
+
2171
+ # return_type
2172
+ return_type = opts[:debug_return_type] || 'Object'
2173
+
2174
+ # auth_names
2175
+ auth_names = opts[:debug_auth_names] || []
2176
+
2177
+ new_options = opts.merge(
2178
+ :operation => :"DefaultApi.predict_run_api_name_post_0",
2179
+ :header_params => header_params,
2180
+ :query_params => query_params,
2181
+ :form_params => form_params,
2182
+ :body => post_body,
2183
+ :auth_names => auth_names,
2184
+ :return_type => return_type
2185
+ )
2186
+
2187
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2188
+ if @api_client.config.debugging
2189
+ @api_client.config.logger.debug "API called: DefaultApi#predict_run_api_name_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2190
+ end
2191
+ return data, status_code, headers
2192
+ end
2193
+
2194
+ # Progressapi
2195
+ # @param progress_request [ProgressRequest]
2196
+ # @param [Hash] opts the optional parameters
2197
+ # @return [ProgressResponse]
2198
+ def progressapi_internal_progress_post(progress_request, opts = {})
2199
+ data, _status_code, _headers = progressapi_internal_progress_post_with_http_info(progress_request, opts)
2200
+ data
2201
+ end
2202
+
2203
+ # Progressapi
2204
+ # @param progress_request [ProgressRequest]
2205
+ # @param [Hash] opts the optional parameters
2206
+ # @return [Array<(ProgressResponse, Integer, Hash)>] ProgressResponse data, response status code and response headers
2207
+ def progressapi_internal_progress_post_with_http_info(progress_request, opts = {})
2208
+ if @api_client.config.debugging
2209
+ @api_client.config.logger.debug 'Calling API: DefaultApi.progressapi_internal_progress_post ...'
2210
+ end
2211
+ # verify the required parameter 'progress_request' is set
2212
+ if @api_client.config.client_side_validation && progress_request.nil?
2213
+ fail ArgumentError, "Missing the required parameter 'progress_request' when calling DefaultApi.progressapi_internal_progress_post"
2214
+ end
2215
+ # resource path
2216
+ local_var_path = '/internal/progress'
2217
+
2218
+ # query parameters
2219
+ query_params = opts[:query_params] || {}
2220
+
2221
+ # header parameters
2222
+ header_params = opts[:header_params] || {}
2223
+ # HTTP header 'Accept' (if needed)
2224
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2225
+ # HTTP header 'Content-Type'
2226
+ content_type = @api_client.select_header_content_type(['application/json'])
2227
+ if !content_type.nil?
2228
+ header_params['Content-Type'] = content_type
2229
+ end
2230
+
2231
+ # form parameters
2232
+ form_params = opts[:form_params] || {}
2233
+
2234
+ # http body (model)
2235
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(progress_request)
2236
+
2237
+ # return_type
2238
+ return_type = opts[:debug_return_type] || 'ProgressResponse'
2239
+
2240
+ # auth_names
2241
+ auth_names = opts[:debug_auth_names] || []
2242
+
2243
+ new_options = opts.merge(
2244
+ :operation => :"DefaultApi.progressapi_internal_progress_post",
2245
+ :header_params => header_params,
2246
+ :query_params => query_params,
2247
+ :form_params => form_params,
2248
+ :body => post_body,
2249
+ :auth_names => auth_names,
2250
+ :return_type => return_type
2251
+ )
2252
+
2253
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2254
+ if @api_client.config.debugging
2255
+ @api_client.config.logger.debug "API called: DefaultApi#progressapi_internal_progress_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2256
+ end
2257
+ return data, status_code, headers
2258
+ end
2259
+
2260
+ # Quicksettings Hint
2261
+ # @param [Hash] opts the optional parameters
2262
+ # @return [Array<QuicksettingsHint>]
2263
+ def quicksettings_hint_internal_quicksettings_hint_get(opts = {})
2264
+ data, _status_code, _headers = quicksettings_hint_internal_quicksettings_hint_get_with_http_info(opts)
2265
+ data
2266
+ end
2267
+
2268
+ # Quicksettings Hint
2269
+ # @param [Hash] opts the optional parameters
2270
+ # @return [Array<(Array<QuicksettingsHint>, Integer, Hash)>] Array<QuicksettingsHint> data, response status code and response headers
2271
+ def quicksettings_hint_internal_quicksettings_hint_get_with_http_info(opts = {})
2272
+ if @api_client.config.debugging
2273
+ @api_client.config.logger.debug 'Calling API: DefaultApi.quicksettings_hint_internal_quicksettings_hint_get ...'
2274
+ end
2275
+ # resource path
2276
+ local_var_path = '/internal/quicksettings-hint'
2277
+
2278
+ # query parameters
2279
+ query_params = opts[:query_params] || {}
2280
+
2281
+ # header parameters
2282
+ header_params = opts[:header_params] || {}
2283
+ # HTTP header 'Accept' (if needed)
2284
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2285
+
2286
+ # form parameters
2287
+ form_params = opts[:form_params] || {}
2288
+
2289
+ # http body (model)
2290
+ post_body = opts[:debug_body]
2291
+
2292
+ # return_type
2293
+ return_type = opts[:debug_return_type] || 'Array<QuicksettingsHint>'
2294
+
2295
+ # auth_names
2296
+ auth_names = opts[:debug_auth_names] || []
2297
+
2298
+ new_options = opts.merge(
2299
+ :operation => :"DefaultApi.quicksettings_hint_internal_quicksettings_hint_get",
2300
+ :header_params => header_params,
2301
+ :query_params => query_params,
2302
+ :form_params => form_params,
2303
+ :body => post_body,
2304
+ :auth_names => auth_names,
2305
+ :return_type => return_type
2306
+ )
2307
+
2308
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2309
+ if @api_client.config.debugging
2310
+ @api_client.config.logger.debug "API called: DefaultApi#quicksettings_hint_internal_quicksettings_hint_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2311
+ end
2312
+ return data, status_code, headers
2313
+ end
2314
+
2315
+ # Refresh Loras
2316
+ # @param [Hash] opts the optional parameters
2317
+ # @return [Object]
2318
+ def refresh_loras_sdapi_v1_refresh_loras_post(opts = {})
2319
+ data, _status_code, _headers = refresh_loras_sdapi_v1_refresh_loras_post_with_http_info(opts)
2320
+ data
2321
+ end
2322
+
2323
+ # Refresh Loras
2324
+ # @param [Hash] opts the optional parameters
2325
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2326
+ def refresh_loras_sdapi_v1_refresh_loras_post_with_http_info(opts = {})
2327
+ if @api_client.config.debugging
2328
+ @api_client.config.logger.debug 'Calling API: DefaultApi.refresh_loras_sdapi_v1_refresh_loras_post ...'
2329
+ end
2330
+ # resource path
2331
+ local_var_path = '/sdapi/v1/refresh-loras'
2332
+
2333
+ # query parameters
2334
+ query_params = opts[:query_params] || {}
2335
+
2336
+ # header parameters
2337
+ header_params = opts[:header_params] || {}
2338
+ # HTTP header 'Accept' (if needed)
2339
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2340
+
2341
+ # form parameters
2342
+ form_params = opts[:form_params] || {}
2343
+
2344
+ # http body (model)
2345
+ post_body = opts[:debug_body]
2346
+
2347
+ # return_type
2348
+ return_type = opts[:debug_return_type] || 'Object'
2349
+
2350
+ # auth_names
2351
+ auth_names = opts[:debug_auth_names] || []
2352
+
2353
+ new_options = opts.merge(
2354
+ :operation => :"DefaultApi.refresh_loras_sdapi_v1_refresh_loras_post",
2355
+ :header_params => header_params,
2356
+ :query_params => query_params,
2357
+ :form_params => form_params,
2358
+ :body => post_body,
2359
+ :auth_names => auth_names,
2360
+ :return_type => return_type
2361
+ )
2362
+
2363
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2364
+ if @api_client.config.debugging
2365
+ @api_client.config.logger.debug "API called: DefaultApi#refresh_loras_sdapi_v1_refresh_loras_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2366
+ end
2367
+ return data, status_code, headers
2368
+ end
2369
+
2370
+ # Reset Iterator
2371
+ # @param reset_body [ResetBody]
2372
+ # @param [Hash] opts the optional parameters
2373
+ # @return [Object]
2374
+ def reset_iterator_reset_post(reset_body, opts = {})
2375
+ data, _status_code, _headers = reset_iterator_reset_post_with_http_info(reset_body, opts)
2376
+ data
2377
+ end
2378
+
2379
+ # Reset Iterator
2380
+ # @param reset_body [ResetBody]
2381
+ # @param [Hash] opts the optional parameters
2382
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2383
+ def reset_iterator_reset_post_with_http_info(reset_body, opts = {})
2384
+ if @api_client.config.debugging
2385
+ @api_client.config.logger.debug 'Calling API: DefaultApi.reset_iterator_reset_post ...'
2386
+ end
2387
+ # verify the required parameter 'reset_body' is set
2388
+ if @api_client.config.client_side_validation && reset_body.nil?
2389
+ fail ArgumentError, "Missing the required parameter 'reset_body' when calling DefaultApi.reset_iterator_reset_post"
2390
+ end
2391
+ # resource path
2392
+ local_var_path = '/reset'
2393
+
2394
+ # query parameters
2395
+ query_params = opts[:query_params] || {}
2396
+
2397
+ # header parameters
2398
+ header_params = opts[:header_params] || {}
2399
+ # HTTP header 'Accept' (if needed)
2400
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2401
+ # HTTP header 'Content-Type'
2402
+ content_type = @api_client.select_header_content_type(['application/json'])
2403
+ if !content_type.nil?
2404
+ header_params['Content-Type'] = content_type
2405
+ end
2406
+
2407
+ # form parameters
2408
+ form_params = opts[:form_params] || {}
2409
+
2410
+ # http body (model)
2411
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(reset_body)
2412
+
2413
+ # return_type
2414
+ return_type = opts[:debug_return_type] || 'Object'
2415
+
2416
+ # auth_names
2417
+ auth_names = opts[:debug_auth_names] || []
2418
+
2419
+ new_options = opts.merge(
2420
+ :operation => :"DefaultApi.reset_iterator_reset_post",
2421
+ :header_params => header_params,
2422
+ :query_params => query_params,
2423
+ :form_params => form_params,
2424
+ :body => post_body,
2425
+ :auth_names => auth_names,
2426
+ :return_type => return_type
2427
+ )
2428
+
2429
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2430
+ if @api_client.config.debugging
2431
+ @api_client.config.logger.debug "API called: DefaultApi#reset_iterator_reset_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2432
+ end
2433
+ return data, status_code, headers
2434
+ end
2435
+
2436
+ # Reset Iterator
2437
+ # @param reset_body [ResetBody]
2438
+ # @param [Hash] opts the optional parameters
2439
+ # @return [Object]
2440
+ def reset_iterator_reset_post_0(reset_body, opts = {})
2441
+ data, _status_code, _headers = reset_iterator_reset_post_0_with_http_info(reset_body, opts)
2442
+ data
2443
+ end
2444
+
2445
+ # Reset Iterator
2446
+ # @param reset_body [ResetBody]
2447
+ # @param [Hash] opts the optional parameters
2448
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2449
+ def reset_iterator_reset_post_0_with_http_info(reset_body, opts = {})
2450
+ if @api_client.config.debugging
2451
+ @api_client.config.logger.debug 'Calling API: DefaultApi.reset_iterator_reset_post_0 ...'
2452
+ end
2453
+ # verify the required parameter 'reset_body' is set
2454
+ if @api_client.config.client_side_validation && reset_body.nil?
2455
+ fail ArgumentError, "Missing the required parameter 'reset_body' when calling DefaultApi.reset_iterator_reset_post_0"
2456
+ end
2457
+ # resource path
2458
+ local_var_path = '/reset/'
2459
+
2460
+ # query parameters
2461
+ query_params = opts[:query_params] || {}
2462
+
2463
+ # header parameters
2464
+ header_params = opts[:header_params] || {}
2465
+ # HTTP header 'Accept' (if needed)
2466
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2467
+ # HTTP header 'Content-Type'
2468
+ content_type = @api_client.select_header_content_type(['application/json'])
2469
+ if !content_type.nil?
2470
+ header_params['Content-Type'] = content_type
2471
+ end
2472
+
2473
+ # form parameters
2474
+ form_params = opts[:form_params] || {}
2475
+
2476
+ # http body (model)
2477
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(reset_body)
2478
+
2479
+ # return_type
2480
+ return_type = opts[:debug_return_type] || 'Object'
2481
+
2482
+ # auth_names
2483
+ auth_names = opts[:debug_auth_names] || []
2484
+
2485
+ new_options = opts.merge(
2486
+ :operation => :"DefaultApi.reset_iterator_reset_post_0",
2487
+ :header_params => header_params,
2488
+ :query_params => query_params,
2489
+ :form_params => form_params,
2490
+ :body => post_body,
2491
+ :auth_names => auth_names,
2492
+ :return_type => return_type
2493
+ )
2494
+
2495
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2496
+ if @api_client.config.debugging
2497
+ @api_client.config.logger.debug "API called: DefaultApi#reset_iterator_reset_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2498
+ end
2499
+ return data, status_code, headers
2500
+ end
2501
+
2502
+ # Reverse Proxy
2503
+ # @param url_path [String]
2504
+ # @param [Hash] opts the optional parameters
2505
+ # @return [Object]
2506
+ def reverse_proxy_proxy_url_path_get(url_path, opts = {})
2507
+ data, _status_code, _headers = reverse_proxy_proxy_url_path_get_with_http_info(url_path, opts)
2508
+ data
2509
+ end
2510
+
2511
+ # Reverse Proxy
2512
+ # @param url_path [String]
2513
+ # @param [Hash] opts the optional parameters
2514
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2515
+ def reverse_proxy_proxy_url_path_get_with_http_info(url_path, opts = {})
2516
+ if @api_client.config.debugging
2517
+ @api_client.config.logger.debug 'Calling API: DefaultApi.reverse_proxy_proxy_url_path_get ...'
2518
+ end
2519
+ # verify the required parameter 'url_path' is set
2520
+ if @api_client.config.client_side_validation && url_path.nil?
2521
+ fail ArgumentError, "Missing the required parameter 'url_path' when calling DefaultApi.reverse_proxy_proxy_url_path_get"
2522
+ end
2523
+ # resource path
2524
+ local_var_path = '/proxy={url_path}'.sub('{' + 'url_path' + '}', CGI.escape(url_path.to_s))
2525
+
2526
+ # query parameters
2527
+ query_params = opts[:query_params] || {}
2528
+
2529
+ # header parameters
2530
+ header_params = opts[:header_params] || {}
2531
+ # HTTP header 'Accept' (if needed)
2532
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2533
+
2534
+ # form parameters
2535
+ form_params = opts[:form_params] || {}
2536
+
2537
+ # http body (model)
2538
+ post_body = opts[:debug_body]
2539
+
2540
+ # return_type
2541
+ return_type = opts[:debug_return_type] || 'Object'
2542
+
2543
+ # auth_names
2544
+ auth_names = opts[:debug_auth_names] || []
2545
+
2546
+ new_options = opts.merge(
2547
+ :operation => :"DefaultApi.reverse_proxy_proxy_url_path_get",
2548
+ :header_params => header_params,
2549
+ :query_params => query_params,
2550
+ :form_params => form_params,
2551
+ :body => post_body,
2552
+ :auth_names => auth_names,
2553
+ :return_type => return_type
2554
+ )
2555
+
2556
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2557
+ if @api_client.config.debugging
2558
+ @api_client.config.logger.debug "API called: DefaultApi#reverse_proxy_proxy_url_path_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2559
+ end
2560
+ return data, status_code, headers
2561
+ end
2562
+
2563
+ # Reverse Proxy
2564
+ # @param url_path [String]
2565
+ # @param [Hash] opts the optional parameters
2566
+ # @return [Object]
2567
+ def reverse_proxy_proxy_url_path_head(url_path, opts = {})
2568
+ data, _status_code, _headers = reverse_proxy_proxy_url_path_head_with_http_info(url_path, opts)
2569
+ data
2570
+ end
2571
+
2572
+ # Reverse Proxy
2573
+ # @param url_path [String]
2574
+ # @param [Hash] opts the optional parameters
2575
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2576
+ def reverse_proxy_proxy_url_path_head_with_http_info(url_path, opts = {})
2577
+ if @api_client.config.debugging
2578
+ @api_client.config.logger.debug 'Calling API: DefaultApi.reverse_proxy_proxy_url_path_head ...'
2579
+ end
2580
+ # verify the required parameter 'url_path' is set
2581
+ if @api_client.config.client_side_validation && url_path.nil?
2582
+ fail ArgumentError, "Missing the required parameter 'url_path' when calling DefaultApi.reverse_proxy_proxy_url_path_head"
2583
+ end
2584
+ # resource path
2585
+ local_var_path = '/proxy={url_path}'.sub('{' + 'url_path' + '}', CGI.escape(url_path.to_s))
2586
+
2587
+ # query parameters
2588
+ query_params = opts[:query_params] || {}
2589
+
2590
+ # header parameters
2591
+ header_params = opts[:header_params] || {}
2592
+ # HTTP header 'Accept' (if needed)
2593
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2594
+
2595
+ # form parameters
2596
+ form_params = opts[:form_params] || {}
2597
+
2598
+ # http body (model)
2599
+ post_body = opts[:debug_body]
2600
+
2601
+ # return_type
2602
+ return_type = opts[:debug_return_type] || 'Object'
2603
+
2604
+ # auth_names
2605
+ auth_names = opts[:debug_auth_names] || []
2606
+
2607
+ new_options = opts.merge(
2608
+ :operation => :"DefaultApi.reverse_proxy_proxy_url_path_head",
2609
+ :header_params => header_params,
2610
+ :query_params => query_params,
2611
+ :form_params => form_params,
2612
+ :body => post_body,
2613
+ :auth_names => auth_names,
2614
+ :return_type => return_type
2615
+ )
2616
+
2617
+ data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options)
2618
+ if @api_client.config.debugging
2619
+ @api_client.config.logger.debug "API called: DefaultApi#reverse_proxy_proxy_url_path_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2620
+ end
2621
+ return data, status_code, headers
2622
+ end
2623
+
2624
+ # Robots Txt
2625
+ # @param [Hash] opts the optional parameters
2626
+ # @return [String]
2627
+ def robots_txt_robots_txt_get(opts = {})
2628
+ data, _status_code, _headers = robots_txt_robots_txt_get_with_http_info(opts)
2629
+ data
2630
+ end
2631
+
2632
+ # Robots Txt
2633
+ # @param [Hash] opts the optional parameters
2634
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
2635
+ def robots_txt_robots_txt_get_with_http_info(opts = {})
2636
+ if @api_client.config.debugging
2637
+ @api_client.config.logger.debug 'Calling API: DefaultApi.robots_txt_robots_txt_get ...'
2638
+ end
2639
+ # resource path
2640
+ local_var_path = '/robots.txt'
2641
+
2642
+ # query parameters
2643
+ query_params = opts[:query_params] || {}
2644
+
2645
+ # header parameters
2646
+ header_params = opts[:header_params] || {}
2647
+ # HTTP header 'Accept' (if needed)
2648
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
2649
+
2650
+ # form parameters
2651
+ form_params = opts[:form_params] || {}
2652
+
2653
+ # http body (model)
2654
+ post_body = opts[:debug_body]
2655
+
2656
+ # return_type
2657
+ return_type = opts[:debug_return_type] || 'String'
2658
+
2659
+ # auth_names
2660
+ auth_names = opts[:debug_auth_names] || []
2661
+
2662
+ new_options = opts.merge(
2663
+ :operation => :"DefaultApi.robots_txt_robots_txt_get",
2664
+ :header_params => header_params,
2665
+ :query_params => query_params,
2666
+ :form_params => form_params,
2667
+ :body => post_body,
2668
+ :auth_names => auth_names,
2669
+ :return_type => return_type
2670
+ )
2671
+
2672
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2673
+ if @api_client.config.debugging
2674
+ @api_client.config.logger.debug "API called: DefaultApi#robots_txt_robots_txt_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2675
+ end
2676
+ return data, status_code, headers
2677
+ end
2678
+
2679
+ # Settings
2680
+ # @param [Hash] opts the optional parameters
2681
+ # @return [Object]
2682
+ def settings_controlnet_settings_get(opts = {})
2683
+ data, _status_code, _headers = settings_controlnet_settings_get_with_http_info(opts)
2684
+ data
2685
+ end
2686
+
2687
+ # Settings
2688
+ # @param [Hash] opts the optional parameters
2689
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2690
+ def settings_controlnet_settings_get_with_http_info(opts = {})
2691
+ if @api_client.config.debugging
2692
+ @api_client.config.logger.debug 'Calling API: DefaultApi.settings_controlnet_settings_get ...'
2693
+ end
2694
+ # resource path
2695
+ local_var_path = '/controlnet/settings'
2696
+
2697
+ # query parameters
2698
+ query_params = opts[:query_params] || {}
2699
+
2700
+ # header parameters
2701
+ header_params = opts[:header_params] || {}
2702
+ # HTTP header 'Accept' (if needed)
2703
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2704
+
2705
+ # form parameters
2706
+ form_params = opts[:form_params] || {}
2707
+
2708
+ # http body (model)
2709
+ post_body = opts[:debug_body]
2710
+
2711
+ # return_type
2712
+ return_type = opts[:debug_return_type] || 'Object'
2713
+
2714
+ # auth_names
2715
+ auth_names = opts[:debug_auth_names] || []
2716
+
2717
+ new_options = opts.merge(
2718
+ :operation => :"DefaultApi.settings_controlnet_settings_get",
2719
+ :header_params => header_params,
2720
+ :query_params => query_params,
2721
+ :form_params => form_params,
2722
+ :body => post_body,
2723
+ :auth_names => auth_names,
2724
+ :return_type => return_type
2725
+ )
2726
+
2727
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2728
+ if @api_client.config.debugging
2729
+ @api_client.config.logger.debug "API called: DefaultApi#settings_controlnet_settings_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2730
+ end
2731
+ return data, status_code, headers
2732
+ end
2733
+
2734
+ # Startup Events
2735
+ # @param [Hash] opts the optional parameters
2736
+ # @return [Object]
2737
+ def startup_events_startup_events_get(opts = {})
2738
+ data, _status_code, _headers = startup_events_startup_events_get_with_http_info(opts)
2739
+ data
2740
+ end
2741
+
2742
+ # Startup Events
2743
+ # @param [Hash] opts the optional parameters
2744
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2745
+ def startup_events_startup_events_get_with_http_info(opts = {})
2746
+ if @api_client.config.debugging
2747
+ @api_client.config.logger.debug 'Calling API: DefaultApi.startup_events_startup_events_get ...'
2748
+ end
2749
+ # resource path
2750
+ local_var_path = '/startup-events'
2751
+
2752
+ # query parameters
2753
+ query_params = opts[:query_params] || {}
2754
+
2755
+ # header parameters
2756
+ header_params = opts[:header_params] || {}
2757
+ # HTTP header 'Accept' (if needed)
2758
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2759
+
2760
+ # form parameters
2761
+ form_params = opts[:form_params] || {}
2762
+
2763
+ # http body (model)
2764
+ post_body = opts[:debug_body]
2765
+
2766
+ # return_type
2767
+ return_type = opts[:debug_return_type] || 'Object'
2768
+
2769
+ # auth_names
2770
+ auth_names = opts[:debug_auth_names] || []
2771
+
2772
+ new_options = opts.merge(
2773
+ :operation => :"DefaultApi.startup_events_startup_events_get",
2774
+ :header_params => header_params,
2775
+ :query_params => query_params,
2776
+ :form_params => form_params,
2777
+ :body => post_body,
2778
+ :auth_names => auth_names,
2779
+ :return_type => return_type
2780
+ )
2781
+
2782
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2783
+ if @api_client.config.debugging
2784
+ @api_client.config.logger.debug "API called: DefaultApi#startup_events_startup_events_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2785
+ end
2786
+ return data, status_code, headers
2787
+ end
2788
+
2789
+ # Static Resource
2790
+ # @param path [String]
2791
+ # @param [Hash] opts the optional parameters
2792
+ # @return [Object]
2793
+ def static_resource_static_path_get(path, opts = {})
2794
+ data, _status_code, _headers = static_resource_static_path_get_with_http_info(path, opts)
2795
+ data
2796
+ end
2797
+
2798
+ # Static Resource
2799
+ # @param path [String]
2800
+ # @param [Hash] opts the optional parameters
2801
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2802
+ def static_resource_static_path_get_with_http_info(path, opts = {})
2803
+ if @api_client.config.debugging
2804
+ @api_client.config.logger.debug 'Calling API: DefaultApi.static_resource_static_path_get ...'
2805
+ end
2806
+ # verify the required parameter 'path' is set
2807
+ if @api_client.config.client_side_validation && path.nil?
2808
+ fail ArgumentError, "Missing the required parameter 'path' when calling DefaultApi.static_resource_static_path_get"
2809
+ end
2810
+ # resource path
2811
+ local_var_path = '/static/{path}'.sub('{' + 'path' + '}', CGI.escape(path.to_s))
2812
+
2813
+ # query parameters
2814
+ query_params = opts[:query_params] || {}
2815
+
2816
+ # header parameters
2817
+ header_params = opts[:header_params] || {}
2818
+ # HTTP header 'Accept' (if needed)
2819
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2820
+
2821
+ # form parameters
2822
+ form_params = opts[:form_params] || {}
2823
+
2824
+ # http body (model)
2825
+ post_body = opts[:debug_body]
2826
+
2827
+ # return_type
2828
+ return_type = opts[:debug_return_type] || 'Object'
2829
+
2830
+ # auth_names
2831
+ auth_names = opts[:debug_auth_names] || []
2832
+
2833
+ new_options = opts.merge(
2834
+ :operation => :"DefaultApi.static_resource_static_path_get",
2835
+ :header_params => header_params,
2836
+ :query_params => query_params,
2837
+ :form_params => form_params,
2838
+ :body => post_body,
2839
+ :auth_names => auth_names,
2840
+ :return_type => return_type
2841
+ )
2842
+
2843
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2844
+ if @api_client.config.debugging
2845
+ @api_client.config.logger.debug "API called: DefaultApi#static_resource_static_path_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2846
+ end
2847
+ return data, status_code, headers
2848
+ end
2849
+
2850
+ # Theme Css
2851
+ # @param [Hash] opts the optional parameters
2852
+ # @return [String]
2853
+ def theme_css_theme_css_get(opts = {})
2854
+ data, _status_code, _headers = theme_css_theme_css_get_with_http_info(opts)
2855
+ data
2856
+ end
2857
+
2858
+ # Theme Css
2859
+ # @param [Hash] opts the optional parameters
2860
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
2861
+ def theme_css_theme_css_get_with_http_info(opts = {})
2862
+ if @api_client.config.debugging
2863
+ @api_client.config.logger.debug 'Calling API: DefaultApi.theme_css_theme_css_get ...'
2864
+ end
2865
+ # resource path
2866
+ local_var_path = '/theme.css'
2867
+
2868
+ # query parameters
2869
+ query_params = opts[:query_params] || {}
2870
+
2871
+ # header parameters
2872
+ header_params = opts[:header_params] || {}
2873
+ # HTTP header 'Accept' (if needed)
2874
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain'])
2875
+
2876
+ # form parameters
2877
+ form_params = opts[:form_params] || {}
2878
+
2879
+ # http body (model)
2880
+ post_body = opts[:debug_body]
2881
+
2882
+ # return_type
2883
+ return_type = opts[:debug_return_type] || 'String'
2884
+
2885
+ # auth_names
2886
+ auth_names = opts[:debug_auth_names] || []
2887
+
2888
+ new_options = opts.merge(
2889
+ :operation => :"DefaultApi.theme_css_theme_css_get",
2890
+ :header_params => header_params,
2891
+ :query_params => query_params,
2892
+ :form_params => form_params,
2893
+ :body => post_body,
2894
+ :auth_names => auth_names,
2895
+ :return_type => return_type
2896
+ )
2897
+
2898
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2899
+ if @api_client.config.debugging
2900
+ @api_client.config.logger.debug "API called: DefaultApi#theme_css_theme_css_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2901
+ end
2902
+ return data, status_code, headers
2903
+ end
2904
+
2905
+ # Upload File
2906
+ # @param files [Array<File>]
2907
+ # @param [Hash] opts the optional parameters
2908
+ # @return [Object]
2909
+ def upload_file_upload_post(files, opts = {})
2910
+ data, _status_code, _headers = upload_file_upload_post_with_http_info(files, opts)
2911
+ data
2912
+ end
2913
+
2914
+ # Upload File
2915
+ # @param files [Array<File>]
2916
+ # @param [Hash] opts the optional parameters
2917
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2918
+ def upload_file_upload_post_with_http_info(files, opts = {})
2919
+ if @api_client.config.debugging
2920
+ @api_client.config.logger.debug 'Calling API: DefaultApi.upload_file_upload_post ...'
2921
+ end
2922
+ # verify the required parameter 'files' is set
2923
+ if @api_client.config.client_side_validation && files.nil?
2924
+ fail ArgumentError, "Missing the required parameter 'files' when calling DefaultApi.upload_file_upload_post"
2925
+ end
2926
+ # resource path
2927
+ local_var_path = '/upload'
2928
+
2929
+ # query parameters
2930
+ query_params = opts[:query_params] || {}
2931
+
2932
+ # header parameters
2933
+ header_params = opts[:header_params] || {}
2934
+ # HTTP header 'Accept' (if needed)
2935
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2936
+ # HTTP header 'Content-Type'
2937
+ content_type = @api_client.select_header_content_type(['multipart/form-data'])
2938
+ if !content_type.nil?
2939
+ header_params['Content-Type'] = content_type
2940
+ end
2941
+
2942
+ # form parameters
2943
+ form_params = opts[:form_params] || {}
2944
+ form_params['files'] = @api_client.build_collection_param(files, :csv)
2945
+
2946
+ # http body (model)
2947
+ post_body = opts[:debug_body]
2948
+
2949
+ # return_type
2950
+ return_type = opts[:debug_return_type] || 'Object'
2951
+
2952
+ # auth_names
2953
+ auth_names = opts[:debug_auth_names] || []
2954
+
2955
+ new_options = opts.merge(
2956
+ :operation => :"DefaultApi.upload_file_upload_post",
2957
+ :header_params => header_params,
2958
+ :query_params => query_params,
2959
+ :form_params => form_params,
2960
+ :body => post_body,
2961
+ :auth_names => auth_names,
2962
+ :return_type => return_type
2963
+ )
2964
+
2965
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2966
+ if @api_client.config.debugging
2967
+ @api_client.config.logger.debug "API called: DefaultApi#upload_file_upload_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2968
+ end
2969
+ return data, status_code, headers
2970
+ end
2971
+
2972
+ # Version
2973
+ # @param [Hash] opts the optional parameters
2974
+ # @return [Object]
2975
+ def version_controlnet_version_get(opts = {})
2976
+ data, _status_code, _headers = version_controlnet_version_get_with_http_info(opts)
2977
+ data
2978
+ end
2979
+
2980
+ # Version
2981
+ # @param [Hash] opts the optional parameters
2982
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2983
+ def version_controlnet_version_get_with_http_info(opts = {})
2984
+ if @api_client.config.debugging
2985
+ @api_client.config.logger.debug 'Calling API: DefaultApi.version_controlnet_version_get ...'
2986
+ end
2987
+ # resource path
2988
+ local_var_path = '/controlnet/version'
2989
+
2990
+ # query parameters
2991
+ query_params = opts[:query_params] || {}
2992
+
2993
+ # header parameters
2994
+ header_params = opts[:header_params] || {}
2995
+ # HTTP header 'Accept' (if needed)
2996
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2997
+
2998
+ # form parameters
2999
+ form_params = opts[:form_params] || {}
3000
+
3001
+ # http body (model)
3002
+ post_body = opts[:debug_body]
3003
+
3004
+ # return_type
3005
+ return_type = opts[:debug_return_type] || 'Object'
3006
+
3007
+ # auth_names
3008
+ auth_names = opts[:debug_auth_names] || []
3009
+
3010
+ new_options = opts.merge(
3011
+ :operation => :"DefaultApi.version_controlnet_version_get",
3012
+ :header_params => header_params,
3013
+ :query_params => query_params,
3014
+ :form_params => form_params,
3015
+ :body => post_body,
3016
+ :auth_names => auth_names,
3017
+ :return_type => return_type
3018
+ )
3019
+
3020
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3021
+ if @api_client.config.debugging
3022
+ @api_client.config.logger.debug "API called: DefaultApi#version_controlnet_version_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3023
+ end
3024
+ return data, status_code, headers
3025
+ end
3026
+ end
3027
+ end