Vulnerability
Last updated
Last updated
Name | Type | Description | Notes |
---|---|---|---|
func NewVulnerability(description string, dataSource VulnerabilityDataSource, fixable bool, affects []Purl, severity string, score float32, ) *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
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
func (o *Vulnerability) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
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.
func (o *Vulnerability) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *Vulnerability) GetRecommendations() string
GetRecommendations returns the Recommendations field if non-nil, zero value otherwise.
func (o *Vulnerability) GetRecommendationsOk() (*string, bool)
GetRecommendationsOk returns a tuple with the Recommendations field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Vulnerability) SetRecommendations(v string)
SetRecommendations sets Recommendations field to given value.
func (o *Vulnerability) HasRecommendations() bool
HasRecommendations returns a boolean if a field has been set.
func (o *Vulnerability) GetDataSource() VulnerabilityDataSource
GetDataSource returns the DataSource field if non-nil, zero value otherwise.
func (o *Vulnerability) GetDataSourceOk() (*VulnerabilityDataSource, bool)
GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Vulnerability) SetDataSource(v VulnerabilityDataSource)
SetDataSource sets DataSource field to given value.
func (o *Vulnerability) GetFixable() bool
GetFixable returns the Fixable field if non-nil, zero value otherwise.
func (o *Vulnerability) GetFixableOk() (*bool, bool)
GetFixableOk returns a tuple with the Fixable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Vulnerability) SetFixable(v bool)
SetFixable sets Fixable field to given value.
func (o *Vulnerability) GetAffects() []Purl
GetAffects returns the Affects field if non-nil, zero value otherwise.
func (o *Vulnerability) GetAffectsOk() (*[]Purl, bool)
GetAffectsOk returns a tuple with the Affects field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Vulnerability) SetAffects(v []Purl)
SetAffects sets Affects field to given value.
func (o *Vulnerability) GetReferences() []string
GetReferences returns the References field if non-nil, zero value otherwise.
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.
func (o *Vulnerability) SetReferences(v []string)
SetReferences sets References field to given value.
func (o *Vulnerability) HasReferences() bool
HasReferences returns a boolean if a field has been set.
func (o *Vulnerability) GetSeverity() string
GetSeverity returns the Severity field if non-nil, zero value otherwise.
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.
func (o *Vulnerability) SetSeverity(v string)
SetSeverity sets Severity field to given value.
func (o *Vulnerability) GetScore() float32
GetScore returns the Score field if non-nil, zero value otherwise.
func (o *Vulnerability) GetScoreOk() (*float32, bool)
GetScoreOk returns a tuple with the Score field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Vulnerability) SetScore(v float32)
SetScore sets Score field to given value.
Description
string
A description of the vulnerability as provided by the source.
Recommendations
Pointer to string
Recommendations for the vulnerability as provided by the source.
[optional]
DataSource
Fixable
bool
Indicates whether the vulnerability can be fixed by updating the affected package.
Affects
References
Pointer to []string
Published advisories of the vulnerability if provided.
[optional]
Severity
string
The CVSS vulnerability severity rating
Score
float32
The CVSS score of the vulnerability