model

package
v0.1.117 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyHttpPolicyRequest added in v0.1.116

type ApplyHttpPolicyRequest struct {

	// 防护策略id
	PolicyId string `json:"policy_id"`

	Body *ApplyHttpPolicyRequestBody `json:"body,omitempty"`
}

ApplyHttpPolicyRequest Request Object

func (ApplyHttpPolicyRequest) String added in v0.1.116

func (o ApplyHttpPolicyRequest) String() string

type ApplyHttpPolicyRequestBody added in v0.1.116

type ApplyHttpPolicyRequestBody struct {

	// 企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 待关联域名的id
	Hosts []string `json:"hosts"`
}

func (ApplyHttpPolicyRequestBody) String added in v0.1.116

type ApplyHttpPolicyResponse added in v0.1.116

type ApplyHttpPolicyResponse struct {

	// 防护策略id
	Id *string `json:"id,omitempty"`

	// 防护策略名
	Name *string `json:"name,omitempty"`

	// 防护等级
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式
	FullDetection *bool `json:"full_detection,omitempty"`

	Action *HttpPolicyAction `json:"action,omitempty"`

	RobotAction *HttpPolicyAction `json:"robot_action,omitempty"`

	Options *HttpPolicyOption `json:"options,omitempty"`

	// 防护域名的信息
	BindHost *[]HttpPolicyBindHost `json:"bind_host,omitempty"`

	// 扩展字段
	Extend map[string]string `json:"extend,omitempty"`

	// 三方BOT操作
	ThirdBotOptions map[string]interface{} `json:"third_bot_options,omitempty"`

	// web基础防护托管规则集id
	WapManagedRulesetId *string `json:"wap_managed_ruleset_id,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

ApplyHttpPolicyResponse Response Object

func (ApplyHttpPolicyResponse) String added in v0.1.116

func (o ApplyHttpPolicyResponse) String() string

type CreateDomainRequestBody

type CreateDomainRequestBody struct {

	// 防护域名(可带端口)
	DomainName string `json:"domain_name"`

	// 企业项目id
	EnterpriseProjectId string `json:"enterprise_project_id"`

	// 防护域名关联的策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 域名描述
	Description *string `json:"description,omitempty"`
}

CreateDomainRequestBody 创建防护域名的请求

func (CreateDomainRequestBody) String

func (o CreateDomainRequestBody) String() string

type CreateDomainsRequest

type CreateDomainsRequest struct {
	Body *CreateDomainRequestBody `json:"body,omitempty"`
}

CreateDomainsRequest Request Object

func (CreateDomainsRequest) String

func (o CreateDomainsRequest) String() string

type CreateDomainsResponse

type CreateDomainsResponse struct {
	HttpStatusCode int `json:"-"`
}

CreateDomainsResponse Response Object

func (CreateDomainsResponse) String

func (o CreateDomainsResponse) String() string

type CreateHttpPolicyRequest added in v0.1.116

type CreateHttpPolicyRequest struct {
	Body *CreateHttpPolicyRequestBody `json:"body,omitempty"`
}

CreateHttpPolicyRequest Request Object

func (CreateHttpPolicyRequest) String added in v0.1.116

func (o CreateHttpPolicyRequest) String() string

type CreateHttpPolicyRequestBody added in v0.1.116

type CreateHttpPolicyRequestBody struct {

	// 防护策略名
	Name string `json:"name"`
}

func (CreateHttpPolicyRequestBody) String added in v0.1.116

type CreateHttpPolicyResponse added in v0.1.116

type CreateHttpPolicyResponse struct {

	// 防护策略id
	Id *string `json:"id,omitempty"`

	// 防护策略名
	Name *string `json:"name,omitempty"`

	// 防护等级
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式
	FullDetection *bool `json:"full_detection,omitempty"`

	Action *HttpPolicyAction `json:"action,omitempty"`

	RobotAction *HttpPolicyAction `json:"robot_action,omitempty"`

	Options *HttpPolicyOption `json:"options,omitempty"`

	// 防护域名的信息
	BindHost *[]HttpPolicyBindHost `json:"bind_host,omitempty"`

	// 扩展字段
	Extend map[string]string `json:"extend,omitempty"`

	// 三方BOT操作
	ThirdBotOptions map[string]interface{} `json:"third_bot_options,omitempty"`

	// web基础防护托管规则集id
	WapManagedRulesetId *string `json:"wap_managed_ruleset_id,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

CreateHttpPolicyResponse Response Object

func (CreateHttpPolicyResponse) String added in v0.1.116

func (o CreateHttpPolicyResponse) String() string

type DeleteDomainsRequest

type DeleteDomainsRequest struct {

	// 防护域名id
	DomainId string `json:"domain_id"`

	// 企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

DeleteDomainsRequest Request Object

func (DeleteDomainsRequest) String

func (o DeleteDomainsRequest) String() string

type DeleteDomainsResponse

type DeleteDomainsResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteDomainsResponse Response Object

func (DeleteDomainsResponse) String

func (o DeleteDomainsResponse) String() string

type DeleteHttpPolicyRequest added in v0.1.116

type DeleteHttpPolicyRequest struct {

	// 防护策略id
	PolicyId string `json:"policy_id"`
}

DeleteHttpPolicyRequest Request Object

func (DeleteHttpPolicyRequest) String added in v0.1.116

func (o DeleteHttpPolicyRequest) String() string

type DeleteHttpPolicyResponse added in v0.1.116

type DeleteHttpPolicyResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteHttpPolicyResponse Response Object

func (DeleteHttpPolicyResponse) String added in v0.1.116

func (o DeleteHttpPolicyResponse) String() string

type DomainInfo

type DomainInfo struct {

	// 域名id
	Id *string `json:"id,omitempty"`

	// 域名
	DomainName *string `json:"domain_name,omitempty"`

	// 企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 调度状态: - 调度异常:dispatch_abnormal - 未调度:un_dispatch - 调度中:dispatching - 已调度:dispatched - 删除中:dispatch_deleting
	DispatchStatus *string `json:"dispatch_status,omitempty"`

	// 网站名称
	WebName *string `json:"web_name,omitempty"`

	// 描述
	Description *string `json:"description,omitempty"`

	// 策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 防护状态: - 防护中:on - 未防护:off
	ProtectStatus *string `json:"protect_status,omitempty"`

	// 创建域名的时间
	CreateTime *int64 `json:"create_time,omitempty"`

	// 更新域名的时间
	UpdateTime *int64 `json:"update_time,omitempty"`
}

DomainInfo 防护域名详情

func (DomainInfo) String

func (o DomainInfo) String() string

type HttpPolicyAction added in v0.1.116

type HttpPolicyAction struct {

	// 防护等级
	Category *string `json:"category,omitempty"`

	// 攻击惩罚规则ID
	FollowedActionId *string `json:"followed_action_id,omitempty"`
}

HttpPolicyAction 操作

func (HttpPolicyAction) String added in v0.1.116

func (o HttpPolicyAction) String() string

type HttpPolicyBindHost added in v0.1.116

type HttpPolicyBindHost struct {

	// 域名ID
	Id *string `json:"id,omitempty"`

	// 域名
	Hostname *string `json:"hostname,omitempty"`
}

HttpPolicyBindHost 绑定的域名信息

func (HttpPolicyBindHost) String added in v0.1.116

func (o HttpPolicyBindHost) String() string

type HttpPolicyOption added in v0.1.116

type HttpPolicyOption struct {

	// 基础防护是否开启
	Webattack *bool `json:"webattack,omitempty"`

	// 常规检测是否开启
	Common *bool `json:"common,omitempty"`

	// 所有反爬虫是否开启
	BotEnable *bool `json:"bot_enable,omitempty"`

	// 特征反爬虫是否开启
	Crawler *bool `json:"crawler,omitempty"`

	// 搜索engine是否开启
	CrawlerEngine *bool `json:"crawler_engine,omitempty"`

	// 扫描器是否开启
	CrawlerScanner *bool `json:"crawler_scanner,omitempty"`

	// 脚本反爬虫是否开启
	CrawlerScript *bool `json:"crawler_script,omitempty"`

	// 其他爬虫是否开启
	CrawlerOther *bool `json:"crawler_other,omitempty"`

	// Webshell检测是否开启
	Webshell *bool `json:"webshell,omitempty"`

	// cc规则是否开启
	Cc *bool `json:"cc,omitempty"`

	// 精准防护是否开启
	Custom *bool `json:"custom,omitempty"`

	// 攻击惩罚是否开启
	FollowedAction *bool `json:"followed_action,omitempty"`

	// 黑白名单防护是否开启
	Whiteblackip *bool `json:"whiteblackip,omitempty"`

	// 地理位置规则是否开启
	Geoip *bool `json:"geoip,omitempty"`

	// 误报屏蔽是否开启
	Ignore *bool `json:"ignore,omitempty"`

	// 隐私屏蔽是否开启
	Privacy *bool `json:"privacy,omitempty"`

	// 网页防篡改规则是否开启
	Antitamper *bool `json:"antitamper,omitempty"`

	// 防敏感信息泄露规则是否开启
	Antileakage *bool `json:"antileakage,omitempty"`

	// 脚本反爬虫规则是否开启
	Anticrawler *bool `json:"anticrawler,omitempty"`

	// 三方BOT是否开启
	ThirdBotRiver *bool `json:"third_bot_river,omitempty"`
}

HttpPolicyOption 选项

func (HttpPolicyOption) String added in v0.1.116

func (o HttpPolicyOption) String() string

type HttpRiverConfig added in v0.1.116

type HttpRiverConfig struct {

	// 瑞数站点ID
	SiteId *string `json:"site_id,omitempty"`

	// 瑞数站点名称
	SiteName *string `json:"site_name,omitempty"`

	// 连接超时(毫秒)
	ConnectTimeout *int32 `json:"connect_timeout,omitempty"`

	// 读超时(毫秒)
	ReadTimeout *int32 `json:"read_timeout,omitempty"`

	// 写超时(毫秒)
	SendTimeout *int32 `json:"send_timeout,omitempty"`
}

HttpRiverConfig 瑞数配置项

func (HttpRiverConfig) String added in v0.1.116

func (o HttpRiverConfig) String() string

type HttpThirdBotOptions added in v0.1.116

type HttpThirdBotOptions struct {
	RiverConfig *HttpRiverConfig `json:"river_config,omitempty"`
}

HttpThirdBotOptions 三方BOT操作

func (HttpThirdBotOptions) String added in v0.1.116

func (o HttpThirdBotOptions) String() string

type ShowDomainDetailRequest

type ShowDomainDetailRequest struct {

	// 防护域名id
	DomainId string `json:"domain_id"`
}

ShowDomainDetailRequest Request Object

func (ShowDomainDetailRequest) String

func (o ShowDomainDetailRequest) String() string

type ShowDomainDetailResponse

type ShowDomainDetailResponse struct {

	// 域名id
	Id *string `json:"id,omitempty"`

	// 域名
	DomainName *string `json:"domain_name,omitempty"`

	// 企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 域名描述
	Description *string `json:"description,omitempty"`

	// 策略id
	PolicyId *string `json:"policy_id,omitempty"`

	// 防护状态: - 防护中:on - 未防护:off
	ProtectStatus *string `json:"protect_status,omitempty"`

	// 创建域名的时间
	CreateTime *int64 `json:"create_time,omitempty"`

	// 更新域名的时间
	UpdateTime     *int64 `json:"update_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowDomainDetailResponse Response Object

func (ShowDomainDetailResponse) String

func (o ShowDomainDetailResponse) String() string

type ShowDomainsRequest

type ShowDomainsRequest struct {

	// 查询列表的偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 查询列表每一页的条数
	Limit *int32 `json:"limit,omitempty"`

	// 域名
	DomainName *string `json:"domain_name,omitempty"`

	// 策略名称
	PolicyName *string `json:"policy_name,omitempty"`

	// 企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ShowDomainsRequest Request Object

func (ShowDomainsRequest) String

func (o ShowDomainsRequest) String() string

type ShowDomainsResponse

type ShowDomainsResponse struct {

	// 全部防护域名的数量
	Total *int64 `json:"total,omitempty"`

	// 域名已使用配额
	DomainUsedQuota *int64 `json:"domain_used_quota,omitempty"`

	// 详细的防护域名信息
	DomainList     *[]DomainInfo `json:"domain_list,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ShowDomainsResponse Response Object

func (ShowDomainsResponse) String

func (o ShowDomainsResponse) String() string

type ShowHttpPoliciesRequest added in v0.1.116

type ShowHttpPoliciesRequest struct {

	// 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 分页查询参数,第page页
	Page *int32 `json:"page,omitempty"`

	// 分页查询参数,每页显示pagesize条记录
	Pagesize *int32 `json:"pagesize,omitempty"`

	// 模糊查询策略名称
	Name *string `json:"name,omitempty"`

	// 根据域名模糊查询策略
	Hostname *string `json:"hostname,omitempty"`
}

ShowHttpPoliciesRequest Request Object

func (ShowHttpPoliciesRequest) String added in v0.1.116

func (o ShowHttpPoliciesRequest) String() string

type ShowHttpPoliciesResponse added in v0.1.116

type ShowHttpPoliciesResponse struct {

	// 防护策略的数量
	Total *int32 `json:"total,omitempty"`

	// 防护策略的具体内容
	Items          *[]ShowHttpPolicyResponseBody `json:"items,omitempty"`
	HttpStatusCode int                           `json:"-"`
}

ShowHttpPoliciesResponse Response Object

func (ShowHttpPoliciesResponse) String added in v0.1.116

func (o ShowHttpPoliciesResponse) String() string

type ShowHttpPolicyRequest added in v0.1.116

type ShowHttpPolicyRequest struct {

	// 防护策略id
	PolicyId string `json:"policy_id"`
}

ShowHttpPolicyRequest Request Object

func (ShowHttpPolicyRequest) String added in v0.1.116

func (o ShowHttpPolicyRequest) String() string

type ShowHttpPolicyResponse added in v0.1.116

type ShowHttpPolicyResponse struct {

	// 防护策略id
	Id *string `json:"id,omitempty"`

	// 防护策略名
	Name *string `json:"name,omitempty"`

	// 防护等级
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式
	FullDetection *bool `json:"full_detection,omitempty"`

	Action *HttpPolicyAction `json:"action,omitempty"`

	RobotAction *HttpPolicyAction `json:"robot_action,omitempty"`

	Options *HttpPolicyOption `json:"options,omitempty"`

	// 防护域名的信息
	BindHost *[]HttpPolicyBindHost `json:"bind_host,omitempty"`

	// 扩展字段
	Extend map[string]string `json:"extend,omitempty"`

	// 三方BOT操作
	ThirdBotOptions map[string]interface{} `json:"third_bot_options,omitempty"`

	// web基础防护托管规则集id
	WapManagedRulesetId *string `json:"wap_managed_ruleset_id,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

ShowHttpPolicyResponse Response Object

func (ShowHttpPolicyResponse) String added in v0.1.116

func (o ShowHttpPolicyResponse) String() string

type ShowHttpPolicyResponseBody added in v0.1.116

type ShowHttpPolicyResponseBody struct {

	// 防护策略id
	Id *string `json:"id,omitempty"`

	// 防护策略名
	Name *string `json:"name,omitempty"`

	// 防护等级
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式
	FullDetection *bool `json:"full_detection,omitempty"`

	Action *HttpPolicyAction `json:"action,omitempty"`

	RobotAction *HttpPolicyAction `json:"robot_action,omitempty"`

	Options *HttpPolicyOption `json:"options,omitempty"`

	// 防护域名的信息
	BindHost *[]HttpPolicyBindHost `json:"bind_host,omitempty"`

	// 扩展字段
	Extend map[string]string `json:"extend,omitempty"`

	// 三方BOT操作
	ThirdBotOptions map[string]interface{} `json:"third_bot_options,omitempty"`

	// web基础防护托管规则集id
	WapManagedRulesetId *string `json:"wap_managed_ruleset_id,omitempty"`
}

func (ShowHttpPolicyResponseBody) String added in v0.1.116

type UpdateDomainRequestBody

type UpdateDomainRequestBody struct {

	// 防护状态:防护中-on;未防护-off
	ProtectStatus *string `json:"protect_status,omitempty"`

	// 域名描述
	Description *string `json:"description,omitempty"`
}

UpdateDomainRequestBody 更新防护域名的请求

func (UpdateDomainRequestBody) String

func (o UpdateDomainRequestBody) String() string

type UpdateDomainsRequest

type UpdateDomainsRequest struct {

	// 域名
	DomainId string `json:"domain_id"`

	Body *UpdateDomainRequestBody `json:"body,omitempty"`
}

UpdateDomainsRequest Request Object

func (UpdateDomainsRequest) String

func (o UpdateDomainsRequest) String() string

type UpdateDomainsResponse

type UpdateDomainsResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateDomainsResponse Response Object

func (UpdateDomainsResponse) String

func (o UpdateDomainsResponse) String() string

type UpdateHttpPolicyRequest added in v0.1.116

type UpdateHttpPolicyRequest struct {

	// 防护策略id
	PolicyId string `json:"policy_id"`

	Body *UpdateHttpPolicyRequestBody `json:"body,omitempty"`
}

UpdateHttpPolicyRequest Request Object

func (UpdateHttpPolicyRequest) String added in v0.1.116

func (o UpdateHttpPolicyRequest) String() string

type UpdateHttpPolicyRequestBody added in v0.1.116

type UpdateHttpPolicyRequestBody struct {

	// 防护策略名
	Name *string `json:"name,omitempty"`

	Action *HttpPolicyAction `json:"action,omitempty"`

	Options *HttpPolicyOption `json:"options,omitempty"`

	// 防护等级
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式
	FullDetection *bool `json:"full_detection,omitempty"`

	RobotAction *HttpPolicyAction `json:"robot_action,omitempty"`

	ThirdBotOptions *HttpThirdBotOptions `json:"third_bot_options,omitempty"`

	// 扩展字段
	Extend map[string]string `json:"extend,omitempty"`
}

func (UpdateHttpPolicyRequestBody) String added in v0.1.116

type UpdateHttpPolicyResponse added in v0.1.116

type UpdateHttpPolicyResponse struct {

	// 防护策略id
	Id *string `json:"id,omitempty"`

	// 防护策略名
	Name *string `json:"name,omitempty"`

	// 防护等级
	Level *int32 `json:"level,omitempty"`

	// 精准防护中的检测模式
	FullDetection *bool `json:"full_detection,omitempty"`

	Action *HttpPolicyAction `json:"action,omitempty"`

	RobotAction *HttpPolicyAction `json:"robot_action,omitempty"`

	Options *HttpPolicyOption `json:"options,omitempty"`

	// 防护域名的信息
	BindHost *[]HttpPolicyBindHost `json:"bind_host,omitempty"`

	// 扩展字段
	Extend map[string]string `json:"extend,omitempty"`

	// 三方BOT操作
	ThirdBotOptions map[string]interface{} `json:"third_bot_options,omitempty"`

	// web基础防护托管规则集id
	WapManagedRulesetId *string `json:"wap_managed_ruleset_id,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

UpdateHttpPolicyResponse Response Object

func (UpdateHttpPolicyResponse) String added in v0.1.116

func (o UpdateHttpPolicyResponse) String() string

type UpdateHttpPolicyRuleStatusRequest added in v0.1.116

type UpdateHttpPolicyRuleStatusRequest struct {

	// 防护策略id
	PolicyId string `json:"policy_id"`

	// 防护策略规则 cc|custom|whiteblackip|privacy|ignore|geoip|antitamper|antileakage|punishment|ip-reputation
	RuleType string `json:"rule_type"`

	// 防护策略规则id
	RuleId string `json:"rule_id"`

	Body *UpdateHttpPolicyRuleStatusRequestBody `json:"body,omitempty"`
}

UpdateHttpPolicyRuleStatusRequest Request Object

func (UpdateHttpPolicyRuleStatusRequest) String added in v0.1.116

type UpdateHttpPolicyRuleStatusRequestBody added in v0.1.116

type UpdateHttpPolicyRuleStatusRequestBody struct {

	// 0-关闭 1-开启
	Status int32 `json:"status"`
}

func (UpdateHttpPolicyRuleStatusRequestBody) String added in v0.1.116

type UpdateHttpPolicyRuleStatusResponse added in v0.1.116

type UpdateHttpPolicyRuleStatusResponse struct {

	// 规则类别
	Category *string `json:"category,omitempty"`

	// 描述
	Description *string `json:"description,omitempty"`

	// 规则id
	Id *string `json:"id,omitempty"`

	// 策略id
	Policyid *string `json:"policyid,omitempty"`

	// 规则状态
	Status *int32 `json:"status,omitempty"`

	// 规则添加时间
	Timestamp      float32 `json:"timestamp,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateHttpPolicyRuleStatusResponse Response Object

func (UpdateHttpPolicyRuleStatusResponse) String added in v0.1.116

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL