@@ -21,6 +21,8 @@ type VulnListItem struct {
2121 ProductName string `json:"productName"`
2222 // the versions of the product which are affected by the vulnerability
2323 Versions []string `json:"versions"`
24+ // the fixed versions of the product which fixed the vulnerability
25+ FixedVersions []string `json:"fixedVersions,omitempty"`
2426 // the clusters which are affected by the vulnerability
2527 AffectedClusters []AffectedClusterItem `json:"affectedClusters,omitempty"`
2628 // the detail of the vulnerability
@@ -156,6 +158,34 @@ func (o *VulnListItem) SetVersions(v []string) {
156158 o .Versions = v
157159}
158160
161+ // GetFixedVersions returns the FixedVersions field value if set, zero value otherwise.
162+ func (o * VulnListItem ) GetFixedVersions () []string {
163+ if o == nil || o .FixedVersions == nil {
164+ var ret []string
165+ return ret
166+ }
167+ return o .FixedVersions
168+ }
169+
170+ // GetFixedVersionsOk returns a tuple with the FixedVersions field value if set, nil otherwise
171+ // and a boolean to check if the value has been set.
172+ func (o * VulnListItem ) GetFixedVersionsOk () (* []string , bool ) {
173+ if o == nil || o .FixedVersions == nil {
174+ return nil , false
175+ }
176+ return & o .FixedVersions , true
177+ }
178+
179+ // HasFixedVersions returns a boolean if a field has been set.
180+ func (o * VulnListItem ) HasFixedVersions () bool {
181+ return o != nil && o .FixedVersions != nil
182+ }
183+
184+ // SetFixedVersions gets a reference to the given []string and assigns it to the FixedVersions field.
185+ func (o * VulnListItem ) SetFixedVersions (v []string ) {
186+ o .FixedVersions = v
187+ }
188+
159189// GetAffectedClusters returns the AffectedClusters field value if set, zero value otherwise.
160190func (o * VulnListItem ) GetAffectedClusters () []AffectedClusterItem {
161191 if o == nil || o .AffectedClusters == nil {
@@ -347,6 +377,9 @@ func (o VulnListItem) MarshalJSON() ([]byte, error) {
347377 toSerialize ["engineName" ] = o .EngineName
348378 toSerialize ["productName" ] = o .ProductName
349379 toSerialize ["versions" ] = o .Versions
380+ if o .FixedVersions != nil {
381+ toSerialize ["fixedVersions" ] = o .FixedVersions
382+ }
350383 if o .AffectedClusters != nil {
351384 toSerialize ["affectedClusters" ] = o .AffectedClusters
352385 }
@@ -384,6 +417,7 @@ func (o *VulnListItem) UnmarshalJSON(bytes []byte) (err error) {
384417 EngineName * string `json:"engineName"`
385418 ProductName * string `json:"productName"`
386419 Versions * []string `json:"versions"`
420+ FixedVersions []string `json:"fixedVersions,omitempty"`
387421 AffectedClusters []AffectedClusterItem `json:"affectedClusters,omitempty"`
388422 Detail * string `json:"detail,omitempty"`
389423 Severity * string `json:"severity"`
@@ -418,14 +452,15 @@ func (o *VulnListItem) UnmarshalJSON(bytes []byte) (err error) {
418452 }
419453 additionalProperties := make (map [string ]interface {})
420454 if err = common .Unmarshal (bytes , & additionalProperties ); err == nil {
421- common .DeleteKeys (additionalProperties , & []string {"cveId" , "engineName" , "productName" , "versions" , "affectedClusters" , "detail" , "severity" , "cvssVector" , "publishedAt" , "modifiedAt" , "refs" })
455+ common .DeleteKeys (additionalProperties , & []string {"cveId" , "engineName" , "productName" , "versions" , "fixedVersions" , " affectedClusters" , "detail" , "severity" , "cvssVector" , "publishedAt" , "modifiedAt" , "refs" })
422456 } else {
423457 return err
424458 }
425459 o .CveId = * all .CveId
426460 o .EngineName = * all .EngineName
427461 o .ProductName = * all .ProductName
428462 o .Versions = * all .Versions
463+ o .FixedVersions = all .FixedVersions
429464 o .AffectedClusters = all .AffectedClusters
430465 o .Detail = all .Detail
431466 o .Severity = * all .Severity
0 commit comments