As of January 1, 2020 this library no longer supports Python 2 on the latest released version. Library versions released prior to that date will continue to be available. For more information please visit Python 2 support on Google Cloud.

Types for Google Cloud Devtools Containeranalysis v1 API

class google.cloud.devtools.containeranalysis_v1.types.GetVulnerabilityOccurrencesSummaryRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to get a vulnerability summary for some set of occurrences.

parent

Required. The name of the project to get a vulnerability summary for in the form of projects/[PROJECT_ID].

Type

str

filter

The filter expression.

Type

str

class google.cloud.devtools.containeranalysis_v1.types.VulnerabilityOccurrencesSummary(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

A summary of how many vulnerability occurrences there are per resource and severity type.

counts

A listing by resource of the number of fixable and total vulnerabilities.

Type

MutableSequence[google.cloud.devtools.containeranalysis_v1.types.VulnerabilityOccurrencesSummary.FixableTotalByDigest]

class FixableTotalByDigest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Per resource and severity counts of fixable and total vulnerabilities.

resource_uri

The affected resource.

Type

str

severity

The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities.

Type

grafeas.v1.grafeas.grafeas_v1.Severity

fixable_count

The number of fixable vulnerabilities associated with this resource.

Type

int

total_count

The total number of vulnerabilities associated with this resource.

Type

int