influxdb-client-apis 2.7.0.pre.5244 → 2.7.0.pre.5385

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38b3e428e926275257c07edcf56973003ba13db40a6851a6b9e7562dce3dedb9
4
- data.tar.gz: c6eecad2e52aa1f96a26f97268e0c6e5406d1ea69a52ac23f38e515e7fc95349
3
+ metadata.gz: fe0fa00999ed9dbf2659b5497620c311ef82d0cba9288de105506b975d521208
4
+ data.tar.gz: 45a0ca63fcbdfaaf98c4cb7a72ef2a331d3c93cca903a8d8a2c1dcd01bafc43d
5
5
  SHA512:
6
- metadata.gz: df894934adbf2925c0138da68646f8058de0eff43f3df6c40edd33b95a64818b53f0c72e518dfa55415eb542feb82a5308a6b141e748141333cf65d5147c83da
7
- data.tar.gz: ef2caafdf2788c95f6235d1ef242b0f0ffa897597ff790b76c1d04b04280a628e984dbfe5f01a4cc94696c5dd6542980b74b4aa1f073719532e4309f2bd6839b
6
+ metadata.gz: b75ffbc153b6c6908730226cba5a46211e0c9c140015d9fb3b47bca51cbf05e6d92ecdf76bc9d934761f883bb48f605408a5353e4be0cd580151284a46523cd2
7
+ data.tar.gz: 68769a96738851a960371d00b7de14dd6ee965344336b0d59e2807d99b5f0436b267b2e37f43b1030611dd334bf2abf41af790404e2f0d5c59e6a48fba026d67
@@ -43,6 +43,9 @@ module InfluxDB2
43
43
  # Token
44
44
  configuration.api_key_prefix['api_key'] = 'Token'
45
45
  configuration.api_key['api_key'] = client.options[:token]
46
+ # Debugging
47
+ configuration.debugging = client.options[:debugging]
48
+ configuration.logger = client.options[:logger]
46
49
 
47
50
  @api_client = ApiClient.new(configuration)
48
51
  # User Agent
@@ -34,9 +34,6 @@ module InfluxDB2::API
34
34
  # @option opts [String] :zap_trace_span OpenTracing span context
35
35
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
36
36
  def delete_authorizations_id_with_http_info(auth_id, opts = {})
37
- if @api_client.config.debugging
38
- @api_client.config.logger.debug 'Calling API: AuthorizationsApi.delete_authorizations_id ...'
39
- end
40
37
  # verify the required parameter 'auth_id' is set
41
38
  if @api_client.config.client_side_validation && auth_id.nil?
42
39
  fail ArgumentError, "Missing the required parameter 'auth_id' when calling AuthorizationsApi.delete_authorizations_id"
@@ -76,9 +73,6 @@ module InfluxDB2::API
76
73
  )
77
74
 
78
75
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
79
- if @api_client.config.debugging
80
- @api_client.config.logger.debug "API called: AuthorizationsApi#delete_authorizations_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
- end
82
76
  return data, status_code, headers
83
77
  end
84
78
 
@@ -104,9 +98,6 @@ module InfluxDB2::API
104
98
  # @option opts [String] :org Only show authorizations that belong to a organization name.
105
99
  # @return [Array<(Authorizations, Integer, Hash)>] Authorizations data, response status code and response headers
106
100
  def get_authorizations_with_http_info(opts = {})
107
- if @api_client.config.debugging
108
- @api_client.config.logger.debug 'Calling API: AuthorizationsApi.get_authorizations ...'
109
- end
110
101
  # resource path
111
102
  local_var_path = '/authorizations'
112
103
 
@@ -146,9 +137,6 @@ module InfluxDB2::API
146
137
  )
147
138
 
148
139
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
149
- if @api_client.config.debugging
150
- @api_client.config.logger.debug "API called: AuthorizationsApi#get_authorizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
151
- end
152
140
  return data, status_code, headers
153
141
  end
154
142
 
@@ -168,9 +156,6 @@ module InfluxDB2::API
168
156
  # @option opts [String] :zap_trace_span OpenTracing span context
169
157
  # @return [Array<(Authorization, Integer, Hash)>] Authorization data, response status code and response headers
170
158
  def get_authorizations_id_with_http_info(auth_id, opts = {})
171
- if @api_client.config.debugging
172
- @api_client.config.logger.debug 'Calling API: AuthorizationsApi.get_authorizations_id ...'
173
- end
174
159
  # verify the required parameter 'auth_id' is set
175
160
  if @api_client.config.client_side_validation && auth_id.nil?
176
161
  fail ArgumentError, "Missing the required parameter 'auth_id' when calling AuthorizationsApi.get_authorizations_id"
@@ -210,9 +195,6 @@ module InfluxDB2::API
210
195
  )
211
196
 
212
197
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
213
- if @api_client.config.debugging
214
- @api_client.config.logger.debug "API called: AuthorizationsApi#get_authorizations_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
215
- end
216
198
  return data, status_code, headers
217
199
  end
218
200
 
@@ -234,9 +216,6 @@ module InfluxDB2::API
234
216
  # @option opts [String] :zap_trace_span OpenTracing span context
235
217
  # @return [Array<(Authorization, Integer, Hash)>] Authorization data, response status code and response headers
236
218
  def patch_authorizations_id_with_http_info(auth_id, authorization_update_request, opts = {})
237
- if @api_client.config.debugging
238
- @api_client.config.logger.debug 'Calling API: AuthorizationsApi.patch_authorizations_id ...'
239
- end
240
219
  # verify the required parameter 'auth_id' is set
241
220
  if @api_client.config.client_side_validation && auth_id.nil?
242
221
  fail ArgumentError, "Missing the required parameter 'auth_id' when calling AuthorizationsApi.patch_authorizations_id"
@@ -282,9 +261,6 @@ module InfluxDB2::API
282
261
  )
283
262
 
284
263
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
285
- if @api_client.config.debugging
286
- @api_client.config.logger.debug "API called: AuthorizationsApi#patch_authorizations_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
287
- end
288
264
  return data, status_code, headers
289
265
  end
290
266
 
@@ -304,9 +280,6 @@ module InfluxDB2::API
304
280
  # @option opts [String] :zap_trace_span OpenTracing span context
305
281
  # @return [Array<(Authorization, Integer, Hash)>] Authorization data, response status code and response headers
306
282
  def post_authorizations_with_http_info(authorization_post_request, opts = {})
307
- if @api_client.config.debugging
308
- @api_client.config.logger.debug 'Calling API: AuthorizationsApi.post_authorizations ...'
309
- end
310
283
  # verify the required parameter 'authorization_post_request' is set
311
284
  if @api_client.config.client_side_validation && authorization_post_request.nil?
312
285
  fail ArgumentError, "Missing the required parameter 'authorization_post_request' when calling AuthorizationsApi.post_authorizations"
@@ -348,9 +321,6 @@ module InfluxDB2::API
348
321
  )
349
322
 
350
323
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
351
- if @api_client.config.debugging
352
- @api_client.config.logger.debug "API called: AuthorizationsApi#post_authorizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
353
- end
354
324
  return data, status_code, headers
355
325
  end
356
326
  end
@@ -34,9 +34,6 @@ module InfluxDB2::API
34
34
  # @option opts [String] :zap_trace_span OpenTracing span context
35
35
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
36
36
  def delete_buckets_id_with_http_info(bucket_id, opts = {})
37
- if @api_client.config.debugging
38
- @api_client.config.logger.debug 'Calling API: BucketsApi.delete_buckets_id ...'
39
- end
40
37
  # verify the required parameter 'bucket_id' is set
41
38
  if @api_client.config.client_side_validation && bucket_id.nil?
42
39
  fail ArgumentError, "Missing the required parameter 'bucket_id' when calling BucketsApi.delete_buckets_id"
@@ -76,9 +73,6 @@ module InfluxDB2::API
76
73
  )
77
74
 
78
75
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
79
- if @api_client.config.debugging
80
- @api_client.config.logger.debug "API called: BucketsApi#delete_buckets_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
- end
82
76
  return data, status_code, headers
83
77
  end
84
78
 
@@ -100,9 +94,6 @@ module InfluxDB2::API
100
94
  # @option opts [String] :zap_trace_span OpenTracing span context
101
95
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
102
96
  def delete_buckets_id_labels_id_with_http_info(bucket_id, label_id, opts = {})
103
- if @api_client.config.debugging
104
- @api_client.config.logger.debug 'Calling API: BucketsApi.delete_buckets_id_labels_id ...'
105
- end
106
97
  # verify the required parameter 'bucket_id' is set
107
98
  if @api_client.config.client_side_validation && bucket_id.nil?
108
99
  fail ArgumentError, "Missing the required parameter 'bucket_id' when calling BucketsApi.delete_buckets_id_labels_id"
@@ -146,9 +137,6 @@ module InfluxDB2::API
146
137
  )
147
138
 
148
139
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
149
- if @api_client.config.debugging
150
- @api_client.config.logger.debug "API called: BucketsApi#delete_buckets_id_labels_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
151
- end
152
140
  return data, status_code, headers
153
141
  end
154
142
 
@@ -170,9 +158,6 @@ module InfluxDB2::API
170
158
  # @option opts [String] :zap_trace_span OpenTracing span context
171
159
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
172
160
  def delete_buckets_id_members_id_with_http_info(user_id, bucket_id, opts = {})
173
- if @api_client.config.debugging
174
- @api_client.config.logger.debug 'Calling API: BucketsApi.delete_buckets_id_members_id ...'
175
- end
176
161
  # verify the required parameter 'user_id' is set
177
162
  if @api_client.config.client_side_validation && user_id.nil?
178
163
  fail ArgumentError, "Missing the required parameter 'user_id' when calling BucketsApi.delete_buckets_id_members_id"
@@ -216,9 +201,6 @@ module InfluxDB2::API
216
201
  )
217
202
 
218
203
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
219
- if @api_client.config.debugging
220
- @api_client.config.logger.debug "API called: BucketsApi#delete_buckets_id_members_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
221
- end
222
204
  return data, status_code, headers
223
205
  end
224
206
 
@@ -240,9 +222,6 @@ module InfluxDB2::API
240
222
  # @option opts [String] :zap_trace_span OpenTracing span context
241
223
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
242
224
  def delete_buckets_id_owners_id_with_http_info(user_id, bucket_id, opts = {})
243
- if @api_client.config.debugging
244
- @api_client.config.logger.debug 'Calling API: BucketsApi.delete_buckets_id_owners_id ...'
245
- end
246
225
  # verify the required parameter 'user_id' is set
247
226
  if @api_client.config.client_side_validation && user_id.nil?
248
227
  fail ArgumentError, "Missing the required parameter 'user_id' when calling BucketsApi.delete_buckets_id_owners_id"
@@ -286,9 +265,6 @@ module InfluxDB2::API
286
265
  )
287
266
 
288
267
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
289
- if @api_client.config.debugging
290
- @api_client.config.logger.debug "API called: BucketsApi#delete_buckets_id_owners_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
291
- end
292
268
  return data, status_code, headers
293
269
  end
294
270
 
@@ -320,9 +296,6 @@ module InfluxDB2::API
320
296
  # @option opts [String] :id Only returns buckets with a specific ID.
321
297
  # @return [Array<(Buckets, Integer, Hash)>] Buckets data, response status code and response headers
322
298
  def get_buckets_with_http_info(opts = {})
323
- if @api_client.config.debugging
324
- @api_client.config.logger.debug 'Calling API: BucketsApi.get_buckets ...'
325
- end
326
299
  if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
327
300
  fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling BucketsApi.get_buckets, must be greater than or equal to 0.'
328
301
  end
@@ -377,9 +350,6 @@ module InfluxDB2::API
377
350
  )
378
351
 
379
352
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
380
- if @api_client.config.debugging
381
- @api_client.config.logger.debug "API called: BucketsApi#get_buckets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
382
- end
383
353
  return data, status_code, headers
384
354
  end
385
355
 
@@ -399,9 +369,6 @@ module InfluxDB2::API
399
369
  # @option opts [String] :zap_trace_span OpenTracing span context
400
370
  # @return [Array<(Bucket, Integer, Hash)>] Bucket data, response status code and response headers
401
371
  def get_buckets_id_with_http_info(bucket_id, opts = {})
402
- if @api_client.config.debugging
403
- @api_client.config.logger.debug 'Calling API: BucketsApi.get_buckets_id ...'
404
- end
405
372
  # verify the required parameter 'bucket_id' is set
406
373
  if @api_client.config.client_side_validation && bucket_id.nil?
407
374
  fail ArgumentError, "Missing the required parameter 'bucket_id' when calling BucketsApi.get_buckets_id"
@@ -441,9 +408,6 @@ module InfluxDB2::API
441
408
  )
442
409
 
443
410
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
444
- if @api_client.config.debugging
445
- @api_client.config.logger.debug "API called: BucketsApi#get_buckets_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
446
- end
447
411
  return data, status_code, headers
448
412
  end
449
413
 
@@ -463,9 +427,6 @@ module InfluxDB2::API
463
427
  # @option opts [String] :zap_trace_span OpenTracing span context
464
428
  # @return [Array<(LabelsResponse, Integer, Hash)>] LabelsResponse data, response status code and response headers
465
429
  def get_buckets_id_labels_with_http_info(bucket_id, opts = {})
466
- if @api_client.config.debugging
467
- @api_client.config.logger.debug 'Calling API: BucketsApi.get_buckets_id_labels ...'
468
- end
469
430
  # verify the required parameter 'bucket_id' is set
470
431
  if @api_client.config.client_side_validation && bucket_id.nil?
471
432
  fail ArgumentError, "Missing the required parameter 'bucket_id' when calling BucketsApi.get_buckets_id_labels"
@@ -505,9 +466,6 @@ module InfluxDB2::API
505
466
  )
506
467
 
507
468
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
508
- if @api_client.config.debugging
509
- @api_client.config.logger.debug "API called: BucketsApi#get_buckets_id_labels\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
510
- end
511
469
  return data, status_code, headers
512
470
  end
513
471
 
@@ -527,9 +485,6 @@ module InfluxDB2::API
527
485
  # @option opts [String] :zap_trace_span OpenTracing span context
528
486
  # @return [Array<(ResourceMembers, Integer, Hash)>] ResourceMembers data, response status code and response headers
529
487
  def get_buckets_id_members_with_http_info(bucket_id, opts = {})
530
- if @api_client.config.debugging
531
- @api_client.config.logger.debug 'Calling API: BucketsApi.get_buckets_id_members ...'
532
- end
533
488
  # verify the required parameter 'bucket_id' is set
534
489
  if @api_client.config.client_side_validation && bucket_id.nil?
535
490
  fail ArgumentError, "Missing the required parameter 'bucket_id' when calling BucketsApi.get_buckets_id_members"
@@ -569,9 +524,6 @@ module InfluxDB2::API
569
524
  )
570
525
 
571
526
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
572
- if @api_client.config.debugging
573
- @api_client.config.logger.debug "API called: BucketsApi#get_buckets_id_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
574
- end
575
527
  return data, status_code, headers
576
528
  end
577
529
 
@@ -591,9 +543,6 @@ module InfluxDB2::API
591
543
  # @option opts [String] :zap_trace_span OpenTracing span context
592
544
  # @return [Array<(ResourceOwners, Integer, Hash)>] ResourceOwners data, response status code and response headers
593
545
  def get_buckets_id_owners_with_http_info(bucket_id, opts = {})
594
- if @api_client.config.debugging
595
- @api_client.config.logger.debug 'Calling API: BucketsApi.get_buckets_id_owners ...'
596
- end
597
546
  # verify the required parameter 'bucket_id' is set
598
547
  if @api_client.config.client_side_validation && bucket_id.nil?
599
548
  fail ArgumentError, "Missing the required parameter 'bucket_id' when calling BucketsApi.get_buckets_id_owners"
@@ -633,9 +582,6 @@ module InfluxDB2::API
633
582
  )
634
583
 
635
584
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
636
- if @api_client.config.debugging
637
- @api_client.config.logger.debug "API called: BucketsApi#get_buckets_id_owners\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
638
- end
639
585
  return data, status_code, headers
640
586
  end
641
587
 
@@ -657,9 +603,6 @@ module InfluxDB2::API
657
603
  # @option opts [String] :org The name of the organization.
658
604
  # @return [Array<(Buckets, Integer, Hash)>] Buckets data, response status code and response headers
659
605
  def get_sources_id_buckets_with_http_info(source_id, opts = {})
660
- if @api_client.config.debugging
661
- @api_client.config.logger.debug 'Calling API: BucketsApi.get_sources_id_buckets ...'
662
- end
663
606
  # verify the required parameter 'source_id' is set
664
607
  if @api_client.config.client_side_validation && source_id.nil?
665
608
  fail ArgumentError, "Missing the required parameter 'source_id' when calling BucketsApi.get_sources_id_buckets"
@@ -700,9 +643,6 @@ module InfluxDB2::API
700
643
  )
701
644
 
702
645
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
703
- if @api_client.config.debugging
704
- @api_client.config.logger.debug "API called: BucketsApi#get_sources_id_buckets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
705
- end
706
646
  return data, status_code, headers
707
647
  end
708
648
 
@@ -724,9 +664,6 @@ module InfluxDB2::API
724
664
  # @option opts [String] :zap_trace_span OpenTracing span context
725
665
  # @return [Array<(Bucket, Integer, Hash)>] Bucket data, response status code and response headers
726
666
  def patch_buckets_id_with_http_info(bucket_id, patch_bucket_request, opts = {})
727
- if @api_client.config.debugging
728
- @api_client.config.logger.debug 'Calling API: BucketsApi.patch_buckets_id ...'
729
- end
730
667
  # verify the required parameter 'bucket_id' is set
731
668
  if @api_client.config.client_side_validation && bucket_id.nil?
732
669
  fail ArgumentError, "Missing the required parameter 'bucket_id' when calling BucketsApi.patch_buckets_id"
@@ -772,9 +709,6 @@ module InfluxDB2::API
772
709
  )
773
710
 
774
711
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
775
- if @api_client.config.debugging
776
- @api_client.config.logger.debug "API called: BucketsApi#patch_buckets_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
777
- end
778
712
  return data, status_code, headers
779
713
  end
780
714
 
@@ -794,9 +728,6 @@ module InfluxDB2::API
794
728
  # @option opts [String] :zap_trace_span OpenTracing span context
795
729
  # @return [Array<(Bucket, Integer, Hash)>] Bucket data, response status code and response headers
796
730
  def post_buckets_with_http_info(post_bucket_request, opts = {})
797
- if @api_client.config.debugging
798
- @api_client.config.logger.debug 'Calling API: BucketsApi.post_buckets ...'
799
- end
800
731
  # verify the required parameter 'post_bucket_request' is set
801
732
  if @api_client.config.client_side_validation && post_bucket_request.nil?
802
733
  fail ArgumentError, "Missing the required parameter 'post_bucket_request' when calling BucketsApi.post_buckets"
@@ -838,9 +769,6 @@ module InfluxDB2::API
838
769
  )
839
770
 
840
771
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
841
- if @api_client.config.debugging
842
- @api_client.config.logger.debug "API called: BucketsApi#post_buckets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
843
- end
844
772
  return data, status_code, headers
845
773
  end
846
774
 
@@ -862,9 +790,6 @@ module InfluxDB2::API
862
790
  # @option opts [String] :zap_trace_span OpenTracing span context
863
791
  # @return [Array<(LabelResponse, Integer, Hash)>] LabelResponse data, response status code and response headers
864
792
  def post_buckets_id_labels_with_http_info(bucket_id, label_mapping, opts = {})
865
- if @api_client.config.debugging
866
- @api_client.config.logger.debug 'Calling API: BucketsApi.post_buckets_id_labels ...'
867
- end
868
793
  # verify the required parameter 'bucket_id' is set
869
794
  if @api_client.config.client_side_validation && bucket_id.nil?
870
795
  fail ArgumentError, "Missing the required parameter 'bucket_id' when calling BucketsApi.post_buckets_id_labels"
@@ -910,9 +835,6 @@ module InfluxDB2::API
910
835
  )
911
836
 
912
837
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
913
- if @api_client.config.debugging
914
- @api_client.config.logger.debug "API called: BucketsApi#post_buckets_id_labels\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
915
- end
916
838
  return data, status_code, headers
917
839
  end
918
840
 
@@ -934,9 +856,6 @@ module InfluxDB2::API
934
856
  # @option opts [String] :zap_trace_span OpenTracing span context
935
857
  # @return [Array<(ResourceMember, Integer, Hash)>] ResourceMember data, response status code and response headers
936
858
  def post_buckets_id_members_with_http_info(bucket_id, add_resource_member_request_body, opts = {})
937
- if @api_client.config.debugging
938
- @api_client.config.logger.debug 'Calling API: BucketsApi.post_buckets_id_members ...'
939
- end
940
859
  # verify the required parameter 'bucket_id' is set
941
860
  if @api_client.config.client_side_validation && bucket_id.nil?
942
861
  fail ArgumentError, "Missing the required parameter 'bucket_id' when calling BucketsApi.post_buckets_id_members"
@@ -982,9 +901,6 @@ module InfluxDB2::API
982
901
  )
983
902
 
984
903
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
985
- if @api_client.config.debugging
986
- @api_client.config.logger.debug "API called: BucketsApi#post_buckets_id_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
987
- end
988
904
  return data, status_code, headers
989
905
  end
990
906
 
@@ -1006,9 +922,6 @@ module InfluxDB2::API
1006
922
  # @option opts [String] :zap_trace_span OpenTracing span context
1007
923
  # @return [Array<(ResourceOwner, Integer, Hash)>] ResourceOwner data, response status code and response headers
1008
924
  def post_buckets_id_owners_with_http_info(bucket_id, add_resource_member_request_body, opts = {})
1009
- if @api_client.config.debugging
1010
- @api_client.config.logger.debug 'Calling API: BucketsApi.post_buckets_id_owners ...'
1011
- end
1012
925
  # verify the required parameter 'bucket_id' is set
1013
926
  if @api_client.config.client_side_validation && bucket_id.nil?
1014
927
  fail ArgumentError, "Missing the required parameter 'bucket_id' when calling BucketsApi.post_buckets_id_owners"
@@ -1054,9 +967,6 @@ module InfluxDB2::API
1054
967
  )
1055
968
 
1056
969
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1057
- if @api_client.config.debugging
1058
- @api_client.config.logger.debug "API called: BucketsApi#post_buckets_id_owners\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1059
- end
1060
970
  return data, status_code, headers
1061
971
  end
1062
972
  end
@@ -34,9 +34,6 @@ module InfluxDB2::API
34
34
  # @option opts [String] :zap_trace_span OpenTracing span context
35
35
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
36
36
  def delete_labels_id_with_http_info(label_id, opts = {})
37
- if @api_client.config.debugging
38
- @api_client.config.logger.debug 'Calling API: LabelsApi.delete_labels_id ...'
39
- end
40
37
  # verify the required parameter 'label_id' is set
41
38
  if @api_client.config.client_side_validation && label_id.nil?
42
39
  fail ArgumentError, "Missing the required parameter 'label_id' when calling LabelsApi.delete_labels_id"
@@ -76,9 +73,6 @@ module InfluxDB2::API
76
73
  )
77
74
 
78
75
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
79
- if @api_client.config.debugging
80
- @api_client.config.logger.debug "API called: LabelsApi#delete_labels_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
- end
82
76
  return data, status_code, headers
83
77
  end
84
78
 
@@ -98,9 +92,6 @@ module InfluxDB2::API
98
92
  # @option opts [String] :org_id The organization ID.
99
93
  # @return [Array<(LabelsResponse, Integer, Hash)>] LabelsResponse data, response status code and response headers
100
94
  def get_labels_with_http_info(opts = {})
101
- if @api_client.config.debugging
102
- @api_client.config.logger.debug 'Calling API: LabelsApi.get_labels ...'
103
- end
104
95
  # resource path
105
96
  local_var_path = '/labels'
106
97
 
@@ -137,9 +128,6 @@ module InfluxDB2::API
137
128
  )
138
129
 
139
130
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
140
- if @api_client.config.debugging
141
- @api_client.config.logger.debug "API called: LabelsApi#get_labels\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
- end
143
131
  return data, status_code, headers
144
132
  end
145
133
 
@@ -159,9 +147,6 @@ module InfluxDB2::API
159
147
  # @option opts [String] :zap_trace_span OpenTracing span context
160
148
  # @return [Array<(LabelResponse, Integer, Hash)>] LabelResponse data, response status code and response headers
161
149
  def get_labels_id_with_http_info(label_id, opts = {})
162
- if @api_client.config.debugging
163
- @api_client.config.logger.debug 'Calling API: LabelsApi.get_labels_id ...'
164
- end
165
150
  # verify the required parameter 'label_id' is set
166
151
  if @api_client.config.client_side_validation && label_id.nil?
167
152
  fail ArgumentError, "Missing the required parameter 'label_id' when calling LabelsApi.get_labels_id"
@@ -201,15 +186,12 @@ module InfluxDB2::API
201
186
  )
202
187
 
203
188
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
204
- if @api_client.config.debugging
205
- @api_client.config.logger.debug "API called: LabelsApi#get_labels_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
206
- end
207
189
  return data, status_code, headers
208
190
  end
209
191
 
210
192
  # Update a label
211
193
  # @param label_id [String] The ID of the label to update.
212
- # @param label_update [LabelUpdate] Label update
194
+ # @param label_update [LabelUpdate] A label update.
213
195
  # @param [Hash] opts the optional parameters
214
196
  # @option opts [String] :zap_trace_span OpenTracing span context
215
197
  # @return [LabelResponse]
@@ -220,14 +202,11 @@ module InfluxDB2::API
220
202
 
221
203
  # Update a label
222
204
  # @param label_id [String] The ID of the label to update.
223
- # @param label_update [LabelUpdate] Label update
205
+ # @param label_update [LabelUpdate] A label update.
224
206
  # @param [Hash] opts the optional parameters
225
207
  # @option opts [String] :zap_trace_span OpenTracing span context
226
208
  # @return [Array<(LabelResponse, Integer, Hash)>] LabelResponse data, response status code and response headers
227
209
  def patch_labels_id_with_http_info(label_id, label_update, opts = {})
228
- if @api_client.config.debugging
229
- @api_client.config.logger.debug 'Calling API: LabelsApi.patch_labels_id ...'
230
- end
231
210
  # verify the required parameter 'label_id' is set
232
211
  if @api_client.config.client_side_validation && label_id.nil?
233
212
  fail ArgumentError, "Missing the required parameter 'label_id' when calling LabelsApi.patch_labels_id"
@@ -273,14 +252,11 @@ module InfluxDB2::API
273
252
  )
274
253
 
275
254
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
276
- if @api_client.config.debugging
277
- @api_client.config.logger.debug "API called: LabelsApi#patch_labels_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
278
- end
279
255
  return data, status_code, headers
280
256
  end
281
257
 
282
258
  # Create a label
283
- # @param label_create_request [LabelCreateRequest] Label to create
259
+ # @param label_create_request [LabelCreateRequest] The label to create.
284
260
  # @param [Hash] opts the optional parameters
285
261
  # @return [LabelResponse]
286
262
  def post_labels(label_create_request, opts = {})
@@ -289,13 +265,10 @@ module InfluxDB2::API
289
265
  end
290
266
 
291
267
  # Create a label
292
- # @param label_create_request [LabelCreateRequest] Label to create
268
+ # @param label_create_request [LabelCreateRequest] The label to create.
293
269
  # @param [Hash] opts the optional parameters
294
270
  # @return [Array<(LabelResponse, Integer, Hash)>] LabelResponse data, response status code and response headers
295
271
  def post_labels_with_http_info(label_create_request, opts = {})
296
- if @api_client.config.debugging
297
- @api_client.config.logger.debug 'Calling API: LabelsApi.post_labels ...'
298
- end
299
272
  # verify the required parameter 'label_create_request' is set
300
273
  if @api_client.config.client_side_validation && label_create_request.nil?
301
274
  fail ArgumentError, "Missing the required parameter 'label_create_request' when calling LabelsApi.post_labels"
@@ -336,9 +309,6 @@ module InfluxDB2::API
336
309
  )
337
310
 
338
311
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
339
- if @api_client.config.debugging
340
- @api_client.config.logger.debug "API called: LabelsApi#post_labels\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
341
- end
342
312
  return data, status_code, headers
343
313
  end
344
314
  end
@@ -34,9 +34,6 @@ module InfluxDB2::API
34
34
  # @option opts [String] :zap_trace_span OpenTracing span context
35
35
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
36
36
  def delete_orgs_id_with_http_info(org_id, opts = {})
37
- if @api_client.config.debugging
38
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_orgs_id ...'
39
- end
40
37
  # verify the required parameter 'org_id' is set
41
38
  if @api_client.config.client_side_validation && org_id.nil?
42
39
  fail ArgumentError, "Missing the required parameter 'org_id' when calling OrganizationsApi.delete_orgs_id"
@@ -76,9 +73,6 @@ module InfluxDB2::API
76
73
  )
77
74
 
78
75
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
79
- if @api_client.config.debugging
80
- @api_client.config.logger.debug "API called: OrganizationsApi#delete_orgs_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
- end
82
76
  return data, status_code, headers
83
77
  end
84
78
 
@@ -100,9 +94,6 @@ module InfluxDB2::API
100
94
  # @option opts [String] :zap_trace_span OpenTracing span context
101
95
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
102
96
  def delete_orgs_id_members_id_with_http_info(user_id, org_id, opts = {})
103
- if @api_client.config.debugging
104
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_orgs_id_members_id ...'
105
- end
106
97
  # verify the required parameter 'user_id' is set
107
98
  if @api_client.config.client_side_validation && user_id.nil?
108
99
  fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.delete_orgs_id_members_id"
@@ -146,9 +137,6 @@ module InfluxDB2::API
146
137
  )
147
138
 
148
139
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
149
- if @api_client.config.debugging
150
- @api_client.config.logger.debug "API called: OrganizationsApi#delete_orgs_id_members_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
151
- end
152
140
  return data, status_code, headers
153
141
  end
154
142
 
@@ -170,9 +158,6 @@ module InfluxDB2::API
170
158
  # @option opts [String] :zap_trace_span OpenTracing span context
171
159
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
172
160
  def delete_orgs_id_owners_id_with_http_info(user_id, org_id, opts = {})
173
- if @api_client.config.debugging
174
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_orgs_id_owners_id ...'
175
- end
176
161
  # verify the required parameter 'user_id' is set
177
162
  if @api_client.config.client_side_validation && user_id.nil?
178
163
  fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.delete_orgs_id_owners_id"
@@ -216,9 +201,6 @@ module InfluxDB2::API
216
201
  )
217
202
 
218
203
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
219
- if @api_client.config.debugging
220
- @api_client.config.logger.debug "API called: OrganizationsApi#delete_orgs_id_owners_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
221
- end
222
204
  return data, status_code, headers
223
205
  end
224
206
 
@@ -248,9 +230,6 @@ module InfluxDB2::API
248
230
  # @option opts [String] :user_id Filter organizations to a specific user ID.
249
231
  # @return [Array<(Organizations, Integer, Hash)>] Organizations data, response status code and response headers
250
232
  def get_orgs_with_http_info(opts = {})
251
- if @api_client.config.debugging
252
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_orgs ...'
253
- end
254
233
  if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
255
234
  fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling OrganizationsApi.get_orgs, must be greater than or equal to 0.'
256
235
  end
@@ -304,9 +283,6 @@ module InfluxDB2::API
304
283
  )
305
284
 
306
285
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
307
- if @api_client.config.debugging
308
- @api_client.config.logger.debug "API called: OrganizationsApi#get_orgs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
309
- end
310
286
  return data, status_code, headers
311
287
  end
312
288
 
@@ -326,9 +302,6 @@ module InfluxDB2::API
326
302
  # @option opts [String] :zap_trace_span OpenTracing span context
327
303
  # @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
328
304
  def get_orgs_id_with_http_info(org_id, opts = {})
329
- if @api_client.config.debugging
330
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_orgs_id ...'
331
- end
332
305
  # verify the required parameter 'org_id' is set
333
306
  if @api_client.config.client_side_validation && org_id.nil?
334
307
  fail ArgumentError, "Missing the required parameter 'org_id' when calling OrganizationsApi.get_orgs_id"
@@ -368,9 +341,6 @@ module InfluxDB2::API
368
341
  )
369
342
 
370
343
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
371
- if @api_client.config.debugging
372
- @api_client.config.logger.debug "API called: OrganizationsApi#get_orgs_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
373
- end
374
344
  return data, status_code, headers
375
345
  end
376
346
 
@@ -390,9 +360,6 @@ module InfluxDB2::API
390
360
  # @option opts [String] :zap_trace_span OpenTracing span context
391
361
  # @return [Array<(ResourceMembers, Integer, Hash)>] ResourceMembers data, response status code and response headers
392
362
  def get_orgs_id_members_with_http_info(org_id, opts = {})
393
- if @api_client.config.debugging
394
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_orgs_id_members ...'
395
- end
396
363
  # verify the required parameter 'org_id' is set
397
364
  if @api_client.config.client_side_validation && org_id.nil?
398
365
  fail ArgumentError, "Missing the required parameter 'org_id' when calling OrganizationsApi.get_orgs_id_members"
@@ -432,9 +399,6 @@ module InfluxDB2::API
432
399
  )
433
400
 
434
401
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
435
- if @api_client.config.debugging
436
- @api_client.config.logger.debug "API called: OrganizationsApi#get_orgs_id_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
437
- end
438
402
  return data, status_code, headers
439
403
  end
440
404
 
@@ -454,9 +418,6 @@ module InfluxDB2::API
454
418
  # @option opts [String] :zap_trace_span OpenTracing span context
455
419
  # @return [Array<(ResourceOwners, Integer, Hash)>] ResourceOwners data, response status code and response headers
456
420
  def get_orgs_id_owners_with_http_info(org_id, opts = {})
457
- if @api_client.config.debugging
458
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_orgs_id_owners ...'
459
- end
460
421
  # verify the required parameter 'org_id' is set
461
422
  if @api_client.config.client_side_validation && org_id.nil?
462
423
  fail ArgumentError, "Missing the required parameter 'org_id' when calling OrganizationsApi.get_orgs_id_owners"
@@ -496,9 +457,6 @@ module InfluxDB2::API
496
457
  )
497
458
 
498
459
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
499
- if @api_client.config.debugging
500
- @api_client.config.logger.debug "API called: OrganizationsApi#get_orgs_id_owners\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
501
- end
502
460
  return data, status_code, headers
503
461
  end
504
462
 
@@ -520,9 +478,6 @@ module InfluxDB2::API
520
478
  # @option opts [String] :zap_trace_span OpenTracing span context
521
479
  # @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
522
480
  def patch_orgs_id_with_http_info(org_id, patch_organization_request, opts = {})
523
- if @api_client.config.debugging
524
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.patch_orgs_id ...'
525
- end
526
481
  # verify the required parameter 'org_id' is set
527
482
  if @api_client.config.client_side_validation && org_id.nil?
528
483
  fail ArgumentError, "Missing the required parameter 'org_id' when calling OrganizationsApi.patch_orgs_id"
@@ -568,9 +523,6 @@ module InfluxDB2::API
568
523
  )
569
524
 
570
525
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
571
- if @api_client.config.debugging
572
- @api_client.config.logger.debug "API called: OrganizationsApi#patch_orgs_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
573
- end
574
526
  return data, status_code, headers
575
527
  end
576
528
 
@@ -590,9 +542,6 @@ module InfluxDB2::API
590
542
  # @option opts [String] :zap_trace_span OpenTracing span context
591
543
  # @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
592
544
  def post_orgs_with_http_info(post_organization_request, opts = {})
593
- if @api_client.config.debugging
594
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.post_orgs ...'
595
- end
596
545
  # verify the required parameter 'post_organization_request' is set
597
546
  if @api_client.config.client_side_validation && post_organization_request.nil?
598
547
  fail ArgumentError, "Missing the required parameter 'post_organization_request' when calling OrganizationsApi.post_orgs"
@@ -634,9 +583,6 @@ module InfluxDB2::API
634
583
  )
635
584
 
636
585
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
637
- if @api_client.config.debugging
638
- @api_client.config.logger.debug "API called: OrganizationsApi#post_orgs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
639
- end
640
586
  return data, status_code, headers
641
587
  end
642
588
 
@@ -658,9 +604,6 @@ module InfluxDB2::API
658
604
  # @option opts [String] :zap_trace_span OpenTracing span context
659
605
  # @return [Array<(ResourceMember, Integer, Hash)>] ResourceMember data, response status code and response headers
660
606
  def post_orgs_id_members_with_http_info(org_id, add_resource_member_request_body, opts = {})
661
- if @api_client.config.debugging
662
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.post_orgs_id_members ...'
663
- end
664
607
  # verify the required parameter 'org_id' is set
665
608
  if @api_client.config.client_side_validation && org_id.nil?
666
609
  fail ArgumentError, "Missing the required parameter 'org_id' when calling OrganizationsApi.post_orgs_id_members"
@@ -706,9 +649,6 @@ module InfluxDB2::API
706
649
  )
707
650
 
708
651
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
709
- if @api_client.config.debugging
710
- @api_client.config.logger.debug "API called: OrganizationsApi#post_orgs_id_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
711
- end
712
652
  return data, status_code, headers
713
653
  end
714
654
 
@@ -730,9 +670,6 @@ module InfluxDB2::API
730
670
  # @option opts [String] :zap_trace_span OpenTracing span context
731
671
  # @return [Array<(ResourceOwner, Integer, Hash)>] ResourceOwner data, response status code and response headers
732
672
  def post_orgs_id_owners_with_http_info(org_id, add_resource_member_request_body, opts = {})
733
- if @api_client.config.debugging
734
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.post_orgs_id_owners ...'
735
- end
736
673
  # verify the required parameter 'org_id' is set
737
674
  if @api_client.config.client_side_validation && org_id.nil?
738
675
  fail ArgumentError, "Missing the required parameter 'org_id' when calling OrganizationsApi.post_orgs_id_owners"
@@ -778,9 +715,6 @@ module InfluxDB2::API
778
715
  )
779
716
 
780
717
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
781
- if @api_client.config.debugging
782
- @api_client.config.logger.debug "API called: OrganizationsApi#post_orgs_id_owners\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
783
- end
784
718
  return data, status_code, headers
785
719
  end
786
720
  end
@@ -34,9 +34,6 @@ module InfluxDB2::API
34
34
  # @option opts [String] :zap_trace_span OpenTracing span context
35
35
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
36
36
  def delete_users_id_with_http_info(user_id, opts = {})
37
- if @api_client.config.debugging
38
- @api_client.config.logger.debug 'Calling API: UsersApi.delete_users_id ...'
39
- end
40
37
  # verify the required parameter 'user_id' is set
41
38
  if @api_client.config.client_side_validation && user_id.nil?
42
39
  fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.delete_users_id"
@@ -76,9 +73,6 @@ module InfluxDB2::API
76
73
  )
77
74
 
78
75
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
79
- if @api_client.config.debugging
80
- @api_client.config.logger.debug "API called: UsersApi#delete_users_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
- end
82
76
  return data, status_code, headers
83
77
  end
84
78
 
@@ -96,9 +90,6 @@ module InfluxDB2::API
96
90
  # @option opts [String] :zap_trace_span OpenTracing span context
97
91
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
98
92
  def get_flags_with_http_info(opts = {})
99
- if @api_client.config.debugging
100
- @api_client.config.logger.debug 'Calling API: UsersApi.get_flags ...'
101
- end
102
93
  # resource path
103
94
  local_var_path = '/flags'
104
95
 
@@ -134,9 +125,6 @@ module InfluxDB2::API
134
125
  )
135
126
 
136
127
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
137
- if @api_client.config.debugging
138
- @api_client.config.logger.debug "API called: UsersApi#get_flags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
139
- end
140
128
  return data, status_code, headers
141
129
  end
142
130
 
@@ -154,9 +142,6 @@ module InfluxDB2::API
154
142
  # @option opts [String] :zap_trace_span OpenTracing span context
155
143
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
156
144
  def get_me_with_http_info(opts = {})
157
- if @api_client.config.debugging
158
- @api_client.config.logger.debug 'Calling API: UsersApi.get_me ...'
159
- end
160
145
  # resource path
161
146
  local_var_path = '/me'
162
147
 
@@ -192,9 +177,6 @@ module InfluxDB2::API
192
177
  )
193
178
 
194
179
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
195
- if @api_client.config.debugging
196
- @api_client.config.logger.debug "API called: UsersApi#get_me\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
197
- end
198
180
  return data, status_code, headers
199
181
  end
200
182
 
@@ -222,9 +204,6 @@ module InfluxDB2::API
222
204
  # @option opts [String] :id
223
205
  # @return [Array<(Users, Integer, Hash)>] Users data, response status code and response headers
224
206
  def get_users_with_http_info(opts = {})
225
- if @api_client.config.debugging
226
- @api_client.config.logger.debug 'Calling API: UsersApi.get_users ...'
227
- end
228
207
  if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
229
208
  fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling UsersApi.get_users, must be greater than or equal to 0.'
230
209
  end
@@ -277,9 +256,6 @@ module InfluxDB2::API
277
256
  )
278
257
 
279
258
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
280
- if @api_client.config.debugging
281
- @api_client.config.logger.debug "API called: UsersApi#get_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
282
- end
283
259
  return data, status_code, headers
284
260
  end
285
261
 
@@ -299,9 +275,6 @@ module InfluxDB2::API
299
275
  # @option opts [String] :zap_trace_span OpenTracing span context
300
276
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
301
277
  def get_users_id_with_http_info(user_id, opts = {})
302
- if @api_client.config.debugging
303
- @api_client.config.logger.debug 'Calling API: UsersApi.get_users_id ...'
304
- end
305
278
  # verify the required parameter 'user_id' is set
306
279
  if @api_client.config.client_side_validation && user_id.nil?
307
280
  fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.get_users_id"
@@ -341,9 +314,6 @@ module InfluxDB2::API
341
314
  )
342
315
 
343
316
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
344
- if @api_client.config.debugging
345
- @api_client.config.logger.debug "API called: UsersApi#get_users_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
346
- end
347
317
  return data, status_code, headers
348
318
  end
349
319
 
@@ -365,9 +335,6 @@ module InfluxDB2::API
365
335
  # @option opts [String] :zap_trace_span OpenTracing span context
366
336
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
367
337
  def patch_users_id_with_http_info(user_id, user, opts = {})
368
- if @api_client.config.debugging
369
- @api_client.config.logger.debug 'Calling API: UsersApi.patch_users_id ...'
370
- end
371
338
  # verify the required parameter 'user_id' is set
372
339
  if @api_client.config.client_side_validation && user_id.nil?
373
340
  fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.patch_users_id"
@@ -413,9 +380,6 @@ module InfluxDB2::API
413
380
  )
414
381
 
415
382
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
416
- if @api_client.config.debugging
417
- @api_client.config.logger.debug "API called: UsersApi#patch_users_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
418
- end
419
383
  return data, status_code, headers
420
384
  end
421
385
 
@@ -435,9 +399,6 @@ module InfluxDB2::API
435
399
  # @option opts [String] :zap_trace_span OpenTracing span context
436
400
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
437
401
  def post_users_with_http_info(user, opts = {})
438
- if @api_client.config.debugging
439
- @api_client.config.logger.debug 'Calling API: UsersApi.post_users ...'
440
- end
441
402
  # verify the required parameter 'user' is set
442
403
  if @api_client.config.client_side_validation && user.nil?
443
404
  fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.post_users"
@@ -479,9 +440,6 @@ module InfluxDB2::API
479
440
  )
480
441
 
481
442
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
482
- if @api_client.config.debugging
483
- @api_client.config.logger.debug "API called: UsersApi#post_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
484
- end
485
443
  return data, status_code, headers
486
444
  end
487
445
 
@@ -503,9 +461,6 @@ module InfluxDB2::API
503
461
  # @option opts [String] :zap_trace_span OpenTracing span context
504
462
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
505
463
  def post_users_id_password_with_http_info(user_id, password_reset_body, opts = {})
506
- if @api_client.config.debugging
507
- @api_client.config.logger.debug 'Calling API: UsersApi.post_users_id_password ...'
508
- end
509
464
  # verify the required parameter 'user_id' is set
510
465
  if @api_client.config.client_side_validation && user_id.nil?
511
466
  fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.post_users_id_password"
@@ -551,14 +506,11 @@ module InfluxDB2::API
551
506
  )
552
507
 
553
508
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
554
- if @api_client.config.debugging
555
- @api_client.config.logger.debug "API called: UsersApi#post_users_id_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
556
- end
557
509
  return data, status_code, headers
558
510
  end
559
511
 
560
512
  # Update a password
561
- # @param password_reset_body [PasswordResetBody] New password
513
+ # @param password_reset_body [PasswordResetBody] The new password.
562
514
  # @param [Hash] opts the optional parameters
563
515
  # @option opts [String] :zap_trace_span OpenTracing span context
564
516
  # @return [nil]
@@ -568,14 +520,11 @@ module InfluxDB2::API
568
520
  end
569
521
 
570
522
  # Update a password
571
- # @param password_reset_body [PasswordResetBody] New password
523
+ # @param password_reset_body [PasswordResetBody] The new password.
572
524
  # @param [Hash] opts the optional parameters
573
525
  # @option opts [String] :zap_trace_span OpenTracing span context
574
526
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
575
527
  def put_me_password_with_http_info(password_reset_body, opts = {})
576
- if @api_client.config.debugging
577
- @api_client.config.logger.debug 'Calling API: UsersApi.put_me_password ...'
578
- end
579
528
  # verify the required parameter 'password_reset_body' is set
580
529
  if @api_client.config.client_side_validation && password_reset_body.nil?
581
530
  fail ArgumentError, "Missing the required parameter 'password_reset_body' when calling UsersApi.put_me_password"
@@ -617,9 +566,6 @@ module InfluxDB2::API
617
566
  )
618
567
 
619
568
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
620
- if @api_client.config.debugging
621
- @api_client.config.logger.debug "API called: UsersApi#put_me_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
622
- end
623
569
  return data, status_code, headers
624
570
  end
625
571
  end
@@ -10,6 +10,7 @@ Generated by: https://openapi-generator.tech
10
10
  =end
11
11
 
12
12
  require 'date'
13
+ require 'influxdb-client'
13
14
  require 'json'
14
15
  require 'logger'
15
16
  require 'tempfile'
@@ -35,6 +36,7 @@ module InfluxDB2::API
35
36
  'Content-Type' => 'application/json',
36
37
  'User-Agent' => @user_agent
37
38
  }
39
+ @logging_helper = InfluxDB2::LoggingHelper.new(@config.logger)
38
40
  end
39
41
 
40
42
  def self.default
@@ -47,10 +49,18 @@ module InfluxDB2::API
47
49
  # the data deserialized from response body (could be nil), response status code and response headers.
48
50
  def call_api(http_method, path, opts = {})
49
51
  request = build_request(http_method, path, opts)
50
- response = request.run
52
+ if @config.debugging
53
+ @logging_helper.before_request(request.base_url, http_method, request.options[:headers], request.options[:body])
54
+ end
51
55
 
56
+ response = request.run
52
57
  if @config.debugging
53
- @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
58
+ @logging_helper.after_request(
59
+ response.http_version,
60
+ response.options[:code],
61
+ response.options[:status_message],
62
+ response.options[:headers],
63
+ response.options[:body])
54
64
  end
55
65
 
56
66
  unless response.success?
@@ -117,9 +127,6 @@ module InfluxDB2::API
117
127
  if [:post, :patch, :put, :delete].include?(http_method)
118
128
  req_body = build_request_body(header_params, form_params, opts[:body])
119
129
  req_opts.update :body => req_body
120
- if @config.debugging
121
- @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
122
- end
123
130
  end
124
131
 
125
132
  request = Typhoeus::Request.new(url, req_opts)
@@ -66,4 +66,21 @@ class ApisTest < Minitest::Test
66
66
  }
67
67
  assert_requested(:get, 'http://localhost:9086/api/v2/buckets', times: 1, headers: headers)
68
68
  end
69
+
70
+ def test_mng_redacted_auth_header
71
+ output = StringIO.new
72
+ logger = Logger.new output
73
+
74
+ @main_client.close!
75
+ @main_client = InfluxDB2::Client.new('http://localhost:9086', 'my-token', logger: logger, debugging: true)
76
+
77
+ stub_request(:get, 'http://localhost:9086/api/v2/orgs')
78
+ .to_return(body: '{}', headers: { 'Content-Type' => 'application/json' })
79
+
80
+ client = InfluxDB2::API::Client.new(@main_client)
81
+ organizations_api = client.create_organizations_api
82
+ organizations_api.get_orgs
83
+
84
+ assert_match 'Authorization: ***', output.string
85
+ end
69
86
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: influxdb-client-apis
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0.pre.5244
4
+ version: 2.7.0.pre.5385
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub Bednar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-24 00:00:00.000000000 Z
11
+ date: 2022-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: influxdb-client
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.7.0.pre.5244
19
+ version: 2.7.0.pre.5385
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.7.0.pre.5244
26
+ version: 2.7.0.pre.5385
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: typhoeus
29
29
  requirement: !ruby/object:Gem::Requirement