cdn

package
v1.0.137 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DefaultRegion  = "cn-north-1"
	ServiceVersion = "2021-03-01"
	ServiceName    = "CDN"
)

Variables

View Source
var ApiInfoList = map[string]*base.ApiInfo{
	"AddCdnDomain": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"AddCdnDomain"},
			"Version": []string{ServiceVersion},
		},
	},
	"StartCdnDomain": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"StartCdnDomain"},
			"Version": []string{ServiceVersion},
		},
	},
	"StopCdnDomain": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"StopCdnDomain"},
			"Version": []string{ServiceVersion},
		},
	},
	"DeleteCdnDomain": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DeleteCdnDomain"},
			"Version": []string{ServiceVersion},
		},
	},
	"ListCdnDomains": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"ListCdnDomains"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeCdnConfig": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeCdnConfig"},
			"Version": []string{ServiceVersion},
		},
	},
	"UpdateCdnConfig": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"UpdateCdnConfig"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeCdnData": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeCdnData"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeEdgeNrtDataSummary": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeEdgeNrtDataSummary"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeCdnOriginData": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeCdnOriginData"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeOriginNrtDataSummary": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeOriginNrtDataSummary"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeCdnDataDetail": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeCdnDataDetail"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeDistrictIspData": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeDistrictIspData"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeEdgeStatisticalData": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeEdgeStatisticalData"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeEdgeTopNrtData": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeEdgeTopNrtData"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeOriginTopNrtData": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeOriginTopNrtData"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeEdgeTopStatusCode": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeEdgeTopStatusCode"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeOriginTopStatusCode": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeOriginTopStatusCode"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeEdgeTopStatisticalData": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeEdgeTopStatisticalData"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeCdnRegionAndIsp": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeCdnRegionAndIsp"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeCdnService": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeCdnService"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeAccountingData": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeAccountingData"},
			"Version": []string{ServiceVersion},
		},
	},
	"SubmitRefreshTask": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"SubmitRefreshTask"},
			"Version": []string{ServiceVersion},
		},
	},
	"SubmitPreloadTask": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"SubmitPreloadTask"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeContentTasks": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeContentTasks"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeContentQuota": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeContentQuota"},
			"Version": []string{ServiceVersion},
		},
	},
	"SubmitBlockTask": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"SubmitBlockTask"},
			"Version": []string{ServiceVersion},
		},
	},
	"SubmitUnblockTask": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"SubmitUnblockTask"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeContentBlockTasks": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeContentBlockTasks"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeCdnAccessLog": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeCdnAccessLog"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeIPInfo": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeIPInfo"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeIPListInfo": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeIPListInfo"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeCdnUpperIp": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeCdnUpperIp"},
			"Version": []string{ServiceVersion},
		},
	},
	"AddResourceTags": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"AddResourceTags"},
			"Version": []string{ServiceVersion},
		},
	},
	"UpdateResourceTags": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"UpdateResourceTags"},
			"Version": []string{ServiceVersion},
		},
	},
	"ListResourceTags": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"ListResourceTags"},
			"Version": []string{ServiceVersion},
		},
	},
	"DeleteResourceTags": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DeleteResourceTags"},
			"Version": []string{ServiceVersion},
		},
	},
	"AddCdnCertificate": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"AddCdnCertificate"},
			"Version": []string{ServiceVersion},
		},
	},
	"ListCertInfo": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"ListCertInfo"},
			"Version": []string{ServiceVersion},
		},
	},
	"ListCdnCertInfo": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"ListCdnCertInfo"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeCertConfig": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeCertConfig"},
			"Version": []string{ServiceVersion},
		},
	},
	"BatchDeployCert": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"BatchDeployCert"},
			"Version": []string{ServiceVersion},
		},
	},
	"DeleteCdnCertificate": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DeleteCdnCertificate"},
			"Version": []string{ServiceVersion},
		},
	},
	"DescribeAccountingSummary": {
		Method: http.MethodPost,
		Path:   "/",
		Query: url.Values{
			"Action":  []string{"DescribeAccountingSummary"},
			"Version": []string{ServiceVersion},
		},
	},
}
View Source
var DefaultInstance = NewInstance()

DefaultInstance Package level default instance

View Source
var (
	ServiceInfo = map[string]*base.ServiceInfo{
		DefaultRegion: {
			Host:    "cdn.volcengineapi.com",
			Timeout: time.Minute * 5,
			Header: http.Header{
				"Accept":       []string{"application/json"},
				"Content-Type": []string{"application/json"},
			},
		},
	}
)

Functions

func GetStrPtr

func GetStrPtr(str string) *string

func MergeQueryArgs added in v1.0.106

func MergeQueryArgs(body interface{}, query url.Values) (url.Values, error)

Types

type AccountingData

type AccountingData struct {
	Metric string
	Values []DataPoint
}

type AccountingDataDetail

type AccountingDataDetail struct {
	BillingRegion string
	Metrics       []AccountingData
	Name          string
}

type AccountingSummary

type AccountingSummary struct {
	BillingCode string
	Name        string
	TimeStamp   int64
	Value       float64
	Values      []DataPoint
}

type AddCdnCertInfo

type AddCdnCertInfo struct {
	Desc *string `json:",omitempty"`
}

type AddCdnCertificateRequest

type AddCdnCertificateRequest struct {
	CertInfo      *AddCdnCertInfo `json:",omitempty"`
	Certificate   Certificate
	CloseSigCheck *bool   `json:",omitempty"`
	Source        *string `json:",omitempty"`
}

type AddCdnCertificateResponse

type AddCdnCertificateResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           string
}

type AddCdnDomainRequest

type AddCdnDomainRequest struct {
	AreaAccessRule      *AreaAccessRule `json:",omitempty"`
	AutoRotate          *AutoRotate     `json:",omitempty"`
	BandwidthLimit      *BandwidthLimit `json:",omitempty"`
	BrowserCache        []BrowserCacheControlRule
	Cache               []CacheControlRule
	CacheHost           *CacheHost `json:",omitempty"`
	CacheKey            []CacheKeyRule
	Compression         *Compression         `json:",omitempty"`
	CustomErrorPage     *CustomErrorPage     `json:",omitempty"`
	CustomizeAccessRule *CustomizeAccessRule `json:",omitempty"`
	Domain              string
	DownloadSpeedLimit  *DownloadSpeedLimit `json:",omitempty"`
	FollowRedirect      *bool               `json:",omitempty"`
	HTTPS               *HTTPS              `json:",omitempty"`
	HeaderLogging       *HeaderLog          `json:",omitempty"`
	HttpForcedRedirect  *HttpForcedRedirect `json:",omitempty"`
	IPv6                *IPv6               `json:",omitempty"`
	IpAccessRule        *IpAccessRule       `json:",omitempty"`
	IpFreqLimit         *IpFreqLimit        `json:",omitempty"`
	MassCompression     *MassCompression    `json:",omitempty"`
	MethodDeniedRule    *MethodDeniedRule   `json:",omitempty"`
	NegativeCache       []NegativeCache
	Origin              []OriginRule
	OriginAccessRule    *OriginAccessRule `json:",omitempty"`
	OriginArg           []OriginArgRule
	OriginHost          *string `json:",omitempty"`
	OriginProtocol      string
	OriginRange         *bool               `json:",omitempty"`
	OriginRewrite       *OriginRewrite      `json:",omitempty"`
	OriginSni           *OriginSni          `json:",omitempty"`
	PageOptimization    *PageOptimization   `json:",omitempty"`
	Project             *string             `json:",omitempty"`
	Quic                *Quic               `json:",omitempty"`
	RedirectionRewrite  *RedirectionRewrite `json:",omitempty"`
	RefererAccessRule   *RefererAccessRule  `json:",omitempty"`
	RemoteAuth          *RemoteAuth         `json:",omitempty"`
	RequestHeader       []RequestHeaderRule
	ResourceTags        []ResourceTag
	ResponseHeader      []ResponseHeaderRule
	ServiceRegion       *string `json:",omitempty"`
	ServiceType         string
	SignedUrlAuth       *SignedUrlAuth       `json:",omitempty"`
	Sparrow             *Sparrow             `json:",omitempty"`
	Timeout             *Timeout             `json:",omitempty"`
	UaAccessRule        *UserAgentAccessRule `json:",omitempty"`
	VideoDrag           *VideoDrag           `json:",omitempty"`
	WebpAdaptive        *WebpAdaptive        `json:",omitempty"`
}

type AddCdnDomainResponse

type AddCdnDomainResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
}

type AddResourceTagsRequest

type AddResourceTagsRequest struct {
	ResourceTags []ResourceTag
	Resources    []string
}

type AddResourceTagsResponse

type AddResourceTagsResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
}

type AreaAccessRule

type AreaAccessRule struct {
	Area     []string
	RuleType *string `json:",omitempty"`
	Switch   *bool   `json:",omitempty"`
}

type AuthCacheAction

type AuthCacheAction struct {
	Action     *string `json:",omitempty"`
	CacheKey   []string
	IgnoreCase *bool  `json:",omitempty"`
	Ttl        *int64 `json:",omitempty"`
}

type AuthModeConfig

type AuthModeConfig struct {
	BackupRemoteAddr *string `json:",omitempty"`
	MasterRemoteAddr *string `json:",omitempty"`
	PathType         *string `json:",omitempty"`
	PathValue        *string `json:",omitempty"`
	RequestMethod    *string `json:",omitempty"`
}

type AuthRequestHeaderRule

type AuthRequestHeaderRule struct {
	RequestHeaderComponents *RequestHeaderComponent `json:",omitempty"`
	RequestHeaderInstances  []RequestHeaderInstance
	RequestHost             *string `json:",omitempty"`
}

type AuthResponseConfig

type AuthResponseConfig struct {
	CacheAction      *AuthCacheAction   `json:",omitempty"`
	ResponseAction   *ResponseAction    `json:",omitempty"`
	StatusCodeAction *StatusCodeAction  `json:",omitempty"`
	TimeOutAction    *AuthTimeoutAction `json:",omitempty"`
}

type AuthTimeoutAction added in v1.0.120

type AuthTimeoutAction struct {
	Action *string `json:",omitempty"`
	Time   *int64  `json:",omitempty"`
}

type AutoRotate

type AutoRotate struct {
	Switch *bool `json:",omitempty"`
}

type BandwidthLimit

type BandwidthLimit struct {
	BandwidthLimitRule *BandwidthLimitRule `json:",omitempty"`
	Switch             *bool               `json:",omitempty"`
}

type BandwidthLimitAction

type BandwidthLimitAction struct {
	BandwidthThreshold *int64  `json:",omitempty"`
	LimitType          *string `json:",omitempty"`
	SpeedLimitRate     *int64  `json:",omitempty"`
	SpeedLimitRateMax  *int64  `json:",omitempty"`
}

type BandwidthLimitRule

type BandwidthLimitRule struct {
	BandwidthLimitAction *BandwidthLimitAction `json:",omitempty"`
	Condition            *Condition            `json:",omitempty"`
}

type BatchDeployCertRequest

type BatchDeployCertRequest struct {
	CertId string
	Domain string
}

type BatchDeployCertResponse

type BatchDeployCertResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           BatchDeployCertResult
}

type BatchDeployCertResult

type BatchDeployCertResult struct {
	DeployResult []CertDeployStatus
}

type BlockTaskInfo added in v1.0.120

type BlockTaskInfo struct {
	BlockReason string
	CreateTime  int64
	Status      string
	TaskID      string
	TaskType    string
	Url         string
}

type BrowserCacheControlRule

type BrowserCacheControlRule struct {
	CacheAction *CacheAction `json:",omitempty"`
	Condition   *Condition   `json:",omitempty"`
}

type CDN

type CDN struct {
	Client *base.Client
}

func NewInstance

func NewInstance() *CDN

func (*CDN) AddCdnCertificate

func (s *CDN) AddCdnCertificate(dto *AddCdnCertificateRequest) (responseBody *AddCdnCertificateResponse, err error)

func (*CDN) AddCdnDomain

func (s *CDN) AddCdnDomain(dto *AddCdnDomainRequest) (responseBody *AddCdnDomainResponse, err error)

func (*CDN) AddResourceTags

func (s *CDN) AddResourceTags(dto *AddResourceTagsRequest) (responseBody *AddResourceTagsResponse, err error)

func (*CDN) BatchDeployCert

func (s *CDN) BatchDeployCert(dto *BatchDeployCertRequest) (responseBody *BatchDeployCertResponse, err error)

func (*CDN) DeleteCdnCertificate added in v1.0.109

func (s *CDN) DeleteCdnCertificate(dto *DeleteCdnCertificateRequest) (responseBody *DeleteCdnCertificateResponse, err error)

func (*CDN) DeleteCdnDomain

func (s *CDN) DeleteCdnDomain(dto *DeleteCdnDomainRequest) (responseBody *DeleteCdnDomainResponse, err error)

func (*CDN) DeleteResourceTags

func (s *CDN) DeleteResourceTags(dto *DeleteResourceTagsRequest) (responseBody *DeleteResourceTagsResponse, err error)

func (*CDN) DescribeAccountingData

func (s *CDN) DescribeAccountingData(dto *DescribeAccountingDataRequest) (responseBody *DescribeAccountingDataResponse, err error)

func (*CDN) DescribeAccountingSummary

func (s *CDN) DescribeAccountingSummary(dto *DescribeAccountingSummaryRequest) (responseBody *DescribeAccountingSummaryResponse, err error)

func (*CDN) DescribeCdnAccessLog

func (s *CDN) DescribeCdnAccessLog(dto *DescribeCdnAccessLogRequest, options ...OptionArg) (responseBody *DescribeCdnAccessLogResponse, err error)

func (*CDN) DescribeCdnConfig

func (s *CDN) DescribeCdnConfig(dto *DescribeCdnConfigRequest) (responseBody *DescribeCdnConfigResponse, err error)

func (*CDN) DescribeCdnData

func (s *CDN) DescribeCdnData(dto *DescribeCdnDataRequest, options ...OptionArg) (responseBody *DescribeCdnDataResponse, err error)

func (*CDN) DescribeCdnDataDetail

func (s *CDN) DescribeCdnDataDetail(dto *DescribeCdnDataDetailRequest, options ...OptionArg) (responseBody *DescribeCdnDataDetailResponse, err error)

func (*CDN) DescribeCdnOriginData

func (s *CDN) DescribeCdnOriginData(dto *DescribeCdnOriginDataRequest, options ...OptionArg) (responseBody *DescribeCdnOriginDataResponse, err error)

func (*CDN) DescribeCdnRegionAndIsp

func (s *CDN) DescribeCdnRegionAndIsp(dto *DescribeCdnRegionAndIspRequest, options ...OptionArg) (responseBody *DescribeCdnRegionAndIspResponse, err error)

func (*CDN) DescribeCdnService

func (s *CDN) DescribeCdnService() (responseBody *DescribeCdnServiceResponse, err error)

func (*CDN) DescribeCdnUpperIp

func (s *CDN) DescribeCdnUpperIp(dto *DescribeCdnUpperIpRequest) (responseBody *DescribeCdnUpperIpResponse, err error)

func (*CDN) DescribeCertConfig

func (s *CDN) DescribeCertConfig(dto *DescribeCertConfigRequest) (responseBody *DescribeCertConfigResponse, err error)

func (*CDN) DescribeContentBlockTasks

func (s *CDN) DescribeContentBlockTasks(dto *DescribeContentBlockTasksRequest) (responseBody *DescribeContentBlockTasksResponse, err error)

func (*CDN) DescribeContentQuota

func (s *CDN) DescribeContentQuota(options ...OptionArg) (responseBody *DescribeContentQuotaResponse, err error)

func (*CDN) DescribeContentTasks

func (s *CDN) DescribeContentTasks(dto *DescribeContentTasksRequest) (responseBody *DescribeContentTasksResponse, err error)

func (*CDN) DescribeDistrictIspData

func (s *CDN) DescribeDistrictIspData(dto *DescribeDistrictIspDataRequest, options ...OptionArg) (responseBody *DescribeDistrictIspDataResponse, err error)

func (*CDN) DescribeEdgeNrtDataSummary

func (s *CDN) DescribeEdgeNrtDataSummary(dto *DescribeEdgeNrtDataSummaryRequest, options ...OptionArg) (responseBody *DescribeEdgeNrtDataSummaryResponse, err error)

func (*CDN) DescribeEdgeStatisticalData

func (s *CDN) DescribeEdgeStatisticalData(dto *DescribeEdgeStatisticalDataRequest, options ...OptionArg) (responseBody *DescribeEdgeStatisticalDataResponse, err error)

func (*CDN) DescribeEdgeTopNrtData

func (s *CDN) DescribeEdgeTopNrtData(dto *DescribeEdgeTopNrtDataRequest, options ...OptionArg) (responseBody *DescribeEdgeTopNrtDataResponse, err error)

func (*CDN) DescribeEdgeTopStatisticalData

func (s *CDN) DescribeEdgeTopStatisticalData(dto *DescribeEdgeTopStatisticalDataRequest, options ...OptionArg) (responseBody *DescribeEdgeTopStatisticalDataResponse, err error)

func (*CDN) DescribeEdgeTopStatusCode

func (s *CDN) DescribeEdgeTopStatusCode(dto *DescribeEdgeTopStatusCodeRequest, options ...OptionArg) (responseBody *DescribeEdgeTopStatusCodeResponse, err error)

func (*CDN) DescribeIPInfo

func (s *CDN) DescribeIPInfo(dto *DescribeIPInfoRequest) (responseBody *DescribeIPInfoResponse, err error)

func (*CDN) DescribeIPListInfo

func (s *CDN) DescribeIPListInfo(dto *DescribeIPListInfoRequest) (responseBody *DescribeIPListInfoResponse, err error)

func (*CDN) DescribeOriginNrtDataSummary

func (s *CDN) DescribeOriginNrtDataSummary(dto *DescribeOriginNrtDataSummaryRequest, options ...OptionArg) (responseBody *DescribeOriginNrtDataSummaryResponse, err error)

func (*CDN) DescribeOriginTopNrtData

func (s *CDN) DescribeOriginTopNrtData(dto *DescribeOriginTopNrtDataRequest, options ...OptionArg) (responseBody *DescribeOriginTopNrtDataResponse, err error)

func (*CDN) DescribeOriginTopStatusCode

func (s *CDN) DescribeOriginTopStatusCode(dto *DescribeOriginTopStatusCodeRequest, options ...OptionArg) (responseBody *DescribeOriginTopStatusCodeResponse, err error)

func (*CDN) GetAPIInfo

func (s *CDN) GetAPIInfo(api string) *base.ApiInfo

func (*CDN) GetMethod added in v1.0.106

func (s *CDN) GetMethod(api string) string

func (*CDN) GetServiceInfo

func (s *CDN) GetServiceInfo(region string) *base.ServiceInfo

func (*CDN) ListCdnCertInfo

func (s *CDN) ListCdnCertInfo(dto *ListCdnCertInfoRequest) (responseBody *ListCdnCertInfoResponse, err error)

func (*CDN) ListCdnDomains

func (s *CDN) ListCdnDomains(dto *ListCdnDomainsRequest, options ...OptionArg) (responseBody *ListCdnDomainsResponse, err error)

func (*CDN) ListCertInfo

func (s *CDN) ListCertInfo(dto *ListCertInfoRequest) (responseBody *ListCertInfoResponse, err error)

func (*CDN) ListResourceTags

func (s *CDN) ListResourceTags() (responseBody *ListResourceTagsResponse, err error)

func (*CDN) SendCommonRequest

func (s *CDN) SendCommonRequest(action string, in interface{}, out interface{}) error

func (*CDN) SetAPIRetrySetting added in v1.0.120

func (s *CDN) SetAPIRetrySetting(apis []string, retryTime int, interval time.Duration) bool

func (*CDN) SetHost

func (s *CDN) SetHost(host string)

func (*CDN) SetMethod added in v1.0.106

func (s *CDN) SetMethod(api, method string) bool

func (*CDN) SetNewAPI added in v1.0.120

func (s *CDN) SetNewAPI(info base.ApiInfo)

func (*CDN) SetRegion

func (s *CDN) SetRegion(region string)

func (*CDN) SetSchema

func (s *CDN) SetSchema(schema string)

SetSchema .

func (*CDN) StartCdnDomain

func (s *CDN) StartCdnDomain(dto *StartCdnDomainRequest) (responseBody *StartCdnDomainResponse, err error)

func (*CDN) StopCdnDomain

func (s *CDN) StopCdnDomain(dto *StopCdnDomainRequest) (responseBody *StopCdnDomainResponse, err error)

func (*CDN) SubmitBlockTask

func (s *CDN) SubmitBlockTask(dto *SubmitBlockTaskRequest) (responseBody *SubmitBlockTaskResponse, err error)

func (*CDN) SubmitPreloadTask

func (s *CDN) SubmitPreloadTask(dto *SubmitPreloadTaskRequest) (responseBody *SubmitPreloadTaskResponse, err error)

func (*CDN) SubmitRefreshTask

func (s *CDN) SubmitRefreshTask(dto *SubmitRefreshTaskRequest) (responseBody *SubmitRefreshTaskResponse, err error)

func (*CDN) SubmitUnblockTask

func (s *CDN) SubmitUnblockTask(dto *SubmitUnblockTaskRequest) (responseBody *SubmitUnblockTaskResponse, err error)

func (*CDN) UpdateCdnConfig

func (s *CDN) UpdateCdnConfig(dto *UpdateCdnConfigRequest) (responseBody *UpdateCdnConfigResponse, err error)

func (*CDN) UpdateResourceTags

func (s *CDN) UpdateResourceTags(dto *UpdateResourceTagsRequest) (responseBody *UpdateResourceTagsResponse, err error)

func (*CDN) ValidateResponse

func (s *CDN) ValidateResponse(meta *ResponseMetadata) error

type CDNError

type CDNError struct {
	Code    string `json:"Code"`
	Message string `json:"Message"`
	Status  int64  `json:"Status"`
}

func (CDNError) Error

func (e CDNError) Error() string

type CacheAction

type CacheAction struct {
	Action        *string `json:",omitempty"`
	DefaultPolicy *string `json:",omitempty"`
	IgnoreCase    *bool   `json:",omitempty"`
	Ttl           *int64  `json:",omitempty"`
}

type CacheControlRule

type CacheControlRule struct {
	CacheAction *CacheAction `json:",omitempty"`
	Condition   *Condition   `json:",omitempty"`
}

type CacheHost added in v1.0.109

type CacheHost struct {
	CacheHostRule []CacheHostRule
	Switch        *bool `json:",omitempty"`
}

type CacheHostAction added in v1.0.109

type CacheHostAction struct {
	CacheHost *string `json:",omitempty"`
}

type CacheHostRule added in v1.0.109

type CacheHostRule struct {
	CacheHostAction *CacheHostAction `json:",omitempty"`
	Condition       *Condition       `json:",omitempty"`
}

type CacheKeyAction

type CacheKeyAction struct {
	CacheKeyComponents []CacheKeyComponent
}

type CacheKeyComponent

type CacheKeyComponent struct {
	Action     *string `json:",omitempty"`
	IgnoreCase *bool   `json:",omitempty"`
	Object     *string `json:",omitempty"`
	Subobject  *string `json:",omitempty"`
}

type CacheKeyRule added in v1.0.120

type CacheKeyRule struct {
	CacheKeyAction *CacheKeyAction `json:",omitempty"`
	Condition      *Condition      `json:",omitempty"`
}

type CertDeployStatus added in v1.0.120

type CertDeployStatus struct {
	Domain   string
	ErrorMsg string
	Status   string
}

type CertInfo

type CertInfo struct {
	CertId        *string      `json:",omitempty"`
	CertName      *string      `json:",omitempty"`
	Certificate   *Certificate `json:",omitempty"`
	Desc          *string      `json:",omitempty"`
	EffectiveTime *int64       `json:",omitempty"`
	ExpireTime    *int64       `json:",omitempty"`
	Source        *string      `json:",omitempty"`
}

type Certificate

type Certificate struct {
	Certificate *string `json:",omitempty"`
	PrivateKey  *string `json:",omitempty"`
}

type CommonReferType added in v1.0.109

type CommonReferType struct {
	IgnoreCase *bool `json:",omitempty"`
	Referers   []string
}

type Compression

type Compression struct {
	CompressionRules []CompressionRule
	Switch           *bool `json:",omitempty"`
}

type CompressionAction

type CompressionAction struct {
	CompressionFormat *string `json:",omitempty"`
	CompressionTarget *string `json:",omitempty"`
	CompressionType   []string
	MinFileSizeKB     *int64 `json:",omitempty"`
}

type CompressionRule

type CompressionRule struct {
	CompressionAction *CompressionAction `json:",omitempty"`
	Condition         *Condition         `json:",omitempty"`
}

type Condition

type Condition struct {
	ConditionRule []ConditionRule
	Connective    *string `json:",omitempty"`
}

type ConditionRule

type ConditionRule struct {
	Object   *string `json:",omitempty"`
	Operator *string `json:",omitempty"`
	Type     *string `json:",omitempty"`
	Value    *string `json:",omitempty"`
}

type ConfiguredDomain added in v1.0.120

type ConfiguredDomain struct {
	Domain string
	Type   string
}

type ContentTask

type ContentTask struct {
	Area          string
	CreateTime    int64
	Delete        bool
	Isp           string
	Layer         string
	Process       string
	RefreshPrefix bool
	Region        string
	Remark        string
	Status        string
	SubArea       string
	TaskID        string
	TaskType      string
	Url           string
}

type CustomErrorPage

type CustomErrorPage struct {
	ErrorPageRule []ErrorPageRule
	Switch        *bool `json:",omitempty"`
}

type CustomVariableInstance

type CustomVariableInstance struct {
	Operator *string `json:",omitempty"`
	Type     *string `json:",omitempty"`
	Value    *string `json:",omitempty"`
}

type CustomVariableRules

type CustomVariableRules struct {
	CustomVariableInstances []CustomVariableInstance
}

type CustomizeAccessAction added in v1.0.120

type CustomizeAccessAction struct {
	AllowEmpty    *bool `json:",omitempty"`
	ListRules     []string
	RequestHeader *string `json:",omitempty"`
	RuleType      *string `json:",omitempty"`
}

type CustomizeAccessRule added in v1.0.120

type CustomizeAccessRule struct {
	CustomizeInstances []CustomizeInstance
	Switch             *bool `json:",omitempty"`
}

type CustomizeInstance added in v1.0.120

type CustomizeInstance struct {
	CustomizeRule *CustomizeRule `json:",omitempty"`
}

type CustomizeRule added in v1.0.120

type CustomizeRule struct {
	AccessAction *CustomizeAccessAction `json:",omitempty"`
	Condition    *Condition             `json:",omitempty"`
}

type DataPoint

type DataPoint struct {
	TimeStamp int64
	Value     float64
}

type DeleteCdnCertificateRequest added in v1.0.109

type DeleteCdnCertificateRequest struct {
	CertId string
}

type DeleteCdnCertificateResponse added in v1.0.109

type DeleteCdnCertificateResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
}

type DeleteCdnDomainRequest

type DeleteCdnDomainRequest struct {
	Domain string
}

type DeleteCdnDomainResponse

type DeleteCdnDomainResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
}

type DeleteResourceTagsRequest

type DeleteResourceTagsRequest struct {
	ResourceTags []ResourceTag
	Resources    []string
}

type DeleteResourceTagsResponse

type DeleteResourceTagsResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
}

type DescribeAccountingDataRequest

type DescribeAccountingDataRequest struct {
	Aggregate        *string `json:",omitempty"`
	BillingRegion    *string `json:",omitempty"`
	Domain           *string `json:",omitempty"`
	EndTime          int64
	Interval         *int64 `json:",omitempty"`
	InverseDomain    *bool  `json:",omitempty"`
	IsWildcardDomain *bool  `json:",omitempty"`
	Metric           string
	Project          *string `json:",omitempty"`
	Protocol         *string `json:",omitempty"`
	StartTime        int64
}

type DescribeAccountingDataResponse

type DescribeAccountingDataResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeAccountingDataResult
}

type DescribeAccountingDataResult

type DescribeAccountingDataResult struct {
	Resources []AccountingDataDetail
}

type DescribeAccountingSummaryRequest

type DescribeAccountingSummaryRequest struct {
	Aggregate     *string `json:",omitempty"`
	BillingCode   *string `json:",omitempty"`
	BillingRegion *string `json:",omitempty"`
	Domain        string
	EndTime       int64
	FreeTime      *string `json:",omitempty"`
	InverseDomain *bool   `json:",omitempty"`
	Project       *string `json:",omitempty"`
	StartTime     int64
	TimeZone      *string `json:",omitempty"`
}

type DescribeAccountingSummaryResponse

type DescribeAccountingSummaryResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeAccountingSummaryResult
}

type DescribeAccountingSummaryResult

type DescribeAccountingSummaryResult struct {
	Resources []AccountingSummary
}

type DescribeCdnAccessLogRequest

type DescribeCdnAccessLogRequest struct {
	Domain        string
	EndTime       int64
	PageNum       *int64  `json:",omitempty"`
	PageSize      *int64  `json:",omitempty"`
	ServiceRegion *string `json:",omitempty"`
	StartTime     int64
}

type DescribeCdnAccessLogResponse

type DescribeCdnAccessLogResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeCdnAccessLogResult
}

type DescribeCdnAccessLogResult

type DescribeCdnAccessLogResult struct {
	Domain           string
	DomainLogDetails []DomainLogDetail
	PageNum          int64
	PageSize         int64
	TotalCount       int64
}

type DescribeCdnConfigRequest

type DescribeCdnConfigRequest struct {
	Domain string
}

type DescribeCdnConfigResponse

type DescribeCdnConfigResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeCdnConfigResult
}

type DescribeCdnConfigResult

type DescribeCdnConfigResult struct {
	DomainConfig DomainConfig
}

type DescribeCdnDataDetailRequest

type DescribeCdnDataDetailRequest struct {
	Domain    string
	EndTime   int64
	Interval  *string `json:",omitempty"`
	IpVersion *string `json:",omitempty"`
	Metric    string
	Protocol  *string `json:",omitempty"`
	StartTime int64
	TimeZone  *string `json:",omitempty"`
}

type DescribeCdnDataDetailResponse

type DescribeCdnDataDetailResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeCdnDataDetailResult
}

type DescribeCdnDataDetailResult

type DescribeCdnDataDetailResult struct {
	DataDetails []NrtDataDetails
	Name        string
}

type DescribeCdnDataRequest

type DescribeCdnDataRequest struct {
	Aggregate           *string `json:",omitempty"`
	Area                *string `json:",omitempty"`
	BillingRegion       *string `json:",omitempty"`
	DisaggregateMetrics *string `json:",omitempty"`
	Domain              *string `json:",omitempty"`
	EndTime             int64
	Interval            *string `json:",omitempty"`
	InverseDomain       *bool   `json:",omitempty"`
	IpVersion           *string `json:",omitempty"`
	IsWildcardDomain    *bool   `json:",omitempty"`
	Isp                 *string `json:",omitempty"`
	Metric              string
	Project             *string `json:",omitempty"`
	Protocol            *string `json:",omitempty"`
	Region              *string `json:",omitempty"`
	StartTime           int64
	TimeZone            *string `json:",omitempty"`
}

type DescribeCdnDataResponse

type DescribeCdnDataResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeCdnDataResult
}

type DescribeCdnDataResult

type DescribeCdnDataResult struct {
	Resources []NrtDataResource
}

type DescribeCdnOriginDataRequest

type DescribeCdnOriginDataRequest struct {
	Aggregate           *string `json:",omitempty"`
	BillingRegion       *string `json:",omitempty"`
	DisaggregateMetrics *string `json:",omitempty"`
	Domain              *string `json:",omitempty"`
	EndTime             int64
	Interval            *string `json:",omitempty"`
	InverseDomain       *bool   `json:",omitempty"`
	IsWildcardDomain    *bool   `json:",omitempty"`
	Metric              string
	Project             *string `json:",omitempty"`
	StartTime           int64
	TimeZone            *string `json:",omitempty"`
}

type DescribeCdnOriginDataResponse

type DescribeCdnOriginDataResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeCdnOriginDataResult
}

type DescribeCdnOriginDataResult

type DescribeCdnOriginDataResult struct {
	Resources []NrtDataResource
}

type DescribeCdnRegionAndIspRequest

type DescribeCdnRegionAndIspRequest struct {
	Area    *string `json:",omitempty"`
	Feature *string `json:",omitempty"`
}

type DescribeCdnRegionAndIspResponse

type DescribeCdnRegionAndIspResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeCdnRegionAndIspResult
}

type DescribeCdnRegionAndIspResult

type DescribeCdnRegionAndIspResult struct {
	Isps    []NamePair
	Regions []NamePair
}

type DescribeCdnServiceResponse

type DescribeCdnServiceResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeCdnServiceResult
}

type DescribeCdnServiceResult

type DescribeCdnServiceResult struct {
	ServiceInfos []TopInstanceDetail
}

type DescribeCdnUpperIpRequest

type DescribeCdnUpperIpRequest struct {
	Domain    string
	IpVersion *string `json:",omitempty"`
}

type DescribeCdnUpperIpResponse

type DescribeCdnUpperIpResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeCdnUpperIpResult
}

type DescribeCdnUpperIpResult

type DescribeCdnUpperIpResult struct {
	CdnIpv4 []string
	CdnIpv6 []string
}

type DescribeCertConfigRequest

type DescribeCertConfigRequest struct {
	CertId string
	Status *string `json:",omitempty"`
}

type DescribeCertConfigResponse

type DescribeCertConfigResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeCertConfigResult
}

type DescribeCertConfigResult

type DescribeCertConfigResult struct {
	CertNotConfig       []DomainStatus
	OtherCertConfig     []DomainCertStatus
	SpecifiedCertConfig []DomainCertStatus
}

type DescribeContentBlockTasksRequest

type DescribeContentBlockTasksRequest struct {
	DomainName *string `json:",omitempty"`
	EndTime    *int64  `json:",omitempty"`
	PageNum    *int64  `json:",omitempty"`
	PageSize   *int64  `json:",omitempty"`
	StartTime  *int64  `json:",omitempty"`
	Status     *string `json:",omitempty"`
	TaskID     *string `json:",omitempty"`
	TaskType   string
	URL        *string `json:",omitempty"`
}

type DescribeContentBlockTasksResponse

type DescribeContentBlockTasksResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeContentBlockTasksResult
}

type DescribeContentBlockTasksResult

type DescribeContentBlockTasksResult struct {
	Data     []BlockTaskInfo
	PageNum  int64
	PageSize int64
	Total    int64
}

type DescribeContentQuotaResponse

type DescribeContentQuotaResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeContentQuotaResult
}

type DescribeContentQuotaResult

type DescribeContentQuotaResult struct {
	BlockLimit         int64
	BlockQuota         int64
	BlockRemain        int64
	PreloadLimit       int64
	PreloadQuota       int64
	PreloadRemain      int64
	RefreshDirLimit    int64
	RefreshDirQuota    int64
	RefreshDirRemain   int64
	RefreshQuota       int64
	RefreshQuotaLimit  int64
	RefreshRegexLimit  int64
	RefreshRegexQuota  int64
	RefreshRegexRemain int64
	RefreshRemain      int64
	UnblockLimit       int64
	UnblockQuota       int64
	UnblockRemain      int64
}

type DescribeContentTasksRequest

type DescribeContentTasksRequest struct {
	DomainName *string `json:",omitempty"`
	EndTime    *int64  `json:",omitempty"`
	PageNum    *int64  `json:",omitempty"`
	PageSize   *int64  `json:",omitempty"`
	Remark     *string `json:",omitempty"`
	StartTime  *int64  `json:",omitempty"`
	Status     *string `json:",omitempty"`
	TaskID     *string `json:",omitempty"`
	TaskType   string
	Url        *string `json:",omitempty"`
}

type DescribeContentTasksResponse

type DescribeContentTasksResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeContentTasksResult
}

type DescribeContentTasksResult

type DescribeContentTasksResult struct {
	Data     []ContentTask
	PageNum  int64
	PageSize int64
	Total    int64
}

type DescribeDistrictIspDataRequest

type DescribeDistrictIspDataRequest struct {
	Aggregate *string `json:",omitempty"`
	Domain    string
	EndTime   int64
	Interval  *string `json:",omitempty"`
	IpVersion *string `json:",omitempty"`
	Metric    string
	Protocol  *string `json:",omitempty"`
	StartTime int64
	TimeZone  *string `json:",omitempty"`
}

type DescribeDistrictIspDataResponse

type DescribeDistrictIspDataResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeDistrictIspDataResult
}

type DescribeDistrictIspDataResult

type DescribeDistrictIspDataResult struct {
	Resources []DomainNrtDetailData
}

type DescribeEdgeNrtDataSummaryRequest

type DescribeEdgeNrtDataSummaryRequest struct {
	Aggregate           *string `json:",omitempty"`
	Area                *string `json:",omitempty"`
	BillingRegion       *string `json:",omitempty"`
	DisaggregateMetrics *string `json:",omitempty"`
	Domain              *string `json:",omitempty"`
	EndTime             int64
	Interval            *string `json:",omitempty"`
	InverseDomain       *bool   `json:",omitempty"`
	IpVersion           *string `json:",omitempty"`
	Isp                 *string `json:",omitempty"`
	Metric              string
	Project             *string `json:",omitempty"`
	Protocol            *string `json:",omitempty"`
	Region              *string `json:",omitempty"`
	StartTime           int64
}

type DescribeEdgeNrtDataSummaryResponse

type DescribeEdgeNrtDataSummaryResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeEdgeNrtDataSummaryResult
}

type DescribeEdgeNrtDataSummaryResult

type DescribeEdgeNrtDataSummaryResult struct {
	Resources []NrtDataSummaryResource
}

type DescribeEdgeStatisticalDataRequest

type DescribeEdgeStatisticalDataRequest struct {
	Area      *string `json:",omitempty"`
	Domain    *string `json:",omitempty"`
	EndTime   int64
	Interval  *string `json:",omitempty"`
	IpVersion *string `json:",omitempty"`
	Metric    string
	Region    *string `json:",omitempty"`
	StartTime int64
}

type DescribeEdgeStatisticalDataResponse

type DescribeEdgeStatisticalDataResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeEdgeStatisticalDataResult
}

type DescribeEdgeStatisticalDataResult

type DescribeEdgeStatisticalDataResult struct {
	Resources []EdgeStatisticalDataResource
}

type DescribeEdgeTopNrtDataRequest

type DescribeEdgeTopNrtDataRequest struct {
	Area          *string `json:",omitempty"`
	BillingRegion *string `json:",omitempty"`
	Domain        *string `json:",omitempty"`
	EndTime       int64
	Interval      *string `json:",omitempty"`
	InverseDomain *bool   `json:",omitempty"`
	Item          string
	Metric        string
	Project       *string `json:",omitempty"`
	StartTime     int64
}

type DescribeEdgeTopNrtDataResponse

type DescribeEdgeTopNrtDataResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeEdgeTopNrtDataResult
}

type DescribeEdgeTopNrtDataResult

type DescribeEdgeTopNrtDataResult struct {
	Item           string
	Metric         string
	Name           string
	TopDataDetails []TopNrtDataDetail
}

type DescribeEdgeTopStatisticalDataRequest

type DescribeEdgeTopStatisticalDataRequest struct {
	Area      *string `json:",omitempty"`
	Domain    string
	EndTime   int64
	Item      string
	Metric    string
	StartTime int64
	UaType    *string `json:",omitempty"`
}

type DescribeEdgeTopStatisticalDataResponse

type DescribeEdgeTopStatisticalDataResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeEdgeTopStatisticalDataResult
}

type DescribeEdgeTopStatisticalDataResult

type DescribeEdgeTopStatisticalDataResult struct {
	Item           string
	Metric         string
	Name           string
	TopDataDetails []EdgeTopStatisticalDataDetail
}

type DescribeEdgeTopStatusCodeRequest

type DescribeEdgeTopStatusCodeRequest struct {
	Area          *string `json:",omitempty"`
	BillingRegion *string `json:",omitempty"`
	Domain        *string `json:",omitempty"`
	EndTime       int64
	InverseDomain *bool `json:",omitempty"`
	Item          string
	Metric        string
	Project       *string `json:",omitempty"`
	StartTime     int64
}

type DescribeEdgeTopStatusCodeResponse

type DescribeEdgeTopStatusCodeResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeEdgeTopStatusCodeResult
}

type DescribeEdgeTopStatusCodeResult

type DescribeEdgeTopStatusCodeResult struct {
	Item           string
	Metric         string
	Name           string
	TopDataDetails []TopStatusCodeDetail
}

type DescribeIPInfoRequest

type DescribeIPInfoRequest struct {
	IP string
}

type DescribeIPInfoResponse

type DescribeIPInfoResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeIPInfoResult
}

type DescribeIPInfoResult

type DescribeIPInfoResult struct {
	CdnIp    bool
	IP       string
	ISP      string
	Location string
}

type DescribeIPListInfoRequest

type DescribeIPListInfoRequest struct {
	IpList string
}

type DescribeIPListInfoResponse

type DescribeIPListInfoResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           []IPInfo
}

type DescribeOriginNrtDataSummaryRequest

type DescribeOriginNrtDataSummaryRequest struct {
	Aggregate           *string `json:",omitempty"`
	Area                *string `json:",omitempty"`
	BillingRegion       *string `json:",omitempty"`
	DisaggregateMetrics *string `json:",omitempty"`
	Domain              *string `json:",omitempty"`
	EndTime             int64
	Interval            *string `json:",omitempty"`
	InverseDomain       *bool   `json:",omitempty"`
	IpVersion           *string `json:",omitempty"`
	Isp                 *string `json:",omitempty"`
	Metric              string
	Project             *string `json:",omitempty"`
	Protocol            *string `json:",omitempty"`
	Region              *string `json:",omitempty"`
	StartTime           int64
}

type DescribeOriginNrtDataSummaryResponse

type DescribeOriginNrtDataSummaryResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeOriginNrtDataSummaryResult
}

type DescribeOriginNrtDataSummaryResult

type DescribeOriginNrtDataSummaryResult struct {
	Resources []NrtDataSummaryResource
}

type DescribeOriginTopNrtDataRequest

type DescribeOriginTopNrtDataRequest struct {
	Area          *string `json:",omitempty"`
	BillingRegion *string `json:",omitempty"`
	Domain        *string `json:",omitempty"`
	EndTime       int64
	Interval      *string `json:",omitempty"`
	InverseDomain *bool   `json:",omitempty"`
	Item          string
	Metric        string
	Project       *string `json:",omitempty"`
	StartTime     int64
}

type DescribeOriginTopNrtDataResponse

type DescribeOriginTopNrtDataResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeOriginTopNrtDataResult
}

type DescribeOriginTopNrtDataResult

type DescribeOriginTopNrtDataResult struct {
	Item           string
	Metric         string
	Name           string
	TopDataDetails []TopNrtDataDetail
}

type DescribeOriginTopStatusCodeRequest

type DescribeOriginTopStatusCodeRequest struct {
	Area          *string `json:",omitempty"`
	BillingRegion *string `json:",omitempty"`
	Domain        *string `json:",omitempty"`
	EndTime       int64
	InverseDomain *bool `json:",omitempty"`
	Item          string
	Metric        string
	Project       *string `json:",omitempty"`
	StartTime     int64
}

type DescribeOriginTopStatusCodeResponse

type DescribeOriginTopStatusCodeResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           DescribeOriginTopStatusCodeResult
}

type DescribeOriginTopStatusCodeResult

type DescribeOriginTopStatusCodeResult struct {
	Item           string
	Metric         string
	Name           string
	TopDataDetails []TopStatusCodeDetail
}

type DomainCertStatus added in v1.0.120

type DomainCertStatus struct {
	CerStatus string
	Domain    string
	Status    string
	Type      string
}

type DomainConfig added in v1.0.120

type DomainConfig struct {
	AreaAccessRule      *AreaAccessRule `json:",omitempty"`
	AutoRotate          *AutoRotate     `json:",omitempty"`
	BandwidthLimit      *BandwidthLimit `json:",omitempty"`
	BrowserCache        []BrowserCacheControlRule
	Cache               []CacheControlRule
	CacheHost           *CacheHost `json:",omitempty"`
	CacheKey            []CacheKeyRule
	Cname               *string              `json:",omitempty"`
	Compression         *Compression         `json:",omitempty"`
	CreateTime          *int64               `json:",omitempty"`
	CustomErrorPage     *CustomErrorPage     `json:",omitempty"`
	CustomizeAccessRule *CustomizeAccessRule `json:",omitempty"`
	Domain              *string              `json:",omitempty"`
	DownloadSpeedLimit  *DownloadSpeedLimit  `json:",omitempty"`
	FollowRedirect      *bool                `json:",omitempty"`
	HTTPS               *HTTPS               `json:",omitempty"`
	HeaderLogging       *HeaderLog           `json:",omitempty"`
	HttpForcedRedirect  *HttpForcedRedirect  `json:",omitempty"`
	IPv6                *IPv6                `json:",omitempty"`
	IpAccessRule        *IpAccessRule        `json:",omitempty"`
	IpFreqLimit         *IpFreqLimit         `json:",omitempty"`
	LockStatus          *string              `json:",omitempty"`
	MassCompression     *MassCompression     `json:",omitempty"`
	MethodDeniedRule    *MethodDeniedRule    `json:",omitempty"`
	NegativeCache       []NegativeCache
	Origin              []OriginRule
	OriginAccessRule    *OriginAccessRule `json:",omitempty"`
	OriginArg           []OriginArgRule
	OriginHost          *string `json:",omitempty"`
	OriginProtocol      string
	OriginRange         *bool               `json:",omitempty"`
	OriginRewrite       *OriginRewrite      `json:",omitempty"`
	OriginSni           *OriginSni          `json:",omitempty"`
	PageOptimization    *PageOptimization   `json:",omitempty"`
	Project             *string             `json:",omitempty"`
	Quic                *Quic               `json:",omitempty"`
	RedirectionRewrite  *RedirectionRewrite `json:",omitempty"`
	RefererAccessRule   *RefererAccessRule  `json:",omitempty"`
	RemoteAuth          *RemoteAuth         `json:",omitempty"`
	RequestHeader       []RequestHeaderRule
	ResponseHeader      []ResponseHeaderRule
	ServiceRegion       *string `json:",omitempty"`
	ServiceType         string
	SignedUrlAuth       *SignedUrlAuth       `json:",omitempty"`
	Sparrow             *Sparrow             `json:",omitempty"`
	Status              *string              `json:",omitempty"`
	Timeout             *Timeout             `json:",omitempty"`
	UaAccessRule        *UserAgentAccessRule `json:",omitempty"`
	UpdateTime          *int64               `json:",omitempty"`
	VideoDrag           *VideoDrag           `json:",omitempty"`
	WebpAdaptive        *WebpAdaptive        `json:",omitempty"`
}

type DomainLock added in v1.0.109

type DomainLock struct {
	Remark string
	Status string
}

type DomainLogDetail

type DomainLogDetail struct {
	EndTime   int64
	LogName   string
	LogPath   string
	LogSize   int64
	StartTime int64
}

type DomainNrtDetailData

type DomainNrtDetailData struct {
	DataDetails []NrtDataDetails
	Name        string
}

type DomainStatus added in v1.0.120

type DomainStatus struct {
	Domain string
	Status string
	Type   string
}

type DomainSummary added in v1.0.120

type DomainSummary struct {
	BackupOrigin          []string
	CacheShared           string
	CacheSharedTargetHost string
	Cname                 string
	ConfigStatus          string
	CreateTime            int64
	Domain                string
	DomainLock            DomainLock
	HTTPS                 bool
	IPv6                  bool
	IsConflictDomain      bool
	OriginProtocol        string
	PrimaryOrigin         []string
	Project               string
	ResourceTags          []ResourceTag
	ServiceRegion         string
	ServiceType           string
	SparrowList           []string
	Status                string
	UpdateTime            int64
	Waf                   bool
}

type DownloadSpeedLimit

type DownloadSpeedLimit struct {
	DownloadSpeedLimitRules []DownloadSpeedLimitRule
	Switch                  *bool `json:",omitempty"`
}

type DownloadSpeedLimitAction

type DownloadSpeedLimitAction struct {
	SpeedLimitRate      *int64          `json:",omitempty"`
	SpeedLimitRateAfter *int64          `json:",omitempty"`
	SpeedLimitTime      *SpeedLimitTime `json:",omitempty"`
}

type DownloadSpeedLimitRule

type DownloadSpeedLimitRule struct {
	Condition                *Condition                `json:",omitempty"`
	DownloadSpeedLimitAction *DownloadSpeedLimitAction `json:",omitempty"`
}

type EdgeStatisticalDataResource

type EdgeStatisticalDataResource struct {
	Metrics []AccountingData
	Name    string
}

type EdgeTopStatisticalDataDetail

type EdgeTopStatisticalDataDetail struct {
	ItemKey   string
	ItemKeyCN string
	Value     float64
}

type ErrorObj

type ErrorObj struct {
	CodeN   int64
	Code    string
	Message string
}

type ErrorPageAction

type ErrorPageAction struct {
	Action       *string `json:",omitempty"`
	RedirectCode *string `json:",omitempty"`
	RedirectUrl  *string `json:",omitempty"`
	StatusCode   *string `json:",omitempty"`
}

type ErrorPageRule

type ErrorPageRule struct {
	ErrorPageAction *ErrorPageAction `json:",omitempty"`
}

type ForcedRedirect

type ForcedRedirect struct {
	EnableForcedRedirect *bool   `json:",omitempty"`
	StatusCode           *string `json:",omitempty"`
}

type HTTPS

type HTTPS struct {
	CertInfo       *CertInfo `json:",omitempty"`
	CertInfoList   []CertInfo
	DisableHttp    *bool           `json:",omitempty"`
	ForcedRedirect *ForcedRedirect `json:",omitempty"`
	HTTP2          *bool           `json:",omitempty"`
	Hsts           *Hsts           `json:",omitempty"`
	OCSP           *bool           `json:",omitempty"`
	Switch         *bool           `json:",omitempty"`
	TlsVersion     []string
}

type HeaderLog

type HeaderLog struct {
	HeaderLogging *string `json:",omitempty"`
	Switch        *bool   `json:",omitempty"`
}

type Hsts

type Hsts struct {
	Subdomain *string `json:",omitempty"`
	Switch    *bool   `json:",omitempty"`
	Ttl       *int64  `json:",omitempty"`
}

type HttpForcedRedirect

type HttpForcedRedirect struct {
	EnableForcedRedirect *bool   `json:",omitempty"`
	StatusCode           *string `json:",omitempty"`
}

type IPInfo

type IPInfo struct {
	CdnIp    bool
	IP       string
	ISP      string
	Location string
}

type IPv6

type IPv6 struct {
	Switch *bool `json:",omitempty"`
}

type IpAccessRule

type IpAccessRule struct {
	Ip       []string
	RuleType *string `json:",omitempty"`
	Switch   *bool   `json:",omitempty"`
}

type IpFreqLimit

type IpFreqLimit struct {
	IpFreqLimitRules []IpFreqLimitRule
	Switch           *bool `json:",omitempty"`
}

type IpFreqLimitAction

type IpFreqLimitAction struct {
	Action        *string `json:",omitempty"`
	FreqLimitRate *int64  `json:",omitempty"`
	StatusCode    *string `json:",omitempty"`
}

type IpFreqLimitRule

type IpFreqLimitRule struct {
	Condition         *Condition         `json:",omitempty"`
	IpFreqLimitAction *IpFreqLimitAction `json:",omitempty"`
}

type ListCdnCertInfoRequest

type ListCdnCertInfoRequest struct {
	CertId           *string `json:",omitempty"`
	Configured       *bool   `json:",omitempty"`
	ConfiguredDomain *string `json:",omitempty"`
	DnsName          *string `json:",omitempty"`
	PageNum          *int64  `json:",omitempty"`
	PageSize         *int64  `json:",omitempty"`
	Source           *string `json:",omitempty"`
	Status           *string `json:",omitempty"`
}

type ListCdnCertInfoResponse

type ListCdnCertInfoResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           ListCdnCertInfoResult
}

type ListCdnCertInfoResult

type ListCdnCertInfoResult struct {
	CertInfo      []ListCertInfo
	ExpiringCount int64
	PageNum       int64
	PageSize      int64
	Total         int64
}

type ListCdnDomainsRequest

type ListCdnDomainsRequest struct {
	Domain         *string `json:",omitempty"`
	ExactMatch     *bool   `json:",omitempty"`
	HTTPS          *bool   `json:",omitempty"`
	IPv6           *bool   `json:",omitempty"`
	NeedSparrows   *bool   `json:",omitempty"`
	OriginProtocol *string `json:",omitempty"`
	PageNum        *int64  `json:",omitempty"`
	PageSize       *int64  `json:",omitempty"`
	PrimaryOrigin  *string `json:",omitempty"`
	Project        *string `json:",omitempty"`
	ResourceTags   []string
	ServiceRegion  *string `json:",omitempty"`
	ServiceType    *string `json:",omitempty"`
	Status         *string `json:",omitempty"`
	TagConnective  *string `json:",omitempty"`
}

type ListCdnDomainsResponse

type ListCdnDomainsResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           ListCdnDomainsResult
}

type ListCdnDomainsResult

type ListCdnDomainsResult struct {
	Data     []DomainSummary
	PageNum  int64
	PageSize int64
	Total    int64
}

type ListCertInfo added in v1.0.109

type ListCertInfo struct {
	CertId                 string
	CertName               string
	ConfiguredDomain       string
	ConfiguredDomainDetail []ConfiguredDomain
	Desc                   string
	DnsName                string
	EffectiveTime          int64
	ExpireTime             int64
	Source                 string
	Status                 string
}

type ListCertInfoRequest

type ListCertInfoRequest struct {
	CertId           *string `json:",omitempty"`
	ConfiguredDomain *string `json:",omitempty"`
	FuzzyMatch       *bool   `json:",omitempty"`
	Name             *string `json:",omitempty"`
	PageNum          *int64  `json:",omitempty"`
	PageSize         *int64  `json:",omitempty"`
	SetPagination    *bool   `json:",omitempty"`
	Source           string
	Status           *string `json:",omitempty"`
}

type ListCertInfoResponse

type ListCertInfoResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           ListCertInfoResult
}

type ListCertInfoResult

type ListCertInfoResult struct {
	CertInfo      []ListCertInfo
	ExpiringCount int64
	PageNum       int64
	PageSize      int64
	Total         int64
}

type ListResourceTagsResponse

type ListResourceTagsResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           ListResourceTagsResult
}

type ListResourceTagsResult

type ListResourceTagsResult struct {
	ResourceTags []ResourceTag
}

type MassCompression

type MassCompression struct {
	MassCompressionRule []MassCompressionRule
	Switch              *bool `json:",omitempty"`
}

type MassCompressionAction

type MassCompressionAction struct {
	CompressionRatio *int64  `json:",omitempty"`
	CompressionType  *string `json:",omitempty"`
}

type MassCompressionRule

type MassCompressionRule struct {
	CompressionAction *MassCompressionAction `json:",omitempty"`
}

type MethodDeniedRule

type MethodDeniedRule struct {
	Methods *string `json:",omitempty"`
	Switch  *bool   `json:",omitempty"`
}

type MetricTimestampValue

type MetricTimestampValue struct {
	Metric string
	Values []TimestampValue
}

type MetricValue

type MetricValue struct {
	Metric string
	Value  float64
}

type NamePair

type NamePair struct {
	Code string
	Name string
}

type NegativeCache

type NegativeCache struct {
	Condition         *Condition           `json:",omitempty"`
	NegativeCacheRule *NegativeCacheAction `json:",omitempty"`
}

type NegativeCacheAction

type NegativeCacheAction struct {
	Action     *string `json:",omitempty"`
	IgnoreCase *bool   `json:",omitempty"`
	StatusCode *string `json:",omitempty"`
	Ttl        *int64  `json:",omitempty"`
}

type NrtDataDetails

type NrtDataDetails struct {
	Isp     string
	Metrics []MetricTimestampValue
	Region  string
}

type NrtDataResource

type NrtDataResource struct {
	BillingRegion string
	Isp           string
	Metrics       []MetricTimestampValue
	Name          string
	Region        string
}

type NrtDataSummaryResource

type NrtDataSummaryResource struct {
	BillingRegion string
	Metrics       []MetricValue
	Name          string
}

type OptionArg added in v1.0.106

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

func UseGet added in v1.0.106

func UseGet() OptionArg

type OriginAccessRule

type OriginAccessRule struct {
	AllowEmpty *bool `json:",omitempty"`
	IgnoreCase *bool `json:",omitempty"`
	Origins    []string
	RuleType   *string `json:",omitempty"`
	Switch     *bool   `json:",omitempty"`
}

type OriginAction

type OriginAction struct {
	OriginLines []OriginLine
}

type OriginArgAction

type OriginArgAction struct {
	OriginArgComponents []OriginArgComponents
}

type OriginArgComponents

type OriginArgComponents struct {
	Action    *string `json:",omitempty"`
	Object    *string `json:",omitempty"`
	Subobject *string `json:",omitempty"`
}

type OriginArgRule

type OriginArgRule struct {
	Condition       *Condition       `json:",omitempty"`
	OriginArgAction *OriginArgAction `json:",omitempty"`
}

type OriginLine

type OriginLine struct {
	Address             *string            `json:",omitempty"`
	HttpPort            *string            `json:",omitempty"`
	HttpsPort           *string            `json:",omitempty"`
	InstanceType        *string            `json:",omitempty"`
	OriginHost          *string            `json:",omitempty"`
	OriginType          *string            `json:",omitempty"`
	PrivateBucketAccess *bool              `json:",omitempty"`
	PrivateBucketAuth   *PrivateBucketAuth `json:",omitempty"`
	Region              *string            `json:",omitempty"`
	Weight              *string            `json:",omitempty"`
}

type OriginRewrite

type OriginRewrite struct {
	OriginRewriteRule []OriginRewriteRule
	Switch            *bool `json:",omitempty"`
}

type OriginRewriteAction

type OriginRewriteAction struct {
	SourcePath *string `json:",omitempty"`
	TargetPath *string `json:",omitempty"`
}

type OriginRewriteRule

type OriginRewriteRule struct {
	Condition           *Condition           `json:",omitempty"`
	OriginRewriteAction *OriginRewriteAction `json:",omitempty"`
}

type OriginRule

type OriginRule struct {
	Condition    *Condition    `json:",omitempty"`
	OriginAction *OriginAction `json:",omitempty"`
}

type OriginSni

type OriginSni struct {
	SniDomain *string `json:",omitempty"`
	Switch    *bool   `json:",omitempty"`
}

type PageOptimization added in v1.0.120

type PageOptimization struct {
	OptimizationType []string
	Switch           *bool `json:",omitempty"`
}

type PrivateBucketAuth

type PrivateBucketAuth struct {
	AuthType           *string             `json:",omitempty"`
	Switch             *bool               `json:",omitempty"`
	TosAuthInformation *TosAuthInformation `json:",omitempty"`
}

type QueryStringComponents

type QueryStringComponents struct {
	Action *string `json:",omitempty"`
	Value  *string `json:",omitempty"`
}

type QueryStringInstance

type QueryStringInstance struct {
	Action    *string `json:",omitempty"`
	Key       *string `json:",omitempty"`
	Value     *string `json:",omitempty"`
	ValueType *string `json:",omitempty"`
}

type QueryStringRule

type QueryStringRule struct {
	QueryStringComponents *QueryStringComponents `json:",omitempty"`
	QueryStringInstances  []QueryStringInstance
}

type Quic

type Quic struct {
	Switch *bool `json:",omitempty"`
}

type RedirectionAction

type RedirectionAction struct {
	RedirectCode          *string                `json:",omitempty"`
	SourcePath            *string                `json:",omitempty"`
	TargetHost            *string                `json:",omitempty"`
	TargetPath            *string                `json:",omitempty"`
	TargetProtocol        *string                `json:",omitempty"`
	TargetQueryComponents *TargetQueryComponents `json:",omitempty"`
}

type RedirectionRewrite

type RedirectionRewrite struct {
	RedirectionRule []RedirectionRule
	Switch          *bool `json:",omitempty"`
}

type RedirectionRule

type RedirectionRule struct {
	RedirectionAction *RedirectionAction `json:",omitempty"`
}

type RefererAccessRule

type RefererAccessRule struct {
	AllowEmpty   *bool `json:",omitempty"`
	Referers     []string
	ReferersType *ReferersType `json:",omitempty"`
	RuleType     *string       `json:",omitempty"`
	Switch       *bool         `json:",omitempty"`
}

type RefererType added in v1.0.109

type RefererType struct {
	Referers []string
}

type ReferersType added in v1.0.109

type ReferersType struct {
	CommonType  *CommonReferType `json:",omitempty"`
	RegularType *RefererType     `json:",omitempty"`
}

type RemoteAuth

type RemoteAuth struct {
	RemoteAuthRules []RemoteAuthRule
	Switch          *bool `json:",omitempty"`
}

type RemoteAuthRule

type RemoteAuthRule struct {
	Condition            *Condition            `json:",omitempty"`
	RemoteAuthRuleAction *RemoteAuthRuleAction `json:",omitempty"`
}

type RemoteAuthRuleAction

type RemoteAuthRuleAction struct {
	AuthModeConfig     *AuthModeConfig        `json:",omitempty"`
	AuthResponseConfig *AuthResponseConfig    `json:",omitempty"`
	QueryStringRules   *QueryStringRule       `json:",omitempty"`
	RequestBodyRules   *string                `json:",omitempty"`
	RequestHeaderRules *AuthRequestHeaderRule `json:",omitempty"`
}

type RequestHeaderAction

type RequestHeaderAction struct {
	RequestHeaderInstances []RequestHeaderInstance
}

type RequestHeaderComponent

type RequestHeaderComponent struct {
	Action *string `json:",omitempty"`
	Value  *string `json:",omitempty"`
}

type RequestHeaderInstance

type RequestHeaderInstance struct {
	Action    *string `json:",omitempty"`
	Key       *string `json:",omitempty"`
	Value     *string `json:",omitempty"`
	ValueType *string `json:",omitempty"`
}

type RequestHeaderRule

type RequestHeaderRule struct {
	Condition           *Condition           `json:",omitempty"`
	RequestHeaderAction *RequestHeaderAction `json:",omitempty"`
}

type ResourceTag

type ResourceTag struct {
	Key   *string `json:",omitempty"`
	Value *string `json:",omitempty"`
}

type ResponseAction

type ResponseAction struct {
	StatusCode *string `json:",omitempty"`
}

type ResponseHeaderAction

type ResponseHeaderAction struct {
	ResponseHeaderInstances []ResponseHeaderInstance
}

type ResponseHeaderInstance

type ResponseHeaderInstance struct {
	AccessOriginControl *bool   `json:",omitempty"`
	Action              *string `json:",omitempty"`
	Key                 *string `json:",omitempty"`
	Value               *string `json:",omitempty"`
	ValueType           *string `json:",omitempty"`
}

type ResponseHeaderRule

type ResponseHeaderRule struct {
	Condition            *Condition            `json:",omitempty"`
	ResponseHeaderAction *ResponseHeaderAction `json:",omitempty"`
}

type ResponseMetadata

type ResponseMetadata struct {
	RequestId string
	Service   *string   `json:",omitempty"`
	Region    *string   `json:",omitempty"`
	Action    *string   `json:",omitempty"`
	Version   *string   `json:",omitempty"`
	Error     *ErrorObj `json:",omitempty"`
}

type SignedUrlAuth

type SignedUrlAuth struct {
	SignedUrlAuthRules []SignedUrlAuthRule
	Switch             *bool `json:",omitempty"`
}

type SignedUrlAuthAction

type SignedUrlAuthAction struct {
	BackupSecretKey     *string              `json:",omitempty"`
	CustomVariableRules *CustomVariableRules `json:",omitempty"`
	Duration            *int64               `json:",omitempty"`
	KeepOriginArg       *bool                `json:",omitempty"`
	MasterSecretKey     *string              `json:",omitempty"`
	RewriteM3u8         *bool                `json:",omitempty"`
	SignName            *string              `json:",omitempty"`
	SignatureRule       []string
	TimeFormat          *string `json:",omitempty"`
	TimeName            *string `json:",omitempty"`
	URLAuthType         *string `json:",omitempty"`
}

type SignedUrlAuthRule

type SignedUrlAuthRule struct {
	Condition           *Condition           `json:",omitempty"`
	SignedUrlAuthAction *SignedUrlAuthAction `json:",omitempty"`
}

type Sparrow

type Sparrow struct {
	SparrowRules []SparrowRule
	Switch       *bool `json:",omitempty"`
}

type SparrowAction

type SparrowAction struct {
	Action     *string `json:",omitempty"`
	IgnoreCase *bool   `json:",omitempty"`
	SparrowID  *string `json:",omitempty"`
}

type SparrowRule

type SparrowRule struct {
	Condition     *Condition     `json:",omitempty"`
	SparrowAction *SparrowAction `json:",omitempty"`
}

type SpeedLimitTime

type SpeedLimitTime struct {
	BeginTime *string `json:",omitempty"`
	DayWeek   *string `json:",omitempty"`
	EndTime   *string `json:",omitempty"`
}

type StartCdnDomainRequest

type StartCdnDomainRequest struct {
	Domain string
}

type StartCdnDomainResponse

type StartCdnDomainResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
}

type StatusCodeAction

type StatusCodeAction struct {
	DefaultAction *string `json:",omitempty"`
	FailCode      *string `json:",omitempty"`
	SuccessCode   *string `json:",omitempty"`
}

type StopCdnDomainRequest

type StopCdnDomainRequest struct {
	Domain string
}

type StopCdnDomainResponse

type StopCdnDomainResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
}

type SubmitBlockTaskRequest

type SubmitBlockTaskRequest struct {
	Type *string `json:",omitempty"`
	Urls string
}

type SubmitBlockTaskResponse

type SubmitBlockTaskResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           SubmitBlockTaskResult
}

type SubmitBlockTaskResult

type SubmitBlockTaskResult struct {
	TaskID string
}

type SubmitPreloadTaskRequest

type SubmitPreloadTaskRequest struct {
	Area            *string `json:",omitempty"`
	ConcurrentLimit *int64  `json:",omitempty"`
	Deduplicate     *bool   `json:",omitempty"`
	Isp             *string `json:",omitempty"`
	Layer           *string `json:",omitempty"`
	Region          *string `json:",omitempty"`
	SubArea         *string `json:",omitempty"`
	Urls            string
}

type SubmitPreloadTaskResponse

type SubmitPreloadTaskResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           SubmitPreloadTaskResult
}

type SubmitPreloadTaskResult

type SubmitPreloadTaskResult struct {
	CommitNum *int64 `json:",omitempty"`
	TaskID    string
}

type SubmitRefreshTaskRequest

type SubmitRefreshTaskRequest struct {
	Delete *bool   `json:",omitempty"`
	Prefix *bool   `json:",omitempty"`
	Type   *string `json:",omitempty"`
	Urls   string
}

type SubmitRefreshTaskResponse

type SubmitRefreshTaskResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           SubmitRefreshTaskResult
}

type SubmitRefreshTaskResult

type SubmitRefreshTaskResult struct {
	TaskID string
}

type SubmitUnblockTaskRequest

type SubmitUnblockTaskRequest struct {
	Type *string `json:",omitempty"`
	Urls string
}

type SubmitUnblockTaskResponse

type SubmitUnblockTaskResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
	Result           SubmitUnblockTaskResult
}

type SubmitUnblockTaskResult

type SubmitUnblockTaskResult struct {
	TaskID string
}

type TargetQueryComponents

type TargetQueryComponents struct {
	Action *string `json:",omitempty"`
	Value  *string `json:",omitempty"`
}

type Timeout added in v1.0.120

type Timeout struct {
	Switch       *bool `json:",omitempty"`
	TimeoutRules []TimeoutRule
}

type TimeoutAction added in v1.0.120

type TimeoutAction struct {
	HttpTimeout *int64 `json:",omitempty"`
	TcpTimeout  *int64 `json:",omitempty"`
}

type TimeoutRule

type TimeoutRule struct {
	Condition     *Condition     `json:",omitempty"`
	TimeoutAction *TimeoutAction `json:",omitempty"`
}

type TimestampValue

type TimestampValue struct {
	Timestamp int64
	Value     float64
}

type TopInstanceDetail

type TopInstanceDetail struct {
	BillingCode      string
	BillingCycle     string
	BillingData      string
	BillingDesc      string
	CreateTime       string
	FreeTimePeriods  []int64
	InstanceCategory string
	InstanceType     string
	MetricType       string
	ServiceRegion    string
	StartTime        string
	Status           string
}

type TopNrtDataDetail

type TopNrtDataDetail struct {
	Bandwidth                float64
	BandwidthPeakTime        int64
	BsBandwidth              float64
	BsBandwidthPeakTime      int64
	BsFlux                   float64
	BsFluxRatio              float64
	DynamicRequest           int64
	DynamicRequestRatio      float64
	Flux                     float64
	FluxRatio                float64
	InboundBandwidth         float64
	InboundBandwidthPeakTime int64
	InboundFlux              float64
	InboundFluxRatio         float64
	ItemKey                  string
	ItemKeyCN                string
	PV                       float64
	PVRatio                  float64
	Quic                     int64
	StaticRequest            int64
	StaticRequestRatio       float64
}

type TopStatusCodeDetail

type TopStatusCodeDetail struct {
	Status2xx      float64 `json:"2xx"`
	Status2xxRatio float64 `json:"2xxRatio"`
	Status3xx      float64 `json:"3xx"`
	Status3xxRatio float64 `json:"3xxRatio"`
	Status4xx      float64 `json:"4xx"`
	Status4xxRatio float64 `json:"4xxRatio"`
	Status5xx      float64 `json:"5xx"`
	Status5xxRatio float64 `json:"5xxRatio"`
	ItemKey        string
}

type TosAuthInformation

type TosAuthInformation struct {
	AccessKeyId       *string `json:",omitempty"`
	AccessKeySecret   *string `json:",omitempty"`
	RoleAccountId     *string `json:",omitempty"`
	RoleName          *string `json:",omitempty"`
	RolePassAccountId *string `json:",omitempty"`
	RolePassName      *string `json:",omitempty"`
}

type UpdateCdnConfigRequest

type UpdateCdnConfigRequest struct {
	AreaAccessRule      *AreaAccessRule `json:",omitempty"`
	AutoRotate          *AutoRotate     `json:",omitempty"`
	BandwidthLimit      *BandwidthLimit `json:",omitempty"`
	BrowserCache        []BrowserCacheControlRule
	Cache               []CacheControlRule
	CacheHost           *CacheHost `json:",omitempty"`
	CacheKey            []CacheKeyRule
	Compression         *Compression         `json:",omitempty"`
	CustomErrorPage     *CustomErrorPage     `json:",omitempty"`
	CustomizeAccessRule *CustomizeAccessRule `json:",omitempty"`
	Domain              *string              `json:",omitempty"`
	DownloadSpeedLimit  *DownloadSpeedLimit  `json:",omitempty"`
	FollowRedirect      *bool                `json:",omitempty"`
	HTTPS               *HTTPS               `json:",omitempty"`
	HeaderLogging       *HeaderLog           `json:",omitempty"`
	HttpForcedRedirect  *HttpForcedRedirect  `json:",omitempty"`
	IPv6                *IPv6                `json:",omitempty"`
	IpAccessRule        *IpAccessRule        `json:",omitempty"`
	IpFreqLimit         *IpFreqLimit         `json:",omitempty"`
	MassCompression     *MassCompression     `json:",omitempty"`
	MethodDeniedRule    *MethodDeniedRule    `json:",omitempty"`
	NegativeCache       []NegativeCache
	Origin              []OriginRule
	OriginAccessRule    *OriginAccessRule `json:",omitempty"`
	OriginArg           []OriginArgRule
	OriginHost          *string             `json:",omitempty"`
	OriginProtocol      *string             `json:",omitempty"`
	OriginRange         *bool               `json:",omitempty"`
	OriginRewrite       *OriginRewrite      `json:",omitempty"`
	OriginSni           *OriginSni          `json:",omitempty"`
	PageOptimization    *PageOptimization   `json:",omitempty"`
	Quic                *Quic               `json:",omitempty"`
	RedirectionRewrite  *RedirectionRewrite `json:",omitempty"`
	RefererAccessRule   *RefererAccessRule  `json:",omitempty"`
	RemoteAuth          *RemoteAuth         `json:",omitempty"`
	RequestHeader       []RequestHeaderRule
	ResponseHeader      []ResponseHeaderRule
	ServiceRegion       *string              `json:",omitempty"`
	ServiceType         *string              `json:",omitempty"`
	SignedUrlAuth       *SignedUrlAuth       `json:",omitempty"`
	Sparrow             *Sparrow             `json:",omitempty"`
	Timeout             *Timeout             `json:",omitempty"`
	UaAccessRule        *UserAgentAccessRule `json:",omitempty"`
	VideoDrag           *VideoDrag           `json:",omitempty"`
	WebpAdaptive        *WebpAdaptive        `json:",omitempty"`
}

type UpdateCdnConfigResponse

type UpdateCdnConfigResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
}

type UpdateResourceTagsRequest

type UpdateResourceTagsRequest struct {
	ResourceTags []ResourceTag
	Resources    []string
}

type UpdateResourceTagsResponse

type UpdateResourceTagsResponse struct {
	ResponseMetadata *ResponseMetadata `json:",omitempty"`
}

type UserAgentAccessRule

type UserAgentAccessRule struct {
	AllowEmpty *bool   `json:",omitempty"`
	IgnoreCase *bool   `json:",omitempty"`
	RuleType   *string `json:",omitempty"`
	Switch     *bool   `json:",omitempty"`
	UserAgent  []string
}

type VideoDrag

type VideoDrag struct {
	Switch *bool `json:",omitempty"`
}

type WebpAdaptive

type WebpAdaptive struct {
	Switch *bool `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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