Skip to content

Latest commit

 

History

History
228 lines (123 loc) · 7 KB

VulnerabilityScanResults.md

File metadata and controls

228 lines (123 loc) · 7 KB

VulnerabilityScanResults

Properties

Name Type Description Notes
CreatedAt Pointer to time.Time The time this scan result was stored. [optional] [readonly]
HasVulnerabilities Pointer to bool Do the results contain any known vulnerabilities? [optional] [readonly]
Identifier string
MaxSeverity Pointer to string [optional] [default to "Unknown"]
NumVulnerabilities Pointer to int64 [optional]
Package PackageVulnerability
ScanId NullableInt64 Deprecated (23-05-15): Please use 'identifier' instead. Previously: A monotonically increasing number that identified a scan within a repository.
Scans []VulnerabilityScan

Methods

NewVulnerabilityScanResults

func NewVulnerabilityScanResults(identifier string, package_ PackageVulnerability, scanId NullableInt64, scans []VulnerabilityScan, ) *VulnerabilityScanResults

NewVulnerabilityScanResults instantiates a new VulnerabilityScanResults object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewVulnerabilityScanResultsWithDefaults

func NewVulnerabilityScanResultsWithDefaults() *VulnerabilityScanResults

NewVulnerabilityScanResultsWithDefaults instantiates a new VulnerabilityScanResults object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetCreatedAt

func (o *VulnerabilityScanResults) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

func (o *VulnerabilityScanResults) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCreatedAt

func (o *VulnerabilityScanResults) SetCreatedAt(v time.Time)

SetCreatedAt sets CreatedAt field to given value.

HasCreatedAt

func (o *VulnerabilityScanResults) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

GetHasVulnerabilities

func (o *VulnerabilityScanResults) GetHasVulnerabilities() bool

GetHasVulnerabilities returns the HasVulnerabilities field if non-nil, zero value otherwise.

GetHasVulnerabilitiesOk

func (o *VulnerabilityScanResults) GetHasVulnerabilitiesOk() (*bool, bool)

GetHasVulnerabilitiesOk returns a tuple with the HasVulnerabilities field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetHasVulnerabilities

func (o *VulnerabilityScanResults) SetHasVulnerabilities(v bool)

SetHasVulnerabilities sets HasVulnerabilities field to given value.

HasHasVulnerabilities

func (o *VulnerabilityScanResults) HasHasVulnerabilities() bool

HasHasVulnerabilities returns a boolean if a field has been set.

GetIdentifier

func (o *VulnerabilityScanResults) GetIdentifier() string

GetIdentifier returns the Identifier field if non-nil, zero value otherwise.

GetIdentifierOk

func (o *VulnerabilityScanResults) GetIdentifierOk() (*string, bool)

GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetIdentifier

func (o *VulnerabilityScanResults) SetIdentifier(v string)

SetIdentifier sets Identifier field to given value.

GetMaxSeverity

func (o *VulnerabilityScanResults) GetMaxSeverity() string

GetMaxSeverity returns the MaxSeverity field if non-nil, zero value otherwise.

GetMaxSeverityOk

func (o *VulnerabilityScanResults) GetMaxSeverityOk() (*string, bool)

GetMaxSeverityOk returns a tuple with the MaxSeverity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMaxSeverity

func (o *VulnerabilityScanResults) SetMaxSeverity(v string)

SetMaxSeverity sets MaxSeverity field to given value.

HasMaxSeverity

func (o *VulnerabilityScanResults) HasMaxSeverity() bool

HasMaxSeverity returns a boolean if a field has been set.

GetNumVulnerabilities

func (o *VulnerabilityScanResults) GetNumVulnerabilities() int64

GetNumVulnerabilities returns the NumVulnerabilities field if non-nil, zero value otherwise.

GetNumVulnerabilitiesOk

func (o *VulnerabilityScanResults) GetNumVulnerabilitiesOk() (*int64, bool)

GetNumVulnerabilitiesOk returns a tuple with the NumVulnerabilities field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetNumVulnerabilities

func (o *VulnerabilityScanResults) SetNumVulnerabilities(v int64)

SetNumVulnerabilities sets NumVulnerabilities field to given value.

HasNumVulnerabilities

func (o *VulnerabilityScanResults) HasNumVulnerabilities() bool

HasNumVulnerabilities returns a boolean if a field has been set.

GetPackage

func (o *VulnerabilityScanResults) GetPackage() PackageVulnerability

GetPackage returns the Package field if non-nil, zero value otherwise.

GetPackageOk

func (o *VulnerabilityScanResults) GetPackageOk() (*PackageVulnerability, bool)

GetPackageOk returns a tuple with the Package field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPackage

func (o *VulnerabilityScanResults) SetPackage(v PackageVulnerability)

SetPackage sets Package field to given value.

GetScanId

func (o *VulnerabilityScanResults) GetScanId() int64

GetScanId returns the ScanId field if non-nil, zero value otherwise.

GetScanIdOk

func (o *VulnerabilityScanResults) GetScanIdOk() (*int64, bool)

GetScanIdOk returns a tuple with the ScanId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetScanId

func (o *VulnerabilityScanResults) SetScanId(v int64)

SetScanId sets ScanId field to given value.

SetScanIdNil

func (o *VulnerabilityScanResults) SetScanIdNil(b bool)

SetScanIdNil sets the value for ScanId to be an explicit nil

UnsetScanId

func (o *VulnerabilityScanResults) UnsetScanId()

UnsetScanId ensures that no value is present for ScanId, not even an explicit nil

GetScans

func (o *VulnerabilityScanResults) GetScans() []VulnerabilityScan

GetScans returns the Scans field if non-nil, zero value otherwise.

GetScansOk

func (o *VulnerabilityScanResults) GetScansOk() (*[]VulnerabilityScan, bool)

GetScansOk returns a tuple with the Scans field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetScans

func (o *VulnerabilityScanResults) SetScans(v []VulnerabilityScan)

SetScans sets Scans field to given value.

[Back to Model list] [Back to API list] [Back to README]