model

package
v0.1.114 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 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.67

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.67

func (o BackSources) String() string

type BatchDeleteTagsRequest added in v0.1.1

type BatchDeleteTagsRequest struct {
	Body *DeleteTagsRequestBody `json:"body,omitempty"`
}

BatchDeleteTagsRequest Request Object

func (BatchDeleteTagsRequest) String added in v0.1.1

func (o BatchDeleteTagsRequest) String() string

type BatchDeleteTagsResponse added in v0.1.1

type BatchDeleteTagsResponse struct {
	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

BatchDeleteTagsResponse Response Object

func (BatchDeleteTagsResponse) String added in v0.1.1

func (o BatchDeleteTagsResponse) String() string

type BlackWhiteListBody

type BlackWhiteListBody struct {

	// IP黑白名单类型(0:关闭IP黑白名单功能,1:黑名单,2:白名单)。
	Type int32 `json:"type"`

	// IP黑白名单列表。
	IpList *[]string `json:"ip_list,omitempty"`
}

func (BlackWhiteListBody) String

func (o BlackWhiteListBody) String() string

type CacheConfig

type CacheConfig struct {

	// 是否忽略url中的参数。
	IgnoreUrlParameter *bool `json:"ignore_url_parameter,omitempty"`

	// 缓存规则是否遵循源站。
	FollowOrigin *bool `json:"follow_origin,omitempty"`

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

	// 缓存规则,将覆盖之前的规则配置。规则为空重置为默认规则。
	Rules *[]Rules `json:"rules,omitempty"`
}

func (CacheConfig) String

func (o CacheConfig) String() string

type CacheConfigRequest

type CacheConfigRequest struct {

	// 是否忽略url中的参数。
	IgnoreUrlParameter *bool `json:"ignore_url_parameter,omitempty"`

	// 缓存规则是否遵循源站。
	FollowOrigin *bool `json:"follow_origin,omitempty"`

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

	// 缓存规则,将覆盖之前的规则配置。规则为空重置为默认规则。
	Rules *[]Rules `json:"rules,omitempty"`
}

func (CacheConfigRequest) String

func (o CacheConfigRequest) String() string

type CacheConfigRequestBody

type CacheConfigRequestBody struct {
	CacheConfig *CacheConfigRequest `json:"cache_config"`
}

CacheConfigRequestBody This is a auto create Body Object

func (CacheConfigRequestBody) String

func (o CacheConfigRequestBody) String() string

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.0.96

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参数配置。

func (CacheUrlParameterFilter) String added in v0.0.96

func (o CacheUrlParameterFilter) String() string

type CdnIps

type CdnIps struct {

	// 需查询的IP地址。
	Ip *string `json:"ip,omitempty"`

	// 是否是华为云CDN节点。(true:是华为云CDN节点,false:不是华为云CDN节点)
	Belongs *bool `json:"belongs,omitempty"`

	// IP归属地省份。(Unknown:表示未知归属地)
	Region *string `json:"region,omitempty"`

	// 运营商名称。如果IP归属地未知,该字段返回null。
	Isp *string `json:"isp,omitempty"`

	// 平台。如果IP归属地未知,该字段返回null。
	Platform *string `json:"platform,omitempty"`
}

func (CdnIps) String

func (o CdnIps) String() string

type CommonRemoteAuth added in v0.1.67

type CommonRemoteAuth struct {

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

	RemoteAuthRules *RemoteAuthRuleVo `json:"remote_auth_rules"`
}

CommonRemoteAuth 远程鉴权配置。

func (CommonRemoteAuth) String added in v0.1.67

func (o CommonRemoteAuth) String() string

type Compress added in v0.0.84

type Compress struct {

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

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

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

Compress 智能压缩。

func (Compress) String added in v0.0.84

func (o Compress) String() string

type CompressRequest

type CompressRequest struct {

	// GZIP压缩开关。0关闭。1打开。
	CompressSwitch *int32 `json:"compress_switch,omitempty"`
}

func (CompressRequest) String

func (o CompressRequest) String() string

type CompressResponse

type CompressResponse struct {

	// GZIP压缩开关。0关闭。1打开
	CompressSwitch int32 `json:"compress_switch"`

	// GZIP压缩规则
	CompressRules *[]CompressRules `json:"compress_rules,omitempty"`
}

func (CompressResponse) String

func (o CompressResponse) String() string

type CompressRules

type CompressRules struct {

	// GZIP压缩类型(目前只支持 gzip)
	CompressType *string `json:"compress_type,omitempty"`

	// GZIP压缩文件类型(文件后缀竖线分割,如:.js|.html|.css|.xml)
	CompressFileType *string `json:"compress_file_type,omitempty"`
}

func (CompressRules) String

func (o CompressRules) String() string

type Configs added in v0.0.74

type Configs struct {

	// 回源请求头改写 该功能将覆盖原有配置(清空之前的配置),在使用此接口时,请上传全量头部信息。
	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"`

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

Configs 配置项。

func (Configs) String added in v0.0.74

func (o Configs) String() string

type ConfigsGetBody added in v0.0.78

type ConfigsGetBody struct {

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

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

	// 域名备注。
	Remark *string `json:"remark,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"`

	IpFrequencyLimit *IpFrequencyLimitQuery `json:"ip_frequency_limit,omitempty"`

	Hsts *HstsQuery `json:"hsts,omitempty"`

	Quic *Quic `json:"quic,omitempty"`

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

ConfigsGetBody 配置项。

func (ConfigsGetBody) String added in v0.0.78

func (o ConfigsGetBody) String() string

type CreateDomainRequest

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

CreateDomainRequest Request Object

func (CreateDomainRequest) String

func (o CreateDomainRequest) String() string

type CreateDomainRequestBody

type CreateDomainRequestBody struct {
	Domain *DomainBody `json:"domain"`
}

CreateDomainRequestBody 域名对象

func (CreateDomainRequestBody) String

func (o CreateDomainRequestBody) String() string

type CreateDomainResponse

type CreateDomainResponse struct {
	Domain *CreateDomainResponseBodyContent `json:"domain,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateDomainResponse Response Object

func (CreateDomainResponse) String

func (o CreateDomainResponse) String() string

type CreateDomainResponseBodyContent

type CreateDomainResponseBodyContent struct {

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

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

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

	// 域名服务范围,若为mainland_china,则表示服务范围为中国大陆;若为outside_mainland_china,则表示服务范围为中国大陆境外;若为global,则表示服务范围为全球。
	ServiceArea *string `json:"service_area,omitempty"`

	// 域名所属用户的domain_id。
	UserDomainId *string `json:"user_domain_id,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"`

	// range状态,off:关闭,on:开启。
	RangeStatus *string `json:"range_status,omitempty"`

	// follow302状态,off:关闭,on:开启。
	FollowStatus *string `json:"follow_status,omitempty"`

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

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

CreateDomainResponseBodyContent 创建域名返回信息。

func (CreateDomainResponseBodyContent) String

type CreatePreheatingTasksRequest

type CreatePreheatingTasksRequest struct {

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

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

CreatePreheatingTasksRequest Request Object

func (CreatePreheatingTasksRequest) String

type CreatePreheatingTasksResponse

type CreatePreheatingTasksResponse struct {

	// 任务ID。
	PreheatingTask *string `json:"preheating_task,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreatePreheatingTasksResponse Response Object

func (CreatePreheatingTasksResponse) String

type CreateRefreshTasksRequest

type CreateRefreshTasksRequest struct {

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

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

CreateRefreshTasksRequest Request Object

func (CreateRefreshTasksRequest) String

func (o CreateRefreshTasksRequest) String() string

type CreateRefreshTasksResponse

type CreateRefreshTasksResponse struct {

	// 任务ID。
	RefreshTask *string `json:"refresh_task,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateRefreshTasksResponse Response Object

func (CreateRefreshTasksResponse) String

type CreateTagsRequest added in v0.1.1

type CreateTagsRequest struct {
	Body *CreateTagsRequestBody `json:"body,omitempty"`
}

CreateTagsRequest Request Object

func (CreateTagsRequest) String added in v0.1.1

func (o CreateTagsRequest) String() string

type CreateTagsRequestBody added in v0.1.1

type CreateTagsRequestBody struct {

	// 资源id。  > 域名ID
	ResourceId string `json:"resource_id"`

	// 标签列表。
	Tags []Map `json:"tags"`
}

CreateTagsRequestBody CreateTagsRequestBody

func (CreateTagsRequestBody) String added in v0.1.1

func (o CreateTagsRequestBody) String() string

type CreateTagsResponse added in v0.1.1

type CreateTagsResponse struct {
	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateTagsResponse Response Object

func (CreateTagsResponse) String added in v0.1.1

func (o CreateTagsResponse) String() string

type CustomArgs added in v0.1.67

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.67

func (o CustomArgs) String() string

type DeleteDomainRequest

type DeleteDomainRequest struct {

	// 加速域名ID。
	DomainId string `json:"domain_id"`

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

DeleteDomainRequest Request Object

func (DeleteDomainRequest) String

func (o DeleteDomainRequest) String() string

type DeleteDomainResponse

type DeleteDomainResponse struct {
	Domain *DomainsWithPort `json:"domain,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteDomainResponse Response Object

func (DeleteDomainResponse) String

func (o DeleteDomainResponse) String() string

type DeleteTagsRequestBody added in v0.1.1

type DeleteTagsRequestBody struct {

	// 资源id。  > 域名ID
	ResourceId string `json:"resource_id"`

	// 键列表
	Tags []string `json:"tags"`
}

DeleteTagsRequestBody DeleteTagsRequestBody

func (DeleteTagsRequestBody) String added in v0.1.1

func (o DeleteTagsRequestBody) String() string

type DisableDomainRequest

type DisableDomainRequest struct {

	// 加速域名ID。
	DomainId string `json:"domain_id"`

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

DisableDomainRequest Request Object

func (DisableDomainRequest) String

func (o DisableDomainRequest) String() string

type DisableDomainResponse

type DisableDomainResponse struct {
	Domain *DomainsWithPort `json:"domain,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DisableDomainResponse Response Object

func (DisableDomainResponse) String

func (o DisableDomainResponse) String() string

type DomainBody

type DomainBody struct {

	// 加速域名。( 由字母(A-Z,a-z,大小写等价)、数字(0-9)和连接符(-)组成,各级域名之间用(.)连接,域名长度不超过75个字符。连接符(-)不能作为域名的开头或结尾字符。)
	DomainName string `json:"domain_name"`

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

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

	// 域名服务范围,若为mainland_china,则表示服务范围为中国大陆;若为outside_mainland_china,则表示服务范围为中国大陆境外;若为global,则表示服务范围为全球。
	ServiceArea DomainBodyServiceArea `json:"service_area"`

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

DomainBody 创建域名Body

func (DomainBody) String

func (o DomainBody) String() string

type DomainBodyBusinessType

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

func (DomainBodyBusinessType) MarshalJSON

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

func (*DomainBodyBusinessType) UnmarshalJSON

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

func (DomainBodyBusinessType) Value added in v0.0.90

func (c DomainBodyBusinessType) Value() string

type DomainBodyBusinessTypeEnum

type DomainBodyBusinessTypeEnum struct {
	WEB        DomainBodyBusinessType
	DOWNLOAD   DomainBodyBusinessType
	VIDEO      DomainBodyBusinessType
	WHOLE_SITE DomainBodyBusinessType
}

func GetDomainBodyBusinessTypeEnum

func GetDomainBodyBusinessTypeEnum() DomainBodyBusinessTypeEnum

type DomainBodyServiceArea

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

func (DomainBodyServiceArea) MarshalJSON

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

func (*DomainBodyServiceArea) UnmarshalJSON

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

func (DomainBodyServiceArea) Value added in v0.0.90

func (c DomainBodyServiceArea) Value() string

type DomainBodyServiceAreaEnum

type DomainBodyServiceAreaEnum struct {
	MAINLAND_CHINA         DomainBodyServiceArea
	OUTSIDE_MAINLAND_CHINA DomainBodyServiceArea
	GLOBAL                 DomainBodyServiceArea
}

func GetDomainBodyServiceAreaEnum

func GetDomainBodyServiceAreaEnum() DomainBodyServiceAreaEnum

type DomainItemDetail

type DomainItemDetail struct {

	// 数据起始时间戳,可能与请求时间不一致
	StartTime *int64 `json:"start_time,omitempty"`

	// 数据结束时间戳,可能与请求时间不一致
	EndTime *int64 `json:"end_time,omitempty"`

	// 指标类型
	StatType *string `json:"stat_type,omitempty"`

	// 指标统计数据列表,如果该时间段内无值,则为空数组[]
	Domains *[]map[string]interface{} `json:"domains,omitempty"`
}

func (DomainItemDetail) String

func (o DomainItemDetail) String() string

type DomainItemLocationDetails

type DomainItemLocationDetails struct {

	// 数据起始时间戳,可能与请求时间不一致
	StartTime *int64 `json:"start_time,omitempty"`

	// 数据结束时间戳,可能与请求时间不一致
	EndTime *int64 `json:"end_time,omitempty"`

	// 指标类型
	StatType *string `json:"stat_type,omitempty"`

	// 域名详情数据列表
	Domains *[]DomainRegion `json:"domains,omitempty"`
}

func (DomainItemLocationDetails) String

func (o DomainItemLocationDetails) String() string

type DomainOriginHost

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"`
}

func (DomainOriginHost) String

func (o DomainOriginHost) String() string

type DomainRegion

type DomainRegion struct {

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

	// 指标统计数据列表,如果该时间段内无值,则为空数组[]
	RegionIspDetails *[]map[string]interface{} `json:"region_isp_details,omitempty"`
}

func (DomainRegion) String

func (o DomainRegion) String() string

type Domains

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"`

	// 域名所属用户的domain_id。
	UserDomainId *string `json:"user_domain_id,omitempty"`

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

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

	// 源站域名或源站IP,源站为IP类型时,仅支持IPv4,如需传入多个源站IP,以多个源站对象传入,除IP其他参数请保持一致,主源站最多支持15个源站IP对象,备源站最多支持15个源站IP对象;源站为域名类型时仅支持1个源站对象。不支持IP源站和域名源站混用。
	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

func (o Domains) String() string

type DomainsServiceArea

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

func (DomainsServiceArea) MarshalJSON

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

func (*DomainsServiceArea) UnmarshalJSON

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

func (DomainsServiceArea) Value added in v0.0.90

func (c DomainsServiceArea) Value() string

type DomainsServiceAreaEnum

type DomainsServiceAreaEnum struct {
	MAINLAND_CHINA         DomainsServiceArea
	OUTSIDE_MAINLAND_CHINA DomainsServiceArea
	GLOBAL                 DomainsServiceArea
}

func GetDomainsServiceAreaEnum

func GetDomainsServiceAreaEnum() DomainsServiceAreaEnum

type DomainsWithPort added in v0.0.59

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"`

	// 域名所属用户的domain_id。
	UserDomainId *string `json:"user_domain_id,omitempty"`

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

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

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

	DomainOriginHost *DomainOriginHost `json:"domain_origin_host,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到当前时间相隔的毫秒数。
	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 *DomainsWithPortServiceArea `json:"service_area,omitempty"`

	// Range回源状态(off代表关闭 on代表开启)。
	RangeStatus *string `json:"range_status,omitempty"`

	// 回源跟随状态(off代表关闭 on代表开启)。
	FollowStatus *string `json:"follow_status,omitempty"`

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

	// 域名禁用原因。 1:该域名涉嫌违规内容(涉黄/涉赌/涉毒/涉政)已被禁用; 2:该域名因备案失效已被禁用; 3:该域名遭受攻击,已被禁用; 150:该域名涉嫌违规内容涉黄已被禁用; 151:该域名涉嫌违规内容涉政已被禁用; 152:该域名涉嫌违规内容涉暴已被禁用; 153:该域名涉嫌违规内容涉赌已被禁用。
	BannedReason *string `json:"banned_reason,omitempty"`

	// 域名锁定原因(Changing the config, please wait)。
	LockedReason *string `json:"locked_reason,omitempty"`

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

DomainsWithPort 域名信息。

func (DomainsWithPort) String added in v0.0.59

func (o DomainsWithPort) String() string

type DomainsWithPortServiceArea added in v0.0.59

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

func (DomainsWithPortServiceArea) MarshalJSON added in v0.0.59

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

func (*DomainsWithPortServiceArea) UnmarshalJSON added in v0.0.59

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

func (DomainsWithPortServiceArea) Value added in v0.0.90

type DomainsWithPortServiceAreaEnum added in v0.0.59

type DomainsWithPortServiceAreaEnum struct {
	MAINLAND_CHINA         DomainsWithPortServiceArea
	OUTSIDE_MAINLAND_CHINA DomainsWithPortServiceArea
	GLOBAL                 DomainsWithPortServiceArea
}

func GetDomainsWithPortServiceAreaEnum added in v0.0.59

func GetDomainsWithPortServiceAreaEnum() DomainsWithPortServiceAreaEnum

type EnableDomainRequest

type EnableDomainRequest struct {

	// 加速域名ID。
	DomainId string `json:"domain_id"`

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

EnableDomainRequest Request Object

func (EnableDomainRequest) String

func (o EnableDomainRequest) String() string

type EnableDomainResponse

type EnableDomainResponse struct {
	Domain *DomainsWithPort `json:"domain,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

EnableDomainResponse Response Object

func (EnableDomainResponse) String

func (o EnableDomainResponse) String() string

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 ErrorCodeCache added in v0.1.1

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.1

func (o ErrorCodeCache) String() string

type ErrorCodeRedirectRules added in v0.1.5

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.5

func (o ErrorCodeRedirectRules) String() string

type FlexibleOrigins added in v0.1.67

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.67

func (o FlexibleOrigins) String() string

type Follow302StatusBody

type Follow302StatusBody struct {

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

	// follow302状态,off:关闭,on:开启。
	FollowStatus *Follow302StatusBodyFollowStatus `json:"follow_status,omitempty"`
}

func (Follow302StatusBody) String

func (o Follow302StatusBody) String() string

type Follow302StatusBodyFollowStatus

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

func (Follow302StatusBodyFollowStatus) MarshalJSON

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

func (*Follow302StatusBodyFollowStatus) UnmarshalJSON

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

func (Follow302StatusBodyFollowStatus) Value added in v0.0.90

type Follow302StatusBodyFollowStatusEnum

type Follow302StatusBodyFollowStatusEnum struct {
	OFF Follow302StatusBodyFollowStatus
	ON  Follow302StatusBodyFollowStatus
}

func GetFollow302StatusBodyFollowStatusEnum

func GetFollow302StatusBodyFollowStatusEnum() Follow302StatusBodyFollowStatusEnum

type Follow302StatusRequest

type Follow302StatusRequest struct {

	// follow302状态,off:关闭,on:开启。
	Follow302Status Follow302StatusRequestFollow302Status `json:"follow302_status"`
}

Follow302StatusRequest This is a auto create Body Object

func (Follow302StatusRequest) String

func (o Follow302StatusRequest) String() string

type Follow302StatusRequestFollow302Status

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

func (Follow302StatusRequestFollow302Status) MarshalJSON

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

func (*Follow302StatusRequestFollow302Status) UnmarshalJSON

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

func (Follow302StatusRequestFollow302Status) Value added in v0.0.90

type ForceRedirect

type ForceRedirect struct {

	// 强制跳转开关。1打开。0关闭。
	Switch int32 `json:"switch"`

	// 强制跳转类型。http:强制跳转HTTP。https:强制跳转HTTPS。
	RedirectType *string `json:"redirect_type,omitempty"`
}

func (ForceRedirect) String

func (o ForceRedirect) String() string

type ForceRedirectConfig added in v0.0.84

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.0.84

func (o ForceRedirectConfig) String() string

type HeaderBody

type HeaderBody struct {
	Headers *HeaderMap `json:"headers,omitempty"`
}

func (HeaderBody) String

func (o HeaderBody) String() string

type HeaderMap

type HeaderMap struct {

	// 指示回复的内容该以何种形式展示
	ContentDisposition *string `json:"Content-Disposition,omitempty"`

	// 说明访问者希望采用的语言或语言组合
	ContentLanguage *string `json:"Content-Language,omitempty"`

	// 指定了该响应的资源是否被允许与给定的origin共享
	AccessControlAllowOrigin *string `json:"Access-Control-Allow-Origin,omitempty"`

	// 明确了客户端所要访问的资源允许使用的方法或方法列表
	AccessControlAllowMethods *string `json:"Access-Control-Allow-Methods,omitempty"`

	// Access-Control-Allow-Methods 和Access-Control-Allow-Headers 提供的信息可以被缓存多久
	AccessControlMaxAge *string `json:"Access-Control-Max-Age,omitempty"`

	// 列出了哪些首部可以作为响应的一部分暴露给外部
	AccessControlExposeHeaders *string `json:"Access-Control-Expose-Headers,omitempty"`
}

HeaderMap 设置HTTP头参数。取值:\"Content-Disposition\", \"Content-Language\", \"Access-Control-Allow-Origin\",\"Access-Control-Allow-Methods\", \"Access-Control-Max-Age\", \"Access-Control-Expose-Headers\"。

func (HeaderMap) String

func (o HeaderMap) String() string

type HstsQuery added in v0.1.67

type HstsQuery struct {

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

	// 过期时间,即:响应头“Strict-Transport-Security”在客户端的缓存时间。单位:秒。
	MaxAge *int32 `json:"max_age,omitempty"`

	// 包含子域名,on:包含,off:不包含。
	IncludeSubdomains *string `json:"include_subdomains,omitempty"`
}

HstsQuery HSTS:配置HSTS后,将强制客户端(如浏览器)使用 HTTPS 协议访问服务器,提升访问安全性。

func (HstsQuery) String added in v0.1.67

func (o HstsQuery) String() string

type HttpGetBody added in v0.0.78

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.0.78

func (o HttpGetBody) String() string

type HttpInfoRequest

type HttpInfoRequest struct {
	Https *HttpInfoRequestBody `json:"https"`
}

func (HttpInfoRequest) String

func (o HttpInfoRequest) String() string

type HttpInfoRequestBody

type HttpInfoRequestBody struct {

	// 证书名字。(长度限制为3-64字符)。
	CertName string `json:"cert_name"`

	// HTTPS证书是否启用。0:不启用,此时无需填写证书及私钥参数;1:启用HTTPS加速并协议跟随回源;2:启用HTTPS加速并HTTP回源;3:启用HTTPS加速并HTTPS回源,首次配置证书需要传递证书及私钥,如已有证书可不用传证书及私钥。
	HttpsStatus int32 `json:"https_status"`

	// HTTPS协议使用的SSL证书内容,仅支持PEM编码格式。不启用证书则无需输入。初次配置证书时必传。
	Certificate *string `json:"certificate,omitempty"`

	// HTTPS协议使用的SSL证书私钥内容,仅支持PEM编码格式。不启用证书则无需输入。初次配置证书时必传。
	PrivateKey *string `json:"private_key,omitempty"`

	// 是否使用HTTP2.0。(1:是,0:否。)
	Http2 *int32 `json:"http2,omitempty"`

	// 证书类型。1:代表华为云托管证书;0:表示自有证书。 默认值0。
	CertificateType *int32 `json:"certificate_type,omitempty"`

	// 强制跳转HTTPS(0:不强制;1:强制) 为空值时默认设置为关闭。(此参数即将下线,建议使用force_redirect_config修改配置)
	ForceRedirectHttps *int32 `json:"force_redirect_https,omitempty"`

	ForceRedirectConfig *ForceRedirect `json:"force_redirect_config,omitempty"`
}

func (HttpInfoRequestBody) String

func (o HttpInfoRequestBody) String() string

type HttpInfoResponseBody

type HttpInfoResponseBody struct {

	// HTTPS证书是否启用。0:不启用,此时无需填写证书及私钥参数;1:启用HTTPS加速并协议跟随回源;2:启用HTTPS加速并HTTP回源;3:启用HTTPS加速并HTTPS回源,开启时需要传递证书及私钥
	HttpsStatus *int32 `json:"https_status,omitempty"`

	// 证书名称。(长度限制为3-32字符)。
	CertName *string `json:"cert_name,omitempty"`

	// 证书内容。
	Certificate *string `json:"certificate,omitempty"`

	// 功能说明: HTTPS协议使用的私钥,不启用证书则无需输入。(为了客户信息安全,接口返回私钥为空)
	PrivateKey *string `json:"private_key,omitempty"`

	// 证书类型。1:代表华为云托管证书;0:表示自有证书。
	CertificateType *int32 `json:"certificate_type,omitempty"`

	// 客户端请求是否强制重定向。1是,0否。(如果为2,表示强制跳转HTTP)
	ForceRedirectHttps *int32 `json:"force_redirect_https,omitempty"`

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

	// 是否使用HTTP2.0。(1是,0否。)
	Http2 *int32 `json:"http2,omitempty"`

	// 证书过期时间
	ExpirationTime *int64 `json:"expiration_time,omitempty"`
}

func (HttpInfoResponseBody) String

func (o HttpInfoResponseBody) String() string

type HttpPutBody added in v0.0.78

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"`

	// 证书来源,0:自有证书。  > 证书开启时必传
	CertificateSource *int32 `json:"certificate_source,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"`
}

HttpPutBody 设置证书请求体

func (HttpPutBody) String added in v0.0.78

func (o HttpPutBody) String() string

type HttpResponseHeader added in v0.0.74

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.0.74

func (o HttpResponseHeader) String() string

type HttpsDetail

type HttpsDetail struct {

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

	// 绑定该证书的域名。
	DomainName *string `json:"domain_name,omitempty"`

	// 证书名字。
	CertName *string `json:"cert_name,omitempty"`

	// 证书内容。
	Certificate *string `json:"certificate,omitempty"`

	// 私钥内容。
	PrivateKey *string `json:"private_key,omitempty"`

	// 0:自有证书  1:云托管证书。
	CertificateType *int32 `json:"certificate_type,omitempty"`

	// 证书过期时间。
	ExpirationTime *int64 `json:"expiration_time,omitempty"`

	// HTTPS证书是否启用,取值0:不启用;1:启用HTTPS加速并协议跟随回源;2:启用HTTPS加速并HTTP回源。
	HttpsStatus *int32 `json:"https_status,omitempty"`

	// 客户端请求是否强制重定向。1是,0否。(如果为2,表示强制跳转HTTP)
	ForceRedirectHttps *int32 `json:"force_redirect_https,omitempty"`

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

	// 是否使用HTTP2.0。(1是,0否。)
	Http2 *int32 `json:"http2,omitempty"`
}

func (HttpsDetail) String

func (o HttpsDetail) String() string

type InheritConfigQuery added in v0.1.67

type InheritConfigQuery struct {

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

	// 鉴权继承配置, m3u8:M3U8,mpd:MPD,“m3u8,mpd”。
	InheritType *string `json:"inherit_type,omitempty"`

	// 鉴权继承的文件类型时间, sys_time:当前系统时间,parent_url_time:与m3u8和mpd访问链接保持一致。
	InheritTimeType *string `json:"inherit_time_type,omitempty"`
}

InheritConfigQuery 鉴权继承,为M3U8/MPD索引文件下的TS/MP4文件添加鉴权参数,解决因鉴权不通过导致的TS/MP4文件无法播放的问题。

func (InheritConfigQuery) String added in v0.1.67

func (o InheritConfigQuery) 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 IpFrequencyLimitQuery added in v0.1.67

type IpFrequencyLimitQuery struct {

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

	// 访问阈值,单位:次/秒。
	Qps *int32 `json:"qps,omitempty"`
}

IpFrequencyLimitQuery Ip访问限频。

func (IpFrequencyLimitQuery) String added in v0.1.67

func (o IpFrequencyLimitQuery) String() string

type ListDomainsRequest

type ListDomainsRequest struct {

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

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

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

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

	// 每页加速域名的数量,取值范围1-10000,默认值为30。
	PageSize *int32 `json:"page_size,omitempty"`

	// 查询的页码,即:从哪一页开始查询,取值范围1-65535,默认值为1。
	PageNumber *int32 `json:"page_number,omitempty"`

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

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

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

ListDomainsRequest Request Object

func (ListDomainsRequest) String

func (o ListDomainsRequest) String() string

type ListDomainsRequestBusinessType

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

func (ListDomainsRequestBusinessType) MarshalJSON

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

func (*ListDomainsRequestBusinessType) UnmarshalJSON

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

func (ListDomainsRequestBusinessType) Value added in v0.0.90

type ListDomainsRequestDomainStatus

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

func (ListDomainsRequestDomainStatus) MarshalJSON

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

func (*ListDomainsRequestDomainStatus) UnmarshalJSON

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

func (ListDomainsRequestDomainStatus) Value added in v0.0.90

type ListDomainsRequestServiceArea

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

func (ListDomainsRequestServiceArea) MarshalJSON

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

func (*ListDomainsRequestServiceArea) UnmarshalJSON

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

func (ListDomainsRequestServiceArea) Value added in v0.0.90

type ListDomainsRequestServiceAreaEnum

type ListDomainsRequestServiceAreaEnum struct {
	MAINLAND_CHINA         ListDomainsRequestServiceArea
	OUTSIDE_MAINLAND_CHINA ListDomainsRequestServiceArea
	GLOBAL                 ListDomainsRequestServiceArea
}

func GetListDomainsRequestServiceAreaEnum

func GetListDomainsRequestServiceAreaEnum() ListDomainsRequestServiceAreaEnum

type ListDomainsResponse

type ListDomainsResponse struct {

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

	// 域名信息
	Domains *[]Domains `json:"domains,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListDomainsResponse Response Object

func (ListDomainsResponse) String

func (o ListDomainsResponse) String() string

type LogObject

type LogObject struct {

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

	// 查询起始时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。
	StartTime *int64 `json:"start_time,omitempty"`

	// 查询结束时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。
	EndTime *int64 `json:"end_time,omitempty"`

	// 日志文件名字。
	Name *string `json:"name,omitempty"`

	// 文件大小(Byte)。
	Size *int64 `json:"size,omitempty"`

	// 下载链接。
	Link *string `json:"link,omitempty"`
}

func (LogObject) String

func (o LogObject) String() string

type Map added in v0.1.1

type Map struct {

	// 标签键。长度1~128个字符, 可用 UTF-8 格式表示的字母(包含中文)、数字和空格,以及以下字符: _ . : = + - @
	Key string `json:"key"`

	// 标签值。长度0~255个字符,  可用 UTF-8 格式表示的字母(包含中文)、数字和空格,以及以下字符: _ . : / = + - @
	Value *string `json:"value,omitempty"`
}

func (Map) String added in v0.1.1

func (o Map) String() string

type ModifyDomainConfigRequestBody added in v0.0.74

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

func (ModifyDomainConfigRequestBody) String added in v0.0.74

type OriginHostBody

type OriginHostBody struct {

	// accelerate:选择加速域名作为回源host域名; customize:使用自定义的域名作为回源host域名;
	OriginHostType OriginHostBodyOriginHostType `json:"origin_host_type"`

	// 自定义回源域名,origin_host_type为 customize时传入该参数。
	CustomizeDomain *string `json:"customize_domain,omitempty"`
}

func (OriginHostBody) String

func (o OriginHostBody) String() string

type OriginHostBodyOriginHostType

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

func (OriginHostBodyOriginHostType) MarshalJSON

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

func (*OriginHostBodyOriginHostType) UnmarshalJSON

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

func (OriginHostBodyOriginHostType) Value added in v0.0.90

type OriginHostBodyOriginHostTypeEnum

type OriginHostBodyOriginHostTypeEnum struct {
	ACCELERATE OriginHostBodyOriginHostType
	CUSTOMIZE  OriginHostBodyOriginHostType
}

func GetOriginHostBodyOriginHostTypeEnum

func GetOriginHostBodyOriginHostTypeEnum() OriginHostBodyOriginHostTypeEnum

type OriginHostRequest

type OriginHostRequest struct {
	OriginHost *OriginHostBody `json:"origin_host"`
}

func (OriginHostRequest) String

func (o OriginHostRequest) String() string

type OriginRangeBody

type OriginRangeBody struct {

	// range状态(\"off\"/\"on\")
	RangeStatus *OriginRangeBodyRangeStatus `json:"range_status,omitempty"`

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

func (OriginRangeBody) String

func (o OriginRangeBody) String() string

type OriginRangeBodyRangeStatus

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

func (OriginRangeBodyRangeStatus) MarshalJSON

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

func (*OriginRangeBodyRangeStatus) UnmarshalJSON

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

func (OriginRangeBodyRangeStatus) Value added in v0.0.90

type OriginRangeBodyRangeStatusEnum

type OriginRangeBodyRangeStatusEnum struct {
	OFF OriginRangeBodyRangeStatus
	ON  OriginRangeBodyRangeStatus
}

func GetOriginRangeBodyRangeStatusEnum

func GetOriginRangeBodyRangeStatusEnum() OriginRangeBodyRangeStatusEnum

type OriginRequest

type OriginRequest struct {
	Origin *ResourceBody `json:"origin"`
}

func (OriginRequest) String

func (o OriginRequest) String() string

type OriginRequestHeader added in v0.0.74

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.0.74

func (o OriginRequestHeader) String() string

type OriginRequestUrlRewrite added in v0.1.5

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,不含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.5

func (o OriginRequestUrlRewrite) String() string

type PreheatingTaskRequest

type PreheatingTaskRequest struct {
	PreheatingTask *PreheatingTaskRequestBody `json:"preheating_task"`
}

func (PreheatingTaskRequest) String

func (o PreheatingTaskRequest) String() string

type PreheatingTaskRequestBody added in v0.0.51

type PreheatingTaskRequestBody struct {

	// 是否对url中的中文字符进行编码后预热,false代表不开启,true代表开启,开启后仅预热转码后的URL。
	ZhUrlEncode *bool `json:"zh_url_encode,omitempty"`

	// 需要预热的URL必须带有“http://”或“https://”,多个URL用逗号分隔,目前不支持对目录的预热,单个url的长度限制为4096字符,单次最多输入1000个url。
	Urls []string `json:"urls"`
}

func (PreheatingTaskRequestBody) String added in v0.0.51

func (o PreheatingTaskRequestBody) String() string

type Quic added in v0.1.67

type Quic struct {

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

Quic QUIC协议。

func (Quic) String added in v0.1.67

func (o Quic) String() string

type Quotas added in v0.0.61

type Quotas struct {

	// 配额上限。
	QuotaLimit *int32 `json:"quota_limit,omitempty"`

	// 配额类型。
	Type *string `json:"type,omitempty"`

	// 已使用配额数。
	Used *int32 `json:"used,omitempty"`

	// 域名所属用户的domain_id。
	UserDomainId *string `json:"user_domain_id,omitempty"`
}

func (Quotas) String added in v0.0.61

func (o Quotas) String() string

type RangeStatusRequest

type RangeStatusRequest struct {

	// range状态(\"off\"/\"on\")
	RangeStatus RangeStatusRequestRangeStatus `json:"range_status"`
}

func (RangeStatusRequest) String

func (o RangeStatusRequest) String() string

type RangeStatusRequestRangeStatus

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

func (RangeStatusRequestRangeStatus) MarshalJSON

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

func (*RangeStatusRequestRangeStatus) UnmarshalJSON

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

func (RangeStatusRequestRangeStatus) Value added in v0.0.90

type RangeStatusRequestRangeStatusEnum

type RangeStatusRequestRangeStatusEnum struct {
	OFF RangeStatusRequestRangeStatus
	ON  RangeStatusRequestRangeStatus
}

func GetRangeStatusRequestRangeStatusEnum

func GetRangeStatusRequestRangeStatusEnum() RangeStatusRequestRangeStatusEnum

type Referer

type Referer struct {

	// Referer类型。取值:0代表不设置Referer过滤;1代表黑名单;2代表白名单。默认取值为0。
	RefererType int32 `json:"referer_type"`

	// 请输入域名或IP地址,以“;”进行分割,域名、IP地址可以混合输入,支持泛域名添加。输入的域名、IP地址总数不超过400个。当设置防盗链时,此项必填。
	RefererList *string `json:"referer_list,omitempty"`

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

func (Referer) String

func (o Referer) String() string

type RefererBody

type RefererBody struct {
	Referer *Referer `json:"referer"`
}

func (RefererBody) String

func (o RefererBody) 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允许访问,默认值false。
	IncludeEmpty *bool `json:"include_empty,omitempty"`
}

RefererConfig 防盗链。

func (RefererConfig) String added in v0.1.37

func (o RefererConfig) String() string

type RefererRsp

type RefererRsp struct {

	// Referer类型。取值:0代表不设置Referer过滤;1代表黑名单;2代表白名单。默认取值为0。
	RefererType *int32 `json:"referer_type,omitempty"`

	// :配置的referer地址。
	RefererList *string `json:"referer_list,omitempty"`

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

func (RefererRsp) String

func (o RefererRsp) String() string

type RefreshTaskRequest

type RefreshTaskRequest struct {
	RefreshTask *RefreshTaskRequestBody `json:"refresh_task"`
}

func (RefreshTaskRequest) String

func (o RefreshTaskRequest) String() string

type RefreshTaskRequestBody

type RefreshTaskRequestBody struct {

	// 刷新的类型,其值可以为file:文件,或directory:目录,默认为file。
	Type *RefreshTaskRequestBodyType `json:"type,omitempty"`

	// 目录刷新方式,all:刷新目录下全部资源;detect_modify_refresh:刷新目录下已变更的资源,默认值为all。
	Mode *RefreshTaskRequestBodyMode `json:"mode,omitempty"`

	// 是否对url中的中文字符进行编码后刷新,false代表不开启,true代表开启,开启后仅刷新转码后的URL。
	ZhUrlEncode *bool `json:"zh_url_encode,omitempty"`

	// 需要刷新的URL必须带有“http://”或“https://”,多个URL用逗号分隔,单个url的长度限制为4096字符,单次最多输入1000个url,如果输入的是目录,支持100个目录刷新。  >   如果您需要刷新的URL中有中文,请同时刷新中文URL和转码后的URL。
	Urls []string `json:"urls"`
}

func (RefreshTaskRequestBody) String

func (o RefreshTaskRequestBody) String() string

type RefreshTaskRequestBodyMode added in v0.1.40

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

func (RefreshTaskRequestBodyMode) MarshalJSON added in v0.1.40

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

func (*RefreshTaskRequestBodyMode) UnmarshalJSON added in v0.1.40

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

func (RefreshTaskRequestBodyMode) Value added in v0.1.40

type RefreshTaskRequestBodyModeEnum added in v0.1.40

type RefreshTaskRequestBodyModeEnum struct {
	ALL                   RefreshTaskRequestBodyMode
	DETECT_MODIFY_REFRESH RefreshTaskRequestBodyMode
}

func GetRefreshTaskRequestBodyModeEnum added in v0.1.40

func GetRefreshTaskRequestBodyModeEnum() RefreshTaskRequestBodyModeEnum

type RefreshTaskRequestBodyType

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

func (RefreshTaskRequestBodyType) MarshalJSON

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

func (*RefreshTaskRequestBodyType) UnmarshalJSON

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

func (RefreshTaskRequestBodyType) Value added in v0.0.90

type RefreshTaskRequestBodyTypeEnum

type RefreshTaskRequestBodyTypeEnum struct {
	FILE      RefreshTaskRequestBodyType
	DIRECTORY RefreshTaskRequestBodyType
}

func GetRefreshTaskRequestBodyTypeEnum

func GetRefreshTaskRequestBodyTypeEnum() RefreshTaskRequestBodyTypeEnum

type RemoteAuthRuleVo added in v0.1.67

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.67

func (o RemoteAuthRuleVo) String() string

type RequestLimitRules added in v0.1.67

type RequestLimitRules struct {

	// status只支持on,off无效。  > request_limit_rules字段置空时代表关闭请求限速功能。  > 旧接口中的参数,后续将下线。
	Status *string `json:"status,omitempty"`

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

	// 匹配类型,all:所有文件,catalog:目录。
	MatchType string `json:"match_type"`

	// 匹配类型值。 当match_type为all时传空值,例如:\"\"; 当match_type为catalog时传目录地址,以“/”作为首字符,例如:\"/test\"。  > 值为catalog的时候必填
	MatchValue *string `json:"match_value,omitempty"`

	// 限速方式,当前仅支持按流量大小限速,取值为size。
	Type string `json:"type"`

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

	// 限速值,单位Bps,取值范围 0-104857600。
	LimitRateValue int32 `json:"limit_rate_value"`
}

RequestLimitRules 请求限速配置。

func (RequestLimitRules) String added in v0.1.67

func (o RequestLimitRules) String() string

type ResourceBody

type ResourceBody struct {

	// 源站配置。
	Sources []SourceWithPort `json:"sources"`
}

func (ResourceBody) String

func (o ResourceBody) String() string

type Rules

type Rules struct {

	// 0:全部类型,表示匹配所有文件,默认值。  1:文件类型,表示按文件后缀匹配。  2:文件夹类型,表示按目录匹配。  3:文件全路径类型,表示按文件全路径匹配。 5:缓存首页。
	RuleType int32 `json:"rule_type"`

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

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

	// 缓存时间单位。1:秒;2:分;3:小时;4:天。
	TtlType int32 `json:"ttl_type"`

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

func (Rules) String

func (o Rules) String() string

type ShowBlackWhiteListRequest

type ShowBlackWhiteListRequest struct {

	// 需要查询IP黑白名单的域名id。获取方法请参见查询加速域名。
	DomainId string `json:"domain_id"`

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

ShowBlackWhiteListRequest Request Object

func (ShowBlackWhiteListRequest) String

func (o ShowBlackWhiteListRequest) String() string

type ShowBlackWhiteListResponse

type ShowBlackWhiteListResponse struct {

	// IP黑白名单类型(0:关闭IP黑白名单功能,1:黑名单,2:白名单)。
	Type *int32 `json:"type,omitempty"`

	// IP黑白名单列表。
	IpList *[]string `json:"ip_list,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowBlackWhiteListResponse Response Object

func (ShowBlackWhiteListResponse) String

type ShowCacheRulesRequest

type ShowCacheRulesRequest struct {

	// 加速域名ID。
	DomainId string `json:"domain_id"`

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

ShowCacheRulesRequest Request Object

func (ShowCacheRulesRequest) String

func (o ShowCacheRulesRequest) String() string

type ShowCacheRulesResponse

type ShowCacheRulesResponse struct {
	CacheConfig *CacheConfig `json:"cache_config,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowCacheRulesResponse Response Object

func (ShowCacheRulesResponse) String

func (o ShowCacheRulesResponse) String() string

type ShowCertificatesHttpsInfoRequest

type ShowCertificatesHttpsInfoRequest struct {

	// 每页的数量,取值范围1-10000,不设值时默认值为30。
	PageSize *int32 `json:"page_size,omitempty"`

	// 查询的页码。取值范围1-65535,不设值时默认值为1。
	PageNumber *int32 `json:"page_number,omitempty"`

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

	// 域名所属用户的domain_id。
	UserDomainId *string `json:"user_domain_id,omitempty"`

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

ShowCertificatesHttpsInfoRequest Request Object

func (ShowCertificatesHttpsInfoRequest) String

type ShowCertificatesHttpsInfoResponse

type ShowCertificatesHttpsInfoResponse struct {

	// 查询结果总数。
	Total *int32 `json:"total,omitempty"`

	// https配置。
	Https *[]HttpsDetail `json:"https,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowCertificatesHttpsInfoResponse Response Object

func (ShowCertificatesHttpsInfoResponse) String

type ShowDomainDetailRequest

type ShowDomainDetailRequest struct {

	// 加速域名ID。
	DomainId string `json:"domain_id"`

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

ShowDomainDetailRequest Request Object

func (ShowDomainDetailRequest) String

func (o ShowDomainDetailRequest) String() string

type ShowDomainDetailResponse

type ShowDomainDetailResponse struct {
	Domain *DomainsWithPort `json:"domain,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowDomainDetailResponse Response Object

func (ShowDomainDetailResponse) String

func (o ShowDomainDetailResponse) String() string

type ShowDomainFullConfigRequest added in v0.0.78

type ShowDomainFullConfigRequest struct {

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

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

ShowDomainFullConfigRequest Request Object

func (ShowDomainFullConfigRequest) String added in v0.0.78

type ShowDomainFullConfigResponse added in v0.0.78

type ShowDomainFullConfigResponse struct {
	Configs *ConfigsGetBody `json:"configs,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowDomainFullConfigResponse Response Object

func (ShowDomainFullConfigResponse) String added in v0.0.78

type ShowDomainItemDetailsRequest

type ShowDomainItemDetailsRequest struct {

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

	// 查询起始时间戳,必须设为5分钟整时刻点
	StartTime int64 `json:"start_time"`

	// 查询结束时间戳,必须设为5分钟整时刻点
	EndTime int64 `json:"end_time"`

	// 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com,all表示查询名下全部域名。如果域名在查询时间段内无数据,结果将不返回该域名的信息。
	DomainName string `json:"domain_name"`

	// mainland_china(中国大陆),outside_mainland_china(中国大陆境外),默认为mainland_china。
	ServiceArea *string `json:"service_area,omitempty"`

	// 网络资源消耗: - 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不能一起查询,否则数据会不准确,status_code不支持指定服务区域
	StatType string `json:"stat_type"`
}

ShowDomainItemDetailsRequest Request Object

func (ShowDomainItemDetailsRequest) String

type ShowDomainItemDetailsResponse

type ShowDomainItemDetailsResponse struct {
	DomainItemDetails *DomainItemDetail `json:"domain_item_details,omitempty"`
	HttpStatusCode    int               `json:"-"`
}

ShowDomainItemDetailsResponse Response Object

func (ShowDomainItemDetailsResponse) String

type ShowDomainItemLocationDetailsRequest

type ShowDomainItemLocationDetailsRequest struct {

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

	// 查询开始时间戳,必须设为5分钟整时刻点
	StartTime int64 `json:"start_time"`

	// 查询结束时间戳,必须设为5分钟整时刻点
	EndTime int64 `json:"end_time"`

	// 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com,all表示查询名下全部域名。如果域名在查询时间段内无数据,结果将不返回该域名的信息。
	DomainName string `json:"domain_name"`

	// 指标类型列表 网络资源消耗:bw(带宽),flux(流量),ipv6_bw(ipv6带宽),ipv6_flux(ipv6流量), https_bw(https带宽),https_flux(https流量) 访问情况:req_num(请求总数),hit_num(请求命中次数),req_time(请求时长) HTTP状态码(组合指标):status_code_2xx(状态码2xx),status_code_3xx(状态码3xx),status_code_4xx(状态码4xx),status_code_5xx(状态码5xx)
	StatType string `json:"stat_type"`

	// 区域列表,以逗号分隔,all表示查询全部区域
	Region string `json:"region"`

	// 运营商列表,以逗号分隔,all表示查询全部运营商
	Isp string `json:"isp"`
}

ShowDomainItemLocationDetailsRequest Request Object

func (ShowDomainItemLocationDetailsRequest) String

type ShowDomainItemLocationDetailsResponse

type ShowDomainItemLocationDetailsResponse struct {
	DomainItemLocationDetails *DomainItemLocationDetails `json:"domain_item_location_details,omitempty"`
	HttpStatusCode            int                        `json:"-"`
}

ShowDomainItemLocationDetailsResponse Response Object

func (ShowDomainItemLocationDetailsResponse) String

type ShowDomainLocationStatsRequest added in v0.0.78

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"`

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

	// 域名列表,多个域名以逗号(半角)分隔,如: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"`

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

	// 国家编码,多个以英文逗号分隔,all表示全部,取值见附录。
	Country *string `json:"country,omitempty"`

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

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

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

ShowDomainLocationStatsRequest Request Object

func (ShowDomainLocationStatsRequest) String added in v0.0.78

type ShowDomainLocationStatsResponse added in v0.0.78

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 added in v0.0.78

type ShowDomainStatsRequest added in v0.0.60

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\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。  您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ShowDomainStatsRequest Request Object

func (ShowDomainStatsRequest) String added in v0.0.60

func (o ShowDomainStatsRequest) String() string

type ShowDomainStatsResponse added in v0.0.60

type ShowDomainStatsResponse struct {

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

ShowDomainStatsResponse Response Object

func (ShowDomainStatsResponse) String added in v0.0.60

func (o ShowDomainStatsResponse) String() string

type ShowHistoryTaskDetailsRequest

type ShowHistoryTaskDetailsRequest struct {

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

	// 刷新任务ID。
	HistoryTasksId string `json:"history_tasks_id"`

	// 刷新预热的urls所显示单页最大数量,取值范围为1-10000。page_size和page_number必须同时传值。默认值30。
	PageSize *int32 `json:"page_size,omitempty"`

	// 刷新预热的urls当前查询为第几页,取值范围为1-65535。默认值1。
	PageNumber *int32 `json:"page_number,omitempty"`

	// url的状态 processing 处理中,succeed 完成,failed 失败,waiting 等待,refreshing 刷新中,preheating 预热中。
	Status *string `json:"status,omitempty"`

	// url的地址。
	Url *string `json:"url,omitempty"`

	// 刷新预热任务的创建时间。不传参默认为查询7天内的任务。最长可查询15天内数据。
	CreateTime *int64 `json:"create_time,omitempty"`
}

ShowHistoryTaskDetailsRequest Request Object

func (ShowHistoryTaskDetailsRequest) String

type ShowHistoryTaskDetailsResponse

type ShowHistoryTaskDetailsResponse struct {

	// 任务id。
	Id *string `json:"id,omitempty"`

	// 任务类型,refresh:刷新任务;preheating:预热任务。
	TaskType *string `json:"task_type,omitempty"`

	// 任务执行结果,task_done:成功,task_inprocess:处理中。
	Status *string `json:"status,omitempty"`

	// 本次提交的url列表。
	Urls *[]UrlObject `json:"urls,omitempty"`

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

	// 处理中的url个数。
	Processing *int32 `json:"processing,omitempty"`

	// 成功处理的url个数。
	Succeed *int32 `json:"succeed,omitempty"`

	// 处理失败的url个数。
	Failed *int32 `json:"failed,omitempty"`

	// 历史任务的url个数。
	Total *int32 `json:"total,omitempty"`

	// 文件类型,file:文件;directory:目录,默认是文件file,
	FileType *string `json:"file_type,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowHistoryTaskDetailsResponse Response Object

func (ShowHistoryTaskDetailsResponse) String

type ShowHistoryTasksRequest

type ShowHistoryTasksRequest struct {

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

	// 单页最大数量,取值范围为1-10000。page_size和page_number必须同时传值。默认值30。
	PageSize *int32 `json:"page_size,omitempty"`

	// 当前查询第几页,取值范围为1-65535。默认值1。
	PageNumber *int32 `json:"page_number,omitempty"`

	// 任务状态。 task_inprocess 表示任务处理中,task_done表示任务完成。
	Status *ShowHistoryTasksRequestStatus `json:"status,omitempty"`

	// 查询起始时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。
	StartDate *int64 `json:"start_date,omitempty"`

	// 查询结束时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。
	EndDate *int64 `json:"end_date,omitempty"`

	// 用来排序的字段,支持的字段有“task_type”:任务的类型,“total”:url总数,“processing”:处理中的url个数, “succeed”:成功处理的url个数,“failed”:处理失败的url个数,“create_time”:任务的创建时间。order_field和order_type必须同时传值,否则使用默认值\"create_time\" 和 \"desc\":降序。
	OrderField *string `json:"order_field,omitempty"`

	// desc:降序,或者asc:升序。默认值desc。
	OrderType *string `json:"order_type,omitempty"`

	// 默认是文件file。file:文件,directory:目录。
	FileType *ShowHistoryTasksRequestFileType `json:"file_type,omitempty"`

	// 任务类型,refresh:刷新任务;preheating:预热任务
	TaskType *ShowHistoryTasksRequestTaskType `json:"task_type,omitempty"`
}

ShowHistoryTasksRequest Request Object

func (ShowHistoryTasksRequest) String

func (o ShowHistoryTasksRequest) String() string

type ShowHistoryTasksRequestFileType

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

func (ShowHistoryTasksRequestFileType) MarshalJSON

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

func (*ShowHistoryTasksRequestFileType) UnmarshalJSON

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

func (ShowHistoryTasksRequestFileType) Value added in v0.0.90

type ShowHistoryTasksRequestFileTypeEnum

type ShowHistoryTasksRequestFileTypeEnum struct {
	FILE      ShowHistoryTasksRequestFileType
	DIRECTORY ShowHistoryTasksRequestFileType
}

func GetShowHistoryTasksRequestFileTypeEnum

func GetShowHistoryTasksRequestFileTypeEnum() ShowHistoryTasksRequestFileTypeEnum

type ShowHistoryTasksRequestStatus

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

func (ShowHistoryTasksRequestStatus) MarshalJSON

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

func (*ShowHistoryTasksRequestStatus) UnmarshalJSON

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

func (ShowHistoryTasksRequestStatus) Value added in v0.0.90

type ShowHistoryTasksRequestStatusEnum

type ShowHistoryTasksRequestStatusEnum struct {
	TASK_INPROCESS ShowHistoryTasksRequestStatus
	TASK_DONE      ShowHistoryTasksRequestStatus
}

func GetShowHistoryTasksRequestStatusEnum

func GetShowHistoryTasksRequestStatusEnum() ShowHistoryTasksRequestStatusEnum

type ShowHistoryTasksRequestTaskType added in v0.1.61

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

func (ShowHistoryTasksRequestTaskType) MarshalJSON added in v0.1.61

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

func (*ShowHistoryTasksRequestTaskType) UnmarshalJSON added in v0.1.61

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

func (ShowHistoryTasksRequestTaskType) Value added in v0.1.61

type ShowHistoryTasksRequestTaskTypeEnum added in v0.1.61

type ShowHistoryTasksRequestTaskTypeEnum struct {
	REFRESH    ShowHistoryTasksRequestTaskType
	PREHEATING ShowHistoryTasksRequestTaskType
}

func GetShowHistoryTasksRequestTaskTypeEnum added in v0.1.61

func GetShowHistoryTasksRequestTaskTypeEnum() ShowHistoryTasksRequestTaskTypeEnum

type ShowHistoryTasksResponse

type ShowHistoryTasksResponse struct {

	// 总共的任务个数。
	Total *int32 `json:"total,omitempty"`

	// 日志列表数据
	Tasks *[]TasksObject `json:"tasks,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowHistoryTasksResponse Response Object

func (ShowHistoryTasksResponse) String

func (o ShowHistoryTasksResponse) String() string

type ShowHttpInfoRequest

type ShowHttpInfoRequest struct {

	// 加速域名ID。
	DomainId string `json:"domain_id"`

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

ShowHttpInfoRequest Request Object

func (ShowHttpInfoRequest) String

func (o ShowHttpInfoRequest) String() string

type ShowHttpInfoResponse

type ShowHttpInfoResponse struct {
	Https *HttpInfoResponseBody `json:"https,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowHttpInfoResponse Response Object

func (ShowHttpInfoResponse) String

func (o ShowHttpInfoResponse) String() string

type ShowIpInfoRequest

type ShowIpInfoRequest struct {

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

	// IP地址列表,以“,”分割,最多20个。
	Ips string `json:"ips"`
}

ShowIpInfoRequest Request Object

func (ShowIpInfoRequest) String

func (o ShowIpInfoRequest) String() string

type ShowIpInfoResponse

type ShowIpInfoResponse struct {

	// IP归属信息列表。
	CdnIps *[]CdnIps `json:"cdn_ips,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowIpInfoResponse Response Object

func (ShowIpInfoResponse) String

func (o ShowIpInfoResponse) String() string

type ShowLogsRequest

type ShowLogsRequest struct {

	// 只支持单个域名,如:www.test1.com。
	DomainName string `json:"domain_name"`

	// 查询开始时间,时间格式为整点毫秒时间戳,此参数传空值时默认为当天0点。
	StartTime *int64 `json:"start_time,omitempty"`

	// 查询结束时间(不包含结束时间),时间格式为整点毫秒时间戳,与开始时间的最大跨度为30天,此参数传空值时默认为开始时间加1天。
	EndTime *int64 `json:"end_time,omitempty"`

	// 单页最大数量,取值范围为1-10000。
	PageSize *int32 `json:"page_size,omitempty"`

	// 当前查询第几页,取值范围为1-65535。
	PageNumber *int32 `json:"page_number,omitempty"`

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

ShowLogsRequest Request Object

func (ShowLogsRequest) String

func (o ShowLogsRequest) String() string

type ShowLogsResponse

type ShowLogsResponse struct {

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

	// 日志列表数据
	Logs           *[]LogObject `json:"logs,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ShowLogsResponse Response Object

func (ShowLogsResponse) String

func (o ShowLogsResponse) String() string

type ShowOriginHostRequest

type ShowOriginHostRequest struct {

	// 加速域名ID。
	DomainId string `json:"domain_id"`

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

ShowOriginHostRequest Request Object

func (ShowOriginHostRequest) String

func (o ShowOriginHostRequest) String() string

type ShowOriginHostResponse

type ShowOriginHostResponse struct {
	OriginHost *DomainOriginHost `json:"origin_host,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowOriginHostResponse Response Object

func (ShowOriginHostResponse) String

func (o ShowOriginHostResponse) String() string

type ShowQuotaRequest added in v0.0.49

type ShowQuotaRequest struct {
}

ShowQuotaRequest Request Object

func (ShowQuotaRequest) String added in v0.0.49

func (o ShowQuotaRequest) String() string

type ShowQuotaResponse added in v0.0.49

type ShowQuotaResponse struct {

	// 配额数组。
	Quotas         *[]Quotas `json:"quotas,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ShowQuotaResponse Response Object

func (ShowQuotaResponse) String added in v0.0.49

func (o ShowQuotaResponse) String() string

type ShowReferRequest

type ShowReferRequest struct {

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

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

ShowReferRequest Request Object

func (ShowReferRequest) String

func (o ShowReferRequest) String() string

type ShowReferResponse

type ShowReferResponse struct {
	Referer *RefererRsp `json:"referer,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowReferResponse Response Object

func (ShowReferResponse) String

func (o ShowReferResponse) String() string

type ShowResponseHeaderRequest

type ShowResponseHeaderRequest struct {

	// 加速域名ID。
	DomainId string `json:"domain_id"`

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

ShowResponseHeaderRequest Request Object

func (ShowResponseHeaderRequest) String

func (o ShowResponseHeaderRequest) String() string

type ShowResponseHeaderResponse

type ShowResponseHeaderResponse struct {
	Headers *HeaderMap `json:"headers,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowResponseHeaderResponse Response Object

func (ShowResponseHeaderResponse) String

type ShowTagsRequest added in v0.1.1

type ShowTagsRequest struct {

	// 资源id。  > 域名ID
	ResourceId string `json:"resource_id"`
}

ShowTagsRequest Request Object

func (ShowTagsRequest) String added in v0.1.1

func (o ShowTagsRequest) String() string

type ShowTagsResponse added in v0.1.1

type ShowTagsResponse struct {

	// 标签列表。
	Tags *[]Map `json:"tags,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowTagsResponse Response Object

func (ShowTagsResponse) String added in v0.1.1

func (o ShowTagsResponse) String() string

type ShowTopUrlRequest

type ShowTopUrlRequest struct {

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

	// 查询起始时间戳(单位:毫秒)。该时间戳的取值在转化为日期格式后须满足以下格式:XXXX-XX-XX 00:00:00
	StartTime int64 `json:"start_time"`

	// 查询结束时间戳(单位:毫秒)。该时间戳的取值在转化为日期格式后须满足以下格式:XXXX-XX-XX 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(中国大陆境外),默认为global(全球)。
	ServiceArea *ShowTopUrlRequestServiceArea `json:"service_area,omitempty"`

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

ShowTopUrlRequest Request Object

func (ShowTopUrlRequest) String

func (o ShowTopUrlRequest) String() string

type ShowTopUrlRequestServiceArea

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

func (ShowTopUrlRequestServiceArea) MarshalJSON

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

func (*ShowTopUrlRequestServiceArea) UnmarshalJSON

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

func (ShowTopUrlRequestServiceArea) Value added in v0.0.90

type ShowTopUrlRequestServiceAreaEnum

type ShowTopUrlRequestServiceAreaEnum struct {
	MAINLAND_CHINA         ShowTopUrlRequestServiceArea
	OUTSIDE_MAINLAND_CHINA ShowTopUrlRequestServiceArea
	GLOBAL                 ShowTopUrlRequestServiceArea
}

func GetShowTopUrlRequestServiceAreaEnum

func GetShowTopUrlRequestServiceAreaEnum() ShowTopUrlRequestServiceAreaEnum

type ShowTopUrlRequestStatType added in v0.0.51

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

func (ShowTopUrlRequestStatType) MarshalJSON added in v0.0.51

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

func (*ShowTopUrlRequestStatType) UnmarshalJSON added in v0.0.51

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

func (ShowTopUrlRequestStatType) Value added in v0.0.90

type ShowTopUrlRequestStatTypeEnum added in v0.0.51

type ShowTopUrlRequestStatTypeEnum struct {
	FLUX    ShowTopUrlRequestStatType
	REQ_NUM ShowTopUrlRequestStatType
}

func GetShowTopUrlRequestStatTypeEnum added in v0.0.51

func GetShowTopUrlRequestStatTypeEnum() ShowTopUrlRequestStatTypeEnum

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 ShowUrlTaskInfoRequest added in v0.0.103

type ShowUrlTaskInfoRequest struct {

	// 起始时间戳(毫秒),默认当天00:00。
	StartTime *int64 `json:"start_time,omitempty"`

	// 结束时间戳(毫秒),默认次日00:00。
	EndTime *int64 `json:"end_time,omitempty"`

	// 偏移量:特定数据字段与起始数据字段位置的距离。
	Offset *int32 `json:"offset,omitempty"`

	// 单次查询数据条数,上限为100。
	Limit *int32 `json:"limit,omitempty"`

	// 刷新预热url。
	Url *string `json:"url,omitempty"`

	// 任务类型,REFRESH:刷新任务;PREHEATING:预热任务。
	TaskType *string `json:"task_type,omitempty"`

	// url状态,状态类型:processing:处理中;succeed:完成;failed:失败;waiting:等待;refreshing:刷新中; preheating : 预热中。
	Status *string `json:"status,omitempty"`

	// 文件类型,file:文件;directory:目录。
	FileType *string `json:"file_type,omitempty"`
}

ShowUrlTaskInfoRequest Request Object

func (ShowUrlTaskInfoRequest) String added in v0.0.103

func (o ShowUrlTaskInfoRequest) String() string

type ShowUrlTaskInfoResponse added in v0.0.103

type ShowUrlTaskInfoResponse struct {

	// 查询结果总数。
	Total *int32 `json:"total,omitempty"`

	// 当前查询到的总页数。
	Count *int32 `json:"count,omitempty"`

	// url信息。
	Result *[]Urls `json:"result,omitempty"`

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowUrlTaskInfoResponse Response Object

func (ShowUrlTaskInfoResponse) String added in v0.0.103

func (o ShowUrlTaskInfoResponse) String() string

type SourceWithPort

type SourceWithPort struct {

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

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

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

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

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

	// HTTP端口,默认80
	HttpPort *int32 `json:"http_port,omitempty"`

	// HTTPS端口,默认443
	HttpsPort *int32 `json:"https_port,omitempty"`
}

SourceWithPort 源站信息

func (SourceWithPort) String

func (o SourceWithPort) String() string

type SourceWithPortOriginType

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

func (SourceWithPortOriginType) MarshalJSON

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

func (*SourceWithPortOriginType) UnmarshalJSON

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

func (SourceWithPortOriginType) Value added in v0.0.90

func (c SourceWithPortOriginType) Value() string

type SourceWithPortOriginTypeEnum

type SourceWithPortOriginTypeEnum struct {
	IPADDR     SourceWithPortOriginType
	DOMAIN     SourceWithPortOriginType
	OBS_BUCKET SourceWithPortOriginType
}

func GetSourceWithPortOriginTypeEnum

func GetSourceWithPortOriginTypeEnum() SourceWithPortOriginTypeEnum

type Sources

type Sources struct {

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

	// 源站类型取值:ipaddr:源站IP、 domain:源站域名、obs_bucket:OBS桶域名。源站为ipaddr时,仅支持IPv4,如需传入多个源站IP,以多个源站对象传入,除IP其他参数请保持一致,主源站最多支持50个源站IP对象,备源站最多支持50个源站IP对象;源站为domain时,仅支持1个源站对象。不支持IP源站和域名源站混用。
	OriginType SourcesOriginType `json:"origin_type"`

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

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

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

Sources 源站信息。

func (Sources) String

func (o Sources) String() string

type SourcesConfig added in v0.0.84

type SourcesConfig struct {

	// 源站类型, - ipaddr:源站IP; - domain:源站域名; - obs_bucket:OBS桶域名; - third_bucket:第三方桶。
	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"`

	// 第三方对象存储访问密钥。  > 源站类型为第三方桶时必填
	BucketAccessKey *string `json:"bucket_access_key,omitempty"`

	// 第三方对象存储密钥。  > 源站类型为第三方桶时必填
	BucketSecretKey *string `json:"bucket_secret_key,omitempty"`

	// 第三方对象存储区域。  > 源站类型为第三方桶时必填
	BucketRegion *string `json:"bucket_region,omitempty"`

	// 第三方对象存储名称。  > 源站类型为第三方桶时必填
	BucketName *string `json:"bucket_name,omitempty"`
}

SourcesConfig 源站配置。

func (SourcesConfig) String added in v0.0.84

func (o SourcesConfig) String() string

type SourcesOriginType

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

func (SourcesOriginType) MarshalJSON

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

func (*SourcesOriginType) UnmarshalJSON

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

func (SourcesOriginType) Value added in v0.0.90

func (c SourcesOriginType) Value() string

type SourcesOriginTypeEnum

type SourcesOriginTypeEnum struct {
	IPADDR     SourcesOriginType
	DOMAIN     SourcesOriginType
	OBS_BUCKET SourcesOriginType
}

func GetSourcesOriginTypeEnum

func GetSourcesOriginTypeEnum() SourcesOriginTypeEnum

type TasksObject

type TasksObject struct {

	// 任务id。
	Id *string `json:"id,omitempty"`

	// 任务的类型, 其值可以为refresh:刷新任务,或preheating:预热任务。
	TaskType *TasksObjectTaskType `json:"task_type,omitempty"`

	// 刷新结果。task_done表示刷新成功  ,task_inprocess表示刷新中。
	Status *string `json:"status,omitempty"`

	// 处理中的url个数。
	Processing *int32 `json:"processing,omitempty"`

	// 成功处理的url个数。
	Succeed *int32 `json:"succeed,omitempty"`

	// 处理失败的url个数。
	Failed *int32 `json:"failed,omitempty"`

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

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

	// 默认是文件file。file:文件,directory:目录。
	FileType *TasksObjectFileType `json:"file_type,omitempty"`
}

func (TasksObject) String

func (o TasksObject) String() string

type TasksObjectFileType

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

func (TasksObjectFileType) MarshalJSON

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

func (*TasksObjectFileType) UnmarshalJSON

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

func (TasksObjectFileType) Value added in v0.0.90

func (c TasksObjectFileType) Value() string

type TasksObjectFileTypeEnum

type TasksObjectFileTypeEnum struct {
	FILE      TasksObjectFileType
	DIRECTORY TasksObjectFileType
}

func GetTasksObjectFileTypeEnum

func GetTasksObjectFileTypeEnum() TasksObjectFileTypeEnum

type TasksObjectTaskType

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

func (TasksObjectTaskType) MarshalJSON

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

func (*TasksObjectTaskType) UnmarshalJSON

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

func (TasksObjectTaskType) Value added in v0.0.90

func (c TasksObjectTaskType) Value() string

type TasksObjectTaskTypeEnum

type TasksObjectTaskTypeEnum struct {
	REFRESH    TasksObjectTaskType
	PREHEATING TasksObjectTaskType
}

func GetTasksObjectTaskTypeEnum

func GetTasksObjectTaskTypeEnum() TasksObjectTaskTypeEnum

type TopUrlSummary

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"`
}

func (TopUrlSummary) String

func (o TopUrlSummary) String() string

type UpdateBlackWhiteListRequest

type UpdateBlackWhiteListRequest struct {

	// 需要设置IP黑白名单的域名id。获取方法请参见查询加速域名。
	DomainId string `json:"domain_id"`

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

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

UpdateBlackWhiteListRequest Request Object

func (UpdateBlackWhiteListRequest) String

type UpdateBlackWhiteListResponse

type UpdateBlackWhiteListResponse struct {

	// 响应码,200:成功,400,失败。
	Code *string `json:"code,omitempty"`

	// 响应结果。
	Result *string `json:"result,omitempty"`

	// 响应体返回内容。
	Data *interface{} `json:"data,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateBlackWhiteListResponse Response Object

func (UpdateBlackWhiteListResponse) String

type UpdateCacheRulesRequest

type UpdateCacheRulesRequest struct {

	// 加速域名ID。
	DomainId string `json:"domain_id"`

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

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

UpdateCacheRulesRequest Request Object

func (UpdateCacheRulesRequest) String

func (o UpdateCacheRulesRequest) String() string

type UpdateCacheRulesResponse

type UpdateCacheRulesResponse struct {
	CacheConfig *CacheConfig `json:"cache_config,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateCacheRulesResponse Response Object

func (UpdateCacheRulesResponse) String

func (o UpdateCacheRulesResponse) String() string

type UpdateDomainFullConfigRequest added in v0.0.74

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.0.74

type UpdateDomainFullConfigResponse added in v0.0.74

type UpdateDomainFullConfigResponse struct {
	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateDomainFullConfigResponse Response Object

func (UpdateDomainFullConfigResponse) String added in v0.0.74

type UpdateDomainMultiCertificatesRequest

type UpdateDomainMultiCertificatesRequest struct {

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

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

UpdateDomainMultiCertificatesRequest Request Object

func (UpdateDomainMultiCertificatesRequest) String

type UpdateDomainMultiCertificatesRequestBody

type UpdateDomainMultiCertificatesRequestBody struct {
	Https *UpdateDomainMultiCertificatesRequestBodyContent `json:"https,omitempty"`
}

func (UpdateDomainMultiCertificatesRequestBody) String

type UpdateDomainMultiCertificatesRequestBodyContent

type UpdateDomainMultiCertificatesRequestBodyContent struct {

	// 域名列表,逗号分割,上限50个域名
	DomainName string `json:"domain_name"`

	// https开关(0:\"关闭\";1:\"设置证书\")。
	HttpsSwitch int32 `json:"https_switch"`

	// 回源方式:1:\"回源跟随\";2:\"HTTP\"(默认),3:https(自建)。
	AccessOriginWay *int32 `json:"access_origin_way,omitempty"`

	// 强制跳转HTTPS(0:不强制;1:强制) 为空值时默认设置为关闭。(此参数即将下线,建议使用force_redirect_config修改配置).
	ForceRedirectHttps *int32 `json:"force_redirect_https,omitempty"`

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

	// http2.0(0:关闭;1:开启) 为空值时默认设置为关闭
	Http2 *int32 `json:"http2,omitempty"`

	// 证书名称(设置证书必填)(长度限制为3-64字符)。
	CertName *string `json:"cert_name,omitempty"`

	// HTTPS协议使用的SSL证书内容,仅支持PEM编码格式。不启用证书则无需输入。初次配置证书时必传。
	Certificate *string `json:"certificate,omitempty"`

	// HTTPS协议使用的SSL证书私钥内容,仅支持PEM编码格式。不启用证书则无需输入。初次配置证书时必传。
	PrivateKey *string `json:"private_key,omitempty"`

	// 证书类型(0为自有证书 ;1为托管证书,此时不必不传入证书内容和私钥,自动根据证书名称匹配;不传默认为自有证书)
	CertificateType *int32 `json:"certificate_type,omitempty"`
}

func (UpdateDomainMultiCertificatesRequestBodyContent) String

type UpdateDomainMultiCertificatesResponse

type UpdateDomainMultiCertificatesResponse struct {
	Https *UpdateDomainMultiCertificatesResponseBodyContent `json:"https,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateDomainMultiCertificatesResponse Response Object

func (UpdateDomainMultiCertificatesResponse) String

type UpdateDomainMultiCertificatesResponseBodyContent

type UpdateDomainMultiCertificatesResponseBodyContent struct {

	// 域名列表。
	DomainName string `json:"domain_name"`

	// https开关(0:\"关闭\";1:\"设置证书\")。
	HttpsSwitch *int32 `json:"https_switch,omitempty"`

	// 回源方式:1:\"回源跟随\";2:\"HTTP\"(默认),3:https(自建)。
	AccessOriginWay *int32 `json:"access_origin_way,omitempty"`

	// 强制跳转HTTPS(0:不强制;1:强制) 。
	ForceRedirectHttps *int32 `json:"force_redirect_https,omitempty"`

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

	// http2.0(0:关闭;1:开启)。
	Http2 *int32 `json:"http2,omitempty"`

	// 证书名称。
	CertName *string `json:"cert_name,omitempty"`

	// 证书内容。
	Certificate *string `json:"certificate,omitempty"`

	// 证书类型(0为自有证书 , 1为托管证书)。
	CertificateType *int32 `json:"certificate_type,omitempty"`

	// 证书过期时间。
	ExpirationTime *int64 `json:"expiration_time,omitempty"`
}

func (UpdateDomainMultiCertificatesResponseBodyContent) String

type UpdateDomainOriginRequest

type UpdateDomainOriginRequest struct {

	// 加速域名ID。
	DomainId string `json:"domain_id"`

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

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

UpdateDomainOriginRequest Request Object

func (UpdateDomainOriginRequest) String

func (o UpdateDomainOriginRequest) String() string

type UpdateDomainOriginResponse

type UpdateDomainOriginResponse struct {
	Origin *ResourceBody `json:"origin,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateDomainOriginResponse Response Object

func (UpdateDomainOriginResponse) String

type UpdateFollow302SwitchRequest

type UpdateFollow302SwitchRequest struct {

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

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

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

UpdateFollow302SwitchRequest Request Object

func (UpdateFollow302SwitchRequest) String

type UpdateFollow302SwitchResponse

type UpdateFollow302SwitchResponse struct {
	FollowStatus *Follow302StatusBody `json:"follow_status,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateFollow302SwitchResponse Response Object

func (UpdateFollow302SwitchResponse) String

type UpdateHttpsInfoRequest

type UpdateHttpsInfoRequest struct {

	// 加速域名ID。
	DomainId string `json:"domain_id"`

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

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

UpdateHttpsInfoRequest Request Object

func (UpdateHttpsInfoRequest) String

func (o UpdateHttpsInfoRequest) String() string

type UpdateHttpsInfoResponse

type UpdateHttpsInfoResponse struct {
	Https *HttpInfoResponseBody `json:"https,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateHttpsInfoResponse Response Object

func (UpdateHttpsInfoResponse) String

func (o UpdateHttpsInfoResponse) String() string

type UpdateOriginHostRequest

type UpdateOriginHostRequest struct {

	// 加速域名ID。
	DomainId string `json:"domain_id"`

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

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

UpdateOriginHostRequest Request Object

func (UpdateOriginHostRequest) String

func (o UpdateOriginHostRequest) String() string

type UpdateOriginHostResponse

type UpdateOriginHostResponse struct {
	OriginHost *DomainOriginHost `json:"origin_host,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateOriginHostResponse Response Object

func (UpdateOriginHostResponse) String

func (o UpdateOriginHostResponse) String() string

type UpdatePrivateBucketAccessBody

type UpdatePrivateBucketAccessBody struct {

	// 桶开启关闭状态(true:开启;false:关闭)
	Status *bool `json:"status,omitempty"`
}

UpdatePrivateBucketAccessBody 修改私有桶开启关闭状态

func (UpdatePrivateBucketAccessBody) String

type UpdatePrivateBucketAccessRequest

type UpdatePrivateBucketAccessRequest struct {

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

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

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

UpdatePrivateBucketAccessRequest Request Object

func (UpdatePrivateBucketAccessRequest) String

type UpdatePrivateBucketAccessResponse

type UpdatePrivateBucketAccessResponse struct {

	// 桶开启关闭状态(true:开启;false:关闭)
	Status *bool `json:"status,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdatePrivateBucketAccessResponse Response Object

func (UpdatePrivateBucketAccessResponse) String

type UpdateRangeSwitchRequest

type UpdateRangeSwitchRequest struct {

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

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

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

UpdateRangeSwitchRequest Request Object

func (UpdateRangeSwitchRequest) String

func (o UpdateRangeSwitchRequest) String() string

type UpdateRangeSwitchResponse

type UpdateRangeSwitchResponse struct {
	OriginRange *OriginRangeBody `json:"origin_range,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateRangeSwitchResponse Response Object

func (UpdateRangeSwitchResponse) String

func (o UpdateRangeSwitchResponse) String() string

type UpdateReferRequest

type UpdateReferRequest struct {

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

	// 加速域名ID。
	DomainId string `json:"domain_id"`

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

UpdateReferRequest Request Object

func (UpdateReferRequest) String

func (o UpdateReferRequest) String() string

type UpdateReferResponse

type UpdateReferResponse struct {
	Referer *RefererRsp `json:"referer,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateReferResponse Response Object

func (UpdateReferResponse) String

func (o UpdateReferResponse) String() string

type UpdateResponseHeaderRequest

type UpdateResponseHeaderRequest struct {

	// 加速域名ID。
	DomainId string `json:"domain_id"`

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

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

UpdateResponseHeaderRequest Request Object

func (UpdateResponseHeaderRequest) String

type UpdateResponseHeaderResponse

type UpdateResponseHeaderResponse struct {
	Headers *HeaderMap `json:"headers,omitempty"`

	XRequestId     *string `json:"X-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateResponseHeaderResponse Response Object

func (UpdateResponseHeaderResponse) String

type UrlAuth added in v0.0.74

type UrlAuth struct {

	// A/B/C类防盗链开关(\"off\"/\"on\")。
	Status string `json:"status"`

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

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

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

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

UrlAuth URL鉴权。

func (UrlAuth) String added in v0.0.74

func (o UrlAuth) String() string

type UrlAuthGetBody added in v0.0.78

type UrlAuthGetBody struct {

	// 是否开启URL鉴权,on:开启,off:关闭。
	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"`

	InheritConfig *InheritConfigQuery `json:"inherit_config,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.0.78

func (o UrlAuthGetBody) String() string

type UrlObject

type UrlObject struct {

	// url的id
	Id *string `json:"id,omitempty"`

	// url的地址。
	Url *string `json:"url,omitempty"`

	// url的状态 processing 处理中,succeed 完成,failed 失败,waiting 等待,refreshing 刷新中,preheating 预热中。
	Status *string `json:"status,omitempty"`

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

	// 任务id。
	TaskId *string `json:"task_id,omitempty"`

	// 任务的类型, 其值可以为REFRESH、PREHEATING、REFRESH_AFTER_PREHEATING
	TaskType *string `json:"task_type,omitempty"`
}

func (UrlObject) String

func (o UrlObject) String() string

type Urls added in v0.0.103

type Urls struct {

	// url id。
	Id *int64 `json:"id,omitempty"`

	// url具体值。
	Url *string `json:"url,omitempty"`

	// url状态,状态类型:processing:处理中;succeed:完成;failed:失败;waiting:等待;refreshing:刷新中; preheating : 预热中。
	Status *string `json:"status,omitempty"`

	// 任务类型,REFRESH:刷新任务;PREHEATING:预热任务。
	Type *string `json:"type,omitempty"`

	// 任务id。
	TaskId *int64 `json:"task_id,omitempty"`

	// 修改时间戳(毫秒)。
	ModifyTime *int64 `json:"modify_time,omitempty"`

	// 创建时间戳(毫秒)。
	CreateTime *int64 `json:"create_time,omitempty"`

	// 文件类型,directory:目录,或file:文件。
	FileType *string `json:"file_type,omitempty"`

	// 目录刷新方式,all:刷新目录下全部资源;detect_modify_refresh:刷新目录下已变更的资源,默认值为all。
	Mode *string `json:"mode,omitempty"`
}

Urls 具体url信息。

func (Urls) String added in v0.0.103

func (o Urls) String() string

type UserAgentFilter added in v0.1.5

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.5

func (o UserAgentFilter) String() string

type VideoSeek added in v0.1.67

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.67

func (o VideoSeek) String() string

type WebSocketSeek added in v0.1.67

type WebSocketSeek struct {

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

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

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

func (WebSocketSeek) String added in v0.1.67

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