diff --git a/apis/management.cattle.io/v3/zz_generated_deepcopy.go b/apis/management.cattle.io/v3/zz_generated_deepcopy.go index 9dc993e1..395d7355 100644 --- a/apis/management.cattle.io/v3/zz_generated_deepcopy.go +++ b/apis/management.cattle.io/v3/zz_generated_deepcopy.go @@ -3029,6 +3029,27 @@ func (in *DeploymentStrategy) DeepCopy() *DeploymentStrategy { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DingtalkConfig) DeepCopyInto(out *DingtalkConfig) { + *out = *in + if in.HTTPClientConfig != nil { + in, out := &in.HTTPClientConfig, &out.HTTPClientConfig + *out = new(HTTPClientConfig) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DingtalkConfig. +func (in *DingtalkConfig) DeepCopy() *DingtalkConfig { + if in == nil { + return nil + } + out := new(DingtalkConfig) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DiskVsphereOpts) DeepCopyInto(out *DiskVsphereOpts) { *out = *in @@ -5249,6 +5270,27 @@ func (in *LoggingTargets) DeepCopy() *LoggingTargets { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MSTeamsConfig) DeepCopyInto(out *MSTeamsConfig) { + *out = *in + if in.HTTPClientConfig != nil { + in, out := &in.HTTPClientConfig, &out.HTTPClientConfig + *out = new(HTTPClientConfig) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSTeamsConfig. +func (in *MSTeamsConfig) DeepCopy() *MSTeamsConfig { + if in == nil { + return nil + } + out := new(MSTeamsConfig) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MapDelta) DeepCopyInto(out *MapDelta) { *out = *in @@ -6604,6 +6646,16 @@ func (in *Notification) DeepCopyInto(out *Notification) { *out = new(WechatConfig) (*in).DeepCopyInto(*out) } + if in.DingtalkConfig != nil { + in, out := &in.DingtalkConfig, &out.DingtalkConfig + *out = new(DingtalkConfig) + (*in).DeepCopyInto(*out) + } + if in.MSTeamsConfig != nil { + in, out := &in.MSTeamsConfig, &out.MSTeamsConfig + *out = new(MSTeamsConfig) + (*in).DeepCopyInto(*out) + } return } @@ -6707,6 +6759,16 @@ func (in *NotifierSpec) DeepCopyInto(out *NotifierSpec) { *out = new(WechatConfig) (*in).DeepCopyInto(*out) } + if in.DingtalkConfig != nil { + in, out := &in.DingtalkConfig, &out.DingtalkConfig + *out = new(DingtalkConfig) + (*in).DeepCopyInto(*out) + } + if in.MSTeamsConfig != nil { + in, out := &in.MSTeamsConfig, &out.MSTeamsConfig + *out = new(MSTeamsConfig) + (*in).DeepCopyInto(*out) + } return } diff --git a/client/management/v3/zz_generated_dingtalk_config.go b/client/management/v3/zz_generated_dingtalk_config.go new file mode 100644 index 00000000..646c98f1 --- /dev/null +++ b/client/management/v3/zz_generated_dingtalk_config.go @@ -0,0 +1,14 @@ +package client + +const ( + DingtalkConfigType = "dingtalkConfig" + DingtalkConfigFieldProxyURL = "proxyUrl" + DingtalkConfigFieldSecret = "secret" + DingtalkConfigFieldURL = "url" +) + +type DingtalkConfig struct { + ProxyURL string `json:"proxyUrl,omitempty" yaml:"proxyUrl,omitempty"` + Secret string `json:"secret,omitempty" yaml:"secret,omitempty"` + URL string `json:"url,omitempty" yaml:"url,omitempty"` +} diff --git a/client/management/v3/zz_generated_ms_teams_config.go b/client/management/v3/zz_generated_ms_teams_config.go new file mode 100644 index 00000000..33e8e737 --- /dev/null +++ b/client/management/v3/zz_generated_ms_teams_config.go @@ -0,0 +1,12 @@ +package client + +const ( + MSTeamsConfigType = "msTeamsConfig" + MSTeamsConfigFieldProxyURL = "proxyUrl" + MSTeamsConfigFieldURL = "url" +) + +type MSTeamsConfig struct { + ProxyURL string `json:"proxyUrl,omitempty" yaml:"proxyUrl,omitempty"` + URL string `json:"url,omitempty" yaml:"url,omitempty"` +} diff --git a/client/management/v3/zz_generated_notification.go b/client/management/v3/zz_generated_notification.go index 7e71b482..9aff561b 100644 --- a/client/management/v3/zz_generated_notification.go +++ b/client/management/v3/zz_generated_notification.go @@ -2,6 +2,8 @@ package client const ( NotificationType = "notification" + NotificationFieldDingtalkConfig = "dingtalkConfig" + NotificationFieldMSTeamsConfig = "msteamsConfig" NotificationFieldMessage = "message" NotificationFieldPagerdutyConfig = "pagerdutyConfig" NotificationFieldSMTPConfig = "smtpConfig" @@ -11,6 +13,8 @@ const ( ) type Notification struct { + DingtalkConfig *DingtalkConfig `json:"dingtalkConfig,omitempty" yaml:"dingtalkConfig,omitempty"` + MSTeamsConfig *MSTeamsConfig `json:"msteamsConfig,omitempty" yaml:"msteamsConfig,omitempty"` Message string `json:"message,omitempty" yaml:"message,omitempty"` PagerdutyConfig *PagerdutyConfig `json:"pagerdutyConfig,omitempty" yaml:"pagerdutyConfig,omitempty"` SMTPConfig *SMTPConfig `json:"smtpConfig,omitempty" yaml:"smtpConfig,omitempty"` diff --git a/client/management/v3/zz_generated_notifier.go b/client/management/v3/zz_generated_notifier.go index bf60149a..7ddd0b7e 100644 --- a/client/management/v3/zz_generated_notifier.go +++ b/client/management/v3/zz_generated_notifier.go @@ -11,7 +11,9 @@ const ( NotifierFieldCreated = "created" NotifierFieldCreatorID = "creatorId" NotifierFieldDescription = "description" + NotifierFieldDingtalkConfig = "dingtalkConfig" NotifierFieldLabels = "labels" + NotifierFieldMSTeamsConfig = "msteamsConfig" NotifierFieldName = "name" NotifierFieldNamespaceId = "namespaceId" NotifierFieldOwnerReferences = "ownerReferences" @@ -36,7 +38,9 @@ type Notifier struct { Created string `json:"created,omitempty" yaml:"created,omitempty"` CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"` Description string `json:"description,omitempty" yaml:"description,omitempty"` + DingtalkConfig *DingtalkConfig `json:"dingtalkConfig,omitempty" yaml:"dingtalkConfig,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + MSTeamsConfig *MSTeamsConfig `json:"msteamsConfig,omitempty" yaml:"msteamsConfig,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` NamespaceId string `json:"namespaceId,omitempty" yaml:"namespaceId,omitempty"` OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"` diff --git a/client/management/v3/zz_generated_notifier_spec.go b/client/management/v3/zz_generated_notifier_spec.go index e4433b67..e462eb3a 100644 --- a/client/management/v3/zz_generated_notifier_spec.go +++ b/client/management/v3/zz_generated_notifier_spec.go @@ -4,7 +4,9 @@ const ( NotifierSpecType = "notifierSpec" NotifierSpecFieldClusterID = "clusterId" NotifierSpecFieldDescription = "description" + NotifierSpecFieldDingtalkConfig = "dingtalkConfig" NotifierSpecFieldDisplayName = "displayName" + NotifierSpecFieldMSTeamsConfig = "msteamsConfig" NotifierSpecFieldPagerdutyConfig = "pagerdutyConfig" NotifierSpecFieldSMTPConfig = "smtpConfig" NotifierSpecFieldSendResolved = "sendResolved" @@ -16,7 +18,9 @@ const ( type NotifierSpec struct { ClusterID string `json:"clusterId,omitempty" yaml:"clusterId,omitempty"` Description string `json:"description,omitempty" yaml:"description,omitempty"` + DingtalkConfig *DingtalkConfig `json:"dingtalkConfig,omitempty" yaml:"dingtalkConfig,omitempty"` DisplayName string `json:"displayName,omitempty" yaml:"displayName,omitempty"` + MSTeamsConfig *MSTeamsConfig `json:"msteamsConfig,omitempty" yaml:"msteamsConfig,omitempty"` PagerdutyConfig *PagerdutyConfig `json:"pagerdutyConfig,omitempty" yaml:"pagerdutyConfig,omitempty"` SMTPConfig *SMTPConfig `json:"smtpConfig,omitempty" yaml:"smtpConfig,omitempty"` SendResolved bool `json:"sendResolved,omitempty" yaml:"sendResolved,omitempty"`