1
0
mirror of https://github.com/rancher/types.git synced 2025-08-12 17:55:20 +00:00

Update generated code

This commit is contained in:
zionwu 2018-03-23 10:55:41 +08:00 committed by Darren Shepherd
parent e5d9a4fcfa
commit c4307f7ac8
2 changed files with 2 additions and 4 deletions

View File

@ -2,11 +2,11 @@ package client
const (
TargetEventType = "targetEvent"
TargetEventFieldEventType = "eventType"
TargetEventFieldResourceKind = "resourceKind"
TargetEventFieldType = "type"
)
type TargetEvent struct {
EventType string `json:"eventType,omitempty" yaml:"eventType,omitempty"`
ResourceKind string `json:"resourceKind,omitempty" yaml:"resourceKind,omitempty"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
}

View File

@ -4,13 +4,11 @@ const (
TargetWorkloadType = "targetWorkload"
TargetWorkloadFieldAvailablePercentage = "availablePercentage"
TargetWorkloadFieldSelector = "selector"
TargetWorkloadFieldType = "type"
TargetWorkloadFieldWorkloadID = "workloadId"
)
type TargetWorkload struct {
AvailablePercentage *int64 `json:"availablePercentage,omitempty" yaml:"availablePercentage,omitempty"`
Selector map[string]string `json:"selector,omitempty" yaml:"selector,omitempty"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
WorkloadID string `json:"workloadId,omitempty" yaml:"workloadId,omitempty"`
}