|
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 @@ def get_orgs_id_owners_with_http_info(org_id, opts = {}) |
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 @@ def patch_orgs_id_with_http_info(org_id, patch_organization_request, opts = {}) |
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 @@ def post_orgs_id_owners_with_http_info(org_id, add_resource_member_request_body, |
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 |
0 commit comments