ContainerRegistryVulnerabilityProperties Class

public final class ContainerRegistryVulnerabilityProperties
extends AdditionalData

Additional context fields for container registry Vulnerability assessment.

Method Summary

Modifier and Type Method and Description
AssessedResourceType assessedResourceType()

Get the assessedResourceType property: Sub-assessment resource type.

List<Cve> cve()

Get the cve property: List of CVEs.

Map<String,Cvss> cvss()

Get the cvss property: Dictionary from cvss version to cvss details object.

static ContainerRegistryVulnerabilityProperties fromJson(JsonReader jsonReader)

Reads an instance of ContainerRegistryVulnerabilityProperties from the JsonReader.

String imageDigest()

Get the imageDigest property: Digest of the vulnerable image.

Boolean patchable()

Get the patchable property: Indicates whether a patch is available or not.

OffsetDateTime publishedTime()

Get the publishedTime property: Published time.

String repositoryName()

Get the repositoryName property: Name of the repository which the vulnerable image belongs to.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Vulnerability Type.

void validate()

Validates the instance.

List<VendorReference> vendorReferences()

Get the vendorReferences property: The vendorReferences property.

Methods inherited from AdditionalData

Methods inherited from java.lang.Object

Method Details

assessedResourceType

public AssessedResourceType assessedResourceType()

Get the assessedResourceType property: Sub-assessment resource type.

Overrides:

ContainerRegistryVulnerabilityProperties.assessedResourceType()

Returns:

the assessedResourceType value.

cve

public List<Cve> cve()

Get the cve property: List of CVEs.

Returns:

the cve value.

cvss

public Map<String,Cvss> cvss()

Get the cvss property: Dictionary from cvss version to cvss details object.

Returns:

the cvss value.

fromJson

public static ContainerRegistryVulnerabilityProperties fromJson(JsonReader jsonReader)

Reads an instance of ContainerRegistryVulnerabilityProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContainerRegistryVulnerabilityProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ContainerRegistryVulnerabilityProperties.

imageDigest

public String imageDigest()

Get the imageDigest property: Digest of the vulnerable image.

Returns:

the imageDigest value.

patchable

public Boolean patchable()

Get the patchable property: Indicates whether a patch is available or not.

Returns:

the patchable value.

publishedTime

public OffsetDateTime publishedTime()

Get the publishedTime property: Published time.

Returns:

the publishedTime value.

repositoryName

public String repositoryName()

Get the repositoryName property: Name of the repository which the vulnerable image belongs to.

Returns:

the repositoryName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ContainerRegistryVulnerabilityProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered, Vulnerability.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

ContainerRegistryVulnerabilityProperties.validate()

vendorReferences

public List<VendorReference> vendorReferences()

Get the vendorReferences property: The vendorReferences property.

Returns:

the vendorReferences value.

Applies to