influxdb-client-apis 2.3.0.pre.4483 → 2.3.0.pre.4516

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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/lib/influxdb2/apis/generated/api/authorizations_api.rb +2 -2
  3. data/lib/influxdb2/apis/generated/api/buckets_api.rb +8 -8
  4. data/lib/influxdb2/apis/generated/api/labels_api.rb +6 -6
  5. data/lib/influxdb2/apis/generated/api/organizations_api.rb +2 -210
  6. data/lib/influxdb2/apis/generated/api/users_api.rb +12 -6
  7. data/lib/influxdb2/apis/generated/api_client.rb +2 -2
  8. data/lib/influxdb2/apis/generated/api_error.rb +2 -2
  9. data/lib/influxdb2/apis/generated/configuration.rb +2 -2
  10. data/lib/influxdb2/apis/generated/models/add_resource_member_request_body.rb +224 -0
  11. data/lib/influxdb2/apis/generated/models/authorization.rb +9 -9
  12. data/lib/influxdb2/apis/generated/models/authorization_all_of.rb +8 -8
  13. data/lib/influxdb2/apis/generated/models/authorization_all_of_links.rb +2 -2
  14. data/lib/influxdb2/apis/generated/models/authorization_post_request.rb +3 -3
  15. data/lib/influxdb2/apis/generated/models/authorization_update_request.rb +3 -3
  16. data/lib/influxdb2/apis/generated/models/authorizations.rb +2 -2
  17. data/lib/influxdb2/apis/generated/models/bucket.rb +2 -2
  18. data/lib/influxdb2/apis/generated/models/bucket_links.rb +2 -2
  19. data/lib/influxdb2/apis/generated/models/buckets.rb +2 -2
  20. data/lib/influxdb2/apis/generated/models/label.rb +2 -2
  21. data/lib/influxdb2/apis/generated/models/label_create_request.rb +2 -2
  22. data/lib/influxdb2/apis/generated/models/label_mapping.rb +2 -2
  23. data/lib/influxdb2/apis/generated/models/label_response.rb +2 -2
  24. data/lib/influxdb2/apis/generated/models/label_update.rb +2 -2
  25. data/lib/influxdb2/apis/generated/models/labels_response.rb +2 -2
  26. data/lib/influxdb2/apis/generated/models/links.rb +2 -2
  27. data/lib/influxdb2/apis/generated/models/organization.rb +2 -2
  28. data/lib/influxdb2/apis/generated/models/organization_links.rb +2 -2
  29. data/lib/influxdb2/apis/generated/models/organizations.rb +2 -2
  30. data/lib/influxdb2/apis/generated/models/password_reset_body.rb +2 -2
  31. data/lib/influxdb2/apis/generated/models/patch_bucket_request.rb +232 -0
  32. data/lib/influxdb2/apis/generated/models/patch_organization_request.rb +2 -2
  33. data/lib/influxdb2/apis/generated/models/permission.rb +2 -2
  34. data/lib/influxdb2/apis/generated/models/post_bucket_request.rb +2 -2
  35. data/lib/influxdb2/apis/generated/models/post_organization_request.rb +2 -2
  36. data/lib/influxdb2/apis/generated/models/resource_member.rb +2 -2
  37. data/lib/influxdb2/apis/generated/models/resource_member_all_of.rb +2 -2
  38. data/lib/influxdb2/apis/generated/models/resource_members.rb +2 -2
  39. data/lib/influxdb2/apis/generated/models/resource_members_links.rb +2 -2
  40. data/lib/influxdb2/apis/generated/models/resource_owner.rb +2 -2
  41. data/lib/influxdb2/apis/generated/models/resource_owner_all_of.rb +2 -2
  42. data/lib/influxdb2/apis/generated/models/resource_owners.rb +2 -2
  43. data/lib/influxdb2/apis/generated/models/retention_rule.rb +2 -2
  44. data/lib/influxdb2/apis/generated/models/user.rb +2 -2
  45. data/lib/influxdb2/apis/generated/models/user_response.rb +2 -2
  46. data/lib/influxdb2/apis/generated/models/user_response_links.rb +2 -2
  47. data/lib/influxdb2/apis/generated/models/users.rb +2 -2
  48. metadata +6 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96d22039e67486a037d56ac4be5529a2f9b9f92c685c1b3e959ba94d93145a20
4
- data.tar.gz: 95732780ca037a64d42b49cc52aa0bb1144dea1c6bc08457b3a726192742926f
3
+ metadata.gz: bac3a347c9a922dee06c6c91c27b23cd995cad5ee3047836f7bcf680c0e52dc4
4
+ data.tar.gz: 33987f1f8895ba6cc52bb86b53a4b2309cf41ceb310bd33077ec2aabd6b6f9dc
5
5
  SHA512:
6
- metadata.gz: 6d3ed622d6bc79112779a69b28dc92a70bd2fce8c1967da25ef7597e1784c6c7637fee1f307a90bd2e8804aa51cde9cac7d2822ed63284103708485954825f3e
7
- data.tar.gz: 35fb5a608359bbd47a319328d6e083fa986f0c5a9459eeb145a42d43a730242fb797b5b590f568a6136872b7832bf145dac9e519e867db8051e79937557a3f47
6
+ metadata.gz: 54a1170e48f51b36ff19eb04d3404de465f96da28c2d5e1eb3f6a5060c64efacf7a67ec7c3d3a3f52a6d09b0134ddc82f158d85fed7e52cbae50b5aa219b93ce
7
+ data.tar.gz: 34fee8fb39cb7092c1a4f559f460c09df00814aae42968bc40e603d50cfb2d633fa975962fc4c1ef0329063e4e12098c339825c96777518d39d807125e2df41c
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Influx OSS API Service
2
+ #InfluxDB OSS API Service
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
5
5
 
6
6
  The version of the OpenAPI document: 2.0.0
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Influx OSS API Service
2
+ #InfluxDB OSS API Service
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
5
5
 
6
6
  The version of the OpenAPI document: 2.0.0
7
7
 
@@ -297,8 +297,8 @@ module InfluxDB2::API
297
297
  # @option opts [String] :zap_trace_span OpenTracing span context
298
298
  # @option opts [Integer] :offset
299
299
  # @option opts [Integer] :limit (default to 20)
300
- # @option opts [String] :after The last resource ID from which to seek from (but not including). This is to be used instead of `offset`.
301
- # @option opts [String] :org The organization name.
300
+ # @option opts [String] :after Resource ID to seek from. Results are not inclusive of this ID. Use `after` instead of `offset`.
301
+ # @option opts [String] :org The name of the organization.
302
302
  # @option opts [String] :org_id The organization ID.
303
303
  # @option opts [String] :name Only returns buckets with a specific name.
304
304
  # @option opts [String] :id Only returns buckets with a specific ID.
@@ -313,8 +313,8 @@ module InfluxDB2::API
313
313
  # @option opts [String] :zap_trace_span OpenTracing span context
314
314
  # @option opts [Integer] :offset
315
315
  # @option opts [Integer] :limit
316
- # @option opts [String] :after The last resource ID from which to seek from (but not including). This is to be used instead of `offset`.
317
- # @option opts [String] :org The organization name.
316
+ # @option opts [String] :after Resource ID to seek from. Results are not inclusive of this ID. Use `after` instead of `offset`.
317
+ # @option opts [String] :org The name of the organization.
318
318
  # @option opts [String] :org_id The organization ID.
319
319
  # @option opts [String] :name Only returns buckets with a specific name.
320
320
  # @option opts [String] :id Only returns buckets with a specific ID.
@@ -643,7 +643,7 @@ module InfluxDB2::API
643
643
  # @param source_id [String] The source ID.
644
644
  # @param [Hash] opts the optional parameters
645
645
  # @option opts [String] :zap_trace_span OpenTracing span context
646
- # @option opts [String] :org The organization name.
646
+ # @option opts [String] :org The name of the organization.
647
647
  # @return [Buckets]
648
648
  def get_sources_id_buckets(source_id, opts = {})
649
649
  data, _status_code, _headers = get_sources_id_buckets_with_http_info(source_id, opts)
@@ -654,7 +654,7 @@ module InfluxDB2::API
654
654
  # @param source_id [String] The source ID.
655
655
  # @param [Hash] opts the optional parameters
656
656
  # @option opts [String] :zap_trace_span OpenTracing span context
657
- # @option opts [String] :org The organization name.
657
+ # @option opts [String] :org The name of the organization.
658
658
  # @return [Array<(Buckets, Integer, Hash)>] Buckets data, response status code and response headers
659
659
  def get_sources_id_buckets_with_http_info(source_id, opts = {})
660
660
  if @api_client.config.debugging
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Influx OSS API Service
2
+ #InfluxDB OSS API Service
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
5
5
 
6
6
  The version of the OpenAPI document: 2.0.0
7
7
 
@@ -82,7 +82,7 @@ module InfluxDB2::API
82
82
  return data, status_code, headers
83
83
  end
84
84
 
85
- # Get all labels
85
+ # List all labels
86
86
  # @param [Hash] opts the optional parameters
87
87
  # @option opts [String] :zap_trace_span OpenTracing span context
88
88
  # @option opts [String] :org_id The organization ID.
@@ -92,7 +92,7 @@ module InfluxDB2::API
92
92
  data
93
93
  end
94
94
 
95
- # Get all labels
95
+ # List all labels
96
96
  # @param [Hash] opts the optional parameters
97
97
  # @option opts [String] :zap_trace_span OpenTracing span context
98
98
  # @option opts [String] :org_id The organization ID.
@@ -143,7 +143,7 @@ module InfluxDB2::API
143
143
  return data, status_code, headers
144
144
  end
145
145
 
146
- # Get a label
146
+ # Retrieve a label
147
147
  # @param label_id [String] The ID of the label to update.
148
148
  # @param [Hash] opts the optional parameters
149
149
  # @option opts [String] :zap_trace_span OpenTracing span context
@@ -153,7 +153,7 @@ module InfluxDB2::API
153
153
  data
154
154
  end
155
155
 
156
- # Get a label
156
+ # Retrieve a label
157
157
  # @param label_id [String] The ID of the label to update.
158
158
  # @param [Hash] opts the optional parameters
159
159
  # @option opts [String] :zap_trace_span OpenTracing span context
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Influx OSS API Service
2
+ #InfluxDB OSS API Service
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
5
5
 
6
6
  The version of the OpenAPI document: 2.0.0
7
7
 
@@ -502,70 +502,6 @@ module InfluxDB2::API
502
502
  return data, status_code, headers
503
503
  end
504
504
 
505
- # List all secret keys for an organization
506
- # @param org_id [String] The organization ID.
507
- # @param [Hash] opts the optional parameters
508
- # @option opts [String] :zap_trace_span OpenTracing span context
509
- # @return [SecretKeysResponse]
510
- def get_orgs_id_secrets(org_id, opts = {})
511
- data, _status_code, _headers = get_orgs_id_secrets_with_http_info(org_id, opts)
512
- data
513
- end
514
-
515
- # List all secret keys for an organization
516
- # @param org_id [String] The organization ID.
517
- # @param [Hash] opts the optional parameters
518
- # @option opts [String] :zap_trace_span OpenTracing span context
519
- # @return [Array<(SecretKeysResponse, Integer, Hash)>] SecretKeysResponse data, response status code and response headers
520
- def get_orgs_id_secrets_with_http_info(org_id, opts = {})
521
- if @api_client.config.debugging
522
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_orgs_id_secrets ...'
523
- end
524
- # verify the required parameter 'org_id' is set
525
- if @api_client.config.client_side_validation && org_id.nil?
526
- fail ArgumentError, "Missing the required parameter 'org_id' when calling OrganizationsApi.get_orgs_id_secrets"
527
- end
528
- # resource path
529
- local_var_path = '/orgs/{orgID}/secrets'.sub('{' + 'orgID' + '}', CGI.escape(org_id.to_s))
530
-
531
- # query parameters
532
- query_params = opts[:query_params] || {}
533
-
534
- # header parameters
535
- header_params = opts[:header_params] || {}
536
- # HTTP header 'Accept' (if needed)
537
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
538
- header_params[:'Zap-Trace-Span'] = opts[:'zap_trace_span'] if !opts[:'zap_trace_span'].nil?
539
-
540
- # form parameters
541
- form_params = opts[:form_params] || {}
542
-
543
- # http body (model)
544
- post_body = opts[:debug_body]
545
-
546
- # return_type
547
- return_type = opts[:debug_return_type] || 'SecretKeysResponse'
548
-
549
- # auth_names
550
- auth_names = opts[:debug_auth_names] || ['header']
551
-
552
- new_options = opts.merge(
553
- :operation => :"OrganizationsApi.get_orgs_id_secrets",
554
- :header_params => header_params,
555
- :query_params => query_params,
556
- :form_params => form_params,
557
- :body => post_body,
558
- :auth_names => auth_names,
559
- :return_type => return_type
560
- )
561
-
562
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
563
- if @api_client.config.debugging
564
- @api_client.config.logger.debug "API called: OrganizationsApi#get_orgs_id_secrets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
565
- end
566
- return data, status_code, headers
567
- end
568
-
569
505
  # Update an organization
570
506
  # @param org_id [String] The ID of the organization to get.
571
507
  # @param patch_organization_request [PatchOrganizationRequest] Organization update to apply
@@ -638,78 +574,6 @@ module InfluxDB2::API
638
574
  return data, status_code, headers
639
575
  end
640
576
 
641
- # Update secrets in an organization
642
- # @param org_id [String] The organization ID.
643
- # @param request_body [Hash<String, String>] Secret key value pairs to update/add
644
- # @param [Hash] opts the optional parameters
645
- # @option opts [String] :zap_trace_span OpenTracing span context
646
- # @return [nil]
647
- def patch_orgs_id_secrets(org_id, request_body, opts = {})
648
- patch_orgs_id_secrets_with_http_info(org_id, request_body, opts)
649
- nil
650
- end
651
-
652
- # Update secrets in an organization
653
- # @param org_id [String] The organization ID.
654
- # @param request_body [Hash<String, String>] Secret key value pairs to update/add
655
- # @param [Hash] opts the optional parameters
656
- # @option opts [String] :zap_trace_span OpenTracing span context
657
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
658
- def patch_orgs_id_secrets_with_http_info(org_id, request_body, opts = {})
659
- if @api_client.config.debugging
660
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.patch_orgs_id_secrets ...'
661
- end
662
- # verify the required parameter 'org_id' is set
663
- if @api_client.config.client_side_validation && org_id.nil?
664
- fail ArgumentError, "Missing the required parameter 'org_id' when calling OrganizationsApi.patch_orgs_id_secrets"
665
- end
666
- # verify the required parameter 'request_body' is set
667
- if @api_client.config.client_side_validation && request_body.nil?
668
- fail ArgumentError, "Missing the required parameter 'request_body' when calling OrganizationsApi.patch_orgs_id_secrets"
669
- end
670
- # resource path
671
- local_var_path = '/orgs/{orgID}/secrets'.sub('{' + 'orgID' + '}', CGI.escape(org_id.to_s))
672
-
673
- # query parameters
674
- query_params = opts[:query_params] || {}
675
-
676
- # header parameters
677
- header_params = opts[:header_params] || {}
678
- # HTTP header 'Accept' (if needed)
679
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
680
- # HTTP header 'Content-Type'
681
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
682
- header_params[:'Zap-Trace-Span'] = opts[:'zap_trace_span'] if !opts[:'zap_trace_span'].nil?
683
-
684
- # form parameters
685
- form_params = opts[:form_params] || {}
686
-
687
- # http body (model)
688
- post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
689
-
690
- # return_type
691
- return_type = opts[:debug_return_type]
692
-
693
- # auth_names
694
- auth_names = opts[:debug_auth_names] || ['header']
695
-
696
- new_options = opts.merge(
697
- :operation => :"OrganizationsApi.patch_orgs_id_secrets",
698
- :header_params => header_params,
699
- :query_params => query_params,
700
- :form_params => form_params,
701
- :body => post_body,
702
- :auth_names => auth_names,
703
- :return_type => return_type
704
- )
705
-
706
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
707
- if @api_client.config.debugging
708
- @api_client.config.logger.debug "API called: OrganizationsApi#patch_orgs_id_secrets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
709
- end
710
- return data, status_code, headers
711
- end
712
-
713
577
  # Create an organization
714
578
  # @param post_organization_request [PostOrganizationRequest] Organization to create
715
579
  # @param [Hash] opts the optional parameters
@@ -919,77 +783,5 @@ module InfluxDB2::API
919
783
  end
920
784
  return data, status_code, headers
921
785
  end
922
-
923
- # Delete secrets from an organization
924
- # @param org_id [String] The organization ID.
925
- # @param secret_keys [SecretKeys] Secret key to delete
926
- # @param [Hash] opts the optional parameters
927
- # @option opts [String] :zap_trace_span OpenTracing span context
928
- # @return [nil]
929
- def post_orgs_id_secrets(org_id, secret_keys, opts = {})
930
- post_orgs_id_secrets_with_http_info(org_id, secret_keys, opts)
931
- nil
932
- end
933
-
934
- # Delete secrets from an organization
935
- # @param org_id [String] The organization ID.
936
- # @param secret_keys [SecretKeys] Secret key to delete
937
- # @param [Hash] opts the optional parameters
938
- # @option opts [String] :zap_trace_span OpenTracing span context
939
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
940
- def post_orgs_id_secrets_with_http_info(org_id, secret_keys, opts = {})
941
- if @api_client.config.debugging
942
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.post_orgs_id_secrets ...'
943
- end
944
- # verify the required parameter 'org_id' is set
945
- if @api_client.config.client_side_validation && org_id.nil?
946
- fail ArgumentError, "Missing the required parameter 'org_id' when calling OrganizationsApi.post_orgs_id_secrets"
947
- end
948
- # verify the required parameter 'secret_keys' is set
949
- if @api_client.config.client_side_validation && secret_keys.nil?
950
- fail ArgumentError, "Missing the required parameter 'secret_keys' when calling OrganizationsApi.post_orgs_id_secrets"
951
- end
952
- # resource path
953
- local_var_path = '/orgs/{orgID}/secrets/delete'.sub('{' + 'orgID' + '}', CGI.escape(org_id.to_s))
954
-
955
- # query parameters
956
- query_params = opts[:query_params] || {}
957
-
958
- # header parameters
959
- header_params = opts[:header_params] || {}
960
- # HTTP header 'Accept' (if needed)
961
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
962
- # HTTP header 'Content-Type'
963
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
964
- header_params[:'Zap-Trace-Span'] = opts[:'zap_trace_span'] if !opts[:'zap_trace_span'].nil?
965
-
966
- # form parameters
967
- form_params = opts[:form_params] || {}
968
-
969
- # http body (model)
970
- post_body = opts[:debug_body] || @api_client.object_to_http_body(secret_keys)
971
-
972
- # return_type
973
- return_type = opts[:debug_return_type]
974
-
975
- # auth_names
976
- auth_names = opts[:debug_auth_names] || ['header']
977
-
978
- new_options = opts.merge(
979
- :operation => :"OrganizationsApi.post_orgs_id_secrets",
980
- :header_params => header_params,
981
- :query_params => query_params,
982
- :form_params => form_params,
983
- :body => post_body,
984
- :auth_names => auth_names,
985
- :return_type => return_type
986
- )
987
-
988
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
989
- if @api_client.config.debugging
990
- @api_client.config.logger.debug "API called: OrganizationsApi#post_orgs_id_secrets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
991
- end
992
- return data, status_code, headers
993
- end
994
786
  end
995
787
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Influx OSS API Service
2
+ #InfluxDB OSS API Service
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
5
5
 
6
6
  The version of the OpenAPI document: 2.0.0
7
7
 
@@ -140,7 +140,7 @@ module InfluxDB2::API
140
140
  return data, status_code, headers
141
141
  end
142
142
 
143
- # Return the current authenticated user
143
+ # Retrieve the currently authenticated user
144
144
  # @param [Hash] opts the optional parameters
145
145
  # @option opts [String] :zap_trace_span OpenTracing span context
146
146
  # @return [UserResponse]
@@ -149,7 +149,7 @@ module InfluxDB2::API
149
149
  data
150
150
  end
151
151
 
152
- # Return the current authenticated user
152
+ # Retrieve the currently authenticated user
153
153
  # @param [Hash] opts the optional parameters
154
154
  # @option opts [String] :zap_trace_span OpenTracing span context
155
155
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
@@ -203,7 +203,9 @@ module InfluxDB2::API
203
203
  # @option opts [String] :zap_trace_span OpenTracing span context
204
204
  # @option opts [Integer] :offset
205
205
  # @option opts [Integer] :limit (default to 20)
206
- # @option opts [String] :after The last resource ID from which to seek from (but not including). This is to be used instead of &#x60;offset&#x60;.
206
+ # @option opts [String] :after Resource ID to seek from. Results are not inclusive of this ID. Use &#x60;after&#x60; instead of &#x60;offset&#x60;.
207
+ # @option opts [String] :name
208
+ # @option opts [String] :id
207
209
  # @return [Users]
208
210
  def get_users(opts = {})
209
211
  data, _status_code, _headers = get_users_with_http_info(opts)
@@ -215,7 +217,9 @@ module InfluxDB2::API
215
217
  # @option opts [String] :zap_trace_span OpenTracing span context
216
218
  # @option opts [Integer] :offset
217
219
  # @option opts [Integer] :limit
218
- # @option opts [String] :after The last resource ID from which to seek from (but not including). This is to be used instead of &#x60;offset&#x60;.
220
+ # @option opts [String] :after Resource ID to seek from. Results are not inclusive of this ID. Use &#x60;after&#x60; instead of &#x60;offset&#x60;.
221
+ # @option opts [String] :name
222
+ # @option opts [String] :id
219
223
  # @return [Array<(Users, Integer, Hash)>] Users data, response status code and response headers
220
224
  def get_users_with_http_info(opts = {})
221
225
  if @api_client.config.debugging
@@ -241,6 +245,8 @@ module InfluxDB2::API
241
245
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
242
246
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
243
247
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
248
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
249
+ query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
244
250
 
245
251
  # header parameters
246
252
  header_params = opts[:header_params] || {}
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Influx OSS API Service
2
+ #InfluxDB OSS API Service
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
5
5
 
6
6
  The version of the OpenAPI document: 2.0.0
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Influx OSS API Service
2
+ #InfluxDB OSS API Service
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
5
5
 
6
6
  The version of the OpenAPI document: 2.0.0
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Influx OSS API Service
2
+ #InfluxDB OSS API Service
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
5
5
 
6
6
  The version of the OpenAPI document: 2.0.0
7
7
 
@@ -0,0 +1,224 @@
1
+ =begin
2
+ #InfluxDB OSS API Service
3
+
4
+ #The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+
10
+ =end
11
+
12
+ require 'date'
13
+ require 'set'
14
+ require 'time'
15
+
16
+ module InfluxDB2::API
17
+ class AddResourceMemberRequestBody
18
+ attr_accessor :id
19
+
20
+ attr_accessor :name
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'id' => :'id',
26
+ :'name' => :'name',
27
+ }
28
+ end
29
+
30
+ # Attribute type mapping.
31
+ def self.openapi_types
32
+ {
33
+ :'id' => :'String',
34
+ :'name' => :'String'
35
+ }
36
+ end
37
+
38
+ # List of attributes with nullable: true
39
+ def self.openapi_nullable
40
+ Set.new([
41
+ ])
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `InfluxDB2::AddResourceMemberRequestBody` initialize method"
49
+ end
50
+
51
+ # check to see if the attribute exists and convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h|
53
+ if (!self.class.attribute_map.key?(k.to_sym))
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `InfluxDB2::AddResourceMemberRequestBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ end
56
+ h[k.to_sym] = v
57
+ }
58
+
59
+ if attributes.key?(:'id')
60
+ self.id = attributes[:'id']
61
+ end
62
+
63
+ if attributes.key?(:'name')
64
+ self.name = attributes[:'name']
65
+ end
66
+ end
67
+
68
+ # Show invalid properties with the reasons. Usually used together with valid?
69
+ # @return Array for valid properties with the reasons
70
+ def list_invalid_properties
71
+ invalid_properties = Array.new
72
+ if @id.nil?
73
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
74
+ end
75
+
76
+ invalid_properties
77
+ end
78
+
79
+ # Check to see if the all the properties in the model are valid
80
+ # @return true if the model is valid
81
+ def valid?
82
+ return false if @id.nil?
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ id == o.id &&
92
+ name == o.name
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Integer] Hash code
103
+ def hash
104
+ [id, name].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def self.build_from_hash(attributes)
111
+ new.build_from_hash(attributes)
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ self.class.openapi_types.each_pair do |key, type|
120
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
121
+ self.send("#{key}=", nil)
122
+ elsif type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the attribute
124
+ # is documented as an array but the input is not
125
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
126
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
+ end
128
+ elsif !attributes[self.class.attribute_map[key]].nil?
129
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
130
+ end
131
+ end
132
+
133
+ self
134
+ end
135
+
136
+ # Deserializes the data based on type
137
+ # @param string type Data type
138
+ # @param string value Value to be deserialized
139
+ # @return [Object] Deserialized data
140
+ def _deserialize(type, value)
141
+ case type.to_sym
142
+ when :Time
143
+ Time.parse(value)
144
+ when :Date
145
+ Date.parse(value)
146
+ when :String
147
+ value.to_s
148
+ when :Integer
149
+ value.to_i
150
+ when :Float
151
+ value.to_f
152
+ when :Boolean
153
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
154
+ true
155
+ else
156
+ false
157
+ end
158
+ when :Object
159
+ # generic object (usually a Hash), return directly
160
+ value
161
+ when /\AArray<(?<inner_type>.+)>\z/
162
+ inner_type = Regexp.last_match[:inner_type]
163
+ value.map { |v| _deserialize(inner_type, v) }
164
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
165
+ k_type = Regexp.last_match[:k_type]
166
+ v_type = Regexp.last_match[:v_type]
167
+ {}.tap do |hash|
168
+ value.each do |k, v|
169
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
170
+ end
171
+ end
172
+ else # model
173
+ InfluxDB2::API.const_get(type).build_from_hash(value)
174
+ end
175
+ end
176
+
177
+ # Returns the string representation of the object
178
+ # @return [String] String presentation of the object
179
+ def to_s
180
+ to_hash.to_s
181
+ end
182
+
183
+ # to_body is an alias to to_hash (backward compatibility)
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_body
186
+ to_hash
187
+ end
188
+
189
+ # Returns the object in the form of hash
190
+ # @return [Hash] Returns the object in the form of hash
191
+ def to_hash
192
+ hash = {}
193
+ self.class.attribute_map.each_pair do |attr, param|
194
+ value = self.send(attr)
195
+ if value.nil?
196
+ is_nullable = self.class.openapi_nullable.include?(attr)
197
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
198
+ end
199
+
200
+ hash[param] = _to_hash(value)
201
+ end
202
+ hash
203
+ end
204
+
205
+ # Outputs non-array value in the form of hash
206
+ # For object, use to_hash. Otherwise, just return the value
207
+ # @param [Object] value Any valid value
208
+ # @return [Hash] Returns the value in the form of hash
209
+ def _to_hash(value)
210
+ if value.is_a?(Array)
211
+ value.compact.map { |v| _to_hash(v) }
212
+ elsif value.is_a?(Hash)
213
+ {}.tap do |hash|
214
+ value.each { |k, v| hash[k] = _to_hash(v) }
215
+ end
216
+ elsif value.respond_to? :to_hash
217
+ value.to_hash
218
+ else
219
+ value
220
+ end
221
+ end
222
+
223
+ end
224
+ end