model

package
v0.1.123 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddBlackWhiteIpListRequest added in v0.1.75

type AddBlackWhiteIpListRequest struct {
	Body *BlackWhiteIpListRequest `json:"body,omitempty"`
}

AddBlackWhiteIpListRequest Request Object

func (AddBlackWhiteIpListRequest) String added in v0.1.75

type AddBlackWhiteIpListResponse added in v0.1.75

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

AddBlackWhiteIpListResponse Response Object

func (AddBlackWhiteIpListResponse) String added in v0.1.75

type AddPolicyBlackAndWhiteIpListRequest

type AddPolicyBlackAndWhiteIpListRequest struct {

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

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

AddPolicyBlackAndWhiteIpListRequest Request Object

func (AddPolicyBlackAndWhiteIpListRequest) String

type AddPolicyBlackAndWhiteIpListResponse

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

AddPolicyBlackAndWhiteIpListResponse Response Object

func (AddPolicyBlackAndWhiteIpListResponse) String

type AlarmBody

type AlarmBody struct {

	// SMN的topic urn
	TopicUrn string `json:"topic_urn"`
}

func (AlarmBody) String

func (o AlarmBody) String() string

type AssociateIpToPolicyAndPackageRequest added in v0.1.117

type AssociateIpToPolicyAndPackageRequest struct {

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

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

AssociateIpToPolicyAndPackageRequest Request Object

func (AssociateIpToPolicyAndPackageRequest) String added in v0.1.117

type AssociateIpToPolicyAndPackageResponse added in v0.1.117

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

AssociateIpToPolicyAndPackageResponse Response Object

func (AssociateIpToPolicyAndPackageResponse) String added in v0.1.117

type AssociateIpToPolicyRequest

type AssociateIpToPolicyRequest struct {

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

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

AssociateIpToPolicyRequest Request Object

func (AssociateIpToPolicyRequest) String

type AssociateIpToPolicyResponse

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

AssociateIpToPolicyResponse Response Object

func (AssociateIpToPolicyResponse) String

type BatchCreateInstanceIpRuleRequest

type BatchCreateInstanceIpRuleRequest struct {

	// 实例Id
	InstanceId string `json:"instance_id"`

	// 单个 IP
	Ip string `json:"ip"`

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

BatchCreateInstanceIpRuleRequest Request Object

func (BatchCreateInstanceIpRuleRequest) String

type BatchCreateInstanceIpRuleResponse

type BatchCreateInstanceIpRuleResponse struct {

	// 数量
	SuccessNum     *int32 `json:"success_num,omitempty"`
	HttpStatusCode int    `json:"-"`
}

BatchCreateInstanceIpRuleResponse Response Object

func (BatchCreateInstanceIpRuleResponse) String

type BatchDeleteInstanceIpRuleRequest

type BatchDeleteInstanceIpRuleRequest struct {

	// 实例Id
	InstanceId string `json:"instance_id"`

	// 单个 IP
	Ip string `json:"ip"`

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

BatchDeleteInstanceIpRuleRequest Request Object

func (BatchDeleteInstanceIpRuleRequest) String

type BatchDeleteInstanceIpRuleResponse

type BatchDeleteInstanceIpRuleResponse struct {

	// 数量
	SuccessNum     *int32 `json:"success_num,omitempty"`
	HttpStatusCode int    `json:"-"`
}

BatchDeleteInstanceIpRuleResponse Response Object

func (BatchDeleteInstanceIpRuleResponse) String

type BatchIdBody

type BatchIdBody struct {

	// 批量id
	Ids *[]string `json:"ids,omitempty"`
}

BatchIdBody 批量id

func (BatchIdBody) String

func (o BatchIdBody) String() string

type BatchTransferRuleBody

type BatchTransferRuleBody struct {

	// 批量转发规则
	Rules *[]TransferRuleBody `json:"rules,omitempty"`
}

BatchTransferRuleBody 批量转发规则

func (BatchTransferRuleBody) String

func (o BatchTransferRuleBody) String() string

type BlackWhiteIpListRequest added in v0.1.75

type BlackWhiteIpListRequest struct {

	// 实例id
	InstanceId string `json:"instance_id"`

	// 规则类型。black - 黑名单, white - 白名单
	Type string `json:"type"`

	// ip列表
	Ips []string `json:"ips"`
}

func (BlackWhiteIpListRequest) String added in v0.1.75

func (o BlackWhiteIpListRequest) String() string

type BlackWhiteIpRequestBody

type BlackWhiteIpRequestBody struct {

	// 类型。white:白名单,black:黑名单
	Type BlackWhiteIpRequestBodyType `json:"type"`

	// ip列表
	IpList []string `json:"ip_list"`
}

BlackWhiteIpRequestBody 黑白名单请求体

func (BlackWhiteIpRequestBody) String

func (o BlackWhiteIpRequestBody) String() string

type BlackWhiteIpRequestBodyType

type BlackWhiteIpRequestBodyType struct {
	// contains filtered or unexported fields
}

func (BlackWhiteIpRequestBodyType) MarshalJSON

func (c BlackWhiteIpRequestBodyType) MarshalJSON() ([]byte, error)

func (*BlackWhiteIpRequestBodyType) UnmarshalJSON

func (c *BlackWhiteIpRequestBodyType) UnmarshalJSON(b []byte) error

func (BlackWhiteIpRequestBodyType) Value

type BlackWhiteIpRequestBodyTypeEnum

type BlackWhiteIpRequestBodyTypeEnum struct {
	WHITE BlackWhiteIpRequestBodyType
	BLACK BlackWhiteIpRequestBodyType
}

func GetBlackWhiteIpRequestBodyTypeEnum

func GetBlackWhiteIpRequestBodyTypeEnum() BlackWhiteIpRequestBodyTypeEnum

type BlockListBlockingList

type BlockListBlockingList struct {

	// ip地址
	Ip string `json:"ip"`

	// 封堵时间
	BlockingTime int64 `json:"blocking_time"`

	// 预计解封时间
	EstimatedUnblockingTime int64 `json:"estimated_unblocking_time"`

	// 状态。unblocking:解封中;success:成功;failed:失败
	Status BlockListBlockingListStatus `json:"status"`
}

func (BlockListBlockingList) String

func (o BlockListBlockingList) String() string

type BlockListBlockingListStatus

type BlockListBlockingListStatus struct {
	// contains filtered or unexported fields
}

func (BlockListBlockingListStatus) MarshalJSON

func (c BlockListBlockingListStatus) MarshalJSON() ([]byte, error)

func (*BlockListBlockingListStatus) UnmarshalJSON

func (c *BlockListBlockingListStatus) UnmarshalJSON(b []byte) error

func (BlockListBlockingListStatus) Value

type BlockListBlockingListStatusEnum

type BlockListBlockingListStatusEnum struct {
	FAILED     BlockListBlockingListStatus
	SUCCESS    BlockListBlockingListStatus
	UNBLOCKING BlockListBlockingListStatus
}

func GetBlockListBlockingListStatusEnum

func GetBlockListBlockingListStatusEnum() BlockListBlockingListStatusEnum

type Bw

type Bw struct {

	// 黑名单列表
	BlackIpList []string `json:"black_ip_list"`

	// 白名单列表
	WhiteIpList []string `json:"white_ip_list"`
}

Bw 黑白名单详情

func (Bw) String

func (o Bw) String() string

type CadDomainSwitchRequest added in v0.1.75

type CadDomainSwitchRequest struct {

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

	// 是否开启WEB基础防护开关。0 - 开启, 1 - 关闭
	WafSwitch int32 `json:"waf_switch"`

	// 是否开启CC防护开关。0 - 开启, 1 - 关闭。开启CC开关必须同时开启WEB基础防护开关
	CcSwitch int32 `json:"cc_switch"`
}

func (CadDomainSwitchRequest) String added in v0.1.75

func (o CadDomainSwitchRequest) String() string

type CertificateBody added in v0.1.75

type CertificateBody struct {

	// 操作类型。0 - 上传, 1 - 更换
	OpType int32 `json:"op_type"`

	// 证书名称
	CertName string `json:"cert_name"`

	// 证书文件。上传新证书(op_type为0)时必填,更换为已有证书(op_type为1)时置空
	CertFile *string `json:"cert_file,omitempty"`

	// 私钥文件。上传新证书(op_type为0)时必填,更换为已有证书(op_type为1)时置空
	CertKeyFile *string `json:"cert_key_file,omitempty"`

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

func (CertificateBody) String added in v0.1.75

func (o CertificateBody) String() string

type CreateAadDomainRequest added in v0.1.75

type CreateAadDomainRequest struct {
	Body *HostBody `json:"body,omitempty"`
}

CreateAadDomainRequest Request Object

func (CreateAadDomainRequest) String added in v0.1.75

func (o CreateAadDomainRequest) String() string

type CreateAadDomainResponse added in v0.1.75

type CreateAadDomainResponse struct {

	// 高防提供的CNAME地址
	Cname *string `json:"cname,omitempty"`

	// 域名id
	DomainId       *string `json:"domainId,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateAadDomainResponse Response Object

func (CreateAadDomainResponse) String added in v0.1.75

func (o CreateAadDomainResponse) String() string

type CreatePolicyRequest

type CreatePolicyRequest struct {
	Body *CreatePolicyRequestBody `json:"body,omitempty"`
}

CreatePolicyRequest Request Object

func (CreatePolicyRequest) String

func (o CreatePolicyRequest) String() string

type CreatePolicyRequestBody

type CreatePolicyRequestBody struct {

	// 策略名
	Name string `json:"name"`

	// 防护包id
	PackageId string `json:"package_id"`

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

CreatePolicyRequestBody 创建策略的请求体

func (CreatePolicyRequestBody) String

func (o CreatePolicyRequestBody) String() string

type CreatePolicyResponse

type CreatePolicyResponse struct {

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

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

	// 防护包id
	PackageId *string `json:"package_id,omitempty"`

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

	// 清洗阈值
	CleanThreshold *int32 `json:"clean_threshold,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreatePolicyResponse Response Object

func (CreatePolicyResponse) String

func (o CreatePolicyResponse) String() string

type DeleteAlarmConfigRequest

type DeleteAlarmConfigRequest struct {
}

DeleteAlarmConfigRequest Request Object

func (DeleteAlarmConfigRequest) String

func (o DeleteAlarmConfigRequest) String() string

type DeleteAlarmConfigResponse

type DeleteAlarmConfigResponse struct {

	// SMN的topic urn
	TopicUrn       *string `json:"topic_urn,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteAlarmConfigResponse Response Object

func (DeleteAlarmConfigResponse) String

func (o DeleteAlarmConfigResponse) String() string

type DeleteBlackWhiteIpListRequest added in v0.1.75

type DeleteBlackWhiteIpListRequest struct {
	Body *BlackWhiteIpListRequest `json:"body,omitempty"`
}

DeleteBlackWhiteIpListRequest Request Object

func (DeleteBlackWhiteIpListRequest) String added in v0.1.75

type DeleteBlackWhiteIpListResponse added in v0.1.75

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

DeleteBlackWhiteIpListResponse Response Object

func (DeleteBlackWhiteIpListResponse) String added in v0.1.75

type DeletePolicyBlackAndWhiteIpListRequest

type DeletePolicyBlackAndWhiteIpListRequest struct {

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

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

DeletePolicyBlackAndWhiteIpListRequest Request Object

func (DeletePolicyBlackAndWhiteIpListRequest) String

type DeletePolicyBlackAndWhiteIpListResponse

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

DeletePolicyBlackAndWhiteIpListResponse Response Object

func (DeletePolicyBlackAndWhiteIpListResponse) String

type DeletePolicyRequest

type DeletePolicyRequest struct {

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

DeletePolicyRequest Request Object

func (DeletePolicyRequest) String

func (o DeletePolicyRequest) String() string

type DeletePolicyResponse

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

DeletePolicyResponse Response Object

func (DeletePolicyResponse) String

func (o DeletePolicyResponse) String() string

type DisassociateIpFromPolicyAndPackageRequest added in v0.1.117

type DisassociateIpFromPolicyAndPackageRequest struct {

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

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

DisassociateIpFromPolicyAndPackageRequest Request Object

func (DisassociateIpFromPolicyAndPackageRequest) String added in v0.1.117

type DisassociateIpFromPolicyAndPackageResponse added in v0.1.117

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

DisassociateIpFromPolicyAndPackageResponse Response Object

func (DisassociateIpFromPolicyAndPackageResponse) String added in v0.1.117

type DisassociateIpFromPolicyRequest

type DisassociateIpFromPolicyRequest struct {

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

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

DisassociateIpFromPolicyRequest Request Object

func (DisassociateIpFromPolicyRequest) String

type DisassociateIpFromPolicyResponse

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

DisassociateIpFromPolicyResponse Response Object

func (DisassociateIpFromPolicyResponse) String

type DomainInfo

type DomainInfo struct {

	// 域名ID
	DomainId *string `json:"domain_id,omitempty"`

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

	// 域名cname
	Cname *string `json:"cname,omitempty"`

	// 域名协议
	Protocol *[]string `json:"protocol,omitempty"`

	// 源站类型
	RealServerType *int32 `json:"real_server_type,omitempty"`

	// 源站
	RealServers *string `json:"real_servers,omitempty"`

	// waf防护状态
	WafStatus *int32 `json:"waf_status,omitempty"`

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

func (DomainInfo) String

func (o DomainInfo) String() string

type DomainRealServerInfo

type DomainRealServerInfo struct {

	// 源站类型
	RealServerType *int32 `json:"real_server_type,omitempty"`

	// 源站
	RealServers *string `json:"real_servers,omitempty"`
}

DomainRealServerInfo 域名源站信息

func (DomainRealServerInfo) String

func (o DomainRealServerInfo) String() string

type ExecuteUnblockIpRequest

type ExecuteUnblockIpRequest struct {

	// 租户id
	DomainId string `json:"domain_id"`

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

ExecuteUnblockIpRequest Request Object

func (ExecuteUnblockIpRequest) String

func (o ExecuteUnblockIpRequest) String() string

type ExecuteUnblockIpRequestBody

type ExecuteUnblockIpRequestBody struct {

	// ip地址
	Ip string `json:"ip"`

	// 用于查询IP的封堵时间
	BlockingTime *int64 `json:"blocking_time,omitempty"`
}

func (ExecuteUnblockIpRequestBody) String

type ExecuteUnblockIpResponse

type ExecuteUnblockIpResponse struct {

	// 业务错误码
	ErrorCode *string `json:"error_code,omitempty"`

	// 描述信息
	Message        *string `json:"message,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ExecuteUnblockIpResponse Response Object

func (ExecuteUnblockIpResponse) String

func (o ExecuteUnblockIpResponse) String() string

type HostBody added in v0.1.75

type HostBody struct {

	// 域名
	DomainName string `json:"domain_name"`

	// 企业项目id,与接入的高防实例所属企业项目保持一致。可在华为云EPS服务中查看企业项目id,default企业项目id为\"0\"。
	EnterpriseProjectId string `json:"enterprise_project_id"`

	// 高防实例ip列表。多个高防实例ip必须属于同一企业项目。
	Vips []string `json:"vips"`

	// 源站类型。 0 - 源站IP, 1 - 源站域名。
	RealServerType int32 `json:"real_server_type"`

	// HTTP端口,与port_https不能同时为空。DDoS高防支持的HTTP端口可在控制台查看。
	PortHttp *[]int32 `json:"port_http,omitempty"`

	// HTTPS端口,与port_http不能同时为空。DDoS高防支持的HTTPS端口可在控制台查看。
	PortHttps *[]int32 `json:"port_https,omitempty"`

	// 源站ip/源站域名
	RealServer string `json:"real_server"`
}

func (HostBody) String added in v0.1.75

func (o HostBody) String() string

type InstanceInfo

type InstanceInfo struct {

	// 实例ID
	InstanceId *string `json:"instance_id,omitempty"`

	// 实例名
	InstanceName *string `json:"instance_name,omitempty"`

	// 实例IP
	Ips *[]InstanceIpInfo `json:"ips,omitempty"`

	// 实例过期时间
	ExpireTime *int64 `json:"expire_time,omitempty"`

	// 业务带宽
	ServiceBandwidth *int32 `json:"service_bandwidth,omitempty"`

	// 实例状态
	InstanceStatus *int32 `json:"instance_status,omitempty"`

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

func (InstanceInfo) String

func (o InstanceInfo) String() string

type InstanceIpInfo

type InstanceIpInfo struct {

	// IP ID
	IpId *string `json:"ip_id,omitempty"`

	// IP
	Ip *string `json:"ip,omitempty"`

	// 保底带宽
	BasicBandwidth *int32 `json:"basic_bandwidth,omitempty"`

	// 弹性带宽
	ElasticBandwidth *int32 `json:"elastic_bandwidth,omitempty"`

	// IP状态
	IpStatus *int32 `json:"ip_status,omitempty"`
}

func (InstanceIpInfo) String

func (o InstanceIpInfo) String() string

type IpBindingBody

type IpBindingBody struct {

	// 防护包id
	PackageId string `json:"package_id"`

	// 防护ip的id列表
	IdList []string `json:"id_list"`
}

IpBindingBody ip绑定请求体

func (IpBindingBody) String

func (o IpBindingBody) String() string

type IpBindingV3Body added in v0.1.117

type IpBindingV3Body struct {

	// 防护ip列表
	IpList []string `json:"ip_list"`
}

IpBindingV3Body ip绑定请求体

func (IpBindingV3Body) String added in v0.1.117

func (o IpBindingV3Body) String() string

type IpStatusDetail

type IpStatusDetail struct {

	// 封堵时间
	BlockTime int64 `json:"block_time"`

	// 解封时间
	UnblockTime int64 `json:"unblock_time"`
}

IpStatusDetail 封堵信息

func (IpStatusDetail) String

func (o IpStatusDetail) String() string

type ListBlockIpsRequest

type ListBlockIpsRequest struct {

	// 租户id
	DomainId string `json:"domain_id"`
}

ListBlockIpsRequest Request Object

func (ListBlockIpsRequest) String

func (o ListBlockIpsRequest) String() string

type ListBlockIpsResponse

type ListBlockIpsResponse struct {

	// 封堵列表响应体
	BlockingList *[]BlockListBlockingList `json:"blocking_list,omitempty"`

	// 总数
	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListBlockIpsResponse Response Object

func (ListBlockIpsResponse) String

func (o ListBlockIpsResponse) String() string

type ListDomainRequest

type ListDomainRequest struct {
}

ListDomainRequest Request Object

func (ListDomainRequest) String

func (o ListDomainRequest) String() string

type ListDomainResponse

type ListDomainResponse struct {

	// 域名总数
	Count *int32 `json:"count,omitempty"`

	// 域名列表
	Items          *[]DomainInfo `json:"items,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ListDomainResponse Response Object

func (ListDomainResponse) String

func (o ListDomainResponse) String() string

type ListInstanceIdRequest

type ListInstanceIdRequest struct {

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

ListInstanceIdRequest Request Object

func (ListInstanceIdRequest) String

func (o ListInstanceIdRequest) String() string

type ListInstanceIdResponse

type ListInstanceIdResponse struct {

	// 实例ID列表
	InstanceIds    *[]string `json:"instance_ids,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListInstanceIdResponse Response Object

func (ListInstanceIdResponse) String

func (o ListInstanceIdResponse) String() string

type ListInstanceIpRuleRequest

type ListInstanceIpRuleRequest struct {

	// 实例Id
	InstanceId string `json:"instance_id"`

	// 单个 IP
	Ip string `json:"ip"`
}

ListInstanceIpRuleRequest Request Object

func (ListInstanceIpRuleRequest) String

func (o ListInstanceIpRuleRequest) String() string

type ListInstanceIpRuleResponse

type ListInstanceIpRuleResponse struct {

	// 转发规则总数
	Total *int32 `json:"total,omitempty"`

	// 转发规则列表
	Rules          *[]TransferRuleInfo `json:"rules,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

ListInstanceIpRuleResponse Response Object

func (ListInstanceIpRuleResponse) String

type ListInstanceRequest

type ListInstanceRequest struct {
}

ListInstanceRequest Request Object

func (ListInstanceRequest) String

func (o ListInstanceRequest) String() string

type ListInstanceResponse

type ListInstanceResponse struct {

	// 实例总数
	Count *int32 `json:"count,omitempty"`

	// 实例
	Items          *[]InstanceInfo `json:"items,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ListInstanceResponse Response Object

func (ListInstanceResponse) String

func (o ListInstanceResponse) String() string

type ListPackageRequest

type ListPackageRequest struct {
}

ListPackageRequest Request Object

func (ListPackageRequest) String

func (o ListPackageRequest) String() string

type ListPackageResponse

type ListPackageResponse struct {

	// 总数
	Total *int32 `json:"total,omitempty"`

	// 数据
	Items          *[]PackageResponse `json:"items,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ListPackageResponse Response Object

func (ListPackageResponse) String

func (o ListPackageResponse) String() string

type ListPeakRequest

type ListPeakRequest struct {

	// 实例Id
	InstanceId string `json:"instance_id"`

	// 单个 IP
	Ip string `json:"ip"`

	// 开始时间,毫秒时间戳
	StartTime string `json:"start_time"`

	// 结束时间,毫秒时间戳
	EndTime string `json:"end_time"`
}

ListPeakRequest Request Object

func (ListPeakRequest) String

func (o ListPeakRequest) String() string

type ListPeakResponse

type ListPeakResponse struct {

	// 攻击峰值
	AttackKbpsPeak float32 `json:"attack_kbps_peak,omitempty"`

	// 流量峰值
	InKbpsPeak float32 `json:"in_kbps_peak,omitempty"`

	// 攻击次数
	DdosCount float32 `json:"ddos_count,omitempty"`

	// 攻击峰值发生时间点
	Timestamp float32 `json:"timestamp,omitempty"`

	// 高防IP
	Vip            *string `json:"vip,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListPeakResponse Response Object

func (ListPeakResponse) String

func (o ListPeakResponse) String() string

type ListPolicyRequest

type ListPolicyRequest struct {

	// 开始查询的偏移量,默认值:0
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的条目数量,默认值:2000
	Limit *int32 `json:"limit,omitempty"`

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

ListPolicyRequest Request Object

func (ListPolicyRequest) String

func (o ListPolicyRequest) String() string

type ListPolicyResponse

type ListPolicyResponse struct {

	// 总数
	Total *int32 `json:"total,omitempty"`

	// 策略列表
	Items          *[]PolicyResponse `json:"items,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ListPolicyResponse Response Object

func (ListPolicyResponse) String

func (o ListPolicyResponse) String() string

type ListProtectedIpRequest

type ListProtectedIpRequest struct {

	// 开始查询的偏移量,默认值:0
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的条目数量,默认值:2000
	Limit *int32 `json:"limit,omitempty"`

	// 防护包id
	PackageId *string `json:"package_id,omitempty"`

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

	// 防护ip
	Ip *string `json:"ip,omitempty"`

	// 本地标签
	Tag *string `json:"tag,omitempty"`
}

ListProtectedIpRequest Request Object

func (ListProtectedIpRequest) String

func (o ListProtectedIpRequest) String() string

type ListProtectedIpResponse

type ListProtectedIpResponse struct {

	// 总数
	Total *int32 `json:"total,omitempty"`

	// 防护ip列表
	Items          *[]ProtectedIpResponse `json:"items,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ListProtectedIpResponse Response Object

func (ListProtectedIpResponse) String

func (o ListProtectedIpResponse) String() string

type ListSourceIpsRequest added in v0.1.75

type ListSourceIpsRequest struct {
}

ListSourceIpsRequest Request Object

func (ListSourceIpsRequest) String added in v0.1.75

func (o ListSourceIpsRequest) String() string

type ListSourceIpsResponse added in v0.1.75

type ListSourceIpsResponse struct {

	// 查询高防回源IP段列表
	Ips            *[]string `json:"ips,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListSourceIpsResponse Response Object

func (ListSourceIpsResponse) String added in v0.1.75

func (o ListSourceIpsResponse) String() string

type ListUnblockQuotaStatisticsRequest

type ListUnblockQuotaStatisticsRequest struct {

	// 租户id
	DomainId string `json:"domain_id"`
}

ListUnblockQuotaStatisticsRequest Request Object

func (ListUnblockQuotaStatisticsRequest) String

type ListUnblockQuotaStatisticsResponse

type ListUnblockQuotaStatisticsResponse struct {

	// 用户类型:common_user , native_protection_user
	Type *ListUnblockQuotaStatisticsResponseType `json:"type,omitempty"`

	// 解封总配额
	TotalUnblockingQuota *int32 `json:"total_unblocking_quota,omitempty"`

	// 剩余解封配额
	RemainingUnblockingQuota *int32 `json:"remaining_unblocking_quota,omitempty"`

	// 今日解封配额
	UnblockingQuotaToday *int32 `json:"unblocking_quota_today,omitempty"`

	// 今日剩余解封配额
	RemainingUnblockingQuotaToday *int32 `json:"remaining_unblocking_quota_today,omitempty"`
	HttpStatusCode                int    `json:"-"`
}

ListUnblockQuotaStatisticsResponse Response Object

func (ListUnblockQuotaStatisticsResponse) String

type ListUnblockQuotaStatisticsResponseType

type ListUnblockQuotaStatisticsResponseType struct {
	// contains filtered or unexported fields
}

func (ListUnblockQuotaStatisticsResponseType) MarshalJSON

func (c ListUnblockQuotaStatisticsResponseType) MarshalJSON() ([]byte, error)

func (*ListUnblockQuotaStatisticsResponseType) UnmarshalJSON

func (c *ListUnblockQuotaStatisticsResponseType) UnmarshalJSON(b []byte) error

func (ListUnblockQuotaStatisticsResponseType) Value

type ListUnblockQuotaStatisticsResponseTypeEnum

type ListUnblockQuotaStatisticsResponseTypeEnum struct {
	COMMON_USER            ListUnblockQuotaStatisticsResponseType
	NATIVE_PROTECTION_USER ListUnblockQuotaStatisticsResponseType
}

func GetListUnblockQuotaStatisticsResponseTypeEnum

func GetListUnblockQuotaStatisticsResponseTypeEnum() ListUnblockQuotaStatisticsResponseTypeEnum

type ListUnboundProtectedIpRequest

type ListUnboundProtectedIpRequest struct {

	// 防护包id
	PackageId string `json:"package_id"`

	// 开始查询的偏移量,默认值:0
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的条目数量,默认值:2000
	Limit *int32 `json:"limit,omitempty"`
}

ListUnboundProtectedIpRequest Request Object

func (ListUnboundProtectedIpRequest) String

type ListUnboundProtectedIpResponse

type ListUnboundProtectedIpResponse struct {

	// 总数
	Total *int32 `json:"total,omitempty"`

	// 防护ip列表
	Ips            *[]ProtectedIpResponse `json:"ips,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ListUnboundProtectedIpResponse Response Object

func (ListUnboundProtectedIpResponse) String

type ModifyDomainWebSwitchRequest added in v0.1.75

type ModifyDomainWebSwitchRequest struct {
	Body *CadDomainSwitchRequest `json:"body,omitempty"`
}

ModifyDomainWebSwitchRequest Request Object

func (ModifyDomainWebSwitchRequest) String added in v0.1.75

type ModifyDomainWebSwitchResponse added in v0.1.75

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

ModifyDomainWebSwitchResponse Response Object

func (ModifyDomainWebSwitchResponse) String added in v0.1.75

type PackageResponse

type PackageResponse struct {

	// 防护包id
	PackageId string `json:"package_id"`

	// 防护包名
	PackageName string `json:"package_name"`

	// 资源所属region
	RegionId string `json:"region_id"`

	// 防护类型
	ProtectionType int32 `json:"protection_type"`

	// 防护包类型。cnad_pro:专业版;cnad_ip:标准版;cnad_ep:铂金版;cnad_full_high:全力防高级版;cnad_vic:按需版;cnad_intl_ep:国际站铂金版
	InstanceType PackageResponseInstanceType `json:"instance_type"`

	// 资源id
	ResourceId string `json:"resource_id"`

	// 倒计时相关信息
	CountDownCode *string `json:"count_down_code,omitempty"`

	// 倒计时相关信息
	CountDownInfos *string `json:"count_down_infos,omitempty"`

	// 倒计时相关信息
	CountDownTips *string `json:"count_down_tips,omitempty"`

	// 订单id
	OrderId *string `json:"order_id,omitempty"`

	// 续费用的id
	SubscriptionId *string `json:"subscription_id,omitempty"`

	// ip数
	IpNum *int32 `json:"ip_num,omitempty"`

	// 当前IP数
	IpNumNow *int32 `json:"ip_num_now,omitempty"`

	// 当前防护次数
	ProtectionNumNow *int32 `json:"protection_num_now,omitempty"`

	// 防护次数,9999为无限次
	ProtectionNum *int32 `json:"protection_num,omitempty"`

	// 保底带宽
	BasicBandwidth *int32 `json:"basic_bandwidth,omitempty"`

	// 弹性带宽
	ElasticBandwidth *int32 `json:"elastic_bandwidth,omitempty"`

	// 业务带宽
	ServiceBandwidth *int32 `json:"service_bandwidth,omitempty"`

	// 回源带宽
	CleanBandwidth *int32 `json:"clean_bandwidth,omitempty"`

	// 策略模板数
	PolicyNum int32 `json:"policy_num"`

	// 是否旧防护包(旧防护包不支持升级规格),默认不传为否
	IsOld *bool `json:"is_old,omitempty"`

	// 专业版铂金版合并之后购买的专业版和铂金版均标识为true
	NewFlag *bool `json:"new_flag,omitempty"`

	// 创建时间
	CreateTime int64 `json:"create_time"`
}

PackageResponse 包列表响应体

func (PackageResponse) String

func (o PackageResponse) String() string

type PackageResponseInstanceType

type PackageResponseInstanceType struct {
	// contains filtered or unexported fields
}

func (PackageResponseInstanceType) MarshalJSON

func (c PackageResponseInstanceType) MarshalJSON() ([]byte, error)

func (*PackageResponseInstanceType) UnmarshalJSON

func (c *PackageResponseInstanceType) UnmarshalJSON(b []byte) error

func (PackageResponseInstanceType) Value

type PolicyResponse

type PolicyResponse struct {

	// id
	Id string `json:"id"`

	// 防护包id
	PackageId string `json:"package_id"`

	// 防护包名
	PackageName string `json:"package_name"`

	// 策略名
	Name string `json:"name"`

	// 描述
	Description string `json:"description"`

	// 所属region的id
	Region string `json:"region"`

	// 清洗阈值
	CleanThreshold int32 `json:"clean_threshold"`

	// 防护ip数
	NumProtectedIp int32 `json:"num_protected_ip"`
}

PolicyResponse 策略响应

func (PolicyResponse) String

func (o PolicyResponse) String() string

type PopPolicy

type PopPolicy struct {

	// 位置封禁列表
	BlockLocation []string `json:"block_location"`

	// 协议封禁列表
	BlockProtocol []string `json:"block_protocol"`

	BwList *Bw `json:"bw_list"`

	// 是否开启连接防护
	ConnectionProtection bool `json:"connection_protection"`

	// 连接防护列表
	ConnectionProtectionList []string `json:"connection_protection_list"`

	// 指纹数
	FingerprintCount int32 `json:"fingerprint_count"`

	// 端口封禁数
	PortBlockCount int32 `json:"port_block_count"`

	// 水印数
	WatermarkCount int32 `json:"watermark_count"`

	// 是否存在流量
	IfExistTraffic bool `json:"if_exist_traffic"`

	// 固定值ALL
	Pop PopPolicyPop `json:"pop"`
}

PopPolicy 策略阈值详情

func (PopPolicy) String

func (o PopPolicy) String() string

type PopPolicyPop

type PopPolicyPop struct {
	// contains filtered or unexported fields
}

func (PopPolicyPop) MarshalJSON

func (c PopPolicyPop) MarshalJSON() ([]byte, error)

func (*PopPolicyPop) UnmarshalJSON

func (c *PopPolicyPop) UnmarshalJSON(b []byte) error

func (PopPolicyPop) Value

func (c PopPolicyPop) Value() string

type PopPolicyPopEnum

type PopPolicyPopEnum struct {
	ALL PopPolicyPop
}

func GetPopPolicyPopEnum

func GetPopPolicyPopEnum() PopPolicyPopEnum

type ProtectedIpResponse

type ProtectedIpResponse struct {

	// 防护IP的Id
	Id string `json:"id"`

	// 防护IP
	Ip string `json:"ip"`

	// 类型。VPN:VPN;NAT:NAT;VIP:VIP;CCI:CCI;EIP:弹性公网IP;ELB:弹性负载均衡;REROUTING_IP:REROUTING_IP;SubEni:SubEni;NetInterFace:NetInterFace;
	Type ProtectedIpResponseType `json:"type"`

	// 名字
	Name *string `json:"name,omitempty"`

	// 状态:0 - 正常, 1 - 清洗中, 2 - 黑洞中
	Status int32 `json:"status"`

	StatusDetail *IpStatusDetail `json:"status_detail,omitempty"`

	// 策略名
	PolicyName string `json:"policy_name"`

	// 所属region
	Region string `json:"region"`

	// 防护包id
	PackageId string `json:"package_id"`

	// 防护包名
	PackageName string `json:"package_name"`

	// TMS标签
	Tags *string `json:"tags,omitempty"`

	// 本地标签
	Tag *string `json:"tag,omitempty"`

	// 默认false,表示是否转售版的IP,不需要展示策略和报表
	IsResale bool `json:"is_resale"`

	// package_version。cnad_pro:专业版;cnad_ip:标准版;cnad_ep:铂金版;cnad_full_high:全力防高级版;cnad_vic:按需版;cnad_intl_ep:国际站铂金版
	PackageVersion ProtectedIpResponsePackageVersion `json:"package_version"`
}

ProtectedIpResponse 防护ip列表

func (ProtectedIpResponse) String

func (o ProtectedIpResponse) String() string

type ProtectedIpResponsePackageVersion

type ProtectedIpResponsePackageVersion struct {
	// contains filtered or unexported fields
}

func (ProtectedIpResponsePackageVersion) MarshalJSON

func (c ProtectedIpResponsePackageVersion) MarshalJSON() ([]byte, error)

func (*ProtectedIpResponsePackageVersion) UnmarshalJSON

func (c *ProtectedIpResponsePackageVersion) UnmarshalJSON(b []byte) error

func (ProtectedIpResponsePackageVersion) Value

type ProtectedIpResponseType

type ProtectedIpResponseType struct {
	// contains filtered or unexported fields
}

func (ProtectedIpResponseType) MarshalJSON

func (c ProtectedIpResponseType) MarshalJSON() ([]byte, error)

func (*ProtectedIpResponseType) UnmarshalJSON

func (c *ProtectedIpResponseType) UnmarshalJSON(b []byte) error

func (ProtectedIpResponseType) Value

func (c ProtectedIpResponseType) Value() string

type SetCertForDomainRequest added in v0.1.79

type SetCertForDomainRequest struct {
	Body *CertificateBody `json:"body,omitempty"`
}

SetCertForDomainRequest Request Object

func (SetCertForDomainRequest) String added in v0.1.79

func (o SetCertForDomainRequest) String() string

type SetCertForDomainResponse added in v0.1.79

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

SetCertForDomainResponse Response Object

func (SetCertForDomainResponse) String added in v0.1.79

func (o SetCertForDomainResponse) String() string

type ShowAlarmConfigRequest

type ShowAlarmConfigRequest struct {
}

ShowAlarmConfigRequest Request Object

func (ShowAlarmConfigRequest) String

func (o ShowAlarmConfigRequest) String() string

type ShowAlarmConfigResponse

type ShowAlarmConfigResponse struct {

	// SMN的topic urn
	TopicUrn       *string `json:"topic_urn,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowAlarmConfigResponse Response Object

func (ShowAlarmConfigResponse) String

func (o ShowAlarmConfigResponse) String() string

type ShowBlockStatisticsRequest

type ShowBlockStatisticsRequest struct {

	// 租户id
	DomainId string `json:"domain_id"`
}

ShowBlockStatisticsRequest Request Object

func (ShowBlockStatisticsRequest) String

type ShowBlockStatisticsResponse

type ShowBlockStatisticsResponse struct {

	// 总解封次数
	TotalUnblockingTimes *int32 `json:"total_unblocking_times,omitempty"`

	// 人工解封次数
	ManualUnblockingTimes *int32 `json:"manual_unblocking_times,omitempty"`

	// 自动解封次数
	AutomaticUnblockingTimes *int32 `json:"automatic_unblocking_times,omitempty"`

	// 当前封堵Ip数
	CurrentBlockedIpNumbers *int32 `json:"current_blocked_ip_numbers,omitempty"`
	HttpStatusCode          int    `json:"-"`
}

ShowBlockStatisticsResponse Response Object

func (ShowBlockStatisticsResponse) String

type ShowPolicyRequest

type ShowPolicyRequest struct {

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

ShowPolicyRequest Request Object

func (ShowPolicyRequest) String

func (o ShowPolicyRequest) String() string

type ShowPolicyResponse

type ShowPolicyResponse struct {

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

	// 防护包id
	PackageId *string `json:"package_id,omitempty"`

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

	// 清洗阈值
	CleanThreshold *int32 `json:"clean_threshold,omitempty"`

	PopPolicy      *PopPolicy `json:"pop_policy,omitempty"`
	HttpStatusCode int        `json:"-"`
}

ShowPolicyResponse Response Object

func (ShowPolicyResponse) String

func (o ShowPolicyResponse) String() string

type ShowUnblockRecordRequest

type ShowUnblockRecordRequest struct {

	// 租户id
	DomainId string `json:"domain_id"`

	// 开始时间
	StartTime int64 `json:"start_time"`

	// 结束时间
	EndTime int64 `json:"end_time"`
}

ShowUnblockRecordRequest Request Object

func (ShowUnblockRecordRequest) String

func (o ShowUnblockRecordRequest) String() string

type ShowUnblockRecordResponse

type ShowUnblockRecordResponse struct {

	// 解封记录
	UnblockRecord *[]UnblockRecordResponseUnblockRecord `json:"unblock_record,omitempty"`

	// 总数
	Total *int32 `json:"total,omitempty"`

	// 租户id
	DomainId       *string `json:"domain_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowUnblockRecordResponse Response Object

func (ShowUnblockRecordResponse) String

func (o ShowUnblockRecordResponse) String() string

type TransferRuleBody

type TransferRuleBody struct {

	// 转发协议,tcp或udp
	ForwardProtocol *string `json:"forward_protocol,omitempty"`

	// 转发端口
	ForwardPort *int32 `json:"forward_port,omitempty"`

	// 源站端口
	SourcePort *int32 `json:"source_port,omitempty"`

	// 源站IP,多个IP用逗号隔开,限制20个IP
	SourceIp *string `json:"source_ip,omitempty"`
}

func (TransferRuleBody) String

func (o TransferRuleBody) String() string

type TransferRuleInfo

type TransferRuleInfo struct {

	// 转发规则名ID
	RuleId *string `json:"rule_id,omitempty"`

	// 转发协议,tcp或udp
	ForwardProtocol *string `json:"forward_protocol,omitempty"`

	// 转发端口
	ForwardPort *int32 `json:"forward_port,omitempty"`

	// 源站端口
	SourcePort *int32 `json:"source_port,omitempty"`

	// LVS转发规则
	LbMethod *string `json:"lb_method,omitempty"`

	// 源站IP,多个IP用逗号隔开,限制20个IP
	SourceIp *string `json:"source_ip,omitempty"`

	// 源站状态 1 正常,2 异常
	Status *int32 `json:"status,omitempty"`
}

func (TransferRuleInfo) String

func (o TransferRuleInfo) String() string

type UnblockRecordResponseUnblockRecord

type UnblockRecordResponseUnblockRecord struct {

	// ip地址
	Ip *string `json:"ip,omitempty"`

	// 执行者
	Executor *string `json:"executor,omitempty"`

	// 封堵id
	BlockId *int64 `json:"block_id,omitempty"`

	// 封堵时间
	BlockingTime *int64 `json:"blocking_time,omitempty"`

	// 解封时间
	UnblockingTime *int64 `json:"unblocking_time,omitempty"`

	// 解封类型。manual:人工;automatic:自动
	UnblockType *UnblockRecordResponseUnblockRecordUnblockType `json:"unblock_type,omitempty"`

	// 状态。unblocking:解封中;success:成功;failed:失败
	Status *UnblockRecordResponseUnblockRecordStatus `json:"status,omitempty"`

	// 时间
	SortTime *int64 `json:"sort_time,omitempty"`
}

func (UnblockRecordResponseUnblockRecord) String

type UnblockRecordResponseUnblockRecordStatus

type UnblockRecordResponseUnblockRecordStatus struct {
	// contains filtered or unexported fields
}

func (UnblockRecordResponseUnblockRecordStatus) MarshalJSON

func (*UnblockRecordResponseUnblockRecordStatus) UnmarshalJSON

func (c *UnblockRecordResponseUnblockRecordStatus) UnmarshalJSON(b []byte) error

func (UnblockRecordResponseUnblockRecordStatus) Value

type UnblockRecordResponseUnblockRecordUnblockType

type UnblockRecordResponseUnblockRecordUnblockType struct {
	// contains filtered or unexported fields
}

func (UnblockRecordResponseUnblockRecordUnblockType) MarshalJSON

func (*UnblockRecordResponseUnblockRecordUnblockType) UnmarshalJSON

func (UnblockRecordResponseUnblockRecordUnblockType) Value

type UpdateAlarmConfigRequest

type UpdateAlarmConfigRequest struct {
	Body *AlarmBody `json:"body,omitempty"`
}

UpdateAlarmConfigRequest Request Object

func (UpdateAlarmConfigRequest) String

func (o UpdateAlarmConfigRequest) String() string

type UpdateAlarmConfigResponse

type UpdateAlarmConfigResponse struct {

	// SMN的topic urn
	TopicUrn       *string `json:"topic_urn,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateAlarmConfigResponse Response Object

func (UpdateAlarmConfigResponse) String

func (o UpdateAlarmConfigResponse) String() string

type UpdateDomainRequest

type UpdateDomainRequest struct {

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

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

UpdateDomainRequest Request Object

func (UpdateDomainRequest) String

func (o UpdateDomainRequest) String() string

type UpdateDomainResponse

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

UpdateDomainResponse Response Object

func (UpdateDomainResponse) String

func (o UpdateDomainResponse) String() string

type UpdateInstanceIpRuleRequest

type UpdateInstanceIpRuleRequest struct {

	// 实例Id
	InstanceId string `json:"instance_id"`

	// 单个 IP
	Ip string `json:"ip"`

	// 规则ID
	RuleId string `json:"rule_id"`

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

UpdateInstanceIpRuleRequest Request Object

func (UpdateInstanceIpRuleRequest) String

type UpdateInstanceIpRuleResponse

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

UpdateInstanceIpRuleResponse Response Object

func (UpdateInstanceIpRuleResponse) String

type UpdatePackageIpRequest

type UpdatePackageIpRequest struct {

	// 防护包id
	PackageId string `json:"package_id"`

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

UpdatePackageIpRequest Request Object

func (UpdatePackageIpRequest) String

func (o UpdatePackageIpRequest) String() string

type UpdatePackageIpRequestBody

type UpdatePackageIpRequestBody struct {

	// 全量防护ip列表
	ProtectedIpList []UpdateProtectedIpInPolicyBody `json:"protected_ip_list"`
}

UpdatePackageIpRequestBody 更新全量防护对象的请求体

func (UpdatePackageIpRequestBody) String

type UpdatePackageIpResponse

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

UpdatePackageIpResponse Response Object

func (UpdatePackageIpResponse) String

func (o UpdatePackageIpResponse) String() string

type UpdatePackageNameRequest

type UpdatePackageNameRequest struct {

	// 防护包id
	PackageId string `json:"package_id"`

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

UpdatePackageNameRequest Request Object

func (UpdatePackageNameRequest) String

func (o UpdatePackageNameRequest) String() string

type UpdatePackageNameRequestBody

type UpdatePackageNameRequestBody struct {

	// 名字
	Name string `json:"name"`
}

UpdatePackageNameRequestBody 更新防护包名的请求体

func (UpdatePackageNameRequestBody) String

type UpdatePackageNameResponse

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

UpdatePackageNameResponse Response Object

func (UpdatePackageNameResponse) String

func (o UpdatePackageNameResponse) String() string

type UpdatePolicyRequest

type UpdatePolicyRequest struct {

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

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

UpdatePolicyRequest Request Object

func (UpdatePolicyRequest) String

func (o UpdatePolicyRequest) String() string

type UpdatePolicyRequestBody

type UpdatePolicyRequestBody struct {

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

	// 清洗阈值
	Threshold *int32 `json:"threshold,omitempty"`

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

	// udp协议封禁。block:封禁,unblock:不封禁
	Udp *UpdatePolicyRequestBodyUdp `json:"udp,omitempty"`
}

UpdatePolicyRequestBody 更新策略的请求体

func (UpdatePolicyRequestBody) String

func (o UpdatePolicyRequestBody) String() string

type UpdatePolicyRequestBodyUdp

type UpdatePolicyRequestBodyUdp struct {
	// contains filtered or unexported fields
}

func (UpdatePolicyRequestBodyUdp) MarshalJSON

func (c UpdatePolicyRequestBodyUdp) MarshalJSON() ([]byte, error)

func (*UpdatePolicyRequestBodyUdp) UnmarshalJSON

func (c *UpdatePolicyRequestBodyUdp) UnmarshalJSON(b []byte) error

func (UpdatePolicyRequestBodyUdp) Value

type UpdatePolicyRequestBodyUdpEnum

type UpdatePolicyRequestBodyUdpEnum struct {
	BLOCK   UpdatePolicyRequestBodyUdp
	UNBLOCK UpdatePolicyRequestBodyUdp
}

func GetUpdatePolicyRequestBodyUdpEnum

func GetUpdatePolicyRequestBodyUdpEnum() UpdatePolicyRequestBodyUdpEnum

type UpdatePolicyResponse

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

UpdatePolicyResponse Response Object

func (UpdatePolicyResponse) String

func (o UpdatePolicyResponse) String() string

type UpdateProtectedIpBody

type UpdateProtectedIpBody struct {

	// 防护ip的id
	Id string `json:"id"`

	// 本地标签
	Tag string `json:"tag"`
}

UpdateProtectedIpBody 更新防护ip tag请求体

func (UpdateProtectedIpBody) String

func (o UpdateProtectedIpBody) String() string

type UpdateProtectedIpInPolicyBody

type UpdateProtectedIpInPolicyBody struct {

	// 防护ip的id
	Id string `json:"id"`

	// 防护ip
	Ip string `json:"ip"`

	// 类型。VPN:VPN;NAT:NAT;VIP:VIP;CCI:CCI;EIP:弹性公网IP;ELB:弹性负载均衡;REROUTING_IP:REROUTING_IP;SubEni:SubEni;NetInterFace:NetInterFace;
	Type UpdateProtectedIpInPolicyBodyType `json:"type"`

	// 名字
	Name *string `json:"name,omitempty"`
}

UpdateProtectedIpInPolicyBody 更新全量防护对象的请求体

func (UpdateProtectedIpInPolicyBody) String

type UpdateProtectedIpInPolicyBodyType

type UpdateProtectedIpInPolicyBodyType struct {
	// contains filtered or unexported fields
}

func (UpdateProtectedIpInPolicyBodyType) MarshalJSON

func (c UpdateProtectedIpInPolicyBodyType) MarshalJSON() ([]byte, error)

func (*UpdateProtectedIpInPolicyBodyType) UnmarshalJSON

func (c *UpdateProtectedIpInPolicyBodyType) UnmarshalJSON(b []byte) error

func (UpdateProtectedIpInPolicyBodyType) Value

type UpdateTagForProtectedIpRequest

type UpdateTagForProtectedIpRequest struct {
	Body *UpdateProtectedIpBody `json:"body,omitempty"`
}

UpdateTagForProtectedIpRequest Request Object

func (UpdateTagForProtectedIpRequest) String

type UpdateTagForProtectedIpResponse

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

UpdateTagForProtectedIpResponse Response Object

func (UpdateTagForProtectedIpResponse) String

Source Files

Jump to

Keyboard shortcuts

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