lib/dependency-tracker-client/api/bom_api.rb
def upload_bom_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: BomApi.upload_bom ...'
      end
      # resource path
      local_var_path = '/v1/bom'

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

      # header parameters
      header_params = opts[:header_params] || {}
      # HTTP header 'Content-Type'
      header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])

      # form parameters
      form_params = opts[:form_params] || {}
      form_params['project'] = opts[:'project'] if !opts[:'project'].nil?
      form_params['autoCreate'] = opts[:'auto_create'] if !opts[:'auto_create'].nil?
      form_params['projectName'] = opts[:'project_name'] if !opts[:'project_name'].nil?
      form_params['projectVersion'] = opts[:'project_version'] if !opts[:'project_version'].nil?

      # 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: BomApi#upload_bom\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
# Upload a supported bill of material format document
# Expects CycloneDX or SPDX (text or RDF) along and a valid project UUID. If a UUID is not specified, than the projectName and projectVersion must be specified. Optionally, if autoCreate is specified and &#39;true&#39; and the project does not exist, the project will be created. In this scenario, the principal making the request will additionally need the PORTFOLIO_MANAGEMENT or PROJECT_CREATION_UPLOAD permission.
# @param [Hash] opts the optional parameters
# @option opts [String] :project 
# @option opts [Boolean] :auto_create 
# @option opts [String] :project_name 
# @option opts [String] :project_version 
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Upload a supported bill of material format document
Expects CycloneDX or SPDX (text or RDF) along and a valid project UUID. If a UUID is not specified, than the projectName and projectVersion must be specified. Optionally, if autoCreate is specified and 'true' and the project does not exist, the project will be created. In this scenario, the principal making the request will additionally need the PORTFOLIO_MANAGEMENT or PROJECT_CREATION_UPLOAD permission.
Upload a supported bill of material format document Expects CycloneDX or SPDX ( text or RDF ) along and a valid project UUID . If a UUID is not specified than the projectName and projectVersion must be specified . Optionally if autoCreate is specified and ' true ' and the project does not exist the project will be created . In this scenario the principal making the request will additionally need the PORTFOLIO_MANAGEMENT or PROJECT_CREATION_UPLOAD permission .
def upload_bom_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: BomApi.upload_bom ...'
      end
      local_var_path = '/v1/bom'
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
      form_params = opts[:form_params] || {}
      form_params['project'] = opts[:'project'] if !opts[:'project'].nil?
      form_params['autoCreate'] = opts[:'auto_create'] if !opts[:'auto_create'].nil?
      form_params['projectName'] = opts[:'project_name'] if !opts[:'project_name'].nil?
      form_params['projectVersion'] = opts[:'project_version'] if !opts[:'project_version'].nil?
      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: BomApi#upload_bom\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def upload_bom_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: BomApi.upload_bom ...' end local_var_path = '/v1/bom' query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'multipart/form-data' ] ) form_params = opts [ :form_params ] || { } form_params [ 'project' ] = opts [ :' project ' ] if ! opts [ :' project ' ] . nil? form_params [ 'autoCreate' ] = opts [ :' auto_create ' ] if ! opts [ :' auto_create ' ] . nil? form_params [ 'projectName' ] = opts [ :' project_name ' ] if ! opts [ :' project_name ' ] . nil? form_params [ 'projectVersion' ] = opts [ :' project_version ' ] if ! opts [ :' project_version ' ] . nil? 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: BomApi#upload_bom\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Upload a supported bill of material format document
Expects CycloneDX or SPDX (text or RDF) along and a valid project UUID.
Upload a supported bill of material format document Expects CycloneDX or SPDX ( text or RDF ) along and a valid project UUID .
# resource path # query parameters # header parameters # HTTP header 'Content-Type' # 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)>
opts
None
opts the optional parameters
opts the optional parameters