mirror of
https://github.com/rancher/types.git
synced 2025-07-31 20:55:00 +00:00
go generate
This commit is contained in:
parent
a44b2e8acd
commit
8b7d6228cd
@ -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
|
||||
}
|
||||
|
||||
|
14
client/management/v3/zz_generated_dingtalk_config.go
Normal file
14
client/management/v3/zz_generated_dingtalk_config.go
Normal file
@ -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"`
|
||||
}
|
12
client/management/v3/zz_generated_ms_teams_config.go
Normal file
12
client/management/v3/zz_generated_ms_teams_config.go
Normal file
@ -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"`
|
||||
}
|
@ -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"`
|
||||
|
@ -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"`
|
||||
|
@ -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"`
|
||||
|
Loading…
Reference in New Issue
Block a user