mirror of
https://github.com/rancher/types.git
synced 2025-09-01 21:32:10 +00:00
go generate
This commit is contained in:
@@ -7,6 +7,7 @@ const (
|
||||
NotificationFieldSMTPConfig = "smtpConfig"
|
||||
NotificationFieldSlackConfig = "slackConfig"
|
||||
NotificationFieldWebhookConfig = "webhookConfig"
|
||||
NotificationFieldWechatConfig = "wechatConfig"
|
||||
)
|
||||
|
||||
type Notification struct {
|
||||
@@ -15,4 +16,5 @@ type Notification struct {
|
||||
SMTPConfig *SMTPConfig `json:"smtpConfig,omitempty" yaml:"smtpConfig,omitempty"`
|
||||
SlackConfig *SlackConfig `json:"slackConfig,omitempty" yaml:"slackConfig,omitempty"`
|
||||
WebhookConfig *WebhookConfig `json:"webhookConfig,omitempty" yaml:"webhookConfig,omitempty"`
|
||||
WechatConfig *WechatConfig `json:"wechatConfig,omitempty" yaml:"wechatConfig,omitempty"`
|
||||
}
|
||||
|
@@ -25,6 +25,7 @@ const (
|
||||
NotifierFieldTransitioningMessage = "transitioningMessage"
|
||||
NotifierFieldUUID = "uuid"
|
||||
NotifierFieldWebhookConfig = "webhookConfig"
|
||||
NotifierFieldWechatConfig = "wechatConfig"
|
||||
)
|
||||
|
||||
type Notifier struct {
|
||||
@@ -48,6 +49,7 @@ type Notifier struct {
|
||||
TransitioningMessage string `json:"transitioningMessage,omitempty" yaml:"transitioningMessage,omitempty"`
|
||||
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
|
||||
WebhookConfig *WebhookConfig `json:"webhookConfig,omitempty" yaml:"webhookConfig,omitempty"`
|
||||
WechatConfig *WechatConfig `json:"wechatConfig,omitempty" yaml:"wechatConfig,omitempty"`
|
||||
}
|
||||
|
||||
type NotifierCollection struct {
|
||||
|
@@ -9,6 +9,7 @@ const (
|
||||
NotifierSpecFieldSMTPConfig = "smtpConfig"
|
||||
NotifierSpecFieldSlackConfig = "slackConfig"
|
||||
NotifierSpecFieldWebhookConfig = "webhookConfig"
|
||||
NotifierSpecFieldWechatConfig = "wechatConfig"
|
||||
)
|
||||
|
||||
type NotifierSpec struct {
|
||||
@@ -19,4 +20,5 @@ type NotifierSpec struct {
|
||||
SMTPConfig *SMTPConfig `json:"smtpConfig,omitempty" yaml:"smtpConfig,omitempty"`
|
||||
SlackConfig *SlackConfig `json:"slackConfig,omitempty" yaml:"slackConfig,omitempty"`
|
||||
WebhookConfig *WebhookConfig `json:"webhookConfig,omitempty" yaml:"webhookConfig,omitempty"`
|
||||
WechatConfig *WechatConfig `json:"wechatConfig,omitempty" yaml:"wechatConfig,omitempty"`
|
||||
}
|
||||
|
18
client/management/v3/zz_generated_wechat_config.go
Normal file
18
client/management/v3/zz_generated_wechat_config.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
WechatConfigType = "wechatConfig"
|
||||
WechatConfigFieldAgent = "agent"
|
||||
WechatConfigFieldCorp = "corp"
|
||||
WechatConfigFieldDefaultRecipient = "defaultRecipient"
|
||||
WechatConfigFieldRecipientType = "recipientType"
|
||||
WechatConfigFieldSecret = "secret"
|
||||
)
|
||||
|
||||
type WechatConfig struct {
|
||||
Agent string `json:"agent,omitempty" yaml:"agent,omitempty"`
|
||||
Corp string `json:"corp,omitempty" yaml:"corp,omitempty"`
|
||||
DefaultRecipient string `json:"defaultRecipient,omitempty" yaml:"defaultRecipient,omitempty"`
|
||||
RecipientType string `json:"recipientType,omitempty" yaml:"recipientType,omitempty"`
|
||||
Secret string `json:"secret,omitempty" yaml:"secret,omitempty"`
|
||||
}
|
Reference in New Issue
Block a user