lib/dependency-tracker-client/api/vulnerability_api.rb
def assign_vulnerability1_with_http_info(uuid, component, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: VulnerabilityApi.assign_vulnerability1 ...'
      end
      # verify the required parameter 'uuid' is set
      if @api_client.config.client_side_validation && uuid.nil?
        fail ArgumentError, "Missing the required parameter 'uuid' when calling VulnerabilityApi.assign_vulnerability1"
      end
      # verify the required parameter 'component' is set
      if @api_client.config.client_side_validation && component.nil?
        fail ArgumentError, "Missing the required parameter 'component' when calling VulnerabilityApi.assign_vulnerability1"
      end
      # resource path
      local_var_path = '/v1/vulnerability/{uuid}/component/{component}'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s)).sub('{' + 'component' + '}', CGI.escape(component.to_s))

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

      # header parameters
      header_params = opts[:header_params] || {}

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

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

      # return_type
      return_type = opts[:return_type] 

      # auth_names
      auth_names = opts[:auth_names] || ['X-Api-Key']

      new_options = opts.merge(
        :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(:POST, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: VulnerabilityApi#assign_vulnerability1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
# Assigns a vulnerability to a component
# @param uuid [String] The UUID of the vulnerability
# @param component [String] The UUID of the component
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Assigns a vulnerability to a component
Assigns a vulnerability to a component
def assign_vulnerability1_with_http_info(uuid, component, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: VulnerabilityApi.assign_vulnerability1 ...'
      end
      if @api_client.config.client_side_validation && uuid.nil?
        fail ArgumentError, "Missing the required parameter 'uuid' when calling VulnerabilityApi.assign_vulnerability1"
      end
      if @api_client.config.client_side_validation && component.nil?
        fail ArgumentError, "Missing the required parameter 'component' when calling VulnerabilityApi.assign_vulnerability1"
      end
      local_var_path = '/v1/vulnerability/{uuid}/component/{component}'.sub('{' + 'uuid' + '}', CGI.escape(uuid.to_s)).sub('{' + 'component' + '}', CGI.escape(component.to_s))
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      form_params = opts[:form_params] || {}
      post_body = opts[:body] 
      return_type = opts[:return_type] 
      auth_names = opts[:auth_names] || ['X-Api-Key']
      new_options = opts.merge(
        :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(:POST, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: VulnerabilityApi#assign_vulnerability1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def assign_vulnerability1_with_http_info ( uuid , component , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: VulnerabilityApi.assign_vulnerability1 ...' end if @api_client . config . client_side_validation && uuid . nil? fail ArgumentError , "Missing the required parameter 'uuid' when calling VulnerabilityApi.assign_vulnerability1" end if @api_client . config . client_side_validation && component . nil? fail ArgumentError , "Missing the required parameter 'component' when calling VulnerabilityApi.assign_vulnerability1" end local_var_path = '/v1/vulnerability/{uuid}/component/{component}' . sub ( '{' + 'uuid' + '}' , CGI . escape ( uuid . to_s ) ) . sub ( '{' + 'component' + '}' , CGI . escape ( component . to_s ) ) query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } form_params = opts [ :form_params ] || { } post_body = opts [ :body ] return_type = opts [ :return_type ] auth_names = opts [ :auth_names ] || [ 'X-Api-Key' ] new_options = opts . merge ( :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 ( :POST , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: VulnerabilityApi#assign_vulnerability1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Assigns a vulnerability to a component
Assigns a vulnerability to a component
# verify the required parameter 'uuid' is set # verify the required parameter 'component' is set # resource path # query parameters # header parameters # 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)>
uuid
The UUID of the vulnerability
The UUID of the vulnerability
component
The UUID of the component
The UUID of the component
opts
opts the optional parameters
opts the optional parameters