diff --git a/apis/management.cattle.io/v3/zz_generated_deepcopy.go b/apis/management.cattle.io/v3/zz_generated_deepcopy.go index 2036de69..4cf37552 100644 --- a/apis/management.cattle.io/v3/zz_generated_deepcopy.go +++ b/apis/management.cattle.io/v3/zz_generated_deepcopy.go @@ -4552,6 +4552,11 @@ func (in *Notification) DeepCopyInto(out *Notification) { *out = new(WebhookConfig) **out = **in } + if in.WechatConfig != nil { + in, out := &in.WechatConfig, &out.WechatConfig + *out = new(WechatConfig) + **out = **in + } return } @@ -4650,6 +4655,11 @@ func (in *NotifierSpec) DeepCopyInto(out *NotifierSpec) { *out = new(WebhookConfig) **out = **in } + if in.WechatConfig != nil { + in, out := &in.WechatConfig, &out.WechatConfig + *out = new(WechatConfig) + **out = **in + } return } @@ -7692,6 +7702,22 @@ func (in *WebhookConfig) DeepCopy() *WebhookConfig { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *WechatConfig) DeepCopyInto(out *WechatConfig) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WechatConfig. +func (in *WechatConfig) DeepCopy() *WechatConfig { + if in == nil { + return nil + } + out := new(WechatConfig) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WindowsSystemImages) DeepCopyInto(out *WindowsSystemImages) { *out = *in diff --git a/client/management/v3/zz_generated_notification.go b/client/management/v3/zz_generated_notification.go index fbe1ac4d..7e71b482 100644 --- a/client/management/v3/zz_generated_notification.go +++ b/client/management/v3/zz_generated_notification.go @@ -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"` } diff --git a/client/management/v3/zz_generated_notifier.go b/client/management/v3/zz_generated_notifier.go index eeedec8d..d5d4dbf5 100644 --- a/client/management/v3/zz_generated_notifier.go +++ b/client/management/v3/zz_generated_notifier.go @@ -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 { diff --git a/client/management/v3/zz_generated_notifier_spec.go b/client/management/v3/zz_generated_notifier_spec.go index 7a5d81ff..3c8effc5 100644 --- a/client/management/v3/zz_generated_notifier_spec.go +++ b/client/management/v3/zz_generated_notifier_spec.go @@ -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"` } diff --git a/client/management/v3/zz_generated_wechat_config.go b/client/management/v3/zz_generated_wechat_config.go new file mode 100644 index 00000000..39b97279 --- /dev/null +++ b/client/management/v3/zz_generated_wechat_config.go @@ -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"` +}