mirror of
https://github.com/rancher/types.git
synced 2025-08-10 17:01:34 +00:00
go generate
This commit is contained in:
parent
38e1530406
commit
3ba50684a6
@ -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
|
||||
|
@ -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"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user