Skip to content

Commit b285c7f

Browse files
committed
chore: auto update client api apecloud/apecloud@846a609
1 parent 1106236 commit b285c7f

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

.generator/schemas/adminapi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30006,6 +30006,11 @@ components:
3000630006
type: array
3000730007
items:
3000830008
type: string
30009+
fixedVersions:
30010+
description: the fixed versions of the product which fixed the vulnerability
30011+
type: array
30012+
items:
30013+
type: string
3000930014
affectedClusters:
3001030015
description: the clusters which are affected by the vulnerability
3001130016
type: array

apecloud

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 54aa724f0173285361be6065cb6ec93846229c82
1+
Subproject commit 846a60984a8ae885150bba3dba57f504edcab7b8

api/kbcloud/admin/model_vuln_list_item.go

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.
160190
func (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

Comments
 (0)