postSbomWithHttpInfo method

Future<Response> postSbomWithHttpInfo(
  1. SbomIngest sbomIngest
)

Ingest persists a CycloneDX SBOM's components keyed by image digest.

Ingest persists a CycloneDX SBOM's components keyed by image digest. Gated to a validated SuperAdmin (owner == AdminOrg) — the canonical cloud super-admin check, which the build fleet / CI carries. Re-ingest is idempotent: rows share the (digest, name, version, purl) ORDER BY, so ReplacingMergeTree keeps the latest by ingested_at (and resolve reads FINAL).

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> postSbomWithHttpInfo(SbomIngest sbomIngest,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/sbom';

  // ignore: prefer_final_locals
  Object? postBody = sbomIngest;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}