lib/dependency-tracker-client/api/bom_api.rb
# 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 [BomSubmitRequest] :body 
# @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_bom1_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: BomApi.upload_bom1 ...'
      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(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:body] || @api_client.object_to_http_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(:PUT, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: BomApi#upload_bom1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def upload_bom1_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: BomApi.upload_bom1 ...' 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 ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :body ] || @api_client . object_to_http_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 ( :PUT , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: BomApi#upload_bom1\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
<not_specific>
opts the optional parameters
opts the optional parameters