Documentation ¶
Index ¶
- type ConfigCapabilityOptions
- type ConfigCreateOptions
- type ConfigListOptions
- type ConfigOptions
- type ConfigUpdateOptions
- type EmailQueueCreateOptions
- type EmailQueueListOptions
- type EmailQueueOptions
- type EmailQueueSendOptions
- type ReceiverCreateOptions
- type ReceiverEnableContactTypeInput
- type ReceiverGetSubscriptionOptions
- type ReceiverGetTypeOptions
- type ReceiverIntellijGetOptions
- type ReceiverListOptions
- type ReceiverOptions
- type ReceiverTriggerVerifyOptions
- type ReceiverUpdateOptions
- type ReceiverVerifyOptions
- type RobotCreateOptions
- type RobotListOptions
- type RobotOptions
- type RobotUpdateOptions
- type SReceiverRoleContactType
- type SreceiverEnableContactTypeInput
- type SreceiverTriggerVerifyOptions
- type SreceiverUpdateOptions
- type SreceiverVerifyOptions
- type SrobotUpdateOptions
- type SubscriberChangeOptions
- type SubscriberCreateOptions
- type SubscriberListOptions
- type SubscriberOptions
- type TopicListOptions
- type TopicOptions
- type TopicUpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigCapabilityOptions ¶
type ConfigCapabilityOptions struct { }
func (*ConfigCapabilityOptions) Params ¶
func (c *ConfigCapabilityOptions) Params() (jsonutils.JSONObject, error)
func (*ConfigCapabilityOptions) Property ¶
func (c *ConfigCapabilityOptions) Property() string
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"` Cc []string `json:"cc" help:"cc receivers"` Bcc []string `json:"bcc" help:"bcc receivers"` 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 ReceiverGetSubscriptionOptions ¶
type ReceiverGetSubscriptionOptions struct { ReceiverOptions ShowDisabled bool `help:"List disabled subscription "` }
func (*ReceiverGetSubscriptionOptions) Params ¶
func (rt *ReceiverGetSubscriptionOptions) 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 Header string Body string MsgKey string UseTemplate bool `help:"just for webhook"` }
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 SReceiverRoleContactType ¶
type SReceiverRoleContactType struct { ROLE_IDS []string Scope string ProjectDomainId string ProjectId string }
func (*SReceiverRoleContactType) Params ¶
func (rg *SReceiverRoleContactType) Params() (jsonutils.JSONObject, error)
func (*SReceiverRoleContactType) Property ¶
func (rg *SReceiverRoleContactType) Property() string
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 // minutes GroupTimes *int }
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"` // minutes GroupTimes int }
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)
type TopicUpdateOptions ¶
func (*TopicUpdateOptions) GetId ¶
func (so *TopicUpdateOptions) GetId() string
func (*TopicUpdateOptions) Params ¶
func (opts *TopicUpdateOptions) Params() (jsonutils.JSONObject, error)
Click to show internal directories.
Click to hide internal directories.