model

package
v0.1.51 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackSources added in v0.1.40

type BackSources struct {

	// 源站类型, ipaddr:源站IP,domain:源站域名,obs_bucket:OBS桶域名。
	SourcesType string `json:"sources_type"`

	// 源站IP或者域名。
	IpOrDomain string `json:"ip_or_domain"`

	// obs桶类型, “private”: 私有桶, “public”: 公有桶。
	ObsBucketType *string `json:"obs_bucket_type,omitempty"`

	// HTTP端口,取值范围:1-65535。
	HttpPort *int32 `json:"http_port,omitempty"`

	// HTTPS端口,取值范围:1-65535。
	HttpsPort *int32 `json:"https_port,omitempty"`
}

BackSources 高级回源信息源站配置。

func (BackSources) String added in v0.1.40

func (o BackSources) String() string

type BatchCopyConfigs added in v0.1.12

type BatchCopyConfigs struct {

	// 目标域名列表,多个域名以逗号(半角)分隔,域名数最大10个。
	TargetDomain string `json:"target_domain"`

	// 原域名。
	SourceDomain string `json:"source_domain"`

	// 需要复制的域名配置项,多个配置项以逗号(半角)分隔,支持复制的配置项: - originRequestHeader(回源请求头) - httpResponseHeader(HTTP header配置) - cacheUrlParamsConfig(URL参数) - urlAuth(URL鉴权配置) - userAgentBlackAndWhiteList(User-Agent黑白名单) - ipv6Accelerate(IPv6开关) - rangeStatus(Range回源) - cacheRules(缓存规则) - followOrigin(缓存遵循源站) - privateBucketRetrieval(私有桶回源) - follow302Status(回源跟随) - sources(源站配置) - compress(智能压缩) - referer(防盗链) - ipBlackAndWhiteList(IP黑白名单)
	ConfigList []string `json:"config_list"`
}

BatchCopyConfigs 需要复制的原域名配置。

func (BatchCopyConfigs) String added in v0.1.12

func (o BatchCopyConfigs) String() string

type BatchCopyDRequestBody added in v0.1.12

type BatchCopyDRequestBody struct {
	Configs *BatchCopyConfigs `json:"configs"`
}

BatchCopyDRequestBody 域名复制请求体。

func (BatchCopyDRequestBody) String added in v0.1.12

func (o BatchCopyDRequestBody) String() string

type BatchCopyDomainRequest added in v0.1.12

type BatchCopyDomainRequest struct {
	Body *BatchCopyDRequestBody `json:"body,omitempty"`
}

BatchCopyDomainRequest Request Object

func (BatchCopyDomainRequest) String added in v0.1.12

func (o BatchCopyDomainRequest) String() string

type BatchCopyDomainResponse added in v0.1.12

type BatchCopyDomainResponse struct {

	// 复制配置结果。
	Result         *[]BatchCopyResultVo `json:"result,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

BatchCopyDomainResponse Response Object

func (BatchCopyDomainResponse) String added in v0.1.12

func (o BatchCopyDomainResponse) String() string

type BatchCopyErrorRsp added in v0.1.12

type BatchCopyErrorRsp struct {
	Error *BatchCopyErrorRspError `json:"error,omitempty"`
}

BatchCopyErrorRsp 原域名所有配置

func (BatchCopyErrorRsp) String added in v0.1.12

func (o BatchCopyErrorRsp) String() string

type BatchCopyErrorRspError added in v0.1.12

type BatchCopyErrorRspError struct {

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

	// 错误描述
	ErrorMsg *string `json:"error_msg,omitempty"`
}

BatchCopyErrorRspError 错误体

func (BatchCopyErrorRspError) String added in v0.1.12

func (o BatchCopyErrorRspError) String() string

type BatchCopyResultVo added in v0.1.12

type BatchCopyResultVo struct {

	// 失败原因,成功时没有该字段
	Reason *string `json:"reason,omitempty"`

	// 批量操作结果。
	Status BatchCopyResultVoStatus `json:"status"`

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

BatchCopyResultVo 成功响应详细内容。

func (BatchCopyResultVo) String added in v0.1.12

func (o BatchCopyResultVo) String() string

type BatchCopyResultVoStatus added in v0.1.12

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

func (BatchCopyResultVoStatus) MarshalJSON added in v0.1.12

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

func (*BatchCopyResultVoStatus) UnmarshalJSON added in v0.1.12

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

func (BatchCopyResultVoStatus) Value added in v0.1.12

func (c BatchCopyResultVoStatus) Value() string

type BatchCopyResultVoStatusEnum added in v0.1.12

type BatchCopyResultVoStatusEnum struct {
	SUCCESS BatchCopyResultVoStatus
	FAIL    BatchCopyResultVoStatus
}

func GetBatchCopyResultVoStatusEnum added in v0.1.12

func GetBatchCopyResultVoStatusEnum() BatchCopyResultVoStatusEnum

type CacheRules added in v0.1.37

type CacheRules struct {

	// 类型,all:匹配所有文件, file_extension:按文件后缀匹配, catalog:按目录匹配, full_path:全路径匹配, home_page:按首页匹配。
	MatchType string `json:"match_type"`

	// 缓存匹配设置, 当match_type为all时,为空。当match_type为file_extension时,为文件后缀,输入首字符为“.”,以“,”进行分隔, 如.jpg,.zip,.exe,并且输入的文 件名后缀总数不超过20个。 当match_type为catalog时,为目录,输入要求以“/”作为首字符, 以“,”进行分隔,如/test/folder01,/test/folder02,并且输入的目录路径总数不超过20个。  当match_type为full_path时,为全路径,输入要求以“/”作为首字符,支持匹配指定目录下的具体文件,或者带通配符“\\*”的文件, 如/test/index.html,/test/\\*.jpg。 当match_type为home_page时,为空。
	MatchValue *string `json:"match_value,omitempty"`

	// 缓存过期时间,最大支持365天。
	Ttl int32 `json:"ttl"`

	// 缓存过期时间单位,s:秒;m:分;h:小时;d:天。
	TtlUnit string `json:"ttl_unit"`

	// 此条缓存规则的优先级, 默认值1,数值越大,优先级越高,取值范围为1-100,优先级不能相同。
	Priority int32 `json:"priority"`

	// 缓存遵循源站开关,on:打开,off:关闭。
	FollowOrigin string `json:"follow_origin"`

	// URL参数, del_params:忽略指定URL参数, reserve_params:保留指定URL参数, ignore_url_params:忽略全部URL参数, full_url:使用完整URL参数。
	UrlParameterType string `json:"url_parameter_type"`

	// URL参数值,最多设置10条,以\",\"分隔。
	UrlParameterValue *string `json:"url_parameter_value,omitempty"`
}

func (CacheRules) String added in v0.1.37

func (o CacheRules) String() string

type CacheUrlParameterFilter added in v0.1.37

type CacheUrlParameterFilter struct {

	// 缓存URL参数操作类型, full_url:缓存所有参数,ignore_url_params:忽略所有参数,del_params:忽略指定URL参数,reserve_params:保留指定URL参数。  >   本接口参数有调整,参数替换如下: >   - del_params替代del_args。 >   - reserve_params替代reserve_args。
	Type *string `json:"type,omitempty"`

	// 参数值,多个参数使用分号分隔。
	Value *string `json:"value,omitempty"`
}

CacheUrlParameterFilter 缓存url参数配置。 > 此参数作为旧参数,将于近期下线,建议使用CacheRules设置URL参数。

func (CacheUrlParameterFilter) String added in v0.1.37

func (o CacheUrlParameterFilter) String() string

type CommonRemoteAuth added in v0.1.40

type CommonRemoteAuth struct {

	// 是否开启远程鉴权(on:开启,off:关闭)。
	RemoteAuthentication string `json:"remote_authentication"`

	RemoteAuthRules *RemoteAuthRuleVo `json:"remote_auth_rules"`
}

CommonRemoteAuth 远程鉴权配置。

func (CommonRemoteAuth) String added in v0.1.40

func (o CommonRemoteAuth) String() string

type Compress added in v0.1.37

type Compress struct {

	// 智能压缩开关(on:开启,off:关闭)。
	Status string `json:"status"`

	// 智能压缩类型(gzip:gzip压缩,brotli:brotli压缩)。
	Type string `json:"type"`

	// 压缩格式,内容总长度不可超过200个字符,  多种格式用“,”分割,每组内容不可超过50个字符, 开启状态下,首次传空时默认值为.js,.html,.css,.xml,.json,.shtml,.htm,否则为上次设置的结果。
	FileType *string `json:"file_type,omitempty"`
}

Compress 智能压缩。

func (Compress) String added in v0.1.37

func (o Compress) String() string

type Configs added in v0.1.37

type Configs struct {

	// 业务类型,web:网站加速,download:文件下载加速,video:点播加速。  > 暂不支持“全站加速”变更为其它业务类型。
	BusinessType *string `json:"business_type,omitempty"`

	// 服务区域,mainland_china:中国大陆,global:全球,outside_mainland_china:中国大陆境外。  > 暂不支持“中国大陆”与“中国大陆境外”互相直接切换。
	ServiceArea *string `json:"service_area,omitempty"`

	// 回源请求头改写 该功能将覆盖原有配置(清空之前的配置),在使用此接口时,请上传全量头部信息。
	OriginRequestHeader *[]OriginRequestHeader `json:"origin_request_header,omitempty"`

	// http header配置 该功能将覆盖原有配置(清空之前的配置),在使用此接口时,请上传全量头部信息。
	HttpResponseHeader *[]HttpResponseHeader `json:"http_response_header,omitempty"`

	UrlAuth *UrlAuth `json:"url_auth,omitempty"`

	Https *HttpPutBody `json:"https,omitempty"`

	// 源站配置。
	Sources *[]SourcesConfig `json:"sources,omitempty"`

	// 回源协议,follow:协议跟随回源,http:HTTP回源(默认),https:https回源。
	OriginProtocol *string `json:"origin_protocol,omitempty"`

	// 回源跟随,on:开启,off:关闭。
	OriginFollow302Status *string `json:"origin_follow302_status,omitempty"`

	// 缓存规则。
	CacheRules *[]CacheRules `json:"cache_rules,omitempty"`

	IpFilter *IpFilter `json:"ip_filter,omitempty"`

	Referer *RefererConfig `json:"referer,omitempty"`

	ForceRedirect *ForceRedirectConfig `json:"force_redirect,omitempty"`

	Compress *Compress `json:"compress,omitempty"`

	CacheUrlParameterFilter *CacheUrlParameterFilter `json:"cache_url_parameter_filter,omitempty"`

	// ipv6设置,1:打开;0:关闭。
	Ipv6Accelerate *int32 `json:"ipv6_accelerate,omitempty"`

	// 状态码缓存时间。
	ErrorCodeCache *[]ErrorCodeCache `json:"error_code_cache,omitempty"`

	// Range回源,即分片回源,开启: on,关闭: off。  > 开启Range回源的前提是您的源站支持Range请求,即HTTP请求头中包含Range字段,否则可能导致回源失败。
	OriginRangeStatus *string `json:"origin_range_status,omitempty"`

	UserAgentFilter *UserAgentFilter `json:"user_agent_filter,omitempty"`

	// 改写回源URL,最多配置20条。
	OriginRequestUrlRewrite *[]OriginRequestUrlRewrite `json:"origin_request_url_rewrite,omitempty"`

	// 高级回源,最多配置20条。
	FlexibleOrigin *[]FlexibleOrigins `json:"flexible_origin,omitempty"`

	// 回源是否校验ETag,on:开启,off:关闭。
	SliceEtagStatus *string `json:"slice_etag_status,omitempty"`

	// 回源超时时间,范围:5-60,单位:秒。
	OriginReceiveTimeout *int32 `json:"origin_receive_timeout,omitempty"`

	RemoteAuth *CommonRemoteAuth `json:"remote_auth,omitempty"`

	Websocket *WebSocketSeek `json:"websocket,omitempty"`

	VideoSeek *VideoSeek `json:"video_seek,omitempty"`

	// 请求限速配置。
	RequestLimitRules *[]RequestLimitRules `json:"request_limit_rules,omitempty"`

	// 自定义错误页面。
	ErrorCodeRedirectRules *[]ErrorCodeRedirectRules `json:"error_code_redirect_rules,omitempty"`
}

Configs 配置项。

func (Configs) String added in v0.1.37

func (o Configs) String() string

type ConfigsGetBody added in v0.1.37

type ConfigsGetBody struct {

	// 业务类型,web:网站加速,download:文件下载加速,video:点播加速,wholesit:全站加速。
	BusinessType *string `json:"business_type,omitempty"`

	// 服务区域,mainland_china:中国大陆,global:全球,outside_mainland_china:中国大陆境外。
	ServiceArea *string `json:"service_area,omitempty"`

	// 回源请求头配置
	OriginRequestHeader *[]OriginRequestHeader `json:"origin_request_header,omitempty"`

	// http header配置
	HttpResponseHeader *[]HttpResponseHeader `json:"http_response_header,omitempty"`

	UrlAuth *UrlAuthGetBody `json:"url_auth,omitempty"`

	Https *HttpGetBody `json:"https,omitempty"`

	// 源站配置。
	Sources *[]SourcesConfig `json:"sources,omitempty"`

	// 回源协议,follow:协议跟随回源,http:HTTP回源(默认),https:https回源。
	OriginProtocol *string `json:"origin_protocol,omitempty"`

	// 回源跟随,on:开启,off:关闭。
	OriginFollow302Status *string `json:"origin_follow302_status,omitempty"`

	// 缓存规则。
	CacheRules *[]CacheRules `json:"cache_rules,omitempty"`

	IpFilter *IpFilter `json:"ip_filter,omitempty"`

	Referer *RefererConfig `json:"referer,omitempty"`

	ForceRedirect *ForceRedirectConfig `json:"force_redirect,omitempty"`

	Compress *Compress `json:"compress,omitempty"`

	CacheUrlParameterFilter *CacheUrlParameterFilter `json:"cache_url_parameter_filter,omitempty"`

	// ipv6设置,1:打开;0:关闭。
	Ipv6Accelerate *int32 `json:"ipv6_accelerate,omitempty"`

	// 状态码缓存时间。
	ErrorCodeCache *[]ErrorCodeCache `json:"error_code_cache,omitempty"`

	// Range回源,开启: on,off:关闭。
	OriginRangeStatus *string `json:"origin_range_status,omitempty"`

	UserAgentFilter *UserAgentFilter `json:"user_agent_filter,omitempty"`

	// 改写回源URL。
	OriginRequestUrlRewrite *[]OriginRequestUrlRewrite `json:"origin_request_url_rewrite,omitempty"`

	// 高级回源。
	FlexibleOrigin *[]FlexibleOrigins `json:"flexible_origin,omitempty"`

	// 回源是否校验ETag,on:开启,off:关闭。
	SliceEtagStatus *string `json:"slice_etag_status,omitempty"`

	// 回源超时时间,单位:秒。
	OriginReceiveTimeout *int32 `json:"origin_receive_timeout,omitempty"`

	RemoteAuth *CommonRemoteAuth `json:"remote_auth,omitempty"`

	Websocket *WebSocketSeek `json:"websocket,omitempty"`

	VideoSeek *VideoSeek `json:"video_seek,omitempty"`

	// 请求限速。
	RequestLimitRules *[]RequestLimitRules `json:"request_limit_rules,omitempty"`

	// 自定义错误页面
	ErrorCodeRedirectRules *[]ErrorCodeRedirectRules `json:"error_code_redirect_rules,omitempty"`
}

ConfigsGetBody 配置项。

func (ConfigsGetBody) String added in v0.1.37

func (o ConfigsGetBody) String() string

type CustomArgs added in v0.1.40

type CustomArgs struct {

	// 参数类型,custom_var:自定义,nginx_preset_var:预置的变量。
	Type string `json:"type"`

	// 参数,长度支持1-256,由数字0-9、字符a-z、A-Z,及特殊字符._-*#%|+^@?=组成。
	Key string `json:"key"`

	// 取值,长度支持1-256,由数字0-9、字符a-z、A-Z,及特殊字符._-*#%|+^@?=组成。
	Value string `json:"value"`
}

CustomArgs 鉴权参数

func (CustomArgs) String added in v0.1.40

func (o CustomArgs) String() string

type DomainOriginHost added in v0.1.32

type DomainOriginHost struct {

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

	// 回源host的类型,accelerate:选择加速域名作为回源host域名, customize:使用自定义的域名作为回源host域名。
	OriginHostType string `json:"origin_host_type"`

	// 自定义回源host域名。
	CustomizeDomain *string `json:"customize_domain,omitempty"`
}

DomainOriginHost 域名回源HOST配置。

func (DomainOriginHost) String added in v0.1.32

func (o DomainOriginHost) String() string

type Domains added in v0.1.32

type Domains struct {

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

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

	// 域名业务类型,若为web,则表示类型为网站加速;若为download,则表示业务类型为文件下载加速;若为video,则表示业务类型为点播加速;若为wholeSite,则表示类型为全站加速。
	BusinessType *string `json:"business_type,omitempty"`

	// 加速域名状态。取值意义: - online表示“已开启” - offline表示“已停用” - configuring表示“配置中” - configure_failed表示“配置失败” - checking表示“审核中” - check_failed表示“审核未通过” - deleting表示“删除中”。
	DomainStatus *string `json:"domain_status,omitempty"`

	// 加速域名对应的CNAME。
	Cname *string `json:"cname,omitempty"`

	// 源站配置。
	Sources *[]Sources `json:"sources,omitempty"`

	DomainOriginHost *DomainOriginHost `json:"domain_origin_host,omitempty"`

	// 是否开启HTTPS加速。
	HttpsStatus *int32 `json:"https_status,omitempty"`

	// 域名创建时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。
	CreateTime *int64 `json:"create_time,omitempty"`

	// 域名修改时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。
	ModifyTime *int64 `json:"modify_time,omitempty"`

	// 封禁状态(0代表未禁用;1代表禁用)。
	Disabled *int32 `json:"disabled,omitempty"`

	// 锁定状态(0代表未锁定;1代表锁定)。
	Locked *int32 `json:"locked,omitempty"`

	// 自动刷新预热(0代表关闭;1代表打开)。
	AutoRefreshPreheat *int32 `json:"auto_refresh_preheat,omitempty"`

	// 华为云CDN提供的加速服务范围,包含:mainland_china中国大陆、outside_mainland_china中国大陆境外、global全球。
	ServiceArea *DomainsServiceArea `json:"service_area,omitempty"`

	// Range回源状态。
	RangeStatus *string `json:"range_status,omitempty"`

	// 回源跟随状态。
	FollowStatus *string `json:"follow_status,omitempty"`

	// 是否暂停源站回源(off代表关闭 on代表开启)。
	OriginStatus *string `json:"origin_status,omitempty"`

	// 域名禁用原因。
	BannedReason *string `json:"banned_reason,omitempty"`

	// 域名锁定原因。
	LockedReason *string `json:"locked_reason,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,不传表示查询默认项目。注意:当使用子帐号调用接口时,该参数必传。  您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 标签信息。
	Tags *[]EpResourceTag `json:"tags,omitempty"`
}

Domains 域名信息

func (Domains) String added in v0.1.32

func (o Domains) String() string

type DomainsServiceArea added in v0.1.32

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

func (DomainsServiceArea) MarshalJSON added in v0.1.32

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

func (*DomainsServiceArea) UnmarshalJSON added in v0.1.32

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

func (DomainsServiceArea) Value added in v0.1.32

func (c DomainsServiceArea) Value() string

type DomainsServiceAreaEnum added in v0.1.32

type DomainsServiceAreaEnum struct {
	MAINLAND_CHINA         DomainsServiceArea
	OUTSIDE_MAINLAND_CHINA DomainsServiceArea
	GLOBAL                 DomainsServiceArea
}

func GetDomainsServiceAreaEnum added in v0.1.32

func GetDomainsServiceAreaEnum() DomainsServiceAreaEnum

type DomainsWithPort added in v0.1.32

type DomainsWithPort struct {

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

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

	// 域名业务类型,若为web,则表示类型为网站加速;若为download,则表示业务类型为文件下载加速;若为video,则表示业务类型为点播加速;若为wholeSite,则表示类型为全站加速。
	BusinessType *string `json:"business_type,omitempty"`

	// 加速域名状态。取值意义: - online表示“已开启” - offline表示“已停用” - configuring表示“配置中” - configure_failed表示“配置失败” - checking表示“审核中” - check_failed表示“审核未通过” - deleting表示“删除中”。
	DomainStatus *string `json:"domain_status,omitempty"`

	// 加速域名对应的CNAME。
	Cname *string `json:"cname,omitempty"`

	// 源站配置。
	Sources *[]SourcesConfig `json:"sources,omitempty"`

	// 是否开启HTTPS加速。 0:代表未开启HTTPS加速; 1:代表开启HTTPS加速,且回源方式为协议跟随; 2:代表开启HTTPS加速,且回源方式为HTTP; 3:代表开启HTTPS加速,且回源方式为HTTPS。
	HttpsStatus *int32 `json:"https_status,omitempty"`

	// 域名创建时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。
	CreateTime *int64 `json:"create_time,omitempty"`

	// 域名修改时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 封禁状态(0代表未禁用;1代表禁用)。
	Disabled *int32 `json:"disabled,omitempty"`

	// 锁定状态(0代表未锁定;1代表锁定)。
	Locked *int32 `json:"locked,omitempty"`

	// 华为云CDN提供的加速服务范围,包含:mainland_china中国大陆、outside_mainland_china中国大陆境外、global全球。
	ServiceArea *DomainsWithPortServiceArea `json:"service_area,omitempty"`
}

DomainsWithPort 域名信息。

func (DomainsWithPort) String added in v0.1.32

func (o DomainsWithPort) String() string

type DomainsWithPortServiceArea added in v0.1.32

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

func (DomainsWithPortServiceArea) MarshalJSON added in v0.1.32

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

func (*DomainsWithPortServiceArea) UnmarshalJSON added in v0.1.32

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

func (DomainsWithPortServiceArea) Value added in v0.1.32

type DomainsWithPortServiceAreaEnum added in v0.1.32

type DomainsWithPortServiceAreaEnum struct {
	MAINLAND_CHINA         DomainsWithPortServiceArea
	OUTSIDE_MAINLAND_CHINA DomainsWithPortServiceArea
	GLOBAL                 DomainsWithPortServiceArea
}

func GetDomainsWithPortServiceAreaEnum added in v0.1.32

func GetDomainsWithPortServiceAreaEnum() DomainsWithPortServiceAreaEnum

type DownloadRegionCarrierExcelRequest added in v0.1.10

type DownloadRegionCarrierExcelRequest struct {

	// - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
	StartTime int64 `json:"start_time"`

	// - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
	EndTime int64 `json:"end_time"`

	// 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
	DomainName string `json:"domain_name"`

	// - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
	Interval *int64 `json:"interval,omitempty"`

	// - 国家&地区编码,多个以英文逗号分隔,all表示全部,取值见附录 - 访问运营商统计数据时不能填写 - 访问top_url数据时不能填写 - 访问区域情况数据时只能填写cn(中国)
	Country *string `json:"country,omitempty"`

	// 创建表格语言,支持zh(中文),en(英文)两种,如果不传默认为zh
	ExcelLanguage *string `json:"excel_language,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 统计数据表格类型,目前支持 - 区域用量统计数据(excel_type_usage) - 区域访问情况统计数据(excel_type_access) - 区域情况统计数据(excel_type_region) - 区域运营商情况统计数据(excel_type_carrier) - 国家情况统计数据(excel_type_country) - top_url统计数据(excel_type_top_url)
	ExcelType string `json:"excel_type"`

	// - 地区区域,当country为cn(中国)时有效 - 访问运营商统计数据时不能填写 - 访问国家统计数据时不能填写 - 访问top_url数据时不能填写
	Region *string `json:"region,omitempty"`

	// - 运营商编码 - 访问区域统计数据时不能填写 - 访问国家统计数据时不能填写 - 访问top_url数据时不能填写
	Carrier *string `json:"carrier,omitempty"`
}

DownloadRegionCarrierExcelRequest Request Object

func (DownloadRegionCarrierExcelRequest) String added in v0.1.10

type DownloadRegionCarrierExcelResponse added in v0.1.10

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

DownloadRegionCarrierExcelResponse Response Object

func (DownloadRegionCarrierExcelResponse) String added in v0.1.10

type DownloadStatisticsExcelRequest added in v0.1.10

type DownloadStatisticsExcelRequest struct {

	// - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
	StartTime int64 `json:"start_time"`

	// - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
	EndTime int64 `json:"end_time"`

	// 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
	DomainName string `json:"domain_name"`

	// 创建表格语言,支持zh(中文),en(英文)两种,如果不传默认为zh
	ExcelLanguage *string `json:"excel_language,omitempty"`

	// 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。
	ServiceArea *string `json:"service_area,omitempty"`

	// - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
	Interval *int64 `json:"interval,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 统计数据表格类型,目前支持 - 用量统计数据(excel_type_usage) - 访问情况统计数据(excel_type_access) - 回源情况统计数据(excel_type_origin) - http_code统计数据(excel_type_http_code)
	ExcelType string `json:"excel_type"`
}

DownloadStatisticsExcelRequest Request Object

func (DownloadStatisticsExcelRequest) String added in v0.1.10

type DownloadStatisticsExcelResponse added in v0.1.10

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

DownloadStatisticsExcelResponse Response Object

func (DownloadStatisticsExcelResponse) String added in v0.1.10

type EpResourceTag added in v0.1.32

type EpResourceTag struct {

	// 资源标签key。
	Key string `json:"key"`

	// 资源标签value值。
	Value string `json:"value"`
}

EpResourceTag 标签信息。

func (EpResourceTag) String added in v0.1.32

func (o EpResourceTag) String() string

type ErrMsg

type ErrMsg struct {

	// 错误码
	ErrorCode string `json:"error_code"`

	// 错误描述
	ErrorMsg string `json:"error_msg"`
}

ErrMsg 用于返回具体的错误码和错误消息

func (ErrMsg) String

func (o ErrMsg) String() string

type ErrRsp

type ErrRsp struct {
	Error *ErrMsg `json:"error"`
}

ErrRsp 当北向接口报错时,按此格式返回到body体中

func (ErrRsp) String

func (o ErrRsp) String() string

type ErrorCodeCache added in v0.1.37

type ErrorCodeCache struct {

	// 允许配置的错误码: 400, 403, 404, 405, 414, 500, 501, 502, 503, 504
	Code *int32 `json:"code,omitempty"`

	// 错误码缓存时间,单位为秒,范围0-31,536,000(一年默认为365天)。
	Ttl *int32 `json:"ttl,omitempty"`
}

ErrorCodeCache CDN状态码缓存时间。

func (ErrorCodeCache) String added in v0.1.37

func (o ErrorCodeCache) String() string

type ErrorCodeRedirectRules added in v0.1.37

type ErrorCodeRedirectRules struct {

	// 重定向的错误码,当前支持以下状态码 4xx:400, 403, 404, 405, 414, 416, 451 5xx:500, 501, 502, 503, 504
	ErrorCode int32 `json:"error_code"`

	// 重定向状态码,取值为301或302
	TargetCode int32 `json:"target_code"`

	// 重定向的目标链接
	TargetLink string `json:"target_link"`
}

ErrorCodeRedirectRules 自定义错误页面。

func (ErrorCodeRedirectRules) String added in v0.1.37

func (o ErrorCodeRedirectRules) String() string

type FlexibleOrigins added in v0.1.40

type FlexibleOrigins struct {

	// URI的匹配方式,支持文件后缀(file_extension)和路径前缀(file_path)。
	MatchType string `json:"match_type"`

	// file_extension(文件后缀): 支持所有格式的文件类型。 输入首字符为“.”,以“;”进行分隔。 输入的文件后缀名总数不能超过20个。 file_path(目录路径):输入要求以“/”作为首字符,以“;”进行分隔,输入的目录路径总数不能超过20个。
	MatchPattern string `json:"match_pattern"`

	// 优先级取值范围为1~100,数值越大优先级越高。
	Priority int32 `json:"priority"`

	// 回源信息。  > 每个目录的回源源站数量不超过1个。
	BackSources []BackSources `json:"back_sources"`
}

FlexibleOrigins 灵活回源信息,最多20条。

func (FlexibleOrigins) String added in v0.1.40

func (o FlexibleOrigins) String() string

type ForceRedirectConfig added in v0.1.37

type ForceRedirectConfig struct {

	// 强制跳转开关(on:打开,off:关闭)。
	Status string `json:"status"`

	// 强制跳转类型(http:强制跳转HTTP,https:强制跳转HTTPS)。
	Type *string `json:"type,omitempty"`

	// 重定向跳转码301,302。
	RedirectCode *int32 `json:"redirect_code,omitempty"`
}

ForceRedirectConfig 强制跳转。

func (ForceRedirectConfig) String added in v0.1.37

func (o ForceRedirectConfig) String() string

type HttpGetBody added in v0.1.37

type HttpGetBody struct {

	// HTTPS证书是否启用,on:开启,off:关闭。
	HttpsStatus *string `json:"https_status,omitempty"`

	// 证书名字。
	CertificateName *string `json:"certificate_name,omitempty"`

	// HTTPS协议使用的证书内容,PEM编码格式。
	CertificateValue *string `json:"certificate_value,omitempty"`

	// 证书过期时间。  > UTC时间。
	ExpireTime *int64 `json:"expire_time,omitempty"`

	// 证书来源,1:华为云托管证书,0:自有证书。
	CertificateSource *int32 `json:"certificate_source,omitempty"`

	// 证书类型。server:国际证书;server_sm:国密证书。
	CertificateType *string `json:"certificate_type,omitempty"`

	// 是否使用HTTP2.0,on:是,off:否。
	Http2Status *string `json:"http2_status,omitempty"`

	// 传输层安全性协议。
	TlsVersion *string `json:"tls_version,omitempty"`

	// 是否开启ocsp stapling,on:是,off:否。
	OcspStaplingStatus *string `json:"ocsp_stapling_status,omitempty"`
}

HttpGetBody 证书配置查询响应体。

func (HttpGetBody) String added in v0.1.37

func (o HttpGetBody) String() string

type HttpPutBody added in v0.1.37

type HttpPutBody struct {

	// HTTPS证书是否启用,on:开启,off:关闭。
	HttpsStatus *string `json:"https_status,omitempty"`

	// 证书名字,长度限制为3-64字符。  > 当证书开启时必传。
	CertificateName *string `json:"certificate_name,omitempty"`

	// HTTPS协议使用的证书内容,当证书开启时必传。  > PEM编码格式。
	CertificateValue *string `json:"certificate_value,omitempty"`

	// HTTPS协议使用的私钥,当证书开启时必传。  > PEM编码格式。
	PrivateKey *string `json:"private_key,omitempty"`

	// 证书来源,1:华为云托管证书,0:自有证书, 默认值0。  > 证书开启时必传
	CertificateSource *int32 `json:"certificate_source,omitempty"`

	// 证书类型,server:国际证书;server_sm:国密证书。
	CertificateType *string `json:"certificate_type,omitempty"`

	// 是否使用HTTP2.0,on:是,off:否。  > 默认关闭,https_status=off时,该值不生效。
	Http2Status *string `json:"http2_status,omitempty"`

	// 传输层安全性协议, 目前支持TLSv1.0/1.1/1.2/1.3四个版本的协议,CDN默认开启TLS1.1/1.2/1.3,不可全部关闭。  > 1.需开启连续或单个版本号,例:不可仅开启TLS1.0/1.2而关闭TLS1.1。  > 2.多版本开启时,使用逗号拼接传输,例:TLSv1.1,TLSv1.2。
	TlsVersion *string `json:"tls_version,omitempty"`

	// 是否开启ocsp stapling,on:是,off:否。
	OcspStaplingStatus *string `json:"ocsp_stapling_status,omitempty"`
}

HttpPutBody 证书设置

func (HttpPutBody) String added in v0.1.37

func (o HttpPutBody) String() string

type HttpResponseHeader added in v0.1.37

type HttpResponseHeader struct {

	// 设置HTTP响应头参数。取值:\"Content-Disposition\", \"Content-Language\", \"Access-Control-Allow-Origin\",\"Access-Control-Allow-Methods\", \"Access-Control-Max-Age\", \"Access-Control-Expose-Headers\"或自定义头部。格式要求:长度1~100,以字母开头,可以使用字母、数字和短横杠。
	Name string `json:"name"`

	// 设置HTTP响应头参数的值。自定义HTTP响应头参数长度范围1~256,支持字母、数字和特定字符(.-_*#!&+|^~'\"/:;,=@?<>)。
	Value *string `json:"value,omitempty"`

	// 设置http响应头操作类型,取值“set/delete”。set代表设置,delete代表删除。
	Action string `json:"action"`
}

HttpResponseHeader http响应头设置

func (HttpResponseHeader) String added in v0.1.37

func (o HttpResponseHeader) String() string

type IpFilter added in v0.1.37

type IpFilter struct {

	// IP黑白名单类型,off:关闭IP黑白名单,black:IP黑名单,white:IP白名单。
	Type string `json:"type"`

	// 配置IP黑白名单,当type=off时,非必传, 支持IPv6,支持配置IP地址和IP&掩码格式的网段, 多条规则用“,”分割,最多支持配置150个, 多个完全重复的IP/IP段将合并为一个,不支持带通配符的地址,如192.168.0.*。
	Value *string `json:"value,omitempty"`
}

IpFilter IP黑白名单。

func (IpFilter) String added in v0.1.37

func (o IpFilter) String() string

type ListDomainsRequest added in v0.1.32

type ListDomainsRequest struct {

	// 加速域名,采用模糊匹配的方式。(长度限制为1-255字符)。
	DomainName *string `json:"domain_name,omitempty"`

	// 加速域名的业务类型。取值: - web(网站加速) - download(文件下载加速) - video(点播加速) - wholeSite(全站加速)
	BusinessType *string `json:"business_type,omitempty"`

	// 加速域名状态。取值意义: - online表示“已开启” - offline表示“已停用” - configuring表示“配置中” - configure_failed表示“配置失败” - checking表示“审核中” - check_failed表示“审核未通过” - deleting表示“删除中”。
	DomainStatus *string `json:"domain_status,omitempty"`

	// 华为云CDN提供的加速服务范围,包含: - mainland_china 中国大陆 - outside_mainland_china 中国大陆境外 - global 全球。
	ServiceArea *string `json:"service_area,omitempty"`

	// 每页加速域名的数量。
	PageSize *int32 `json:"page_size,omitempty"`

	// 查询的页码,即:从哪一页开始查询。
	PageNumber *int32 `json:"page_number,omitempty"`

	// 展示标签标识 true:不展示 false:展示。
	ShowTags *bool `json:"show_tags,omitempty"`

	// 精准匹配 true:开启 false:关闭。
	ExactMatch *bool `json:"exact_match,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。  您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ListDomainsRequest Request Object

func (ListDomainsRequest) String added in v0.1.32

func (o ListDomainsRequest) String() string

type ListDomainsResponse added in v0.1.32

type ListDomainsResponse struct {

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

	// 域名信息。
	Domains        *[]Domains `json:"domains,omitempty"`
	HttpStatusCode int        `json:"-"`
}

ListDomainsResponse Response Object

func (ListDomainsResponse) String added in v0.1.32

func (o ListDomainsResponse) String() string

type ModifyDomainConfigRequestBody added in v0.1.37

type ModifyDomainConfigRequestBody struct {
	Configs *Configs `json:"configs,omitempty"`
}

func (ModifyDomainConfigRequestBody) String added in v0.1.37

type OriginRequestHeader added in v0.1.37

type OriginRequestHeader struct {

	// 设置回源请求头参数。格式要求:由数字,大小写字母,中划线组成,只能以字母开头。
	Name string `json:"name"`

	// 设置回源请求头参数的值。当为删除动作时,可不填。格式要求:长度1~512。不支持中文,不支持变量配置,如:$client_ip,$remote_port等。
	Value *string `json:"value,omitempty"`

	// 回源请求头设置类型。delete:删除,set:设置。同一个请求头字段只允许删除或者设置。设置:若原始回源请求中不存在该字段,先执行新增再执行设置。
	Action string `json:"action"`
}

OriginRequestHeader 回源请求头

func (OriginRequestHeader) String added in v0.1.37

func (o OriginRequestHeader) String() string

type OriginRequestUrlRewrite added in v0.1.37

type OriginRequestUrlRewrite struct {

	// 回源URL改写规则的优先级。 优先级设置具有唯一性,不支持多条回源URL改写规则设置同一优先级,且优先级不能输入为空。 多条规则下,不同规则中的相同资源内容,CDN按照优先级高的规则执行URL改写。 取值为1~100之间的整数,数值越大优先级越高。
	Priority int32 `json:"priority"`

	// 匹配类型, all:所有文件, file_path:URL路径, wildcard:通配符, full_path: 全路径。
	MatchType string `json:"match_type"`

	// 需要替换的URI。 改写后的URI以正斜线(/)开头的URI,不含http(s)://头及域名。 长度不超过512个字符。 支持通配符\\*匹配,如:/test/\\*_/\\*.mp4。 匹配方式为“所有文件”时,不支持配置参数。
	SourceUrl *string `json:"source_url,omitempty"`

	// 以正斜线(/)开头的URI,不含http(s)://头及域名。 长度不超过256个字符。 通配符 * 可通过$n捕获(n=1,2,3...,例如:/newtest/$1/$2.jpg)。
	TargetUrl string `json:"target_url"`
}

OriginRequestUrlRewrite 改写回源URL,最多配置20条。

func (OriginRequestUrlRewrite) String added in v0.1.37

func (o OriginRequestUrlRewrite) String() string

type RefererConfig added in v0.1.37

type RefererConfig struct {

	// Referer黑白名单类型,off:关闭Referer黑白名单,black:Referer黑名单,white:Referer白名单。
	Type string `json:"type"`

	// 域名或IP地址,以“,”进行分割,域名、IP地址可以混合输入,支持泛域名和带端口的域名。域名、IP地址总数不超过400个,端口取值范围1-65535。
	Value *string `json:"value,omitempty"`

	// 是否包含空Referer,如果是黑名单并开启该选项,则表示无referer不允许访问,如果是白名单并开启该选项,则表示无referer允许访问,true:包含空,false:不包含空,默认值false。
	IncludeEmpty *bool `json:"include_empty,omitempty"`
}

RefererConfig 防盗链。

func (RefererConfig) String added in v0.1.37

func (o RefererConfig) String() string

type RemoteAuthRuleVo added in v0.1.40

type RemoteAuthRuleVo struct {

	// 可访问的鉴权服务器地址。 输入的URL必须有“http”或“https”。不能是localhost或127.0.0.1这类本地地址。 不能是CDN的加速域名。
	AuthServer string `json:"auth_server"`

	// 鉴权服务器支持的请求方法,支持GET、POST、HEAD。
	RequestMethod string `json:"request_method"`

	// all(所有文件类型):所有文件均参与鉴权。 specific_file(指定文件类型):指定类型的文件参与鉴权。示例:jpg|MP4。 文件类型不区分大小写,即:jpg和JPG代表同一种文件类型,多个文件类型用“|”分割。
	FileTypeSetting string `json:"file_type_setting"`

	// 字符总数不能超过512,当file_type_setting等于specific_file时为必选,其余情况为空, 由大小写字母和数字构成,文件类型用竖线分隔,例如jpg|mp4,只有在必选情况下才会对该字段做校验。
	SpecifiedFileType *string `json:"specified_file_type,omitempty"`

	// 设置用户请求中需要参与鉴权的参数,可选reserve_all_args(保留所有URL参数)、reserve_specific_args(保留指定URL参数)、ignore_all_args(忽略所有URL参数)。
	ReserveArgsSetting string `json:"reserve_args_setting"`

	// 当reserve_args_setting等于reserve_specific_args时为必选,其余情况为空,要保留的参数,多个参数用竖线分隔:key1|key2。
	ReserveArgs *string `json:"reserve_args,omitempty"`

	// URL鉴权参数
	AddCustomArgsRules *[]CustomArgs `json:"add_custom_args_rules,omitempty"`

	// 设置用户请求中参与鉴权请求头,可选reserve_all_headers(保留所有请求头参数)、reserve_specific_headers(保留指定请求头参数)、ignore_all_headers(忽略所有请求头参数)。
	ReserveHeadersSetting string `json:"reserve_headers_setting"`

	// 请求头鉴权参数
	AddCustomHeadersRules *[]CustomArgs `json:"add_custom_headers_rules,omitempty"`

	// 设置鉴权成功时远程鉴权服务器返回给CDN节点的状态码。取值范围:2xx/3xx。
	AuthSuccessStatus string `json:"auth_success_status"`

	// 设置鉴权失败时远程鉴权服务器返回给CDN节点的状态码。取值范围:4xx/5xx。
	AuthFailedStatus string `json:"auth_failed_status"`

	// 设置鉴权失败时CDN节点返回给用户的状态码。取值范围:2xx/3xx/4xx/5xx。
	ResponseStatus string `json:"response_status"`

	// 设置鉴权超时时间,即从CDN转发鉴权请求开始,到CDN节点收到远程鉴权服务器返回的结果的时间。单位为毫秒,值为0或50~3000。
	Timeout int32 `json:"timeout"`

	// 设置鉴权超时后,CDN节点如何处理用户请求。 pass(鉴权失败放过):鉴权超时后允许用户请求,返回对应的资源。 forbid(鉴权失败拒绝):鉴权超时后拒绝用户请求,返回配置的响应自定义状态码给用户。
	TimeoutAction string `json:"timeout_action"`

	// 当reserve_headers_setting等于reserve_specific_headers时为必选,其余情况为空,要保留的请求头,多个请求头用竖线分隔:key1|key2。
	ReserveHeaders *string `json:"reserve_headers,omitempty"`
}

RemoteAuthRuleVo 远程鉴权配置。

func (RemoteAuthRuleVo) String added in v0.1.40

func (o RemoteAuthRuleVo) String() string

type RequestLimitRules added in v0.1.40

type RequestLimitRules struct {

	// 状态, on:开启,off:关闭。
	Status string `json:"status"`

	// 限速方式,目前只支持按传送流量限速,当单个HTTP请求流量达到设定的值,开始限制访问速度。  > size:按传送流量限速。
	Type string `json:"type"`

	// 限速条件,type=size,limit_rate_after=50表示从传输传输50个字节后开始限速且限速值为limit_rate_value,  > 单位byte,取值范围:0-1073741824。
	LimitRateAfter *int64 `json:"limit_rate_after,omitempty"`

	// 限速值,设置开始限速后的最大访问速度。  > 单位Bps,取值范围 0-104857600
	LimitRateValue *int32 `json:"limit_rate_value,omitempty"`
}

RequestLimitRules 请求限速配置。

func (RequestLimitRules) String added in v0.1.40

func (o RequestLimitRules) String() string

type SetChargeModesBody added in v0.1.10

type SetChargeModesBody struct {

	// 计费模式,支持flux(流量),v2及以上客户支持bw(带宽)
	ChargeMode string `json:"charge_mode"`

	// 产品模式,仅支持base(基础加速)
	ProductType string `json:"product_type"`

	// 服务区域,仅支持mainland_china(国内)
	ServiceArea string `json:"service_area"`
}

SetChargeModesBody 设置计费模式请求体

func (SetChargeModesBody) String added in v0.1.10

func (o SetChargeModesBody) String() string

type SetChargeModesRequest added in v0.1.10

type SetChargeModesRequest struct {
	Body *SetChargeModesBody `json:"body,omitempty"`
}

SetChargeModesRequest Request Object

func (SetChargeModesRequest) String added in v0.1.10

func (o SetChargeModesRequest) String() string

type SetChargeModesResponse added in v0.1.10

type SetChargeModesResponse struct {

	// 账号的计费模式
	ChargeMode *string `json:"charge_mode,omitempty"`

	// 加速类型
	ProductType *string `json:"product_type,omitempty"`

	// 该模式生效时间
	EffectiveTime *int64 `json:"effective_time,omitempty"`

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

	// 该模式的区域
	ServiceArea *string `json:"service_area,omitempty"`

	// 状态,首次开通状态为active,之后修改为upcoming
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

SetChargeModesResponse Response Object

func (SetChargeModesResponse) String added in v0.1.10

func (o SetChargeModesResponse) String() string

type ShowBandwidthCalcRequest added in v0.1.10

type ShowBandwidthCalcRequest struct {

	// - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
	StartTime int64 `json:"start_time"`

	// - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
	EndTime int64 `json:"end_time"`

	// 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
	DomainName string `json:"domain_name"`

	// 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。
	ServiceArea *string `json:"service_area,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 查询类别,目前支持bw_95(95峰值带宽),bw_peak(日峰值月平均带宽),bw_95_average(95月平均带宽)
	CalcType string `json:"calc_type"`
}

ShowBandwidthCalcRequest Request Object

func (ShowBandwidthCalcRequest) String added in v0.1.10

func (o ShowBandwidthCalcRequest) String() string

type ShowBandwidthCalcResponse added in v0.1.10

type ShowBandwidthCalcResponse struct {

	// 95峰值,日峰值月平均线信息
	BandwidthCalc  map[string]interface{} `json:"bandwidth_calc,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ShowBandwidthCalcResponse Response Object

func (ShowBandwidthCalcResponse) String added in v0.1.10

func (o ShowBandwidthCalcResponse) String() string

type ShowChargeModesRequest added in v0.1.10

type ShowChargeModesRequest struct {

	// 加速类型,base(基础加速)
	ProductType string `json:"product_type"`

	// 查询计费模式状态,active(已生效),upcoming(待生效),不传默认为active(已生效)
	Status *string `json:"status,omitempty"`

	// 服务区域,mainland_china(国内),outside_mainland_china(海外),不传默认为mainland_china(国内)
	ServiceArea *string `json:"service_area,omitempty"`
}

ShowChargeModesRequest Request Object

func (ShowChargeModesRequest) String added in v0.1.10

func (o ShowChargeModesRequest) String() string

type ShowChargeModesResponse added in v0.1.10

type ShowChargeModesResponse struct {

	// 计费模式查询结果
	Result         *[]map[string]interface{} `json:"result,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

ShowChargeModesResponse Response Object

func (ShowChargeModesResponse) String added in v0.1.10

func (o ShowChargeModesResponse) String() string

type ShowDomainDetailByNameRequest added in v0.1.32

type ShowDomainDetailByNameRequest struct {

	// 加速域名名称。
	DomainName string `json:"domain_name"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用帐号调用接口时,该参数必传。  您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ShowDomainDetailByNameRequest Request Object

func (ShowDomainDetailByNameRequest) String added in v0.1.32

type ShowDomainDetailByNameResponse added in v0.1.32

type ShowDomainDetailByNameResponse struct {
	Domain         *DomainsWithPort `json:"domain,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ShowDomainDetailByNameResponse Response Object

func (ShowDomainDetailByNameResponse) String added in v0.1.32

type ShowDomainFullConfigRequest added in v0.1.37

type ShowDomainFullConfigRequest struct {

	// 加速域名。
	DomainName string `json:"domain_name"`

	// 企业项目ID, all:所有项目。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 取值为auth_key,用来查询鉴权KEY和鉴权备KEY的值。
	ShowSpecialConfigs *string `json:"show_special_configs,omitempty"`
}

ShowDomainFullConfigRequest Request Object

func (ShowDomainFullConfigRequest) String added in v0.1.37

type ShowDomainFullConfigResponse added in v0.1.37

type ShowDomainFullConfigResponse struct {
	Configs        *ConfigsGetBody `json:"configs,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ShowDomainFullConfigResponse Response Object

func (ShowDomainFullConfigResponse) String added in v0.1.37

type ShowDomainLocationStatsRequest

type ShowDomainLocationStatsRequest struct {

	// - 动作名称,可选location_summary、location_detail。 - location_summary:查询汇总数据 - location_detail:查询数据详情。
	Action string `json:"action"`

	// - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
	StartTime int64 `json:"start_time"`

	// - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
	EndTime int64 `json:"end_time"`

	// 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
	DomainName string `json:"domain_name"`

	// - 网络资源消耗   - bw(带宽)   - flux(流量) - 访问情况   - req_num(请求总数) - HTTP状态码(组合指标)   - http_code_2xx(状态码汇总2xx)   - http_code_3xx(状态码汇总3xx)   - http_code_4xx(状态码汇总4xx)   - http_code_5xx(状态码汇总5xx)   - status_code_2xx(状态码详情2xx)   - status_code_3xx(状态码详情3xx)   - status_code_4xx(状态码详情4xx)   - status_code_5xx(状态码详情5xx)
	StatType string `json:"stat_type"`

	// - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
	Interval *int64 `json:"interval,omitempty"`

	// - 国家&地区编码,多个以英文逗号分隔,all表示全部,取值见附录 - 访问运营商统计数据时不能填写 - 访问top_url数据时不能填写 - 访问区域情况数据时只能填写cn(中国)
	Country *string `json:"country,omitempty"`

	// 省份编码,当country为cn(中国)时有效,多个以英文逗号分隔,all表示全部,取值见附录
	Province *string `json:"province,omitempty"`

	// 运营商编码,多个以英文逗号分隔,all表示全部,取值见附录
	Isp *string `json:"isp,omitempty"`

	// 数据分组方式,多个以英文逗号分隔,可选domain、country、province、isp,默认不分组
	GroupBy *string `json:"group_by,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ShowDomainLocationStatsRequest Request Object

func (ShowDomainLocationStatsRequest) String

type ShowDomainLocationStatsResponse

type ShowDomainLocationStatsResponse struct {

	// 数据分组方式
	GroupBy *string `json:"group_by,omitempty"`

	// 按指定的分组方式组织的数据
	Result         map[string]interface{} `json:"result,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ShowDomainLocationStatsResponse Response Object

func (ShowDomainLocationStatsResponse) String

type ShowDomainStatsRequest

type ShowDomainStatsRequest struct {

	// - 动作名称,可选summary、detail。 - summary:查询汇总数据 - detail:查询数据详情。
	Action string `json:"action"`

	// - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
	StartTime int64 `json:"start_time"`

	// - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
	EndTime int64 `json:"end_time"`

	// 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
	DomainName string `json:"domain_name"`

	// - 网络资源消耗:   - bw(带宽)   - flux(流量)   - bs_bw(回源带宽)   - bs_flux(回源流量) - 访问情况   - req_num(请求总数)   - hit_num(请求命中次数)   - bs_num(回源总数)   - bs_fail_num(回源失败数)   - hit_flux(命中流量) - HTTP状态码(组合指标)   - http_code_2xx(状态码汇总2xx)   - http_code_3xx(状态码汇总3xx)   - http_code_4xx(状态码汇总4xx)   - http_code_5xx(状态码汇总5xx)   - bs_http_code_2xx(回源状态码汇总2xx)   - bs_http_code_3xx(回源状态码汇总3xx)   - bs_http_code_4xx(回源状态码汇总4xx)   - bs_http_code_5xx(回源状态码汇总5xx)   - status_code_2xx(状态码详情2xx)   - status_code_3xx(状态码详情3xx)   - status_code_4xx(状态码详情4xx)   - status_code_5xx(状态码详情5xx)   - bs_status_code_2xx(回源状态码详情2xx)   - bs_status_code_3xx(回源状态码详情3xx)   - bs_status_code_4xx(回源状态码详情4xx)   - bs_status_code_5xx(回源状态码详情5xx)   - status_code和bs_status_code不能一起查询
	StatType string `json:"stat_type"`

	// - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
	Interval *int64 `json:"interval,omitempty"`

	// 数据分组方式,可选domain,默认不分组
	GroupBy *string `json:"group_by,omitempty"`

	// 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。
	ServiceArea *string `json:"service_area,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ShowDomainStatsRequest Request Object

func (ShowDomainStatsRequest) String

func (o ShowDomainStatsRequest) String() string

type ShowDomainStatsResponse

type ShowDomainStatsResponse struct {

	// 按指定的分组方式组织的数据
	Result         map[string]interface{} `json:"result,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ShowDomainStatsResponse Response Object

func (ShowDomainStatsResponse) String

func (o ShowDomainStatsResponse) String() string

type ShowTopDomainNamesRequest added in v0.1.10

type ShowTopDomainNamesRequest struct {

	// - 查询起始时间戳,时间戳应设置需为整点时间戳,设置方式如下: - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
	StartTime int64 `json:"start_time"`

	// - 查询结束时间戳,时间戳应设置需为整点时间戳,设置方式如下: - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
	EndTime int64 `json:"end_time"`

	// - 统计类型 - 目前只支持bw(带宽),flux(流量),req_num(请求总数)
	StatType string `json:"stat_type"`

	// 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。
	ServiceArea *string `json:"service_area,omitempty"`

	// top域名查询数量,默认为20,最大为500,最小为0
	Limit *int32 `json:"limit,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ShowTopDomainNamesRequest Request Object

func (ShowTopDomainNamesRequest) String added in v0.1.10

func (o ShowTopDomainNamesRequest) String() string

type ShowTopDomainNamesResponse added in v0.1.10

type ShowTopDomainNamesResponse struct {

	// top域名信息
	TopDomainNames *[]map[string]interface{} `json:"top_domain_names,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

ShowTopDomainNamesResponse Response Object

func (ShowTopDomainNamesResponse) String added in v0.1.10

type ShowTopUrlRequest

type ShowTopUrlRequest struct {

	// 查询起始时间戳,只能传0点毫秒时间戳
	StartTime int64 `json:"start_time"`

	// 查询结束时间戳,只能传0点毫秒时间戳
	EndTime int64 `json:"end_time"`

	// 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
	DomainName string `json:"domain_name"`

	// - 参数类型支持:flux(流量),req_num(请求数)
	StatType string `json:"stat_type"`

	// 服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为mainland_china
	ServiceArea *string `json:"service_area,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ShowTopUrlRequest Request Object

func (ShowTopUrlRequest) String

func (o ShowTopUrlRequest) String() string

type ShowTopUrlResponse

type ShowTopUrlResponse struct {

	// 服务区域
	ServiceArea *string `json:"service_area,omitempty"`

	// 详情数据对象。
	TopUrlSummary  *[]TopUrlSummary `json:"top_url_summary,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ShowTopUrlResponse Response Object

func (ShowTopUrlResponse) String

func (o ShowTopUrlResponse) String() string

type Sources added in v0.1.32

type Sources struct {

	// 加速域名id。
	DomainId *string `json:"domain_id,omitempty"`

	// 源站IP(非内网IP)或者域名。
	IpOrDomain string `json:"ip_or_domain"`

	// 源站类型取值:ipaddr:源站IP、 domain:源站域名、obs_bucket:OBS桶域名。
	OriginType SourcesOriginType `json:"origin_type"`

	// 主备状态,1代表主源站,0代表备源站。
	ActiveStandby int32 `json:"active_standby"`

	// 是否开启Obs静态网站托管(0表示关闭,1表示则为开启),源站类型为obs_bucket时传递。
	EnableObsWebHosting *int32 `json:"enable_obs_web_hosting,omitempty"`
}

Sources 源站信息。

func (Sources) String added in v0.1.32

func (o Sources) String() string

type SourcesConfig added in v0.1.32

type SourcesConfig struct {

	// 源站类型, ipaddr:源站IP,domain:源站域名,obs_bucket:OBS桶域名。
	OriginType string `json:"origin_type"`

	// 源站IP或者域名。
	OriginAddr string `json:"origin_addr"`

	// 源站优先级,70:主,30:备。
	Priority int32 `json:"priority"`

	// 权重,取值范围1-100。
	Weight *int32 `json:"weight,omitempty"`

	// 是否开启Obs静态网站托管,源站类型为obs_bucket时传递,off:关闭,on:开启。
	ObsWebHostingStatus *string `json:"obs_web_hosting_status,omitempty"`

	// HTTP端口,默认80,端口取值取值范围1-65535。
	HttpPort *int32 `json:"http_port,omitempty"`

	// HTTPS端口,默认443,端口取值取值范围1-65535。
	HttpsPort *int32 `json:"https_port,omitempty"`

	// 回源HOST,默认加速域名。
	HostName *string `json:"host_name,omitempty"`

	// obs桶源站类型 “private” 私有桶 “public” 公有桶。
	ObsBucketType *string `json:"obs_bucket_type,omitempty"`
}

SourcesConfig 源站配置。

func (SourcesConfig) String added in v0.1.32

func (o SourcesConfig) String() string

type SourcesOriginType added in v0.1.32

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

func (SourcesOriginType) MarshalJSON added in v0.1.32

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

func (*SourcesOriginType) UnmarshalJSON added in v0.1.32

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

func (SourcesOriginType) Value added in v0.1.32

func (c SourcesOriginType) Value() string

type SourcesOriginTypeEnum added in v0.1.32

type SourcesOriginTypeEnum struct {
	IPADDR     SourcesOriginType
	DOMAIN     SourcesOriginType
	OBS_BUCKET SourcesOriginType
}

func GetSourcesOriginTypeEnum added in v0.1.32

func GetSourcesOriginTypeEnum() SourcesOriginTypeEnum

type TopUrlSummary added in v0.0.91

type TopUrlSummary struct {

	// URL名称。
	Url *string `json:"url,omitempty"`

	// 对应查询类型的值。(流量单位:Byte)
	Value *int64 `json:"value,omitempty"`

	// 查询起始时间戳。
	StartTime *int64 `json:"start_time,omitempty"`

	// 查询结束时间戳
	EndTime *int64 `json:"end_time,omitempty"`

	// 参数类型支持:flux(流量),req_num(请求总数)。
	StatType *string `json:"stat_type,omitempty"`
}

TopUrlSummary top url 详情数据

func (TopUrlSummary) String added in v0.0.91

func (o TopUrlSummary) String() string

type UpdateDomainFullConfigRequest added in v0.1.37

type UpdateDomainFullConfigRequest struct {

	// 加速域名。
	DomainName string `json:"domain_name"`

	// 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。  > 当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

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

UpdateDomainFullConfigRequest Request Object

func (UpdateDomainFullConfigRequest) String added in v0.1.37

type UpdateDomainFullConfigResponse added in v0.1.37

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

UpdateDomainFullConfigResponse Response Object

func (UpdateDomainFullConfigResponse) String added in v0.1.37

type UrlAuth added in v0.1.37

type UrlAuth struct {

	// 是否开启URL鉴权,off:开启,on:关闭。
	Status string `json:"status"`

	// 鉴权方式 type_a:鉴权方式A type_b:鉴权方式B type_c1:鉴权方式C1 type_c2:鉴权方式C2
	Type string `json:"type"`

	// 过期时间:范围:0-31536000单位为秒。
	ExpireTime int32 `json:"expire_time"`

	// 加密的算法 可选择md5或sha256。
	SignMethod *string `json:"sign_method,omitempty"`

	// 鉴权范围,目前仅支持配置所有文件参与鉴权,all:所有文件。
	MatchType *string `json:"match_type,omitempty"`

	// 鉴权KEY 由6-32位大小写字母、数字构成。
	Key *string `json:"key,omitempty"`

	// 鉴权KEY(备) 由6-32位大小写字母、数字构成。
	BackupKey *string `json:"backup_key,omitempty"`

	// 鉴权参数:1-100位可以由大小写字母、数字、下划线构成(不能以数字开头)。
	SignArg *string `json:"sign_arg,omitempty"`

	// 时间格式 dec:十进制 hex:十六进制 鉴权方式A:只支持十进制 鉴权方式B:只支持十进制 鉴权方式C1:只支持十六进制鉴权方式 鉴权方式C2:支持十进制/十六进制
	TimeFormat string `json:"time_format"`
}

UrlAuth URL鉴权。

func (UrlAuth) String added in v0.1.37

func (o UrlAuth) String() string

type UrlAuthGetBody added in v0.1.37

type UrlAuthGetBody struct {

	// 是否开启URL鉴权,off:开启,on:关闭。
	Status string `json:"status"`

	// 鉴权方式, type_a:鉴权方式A, type_b:鉴权方式B, type_c1:鉴权方式C1, type_c2:鉴权方式C2。
	Type *string `json:"type,omitempty"`

	// 过期时间,单位:秒。
	ExpireTime *int32 `json:"expire_time,omitempty"`

	// 加密算法。
	SignMethod *string `json:"sign_method,omitempty"`

	// 鉴权范围。
	MatchType *string `json:"match_type,omitempty"`

	// 鉴权KEY。
	Key *string `json:"key,omitempty"`

	// 鉴权KEY(备)。
	BackupKey *string `json:"backup_key,omitempty"`

	// 鉴权参数。
	SignArg *string `json:"sign_arg,omitempty"`

	// 时间格式, dec:十进制, hex:十六进制。
	TimeFormat *string `json:"time_format,omitempty"`
}

UrlAuthGetBody URL鉴权查询响应体。

func (UrlAuthGetBody) String added in v0.1.37

func (o UrlAuthGetBody) String() string

type UserAgentFilter added in v0.1.37

type UserAgentFilter struct {

	// UA黑白名单类型 off:关闭UA黑白名单; black:UA黑名单; white:UA白名单;
	Type string `json:"type"`

	// 配置UA黑白名单,当type=off时,非必传。最多配置10条规则,单条规则不超过100个字符,多条规则用“,”分割。
	Value *string `json:"value,omitempty"`

	// 配置UA黑白名单,当type=off时,非必传。最多配置10条规则,单条规则不超过100个字符,同时配置value和ua_list时,ua_list生效。
	UaList *[]string `json:"ua_list,omitempty"`
}

UserAgentFilter UA黑白名单设置。

func (UserAgentFilter) String added in v0.1.37

func (o UserAgentFilter) String() string

type VideoSeek added in v0.1.40

type VideoSeek struct {

	// 视频拖拽开关, true:开启,false:关闭  > 当本字段设置为“false”时,查询域名配置接口将不会返回视频拖拽配置信息。
	EnableVideoSeek bool `json:"enable_video_seek"`

	// flv时间拖拽开关, true:开启,false:关闭。
	EnableFlvByTimeSeek *bool `json:"enable_flv_by_time_seek,omitempty"`

	// 自定义用户请求URL中视频播放的开始参数,支持使用数字0-9、字符a-z、A-Z,及\"_\",长度≤64个字符。
	StartParameter *string `json:"start_parameter,omitempty"`

	// 自定义用户请求URL中视频播放的结束参数,支持使用数字0-9、字符a-z、A-Z,及\"_\",长度≤64个字符。
	EndParameter *string `json:"end_parameter,omitempty"`
}

VideoSeek 视频拖拽配置。 > 1. 需同步开启FLV、MP4格式文件的URL参数功能,并选择“忽略参数”。 > 2. 关闭视频拖拽功能时,FLV时间拖拽功能失效。

func (VideoSeek) String added in v0.1.40

func (o VideoSeek) String() string

type WebSocketSeek added in v0.1.40

type WebSocketSeek struct {

	// 开关, on 开启,off 关闭。
	Status string `json:"status"`

	// 请求建立连接后,会话的保持时间:范围:1-300,单位:秒。
	Timeout int32 `json:"timeout"`
}

WebSocketSeek webSocket配置。 > 只有全站加速的域名支持该配置。

func (WebSocketSeek) String added in v0.1.40

func (o WebSocketSeek) String() string

Source Files

Jump to

Keyboard shortcuts

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