forked from cilium/cilium
/
label_configuration_modifier.go
41 lines (33 loc) · 1.2 KB
/
label_configuration_modifier.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
)
// LabelConfigurationModifier Structure describing label mutations to be performed on a
// LabelConfiguration object.
//
// swagger:model LabelConfigurationModifier
type LabelConfigurationModifier struct {
// List of labels to add and enable. If the label is an orchestration
// system label which has been disabled before, it will be removed from
// the disabled list and readded to the orchestration list. Otherwise
// it will be added to the custom label list.
//
Add Labels `json:"add"`
// List of labels to delete. If the label is an orchestration system
// label, then it will be deleted from the orchestration list and
// added to the disabled list. Otherwise it will be removed from the
// custom list.
//
Delete Labels `json:"delete"`
}
// Validate validates this label configuration modifier
func (m *LabelConfigurationModifier) Validate(formats strfmt.Registry) error {
var res []error
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}