Skip to content

Latest commit

 

History

History
198 lines (105 loc) · 5.2 KB

Vulnerability.md

File metadata and controls

198 lines (105 loc) · 5.2 KB

Vulnerability

Properties

Name Type Description Notes
CveId string CVE identitfier (https://www.cvedetails.com/cve-help.php). [readonly]
Url string [readonly]
Severity VulnerabilitySeverity
PublishedOn time.Time [readonly]
ModifiedOn time.Time [readonly]
Vendor string [readonly]
Product string [readonly]
Version string [readonly]

Methods

NewVulnerability

func NewVulnerability(cveId string, url string, severity VulnerabilitySeverity, publishedOn time.Time, modifiedOn time.Time, vendor string, product string, version 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

GetCveId

func (o *Vulnerability) GetCveId() string

GetCveId returns the CveId field if non-nil, zero value otherwise.

GetCveIdOk

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

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

SetCveId

func (o *Vulnerability) SetCveId(v string)

SetCveId sets CveId field to given value.

GetUrl

func (o *Vulnerability) GetUrl() string

GetUrl returns the Url field if non-nil, zero value otherwise.

GetUrlOk

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

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

SetUrl

func (o *Vulnerability) SetUrl(v string)

SetUrl sets Url field to given value.

GetSeverity

func (o *Vulnerability) GetSeverity() VulnerabilitySeverity

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

GetSeverityOk

func (o *Vulnerability) GetSeverityOk() (*VulnerabilitySeverity, 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 VulnerabilitySeverity)

SetSeverity sets Severity field to given value.

GetPublishedOn

func (o *Vulnerability) GetPublishedOn() time.Time

GetPublishedOn returns the PublishedOn field if non-nil, zero value otherwise.

GetPublishedOnOk

func (o *Vulnerability) GetPublishedOnOk() (*time.Time, bool)

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

SetPublishedOn

func (o *Vulnerability) SetPublishedOn(v time.Time)

SetPublishedOn sets PublishedOn field to given value.

GetModifiedOn

func (o *Vulnerability) GetModifiedOn() time.Time

GetModifiedOn returns the ModifiedOn field if non-nil, zero value otherwise.

GetModifiedOnOk

func (o *Vulnerability) GetModifiedOnOk() (*time.Time, bool)

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

SetModifiedOn

func (o *Vulnerability) SetModifiedOn(v time.Time)

SetModifiedOn sets ModifiedOn field to given value.

GetVendor

func (o *Vulnerability) GetVendor() string

GetVendor returns the Vendor field if non-nil, zero value otherwise.

GetVendorOk

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

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

SetVendor

func (o *Vulnerability) SetVendor(v string)

SetVendor sets Vendor field to given value.

GetProduct

func (o *Vulnerability) GetProduct() string

GetProduct returns the Product field if non-nil, zero value otherwise.

GetProductOk

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

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

SetProduct

func (o *Vulnerability) SetProduct(v string)

SetProduct sets Product field to given value.

GetVersion

func (o *Vulnerability) GetVersion() string

GetVersion returns the Version field if non-nil, zero value otherwise.

GetVersionOk

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

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

SetVersion

func (o *Vulnerability) SetVersion(v string)

SetVersion sets Version field to given value.

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