@@ -10,17 +10,17 @@ import (
10
10
"github.com/go-swagger/go-swagger/httpkit/validate"
11
11
)
12
12
13
- /*ClusterDetail cluster detail
13
+ /*Cluster cluster
14
14
15
- swagger:model clusterDetail
15
+ swagger:model cluster
16
16
*/
17
- type ClusterDetail struct {
17
+ type Cluster struct {
18
18
19
19
/* components
20
20
21
21
Required: true
22
22
*/
23
- Components []* ComponentDetail `json:"components"`
23
+ Components []* ComponentVersion `json:"components"`
24
24
25
25
/* first seen
26
26
*/
@@ -38,8 +38,8 @@ type ClusterDetail struct {
38
38
LastSeen * strfmt.DateTime `json:"lastSeen,omitempty"`
39
39
}
40
40
41
- // Validate validates this cluster detail
42
- func (m * ClusterDetail ) Validate (formats strfmt.Registry ) error {
41
+ // Validate validates this cluster
42
+ func (m * Cluster ) Validate (formats strfmt.Registry ) error {
43
43
var res []error
44
44
45
45
if err := m .validateComponents (formats ); err != nil {
@@ -58,7 +58,7 @@ func (m *ClusterDetail) Validate(formats strfmt.Registry) error {
58
58
return nil
59
59
}
60
60
61
- func (m * ClusterDetail ) validateComponents (formats strfmt.Registry ) error {
61
+ func (m * Cluster ) validateComponents (formats strfmt.Registry ) error {
62
62
63
63
if err := validate .Required ("components" , "body" , m .Components ); err != nil {
64
64
return err
@@ -78,7 +78,7 @@ func (m *ClusterDetail) validateComponents(formats strfmt.Registry) error {
78
78
return nil
79
79
}
80
80
81
- func (m * ClusterDetail ) validateID (formats strfmt.Registry ) error {
81
+ func (m * Cluster ) validateID (formats strfmt.Registry ) error {
82
82
83
83
if err := validate .RequiredString ("id" , "body" , string (m .ID )); err != nil {
84
84
return err
0 commit comments