mirror of
https://github.com/rancher/types.git
synced 2025-07-06 18:26:13 +00:00
update generated code
This commit is contained in:
parent
9278859f67
commit
b276a96100
@ -1,10 +1,10 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
AlertStatusType = "alertStatus"
|
||||
AlertStatusFieldState = "state"
|
||||
AlertStatusType = "alertStatus"
|
||||
AlertStatusFieldAlertState = "alertState"
|
||||
)
|
||||
|
||||
type AlertStatus struct {
|
||||
State string `json:"state,omitempty"`
|
||||
AlertState string `json:"alertState,omitempty"`
|
||||
}
|
||||
|
@ -6,12 +6,12 @@ import (
|
||||
|
||||
const (
|
||||
ClusterAlertType = "clusterAlert"
|
||||
ClusterAlertFieldAlertState = "alertState"
|
||||
ClusterAlertFieldAnnotations = "annotations"
|
||||
ClusterAlertFieldClusterId = "clusterId"
|
||||
ClusterAlertFieldCreated = "created"
|
||||
ClusterAlertFieldCreatorID = "creatorId"
|
||||
ClusterAlertFieldDescription = "description"
|
||||
ClusterAlertFieldDisplayName = "displayName"
|
||||
ClusterAlertFieldInitialWaitSeconds = "initialWaitSeconds"
|
||||
ClusterAlertFieldLabels = "labels"
|
||||
ClusterAlertFieldName = "name"
|
||||
@ -22,7 +22,6 @@ const (
|
||||
ClusterAlertFieldRepeatIntervalSeconds = "repeatIntervalSeconds"
|
||||
ClusterAlertFieldSeverity = "severity"
|
||||
ClusterAlertFieldState = "state"
|
||||
ClusterAlertFieldStatus = "status"
|
||||
ClusterAlertFieldTargetEvent = "targetEvent"
|
||||
ClusterAlertFieldTargetNode = "targetNode"
|
||||
ClusterAlertFieldTargetSystemService = "targetSystemService"
|
||||
@ -33,12 +32,12 @@ const (
|
||||
|
||||
type ClusterAlert struct {
|
||||
types.Resource
|
||||
AlertState string `json:"alertState,omitempty"`
|
||||
Annotations map[string]string `json:"annotations,omitempty"`
|
||||
ClusterId string `json:"clusterId,omitempty"`
|
||||
Created string `json:"created,omitempty"`
|
||||
CreatorID string `json:"creatorId,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
InitialWaitSeconds *int64 `json:"initialWaitSeconds,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
@ -49,7 +48,6 @@ type ClusterAlert struct {
|
||||
RepeatIntervalSeconds *int64 `json:"repeatIntervalSeconds,omitempty"`
|
||||
Severity string `json:"severity,omitempty"`
|
||||
State string `json:"state,omitempty"`
|
||||
Status *AlertStatus `json:"status,omitempty"`
|
||||
TargetEvent *TargetEvent `json:"targetEvent,omitempty"`
|
||||
TargetNode *TargetNode `json:"targetNode,omitempty"`
|
||||
TargetSystemService *TargetSystemService `json:"targetSystemService,omitempty"`
|
||||
|
@ -11,7 +11,6 @@ const (
|
||||
NotifierFieldCreated = "created"
|
||||
NotifierFieldCreatorID = "creatorId"
|
||||
NotifierFieldDescription = "description"
|
||||
NotifierFieldDisplayName = "displayName"
|
||||
NotifierFieldLabels = "labels"
|
||||
NotifierFieldName = "name"
|
||||
NotifierFieldNamespaceId = "namespaceId"
|
||||
@ -35,7 +34,6 @@ type Notifier struct {
|
||||
Created string `json:"created,omitempty"`
|
||||
CreatorID string `json:"creatorId,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
NamespaceId string `json:"namespaceId,omitempty"`
|
||||
|
@ -6,11 +6,11 @@ import (
|
||||
|
||||
const (
|
||||
ProjectAlertType = "projectAlert"
|
||||
ProjectAlertFieldAlertState = "alertState"
|
||||
ProjectAlertFieldAnnotations = "annotations"
|
||||
ProjectAlertFieldCreated = "created"
|
||||
ProjectAlertFieldCreatorID = "creatorId"
|
||||
ProjectAlertFieldDescription = "description"
|
||||
ProjectAlertFieldDisplayName = "displayName"
|
||||
ProjectAlertFieldInitialWaitSeconds = "initialWaitSeconds"
|
||||
ProjectAlertFieldLabels = "labels"
|
||||
ProjectAlertFieldName = "name"
|
||||
@ -22,7 +22,6 @@ const (
|
||||
ProjectAlertFieldRepeatIntervalSeconds = "repeatIntervalSeconds"
|
||||
ProjectAlertFieldSeverity = "severity"
|
||||
ProjectAlertFieldState = "state"
|
||||
ProjectAlertFieldStatus = "status"
|
||||
ProjectAlertFieldTargetPod = "targetPod"
|
||||
ProjectAlertFieldTargetWorkload = "targetWorkload"
|
||||
ProjectAlertFieldTransitioning = "transitioning"
|
||||
@ -32,11 +31,11 @@ const (
|
||||
|
||||
type ProjectAlert struct {
|
||||
types.Resource
|
||||
AlertState string `json:"alertState,omitempty"`
|
||||
Annotations map[string]string `json:"annotations,omitempty"`
|
||||
Created string `json:"created,omitempty"`
|
||||
CreatorID string `json:"creatorId,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
InitialWaitSeconds *int64 `json:"initialWaitSeconds,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
@ -48,7 +47,6 @@ type ProjectAlert struct {
|
||||
RepeatIntervalSeconds *int64 `json:"repeatIntervalSeconds,omitempty"`
|
||||
Severity string `json:"severity,omitempty"`
|
||||
State string `json:"state,omitempty"`
|
||||
Status *AlertStatus `json:"status,omitempty"`
|
||||
TargetPod *TargetPod `json:"targetPod,omitempty"`
|
||||
TargetWorkload *TargetWorkload `json:"targetWorkload,omitempty"`
|
||||
Transitioning string `json:"transitioning,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user