Documentation ¶
Index ¶
- type ConfigCreateOptions
- type ConfigListOptions
- type ConfigOptions
- type ConfigUpdateOptions
- type EmailQueueCreateOptions
- type EmailQueueListOptions
- type EmailQueueOptions
- type EmailQueueSendOptions
- type ReceiverCreateOptions
- type ReceiverEnableContactTypeInput
- type ReceiverGetTypeOptions
- type ReceiverIntellijGetOptions
- type ReceiverListOptions
- type ReceiverOptions
- type ReceiverTriggerVerifyOptions
- type ReceiverUpdateOptions
- type ReceiverVerifyOptions
- type RobotCreateOptions
- type RobotListOptions
- type RobotOptions
- type RobotUpdateOptions
- type SreceiverEnableContactTypeInput
- type SreceiverTriggerVerifyOptions
- type SreceiverUpdateOptions
- type SreceiverVerifyOptions
- type SrobotUpdateOptions
- type SubscriberChangeOptions
- type SubscriberCreateOptions
- type SubscriberListOptions
- type SubscriberOptions
- type TopicListOptions
- type TopicOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigCreateOptions ¶
type ConfigCreateOptions struct { NAME string `help:"Name of Config"` Domain string `help:"which domain create for, required if attribution is 'domain'"` Type string `help:"The type of config"` Configs []string `help:"Config content, format: 'key:value'"` Attribution string `help:"Attribution" choices:"system|domain"` }
func (*ConfigCreateOptions) Params ¶
func (cc *ConfigCreateOptions) Params() (jsonutils.JSONObject, error)
type ConfigListOptions ¶
type ConfigListOptions struct { options.BaseListOptions Type string `json:"type"` Attribution string `json:"attribution"` }
func (*ConfigListOptions) Params ¶
func (cl *ConfigListOptions) Params() (jsonutils.JSONObject, error)
type ConfigOptions ¶
type ConfigOptions struct {
ID string
}
func (*ConfigOptions) GetId ¶
func (c *ConfigOptions) GetId() string
func (*ConfigOptions) Params ¶
func (c *ConfigOptions) Params() (jsonutils.JSONObject, error)
type ConfigUpdateOptions ¶
type ConfigUpdateOptions struct { ConfigOptions Configs []string }
func (*ConfigUpdateOptions) Params ¶
func (cu *ConfigUpdateOptions) Params() (jsonutils.JSONObject, error)
type EmailQueueCreateOptions ¶
type EmailQueueCreateOptions struct { SUBJECT string `help:"email subject"` BODY string `help:"email body"` TO []string `json:"to" help:"receiver email"` SessionId string `help:"session id of sending email"` Attach []string `help:"path to attachment"` }
func (*EmailQueueCreateOptions) Params ¶
func (rc *EmailQueueCreateOptions) Params() (jsonutils.JSONObject, error)
type EmailQueueListOptions ¶
type EmailQueueListOptions struct { options.BaseListOptions Id []int `json:"id"` To []string `json:"to"` Subject string `json:"subject"` SessionId []string `json:"session_id"` }
func (*EmailQueueListOptions) Params ¶
func (rl *EmailQueueListOptions) Params() (jsonutils.JSONObject, error)
type EmailQueueOptions ¶
type EmailQueueOptions struct {
ID string `help:"Id of email queue" json:"-"`
}
func (*EmailQueueOptions) GetId ¶
func (r *EmailQueueOptions) GetId() string
func (*EmailQueueOptions) Params ¶
func (r *EmailQueueOptions) Params() (jsonutils.JSONObject, error)
type EmailQueueSendOptions ¶
type EmailQueueSendOptions struct { EmailQueueOptions Sync bool `json:"sync" help:"send email synchronously"` }
func (*EmailQueueSendOptions) Params ¶
func (r *EmailQueueSendOptions) Params() (jsonutils.JSONObject, error)
type ReceiverCreateOptions ¶
type ReceiverCreateOptions struct { UID string `help:"user id in keystone"` Email string `help:"email of receiver"` Mobile string `help:"mobile of receiver"` MobileAreaCode string `help:"area code of mobile"` EnabledContactTypes []string `help:"enabled contact type"` }
func (*ReceiverCreateOptions) Params ¶
func (rc *ReceiverCreateOptions) Params() (jsonutils.JSONObject, error)
type ReceiverEnableContactTypeInput ¶
type ReceiverEnableContactTypeInput struct { ReceiverOptions SreceiverEnableContactTypeInput }
func (*ReceiverEnableContactTypeInput) Params ¶
func (re *ReceiverEnableContactTypeInput) Params() (jsonutils.JSONObject, error)
type ReceiverGetTypeOptions ¶
type ReceiverGetTypeOptions struct { Receivers []string `help:"View the available notification channels for the receivers"` DomainIds []string `help:"View the available notification channels for the domains with these DomainIds"` Operation string `help:"Operation of reduce" choices:"merge|union"` }
func (*ReceiverGetTypeOptions) Params ¶
func (rg *ReceiverGetTypeOptions) Params() (jsonutils.JSONObject, error)
type ReceiverIntellijGetOptions ¶
type ReceiverIntellijGetOptions struct { USERID string `help:"user id in keystone" json:"user_id"` CreateIfNo *bool `help:"create if receiver with UserId does not exist"` SCOPE string `help:"scope"` }
func (*ReceiverIntellijGetOptions) Params ¶
func (ri *ReceiverIntellijGetOptions) Params() (jsonutils.JSONObject, error)
type ReceiverListOptions ¶
type ReceiverListOptions struct { options.BaseListOptions UId string `help:"user id in keystone"` UName string `help:"user name in keystone"` EnabledContactType string `help:"enabled contact type"` VerifiedContactType string `help:"verified contact type"` ProjectDomainFilter bool `help:"filter receivers who join the project under the domain where the requester is currently located"` }
func (*ReceiverListOptions) Params ¶
func (rl *ReceiverListOptions) Params() (jsonutils.JSONObject, error)
type ReceiverOptions ¶
type ReceiverOptions struct {
ID string `help:"Id or Name of receiver"`
}
func (*ReceiverOptions) GetId ¶
func (r *ReceiverOptions) GetId() string
func (*ReceiverOptions) Params ¶
func (r *ReceiverOptions) Params() (jsonutils.JSONObject, error)
type ReceiverTriggerVerifyOptions ¶
type ReceiverTriggerVerifyOptions struct { ReceiverOptions SreceiverTriggerVerifyOptions }
func (*ReceiverTriggerVerifyOptions) Params ¶
func (rt *ReceiverTriggerVerifyOptions) Params() (jsonutils.JSONObject, error)
type ReceiverUpdateOptions ¶
type ReceiverUpdateOptions struct { ReceiverOptions SreceiverUpdateOptions }
func (*ReceiverUpdateOptions) Params ¶
func (ru *ReceiverUpdateOptions) Params() (jsonutils.JSONObject, error)
type ReceiverVerifyOptions ¶
type ReceiverVerifyOptions struct { ReceiverOptions SreceiverVerifyOptions }
func (*ReceiverVerifyOptions) Params ¶
func (rv *ReceiverVerifyOptions) Params() (jsonutils.JSONObject, error)
type RobotCreateOptions ¶
type RobotCreateOptions struct { NAME string Type string `choices:"feishu|dingtalk|workwx|webhook"` Address string Lang string }
func (*RobotCreateOptions) Params ¶
func (rc *RobotCreateOptions) Params() (jsonutils.JSONObject, error)
type RobotListOptions ¶
type RobotListOptions struct { options.BaseListOptions Lang string Type string `choices:"feishu|dingtalk|workwx|webhook"` Enabled *bool }
func (*RobotListOptions) Params ¶
func (rl *RobotListOptions) Params() (jsonutils.JSONObject, error)
type RobotOptions ¶
type RobotOptions struct {
ID string `help:"Id or Name of robot"`
}
func (*RobotOptions) GetId ¶
func (r *RobotOptions) GetId() string
func (*RobotOptions) Params ¶
func (r *RobotOptions) Params() (jsonutils.JSONObject, error)
type RobotUpdateOptions ¶
type RobotUpdateOptions struct { RobotOptions SrobotUpdateOptions }
func (*RobotUpdateOptions) Params ¶
func (ru *RobotUpdateOptions) Params() (jsonutils.JSONObject, error)
type SreceiverEnableContactTypeInput ¶
type SreceiverEnableContactTypeInput struct {
EnabledContactTypes []string `help:"Enabled contact types"`
}
type SreceiverTriggerVerifyOptions ¶
type SreceiverTriggerVerifyOptions struct {
ContactType string `help:"Contact type to trigger verify" choices:"email|mobile"`
}
type SreceiverUpdateOptions ¶
type SreceiverVerifyOptions ¶
type SrobotUpdateOptions ¶
type SubscriberChangeOptions ¶
type SubscriberChangeOptions struct { SubscriberOptions Receivers []string Role string RoleScope string Robot string }
func (*SubscriberChangeOptions) Params ¶
func (ssr *SubscriberChangeOptions) Params() (jsonutils.JSONObject, error)
type SubscriberCreateOptions ¶
type SubscriberCreateOptions struct { TopicId string `positional:"true"` ResourceScope string `positional:"true" choices:"system|domain|project"` ResourceAttributionId string `help:"project id or domain id of resource"` Type string `positional:"true" choices:"receiver|robot|role"` Receivers []string `help:"required if type is 'receiver'"` Role string `help:"required if type is 'role'"` RoleScope string `help:"required if type is 'role'"` Robot string `help:"required if type is 'robot'"` Scope string `positional:"true"` }
func (*SubscriberCreateOptions) Params ¶
func (sc *SubscriberCreateOptions) Params() (jsonutils.JSONObject, error)
type SubscriberListOptions ¶
type SubscriberListOptions struct { options.BaseListOptions TopicId string ResourceScope string `choices:"system|domain|project"` Type string `choices:"receiver|robot|role"` SCOPE string `choices:"system|domain"` }
func (*SubscriberListOptions) Params ¶
func (sl *SubscriberListOptions) Params() (jsonutils.JSONObject, error)
type SubscriberOptions ¶
type SubscriberOptions struct {
ID string
}
func (*SubscriberOptions) GetId ¶
func (s *SubscriberOptions) GetId() string
func (*SubscriberOptions) Params ¶
func (s *SubscriberOptions) Params() (jsonutils.JSONObject, error)
type TopicListOptions ¶
type TopicListOptions struct {
options.BaseListOptions
}
func (*TopicListOptions) Params ¶
func (opts *TopicListOptions) Params() (jsonutils.JSONObject, error)
type TopicOptions ¶
type TopicOptions struct {
ID string `help:"Id or Name of topic"`
}
func (*TopicOptions) GetId ¶
func (so *TopicOptions) GetId() string
func (*TopicOptions) Params ¶
func (so *TopicOptions) Params() (jsonutils.JSONObject, error)
Click to show internal directories.
Click to hide internal directories.