mirror of
https://github.com/rancher/types.git
synced 2025-09-26 12:42:59 +00:00
generate code
This commit is contained in:
committed by
Alena Prokharchyk
parent
4c32b98a34
commit
3e10f98fe0
@@ -2,9 +2,11 @@ package client
|
||||
|
||||
const (
|
||||
PagerdutyConfigType = "pagerdutyConfig"
|
||||
PagerdutyConfigFieldProxyURL = "proxyUrl"
|
||||
PagerdutyConfigFieldServiceKey = "serviceKey"
|
||||
)
|
||||
|
||||
type PagerdutyConfig struct {
|
||||
ProxyURL string `json:"proxyUrl,omitempty" yaml:"proxyUrl,omitempty"`
|
||||
ServiceKey string `json:"serviceKey,omitempty" yaml:"serviceKey,omitempty"`
|
||||
}
|
||||
|
@@ -3,10 +3,12 @@ package client
|
||||
const (
|
||||
SlackConfigType = "slackConfig"
|
||||
SlackConfigFieldDefaultRecipient = "defaultRecipient"
|
||||
SlackConfigFieldProxyURL = "proxyUrl"
|
||||
SlackConfigFieldURL = "url"
|
||||
)
|
||||
|
||||
type SlackConfig struct {
|
||||
DefaultRecipient string `json:"defaultRecipient,omitempty" yaml:"defaultRecipient,omitempty"`
|
||||
ProxyURL string `json:"proxyUrl,omitempty" yaml:"proxyUrl,omitempty"`
|
||||
URL string `json:"url,omitempty" yaml:"url,omitempty"`
|
||||
}
|
||||
|
@@ -1,10 +1,12 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
WebhookConfigType = "webhookConfig"
|
||||
WebhookConfigFieldURL = "url"
|
||||
WebhookConfigType = "webhookConfig"
|
||||
WebhookConfigFieldProxyURL = "proxyUrl"
|
||||
WebhookConfigFieldURL = "url"
|
||||
)
|
||||
|
||||
type WebhookConfig struct {
|
||||
URL string `json:"url,omitempty" yaml:"url,omitempty"`
|
||||
ProxyURL string `json:"proxyUrl,omitempty" yaml:"proxyUrl,omitempty"`
|
||||
URL string `json:"url,omitempty" yaml:"url,omitempty"`
|
||||
}
|
||||
|
@@ -5,6 +5,7 @@ const (
|
||||
WechatConfigFieldAgent = "agent"
|
||||
WechatConfigFieldCorp = "corp"
|
||||
WechatConfigFieldDefaultRecipient = "defaultRecipient"
|
||||
WechatConfigFieldProxyURL = "proxyUrl"
|
||||
WechatConfigFieldRecipientType = "recipientType"
|
||||
WechatConfigFieldSecret = "secret"
|
||||
)
|
||||
@@ -13,6 +14,7 @@ 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"`
|
||||
ProxyURL string `json:"proxyUrl,omitempty" yaml:"proxyUrl,omitempty"`
|
||||
RecipientType string `json:"recipientType,omitempty" yaml:"recipientType,omitempty"`
|
||||
Secret string `json:"secret,omitempty" yaml:"secret,omitempty"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user