Skip to content

Latest commit

 

History

History
250 lines (133 loc) · 7.2 KB

File metadata and controls

250 lines (133 loc) · 7.2 KB

Vulnerability

Properties

Name Type Description Notes
AffectedVersion VulnerabilityScanVersion
CvssScores Pointer to map[string]map[string]map[string]interface{} CVSS Scores (when available from the raw scan results) [optional] [readonly]
Description string
FixedVersion VulnerabilityScanVersion
PackageName string
References []string
Severity Pointer to string [optional] [default to "Unknown"]
SeveritySource string
Title string
VulnerabilityId string

Methods

NewVulnerability

func NewVulnerability(affectedVersion VulnerabilityScanVersion, description string, fixedVersion VulnerabilityScanVersion, packageName string, references []string, severitySource string, title string, vulnerabilityId string, ) *Vulnerability

NewVulnerability instantiates a new Vulnerability 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

NewVulnerabilityWithDefaults

func NewVulnerabilityWithDefaults() *Vulnerability

NewVulnerabilityWithDefaults instantiates a new Vulnerability 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

GetAffectedVersion

func (o *Vulnerability) GetAffectedVersion() VulnerabilityScanVersion

GetAffectedVersion returns the AffectedVersion field if non-nil, zero value otherwise.

GetAffectedVersionOk

func (o *Vulnerability) GetAffectedVersionOk() (*VulnerabilityScanVersion, bool)

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

SetAffectedVersion

func (o *Vulnerability) SetAffectedVersion(v VulnerabilityScanVersion)

SetAffectedVersion sets AffectedVersion field to given value.

GetCvssScores

func (o *Vulnerability) GetCvssScores() map[string]map[string]map[string]interface{}

GetCvssScores returns the CvssScores field if non-nil, zero value otherwise.

GetCvssScoresOk

func (o *Vulnerability) GetCvssScoresOk() (*map[string]map[string]map[string]interface{}, bool)

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

SetCvssScores

func (o *Vulnerability) SetCvssScores(v map[string]map[string]map[string]interface{})

SetCvssScores sets CvssScores field to given value.

HasCvssScores

func (o *Vulnerability) HasCvssScores() bool

HasCvssScores returns a boolean if a field has been set.

GetDescription

func (o *Vulnerability) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

func (o *Vulnerability) GetDescriptionOk() (*string, bool)

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

SetDescription

func (o *Vulnerability) SetDescription(v string)

SetDescription sets Description field to given value.

GetFixedVersion

func (o *Vulnerability) GetFixedVersion() VulnerabilityScanVersion

GetFixedVersion returns the FixedVersion field if non-nil, zero value otherwise.

GetFixedVersionOk

func (o *Vulnerability) GetFixedVersionOk() (*VulnerabilityScanVersion, bool)

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

SetFixedVersion

func (o *Vulnerability) SetFixedVersion(v VulnerabilityScanVersion)

SetFixedVersion sets FixedVersion field to given value.

GetPackageName

func (o *Vulnerability) GetPackageName() string

GetPackageName returns the PackageName field if non-nil, zero value otherwise.

GetPackageNameOk

func (o *Vulnerability) GetPackageNameOk() (*string, bool)

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

SetPackageName

func (o *Vulnerability) SetPackageName(v string)

SetPackageName sets PackageName field to given value.

GetReferences

func (o *Vulnerability) GetReferences() []string

GetReferences returns the References field if non-nil, zero value otherwise.

GetReferencesOk

func (o *Vulnerability) GetReferencesOk() (*[]string, bool)

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

SetReferences

func (o *Vulnerability) SetReferences(v []string)

SetReferences sets References field to given value.

GetSeverity

func (o *Vulnerability) GetSeverity() string

GetSeverity returns the Severity field if non-nil, zero value otherwise.

GetSeverityOk

func (o *Vulnerability) GetSeverityOk() (*string, bool)

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

SetSeverity

func (o *Vulnerability) SetSeverity(v string)

SetSeverity sets Severity field to given value.

HasSeverity

func (o *Vulnerability) HasSeverity() bool

HasSeverity returns a boolean if a field has been set.

GetSeveritySource

func (o *Vulnerability) GetSeveritySource() string

GetSeveritySource returns the SeveritySource field if non-nil, zero value otherwise.

GetSeveritySourceOk

func (o *Vulnerability) GetSeveritySourceOk() (*string, bool)

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

SetSeveritySource

func (o *Vulnerability) SetSeveritySource(v string)

SetSeveritySource sets SeveritySource field to given value.

GetTitle

func (o *Vulnerability) GetTitle() string

GetTitle returns the Title field if non-nil, zero value otherwise.

GetTitleOk

func (o *Vulnerability) GetTitleOk() (*string, bool)

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

SetTitle

func (o *Vulnerability) SetTitle(v string)

SetTitle sets Title field to given value.

GetVulnerabilityId

func (o *Vulnerability) GetVulnerabilityId() string

GetVulnerabilityId returns the VulnerabilityId field if non-nil, zero value otherwise.

GetVulnerabilityIdOk

func (o *Vulnerability) GetVulnerabilityIdOk() (*string, bool)

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

SetVulnerabilityId

func (o *Vulnerability) SetVulnerabilityId(v string)

SetVulnerabilityId sets VulnerabilityId field to given value.

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