Skip to content

Commit ff81f2f

Browse files
authored
fix: add missing PatchBucketRequest (#99)
1 parent 57d091a commit ff81f2f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+591
-331
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## 2.3.0 [unreleased]
22

3+
### Bug Fixes
4+
1. [#99](https://github.com/influxdata/influxdb-client-ruby/pull/99): Add missing `PatchBucketRequest` model
5+
36
### CI
47
1. [#100](https://github.com/influxdata/influxdb-client-ruby/pull/100): Use new Codecov uploader for reporting code coverage
58

apis/lib/influxdb2/apis/generated/api/authorizations_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=begin
2-
#Influx OSS API Service
2+
#InfluxDB OSS API Service
33
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.
55
66
The version of the OpenAPI document: 2.0.0
77

apis/lib/influxdb2/apis/generated/api/buckets_api.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=begin
2-
#Influx OSS API Service
2+
#InfluxDB OSS API Service
33
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.
55
66
The version of the OpenAPI document: 2.0.0
77
@@ -297,8 +297,8 @@ def delete_buckets_id_owners_id_with_http_info(user_id, bucket_id, opts = {})
297297
# @option opts [String] :zap_trace_span OpenTracing span context
298298
# @option opts [Integer] :offset
299299
# @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.
302302
# @option opts [String] :org_id The organization ID.
303303
# @option opts [String] :name Only returns buckets with a specific name.
304304
# @option opts [String] :id Only returns buckets with a specific ID.
@@ -313,8 +313,8 @@ def get_buckets(opts = {})
313313
# @option opts [String] :zap_trace_span OpenTracing span context
314314
# @option opts [Integer] :offset
315315
# @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.
318318
# @option opts [String] :org_id The organization ID.
319319
# @option opts [String] :name Only returns buckets with a specific name.
320320
# @option opts [String] :id Only returns buckets with a specific ID.
@@ -643,7 +643,7 @@ def get_buckets_id_owners_with_http_info(bucket_id, opts = {})
643643
# @param source_id [String] The source ID.
644644
# @param [Hash] opts the optional parameters
645645
# @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.
647647
# @return [Buckets]
648648
def get_sources_id_buckets(source_id, opts = {})
649649
data, _status_code, _headers = get_sources_id_buckets_with_http_info(source_id, opts)
@@ -654,7 +654,7 @@ def get_sources_id_buckets(source_id, opts = {})
654654
# @param source_id [String] The source ID.
655655
# @param [Hash] opts the optional parameters
656656
# @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.
658658
# @return [Array<(Buckets, Integer, Hash)>] Buckets data, response status code and response headers
659659
def get_sources_id_buckets_with_http_info(source_id, opts = {})
660660
if @api_client.config.debugging

apis/lib/influxdb2/apis/generated/api/labels_api.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=begin
2-
#Influx OSS API Service
2+
#InfluxDB OSS API Service
33
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.
55
66
The version of the OpenAPI document: 2.0.0
77
@@ -82,7 +82,7 @@ def delete_labels_id_with_http_info(label_id, opts = {})
8282
return data, status_code, headers
8383
end
8484

85-
# Get all labels
85+
# List all labels
8686
# @param [Hash] opts the optional parameters
8787
# @option opts [String] :zap_trace_span OpenTracing span context
8888
# @option opts [String] :org_id The organization ID.
@@ -92,7 +92,7 @@ def get_labels(opts = {})
9292
data
9393
end
9494

95-
# Get all labels
95+
# List all labels
9696
# @param [Hash] opts the optional parameters
9797
# @option opts [String] :zap_trace_span OpenTracing span context
9898
# @option opts [String] :org_id The organization ID.
@@ -143,7 +143,7 @@ def get_labels_with_http_info(opts = {})
143143
return data, status_code, headers
144144
end
145145

146-
# Get a label
146+
# Retrieve a label
147147
# @param label_id [String] The ID of the label to update.
148148
# @param [Hash] opts the optional parameters
149149
# @option opts [String] :zap_trace_span OpenTracing span context
@@ -153,7 +153,7 @@ def get_labels_id(label_id, opts = {})
153153
data
154154
end
155155

156-
# Get a label
156+
# Retrieve a label
157157
# @param label_id [String] The ID of the label to update.
158158
# @param [Hash] opts the optional parameters
159159
# @option opts [String] :zap_trace_span OpenTracing span context

apis/lib/influxdb2/apis/generated/api/organizations_api.rb

Lines changed: 2 additions & 210 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=begin
2-
#Influx OSS API Service
2+
#InfluxDB OSS API Service
33
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.
55
66
The version of the OpenAPI document: 2.0.0
77
@@ -502,70 +502,6 @@ def get_orgs_id_owners_with_http_info(org_id, opts = {})
502502
return data, status_code, headers
503503
end
504504

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-
569505
# Update an organization
570506
# @param org_id [String] The ID of the organization to get.
571507
# @param patch_organization_request [PatchOrganizationRequest] Organization update to apply
@@ -638,78 +574,6 @@ def patch_orgs_id_with_http_info(org_id, patch_organization_request, opts = {})
638574
return data, status_code, headers
639575
end
640576

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-
713577
# Create an organization
714578
# @param post_organization_request [PostOrganizationRequest] Organization to create
715579
# @param [Hash] opts the optional parameters
@@ -919,77 +783,5 @@ def post_orgs_id_owners_with_http_info(org_id, add_resource_member_request_body,
919783
end
920784
return data, status_code, headers
921785
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
994786
end
995787
end

0 commit comments

Comments
 (0)