apis/lib/influxdb2/apis/generated/api/users_api.rb
def delete_buckets_id_owners_id_with_http_info(user_id, bucket_id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: UsersApi.delete_buckets_id_owners_id ...'
      end
      # verify the required parameter 'user_id' is set
      if @api_client.config.client_side_validation && user_id.nil?
        fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.delete_buckets_id_owners_id"
      end
      # verify the required parameter 'bucket_id' is set
      if @api_client.config.client_side_validation && bucket_id.nil?
        fail ArgumentError, "Missing the required parameter 'bucket_id' when calling UsersApi.delete_buckets_id_owners_id"
      end
      # resource path
      local_var_path = '/buckets/{bucketID}/owners/{userID}'.sub('{' + 'userID' + '}', CGI.escape(user_id.to_s)).sub('{' + 'bucketID' + '}', CGI.escape(bucket_id.to_s))

      # query parameters
      query_params = opts[:query_params] || {}

      # header parameters
      header_params = opts[:header_params] || {}
      # HTTP header 'Accept' (if needed)
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params[:'Zap-Trace-Span'] = opts[:'zap_trace_span'] if !opts[:'zap_trace_span'].nil?

      # form parameters
      form_params = opts[:form_params] || {}

      # http body (model)
      post_body = opts[:debug_body]

      # return_type
      return_type = opts[:debug_return_type]

      # auth_names
      auth_names = opts[:debug_auth_names] || ['header']

      new_options = opts.merge(
        :operation => :"UsersApi.delete_buckets_id_owners_id",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )

      data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: UsersApi#delete_buckets_id_owners_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
# Remove an owner from a bucket
# @param user_id [String] The ID of the owner to remove.
# @param bucket_id [String] The bucket ID.
# @param [Hash] opts the optional parameters
# @option opts [String] :zap_trace_span OpenTracing span context
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Remove an owner from a bucket
Remove an owner from a bucket
def delete_buckets_id_owners_id_with_http_info(user_id, bucket_id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: UsersApi.delete_buckets_id_owners_id ...'
      end
      if @api_client.config.client_side_validation && user_id.nil?
        fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.delete_buckets_id_owners_id"
      end
      if @api_client.config.client_side_validation && bucket_id.nil?
        fail ArgumentError, "Missing the required parameter 'bucket_id' when calling UsersApi.delete_buckets_id_owners_id"
      end
      local_var_path = '/buckets/{bucketID}/owners/{userID}'.sub('{' + 'userID' + '}', CGI.escape(user_id.to_s)).sub('{' + 'bucketID' + '}', CGI.escape(bucket_id.to_s))
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params[:'Zap-Trace-Span'] = opts[:'zap_trace_span'] if !opts[:'zap_trace_span'].nil?
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type]
      auth_names = opts[:debug_auth_names] || ['header']
      new_options = opts.merge(
        :operation => :"UsersApi.delete_buckets_id_owners_id",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: UsersApi#delete_buckets_id_owners_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def delete_buckets_id_owners_id_with_http_info ( user_id , bucket_id , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: UsersApi.delete_buckets_id_owners_id ...' end if @api_client . config . client_side_validation && user_id . nil? fail ArgumentError , "Missing the required parameter 'user_id' when calling UsersApi.delete_buckets_id_owners_id" end if @api_client . config . client_side_validation && bucket_id . nil? fail ArgumentError , "Missing the required parameter 'bucket_id' when calling UsersApi.delete_buckets_id_owners_id" end local_var_path = '/buckets/{bucketID}/owners/{userID}' . sub ( '{' + 'userID' + '}' , CGI . escape ( user_id . to_s ) ) . sub ( '{' + 'bucketID' + '}' , CGI . escape ( bucket_id . to_s ) ) query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ :' Zap-Trace-Span ' ] = opts [ :' zap_trace_span ' ] if ! opts [ :' zap_trace_span ' ] . nil? form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] auth_names = opts [ :debug_auth_names ] || [ 'header' ] new_options = opts . merge ( :operation => :" UsersApi.delete_buckets_id_owners_id " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :DELETE , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: UsersApi#delete_buckets_id_owners_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Remove an owner from a bucket
Remove an owner from a bucket
# verify the required parameter 'user_id' is set # verify the required parameter 'bucket_id' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
nil, response status code and response headers
nil response status code and response headers
Array<(nil, Integer, Hash)>
user_id
The ID of the owner to remove.
The ID of the owner to remove .
bucket_id
The bucket ID.
The bucket ID .
opts
:zap_trace_span OpenTracing span context
: zap_trace_span OpenTracing span context
opts the optional parameters
opts the optional parameters