v2

package
v0.1.99 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CdnClientBuilder

func CdnClientBuilder() *httpclient.HcHttpClientBuilder

func GenReqDefForBatchCopyDomain added in v0.1.12

func GenReqDefForBatchCopyDomain() *def.HttpRequestDef

func GenReqDefForBatchDeleteTags added in v0.1.81

func GenReqDefForBatchDeleteTags() *def.HttpRequestDef

func GenReqDefForCreateDomain added in v0.1.81

func GenReqDefForCreateDomain() *def.HttpRequestDef

func GenReqDefForCreatePreheatingTasks added in v0.1.63

func GenReqDefForCreatePreheatingTasks() *def.HttpRequestDef

func GenReqDefForCreateRefreshTasks added in v0.1.63

func GenReqDefForCreateRefreshTasks() *def.HttpRequestDef

func GenReqDefForCreateTags added in v0.1.81

func GenReqDefForCreateTags() *def.HttpRequestDef

func GenReqDefForDeleteDomain added in v0.1.81

func GenReqDefForDeleteDomain() *def.HttpRequestDef

func GenReqDefForDisableDomain added in v0.1.81

func GenReqDefForDisableDomain() *def.HttpRequestDef

func GenReqDefForDownloadRegionCarrierExcel added in v0.1.10

func GenReqDefForDownloadRegionCarrierExcel() *def.HttpRequestDef

func GenReqDefForDownloadStatisticsExcel added in v0.1.10

func GenReqDefForDownloadStatisticsExcel() *def.HttpRequestDef

func GenReqDefForEnableDomain added in v0.1.81

func GenReqDefForEnableDomain() *def.HttpRequestDef

func GenReqDefForListCdnDomainTopRefers added in v0.1.78

func GenReqDefForListCdnDomainTopRefers() *def.HttpRequestDef

func GenReqDefForListDomains added in v0.1.32

func GenReqDefForListDomains() *def.HttpRequestDef

func GenReqDefForSetChargeModes added in v0.1.10

func GenReqDefForSetChargeModes() *def.HttpRequestDef

func GenReqDefForShowBandwidthCalc added in v0.1.10

func GenReqDefForShowBandwidthCalc() *def.HttpRequestDef

func GenReqDefForShowCertificatesHttpsInfo added in v0.1.81

func GenReqDefForShowCertificatesHttpsInfo() *def.HttpRequestDef

func GenReqDefForShowChargeModes added in v0.1.10

func GenReqDefForShowChargeModes() *def.HttpRequestDef

func GenReqDefForShowDomainDetailByName added in v0.1.32

func GenReqDefForShowDomainDetailByName() *def.HttpRequestDef

func GenReqDefForShowDomainFullConfig added in v0.1.37

func GenReqDefForShowDomainFullConfig() *def.HttpRequestDef

func GenReqDefForShowDomainLocationStats

func GenReqDefForShowDomainLocationStats() *def.HttpRequestDef

func GenReqDefForShowDomainStats

func GenReqDefForShowDomainStats() *def.HttpRequestDef

func GenReqDefForShowHistoryTaskDetails added in v0.1.63

func GenReqDefForShowHistoryTaskDetails() *def.HttpRequestDef

func GenReqDefForShowHistoryTasks added in v0.1.63

func GenReqDefForShowHistoryTasks() *def.HttpRequestDef

func GenReqDefForShowIpInfo added in v0.1.81

func GenReqDefForShowIpInfo() *def.HttpRequestDef

func GenReqDefForShowLogs added in v0.1.80

func GenReqDefForShowLogs() *def.HttpRequestDef

func GenReqDefForShowQuota added in v0.1.91

func GenReqDefForShowQuota() *def.HttpRequestDef

func GenReqDefForShowTags added in v0.1.81

func GenReqDefForShowTags() *def.HttpRequestDef

func GenReqDefForShowTopDomainNames added in v0.1.10

func GenReqDefForShowTopDomainNames() *def.HttpRequestDef

func GenReqDefForShowTopUrl

func GenReqDefForShowTopUrl() *def.HttpRequestDef

func GenReqDefForShowUrlTaskInfo added in v0.1.63

func GenReqDefForShowUrlTaskInfo() *def.HttpRequestDef

func GenReqDefForShowVerifyDomainOwnerInfo added in v0.1.81

func GenReqDefForShowVerifyDomainOwnerInfo() *def.HttpRequestDef

func GenReqDefForUpdateDomainFullConfig added in v0.1.37

func GenReqDefForUpdateDomainFullConfig() *def.HttpRequestDef

func GenReqDefForUpdateDomainMultiCertificates added in v0.1.81

func GenReqDefForUpdateDomainMultiCertificates() *def.HttpRequestDef

func GenReqDefForUpdatePrivateBucketAccess added in v0.1.81

func GenReqDefForUpdatePrivateBucketAccess() *def.HttpRequestDef

func GenReqDefForVerifyDomainOwner added in v0.1.81

func GenReqDefForVerifyDomainOwner() *def.HttpRequestDef

Types

type BatchCopyDomainInvoker added in v0.1.12

type BatchCopyDomainInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchCopyDomainInvoker) Invoke added in v0.1.12

type BatchDeleteTagsInvoker added in v0.1.81

type BatchDeleteTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchDeleteTagsInvoker) Invoke added in v0.1.81

type CdnClient

type CdnClient struct {
	HcClient *httpclient.HcHttpClient
}

func NewCdnClient

func NewCdnClient(hcClient *httpclient.HcHttpClient) *CdnClient

func (*CdnClient) BatchCopyDomain added in v0.1.12

func (c *CdnClient) BatchCopyDomain(request *model.BatchCopyDomainRequest) (*model.BatchCopyDomainResponse, error)

BatchCopyDomain 批量域名复制

批量域名复制接口。

> 将某个加速域名的配置批量复制到其他域名。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) BatchCopyDomainInvoker added in v0.1.12

func (c *CdnClient) BatchCopyDomainInvoker(request *model.BatchCopyDomainRequest) *BatchCopyDomainInvoker

BatchCopyDomainInvoker 批量域名复制

func (*CdnClient) BatchDeleteTags added in v0.1.81

func (c *CdnClient) BatchDeleteTags(request *model.BatchDeleteTagsRequest) (*model.BatchDeleteTagsResponse, error)

BatchDeleteTags 删除资源标签配置接口

用于删除资源标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) BatchDeleteTagsInvoker added in v0.1.81

func (c *CdnClient) BatchDeleteTagsInvoker(request *model.BatchDeleteTagsRequest) *BatchDeleteTagsInvoker

BatchDeleteTagsInvoker 删除资源标签配置接口

func (*CdnClient) CreateDomain added in v0.1.81

func (c *CdnClient) CreateDomain(request *model.CreateDomainRequest) (*model.CreateDomainResponse, error)

CreateDomain 创建加速域名

创建加速域名。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) CreateDomainInvoker added in v0.1.81

func (c *CdnClient) CreateDomainInvoker(request *model.CreateDomainRequest) *CreateDomainInvoker

CreateDomainInvoker 创建加速域名

func (*CdnClient) CreatePreheatingTasks added in v0.1.63

CreatePreheatingTasks 创建预热缓存任务

创建预热任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) CreatePreheatingTasksInvoker added in v0.1.63

func (c *CdnClient) CreatePreheatingTasksInvoker(request *model.CreatePreheatingTasksRequest) *CreatePreheatingTasksInvoker

CreatePreheatingTasksInvoker 创建预热缓存任务

func (*CdnClient) CreateRefreshTasks added in v0.1.63

func (c *CdnClient) CreateRefreshTasks(request *model.CreateRefreshTasksRequest) (*model.CreateRefreshTasksResponse, error)

CreateRefreshTasks 创建刷新缓存任务

创建刷新缓存任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) CreateRefreshTasksInvoker added in v0.1.63

func (c *CdnClient) CreateRefreshTasksInvoker(request *model.CreateRefreshTasksRequest) *CreateRefreshTasksInvoker

CreateRefreshTasksInvoker 创建刷新缓存任务

func (*CdnClient) CreateTags added in v0.1.81

func (c *CdnClient) CreateTags(request *model.CreateTagsRequest) (*model.CreateTagsResponse, error)

CreateTags 创建资源标签配置接口

用于创建资源标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) CreateTagsInvoker added in v0.1.81

func (c *CdnClient) CreateTagsInvoker(request *model.CreateTagsRequest) *CreateTagsInvoker

CreateTagsInvoker 创建资源标签配置接口

func (*CdnClient) DeleteDomain added in v0.1.81

func (c *CdnClient) DeleteDomain(request *model.DeleteDomainRequest) (*model.DeleteDomainResponse, error)

DeleteDomain 删除加速域名

删除加速域名。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) DeleteDomainInvoker added in v0.1.81

func (c *CdnClient) DeleteDomainInvoker(request *model.DeleteDomainRequest) *DeleteDomainInvoker

DeleteDomainInvoker 删除加速域名

func (*CdnClient) DisableDomain added in v0.1.81

func (c *CdnClient) DisableDomain(request *model.DisableDomainRequest) (*model.DisableDomainResponse, error)

DisableDomain 停用加速域名

停用加速域名。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) DisableDomainInvoker added in v0.1.81

func (c *CdnClient) DisableDomainInvoker(request *model.DisableDomainRequest) *DisableDomainInvoker

DisableDomainInvoker 停用加速域名

func (*CdnClient) DownloadRegionCarrierExcel deprecated added in v0.1.10

Deprecated: This function is deprecated and will be removed in the future versions. DownloadRegionCarrierExcel 下载区域运营商指标数据表格文件

- 下载区域运营商指标数据表格文件。

- 支持下载90天内的指标数据表格。

- 时间跨度不能超过31天。

- 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。

- 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。

- 单租户调用频率:10次/min。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) DownloadRegionCarrierExcelInvoker deprecated added in v0.1.10

func (c *CdnClient) DownloadRegionCarrierExcelInvoker(request *model.DownloadRegionCarrierExcelRequest) *DownloadRegionCarrierExcelInvoker

Deprecated: This function is deprecated and will be removed in the future versions. DownloadRegionCarrierExcelInvoker 下载区域运营商指标数据表格文件

func (*CdnClient) DownloadStatisticsExcel deprecated added in v0.1.10

Deprecated: This function is deprecated and will be removed in the future versions. DownloadStatisticsExcel 下载统计指标数据表格文件

- 下载统计指标数据表格文件。

- 支持下载90天内的指标数据。

- 时间跨度不能超过31天。

- 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。

- 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。

- 单租户调用频率:10次/min。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) DownloadStatisticsExcelInvoker deprecated added in v0.1.10

func (c *CdnClient) DownloadStatisticsExcelInvoker(request *model.DownloadStatisticsExcelRequest) *DownloadStatisticsExcelInvoker

Deprecated: This function is deprecated and will be removed in the future versions. DownloadStatisticsExcelInvoker 下载统计指标数据表格文件

func (*CdnClient) EnableDomain added in v0.1.81

func (c *CdnClient) EnableDomain(request *model.EnableDomainRequest) (*model.EnableDomainResponse, error)

EnableDomain 启用加速域名

启用加速域名。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) EnableDomainInvoker added in v0.1.81

func (c *CdnClient) EnableDomainInvoker(request *model.EnableDomainRequest) *EnableDomainInvoker

EnableDomainInvoker 启用加速域名

func (*CdnClient) ListCdnDomainTopRefers added in v0.1.78

ListCdnDomainTopRefers 查询统计TOP100 referer数据明细

- 查询TOP100 referer数据。

- 支持查询90天内的数据。

- 查询跨度不能超过31天。

- 单租户调用频率:2次/s。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ListCdnDomainTopRefersInvoker added in v0.1.78

func (c *CdnClient) ListCdnDomainTopRefersInvoker(request *model.ListCdnDomainTopRefersRequest) *ListCdnDomainTopRefersInvoker

ListCdnDomainTopRefersInvoker 查询统计TOP100 referer数据明细

func (*CdnClient) ListDomains added in v0.1.32

func (c *CdnClient) ListDomains(request *model.ListDomainsRequest) (*model.ListDomainsResponse, error)

ListDomains 查询加速域名

查询加速域名。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ListDomainsInvoker added in v0.1.32

func (c *CdnClient) ListDomainsInvoker(request *model.ListDomainsRequest) *ListDomainsInvoker

ListDomainsInvoker 查询加速域名

func (*CdnClient) SetChargeModes added in v0.1.10

func (c *CdnClient) SetChargeModes(request *model.SetChargeModesRequest) (*model.SetChargeModesResponse, error)

SetChargeModes 设置用户计费模式

- 设置用户计费模式。

- 服务区域仅支持mainland_china(国内)

- 计费模式仅支持设置flux(流量),v2及以上客户支持bw(带宽)

- 加速类型仅支持base(基础加速)

- 单租户调用频率:10次/min。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) SetChargeModesInvoker added in v0.1.10

func (c *CdnClient) SetChargeModesInvoker(request *model.SetChargeModesRequest) *SetChargeModesInvoker

SetChargeModesInvoker 设置用户计费模式

func (*CdnClient) ShowBandwidthCalc deprecated added in v0.1.10

func (c *CdnClient) ShowBandwidthCalc(request *model.ShowBandwidthCalcRequest) (*model.ShowBandwidthCalcResponse, error)

Deprecated: This function is deprecated and will be removed in the future versions. ShowBandwidthCalc 查询域名带宽峰值类数据

- 查询域名带宽峰值类数据。

- 支持查询90天内的数据。

- 查询时间跨度不能超过31天。

- 起始时间和结束时间,左闭右开。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。

- 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。

- 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、峰值类指标单位统一为bps(比特率),请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。

- 单租户调用频率:2次/s。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowBandwidthCalcInvoker deprecated added in v0.1.10

func (c *CdnClient) ShowBandwidthCalcInvoker(request *model.ShowBandwidthCalcRequest) *ShowBandwidthCalcInvoker

Deprecated: This function is deprecated and will be removed in the future versions. ShowBandwidthCalcInvoker 查询域名带宽峰值类数据

func (*CdnClient) ShowCertificatesHttpsInfo added in v0.1.81

ShowCertificatesHttpsInfo 查询所有绑定HTTPS证书的域名信息

查询所有绑定HTTPS证书的域名信息

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowCertificatesHttpsInfoInvoker added in v0.1.81

func (c *CdnClient) ShowCertificatesHttpsInfoInvoker(request *model.ShowCertificatesHttpsInfoRequest) *ShowCertificatesHttpsInfoInvoker

ShowCertificatesHttpsInfoInvoker 查询所有绑定HTTPS证书的域名信息

func (*CdnClient) ShowChargeModes added in v0.1.10

func (c *CdnClient) ShowChargeModes(request *model.ShowChargeModesRequest) (*model.ShowChargeModesResponse, error)

ShowChargeModes 查询用户计费模式

- 查询用户计费模式。

- 服务区域仅支持mainland_china(国内,默认)和outside_mainland_china(海外)

- 计费模式状态支持active(已生效),upcoming(待生效)两种状态,默认为active(已生效)

- 加速类型仅支持base(基础加速)

- 单租户调用频率:5次/s。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowChargeModesInvoker added in v0.1.10

func (c *CdnClient) ShowChargeModesInvoker(request *model.ShowChargeModesRequest) *ShowChargeModesInvoker

ShowChargeModesInvoker 查询用户计费模式

func (*CdnClient) ShowDomainDetailByName added in v0.1.32

ShowDomainDetailByName 查询加速域名详情

加速域名详情信息接口。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowDomainDetailByNameInvoker added in v0.1.32

func (c *CdnClient) ShowDomainDetailByNameInvoker(request *model.ShowDomainDetailByNameRequest) *ShowDomainDetailByNameInvoker

ShowDomainDetailByNameInvoker 查询加速域名详情

func (*CdnClient) ShowDomainFullConfig added in v0.1.37

ShowDomainFullConfig 查询域名配置接口

查询域名配置接口,支持查询业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、 Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽、回源SNI、访问URL重写、浏览器缓存过期时间、区域访问控制。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowDomainFullConfigInvoker added in v0.1.37

func (c *CdnClient) ShowDomainFullConfigInvoker(request *model.ShowDomainFullConfigRequest) *ShowDomainFullConfigInvoker

ShowDomainFullConfigInvoker 查询域名配置接口

func (*CdnClient) ShowDomainLocationStats

ShowDomainLocationStats 按区域运营商查询域名统计数据

- 支持查询90天内的数据。

- 支持多指标同时查询,不超过5个。

- 最多同时指定20个域名。

- 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。

- action取值:location_detail,location_summary

- 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。

- 单租户调用频率:15次/s。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowDomainLocationStatsInvoker added in v0.0.90

func (c *CdnClient) ShowDomainLocationStatsInvoker(request *model.ShowDomainLocationStatsRequest) *ShowDomainLocationStatsInvoker

ShowDomainLocationStatsInvoker 按区域运营商查询域名统计数据

func (*CdnClient) ShowDomainStats

func (c *CdnClient) ShowDomainStats(request *model.ShowDomainStatsRequest) (*model.ShowDomainStatsResponse, error)

ShowDomainStats 查询域名统计数据

- 支持查询90天内的数据。

- 支持多指标同时查询,不超过5个。

- 最多同时指定20个域名。

- 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。

- action取值:detail,summary

- 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。

- 单租户调用频率:15次/s。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowDomainStatsInvoker added in v0.0.90

func (c *CdnClient) ShowDomainStatsInvoker(request *model.ShowDomainStatsRequest) *ShowDomainStatsInvoker

ShowDomainStatsInvoker 查询域名统计数据

func (*CdnClient) ShowHistoryTaskDetails added in v0.1.63

ShowHistoryTaskDetails 查询刷新预热任务详情

查询刷新预热任务详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowHistoryTaskDetailsInvoker added in v0.1.63

func (c *CdnClient) ShowHistoryTaskDetailsInvoker(request *model.ShowHistoryTaskDetailsRequest) *ShowHistoryTaskDetailsInvoker

ShowHistoryTaskDetailsInvoker 查询刷新预热任务详情

func (*CdnClient) ShowHistoryTasks added in v0.1.63

func (c *CdnClient) ShowHistoryTasks(request *model.ShowHistoryTasksRequest) (*model.ShowHistoryTasksResponse, error)

ShowHistoryTasks 查询刷新预热任务

查询刷新预热任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowHistoryTasksInvoker added in v0.1.63

func (c *CdnClient) ShowHistoryTasksInvoker(request *model.ShowHistoryTasksRequest) *ShowHistoryTasksInvoker

ShowHistoryTasksInvoker 查询刷新预热任务

func (*CdnClient) ShowIpInfo added in v0.1.81

func (c *CdnClient) ShowIpInfo(request *model.ShowIpInfoRequest) (*model.ShowIpInfoResponse, error)

ShowIpInfo 查询IP归属信息

查询IP归属信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowIpInfoInvoker added in v0.1.81

func (c *CdnClient) ShowIpInfoInvoker(request *model.ShowIpInfoRequest) *ShowIpInfoInvoker

ShowIpInfoInvoker 查询IP归属信息

func (*CdnClient) ShowLogs added in v0.1.80

func (c *CdnClient) ShowLogs(request *model.ShowLogsRequest) (*model.ShowLogsResponse, error)

ShowLogs 日志查询

查询日志下载链接,支持查询30天内的日志信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowLogsInvoker added in v0.1.80

func (c *CdnClient) ShowLogsInvoker(request *model.ShowLogsRequest) *ShowLogsInvoker

ShowLogsInvoker 日志查询

func (*CdnClient) ShowQuota added in v0.1.91

func (c *CdnClient) ShowQuota(request *model.ShowQuotaRequest) (*model.ShowQuotaResponse, error)

ShowQuota 查询用户配额

查询当前用户域名、刷新文件、刷新目录和预热的配额

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowQuotaInvoker added in v0.1.91

func (c *CdnClient) ShowQuotaInvoker(request *model.ShowQuotaRequest) *ShowQuotaInvoker

ShowQuotaInvoker 查询用户配额

func (*CdnClient) ShowTags added in v0.1.81

func (c *CdnClient) ShowTags(request *model.ShowTagsRequest) (*model.ShowTagsResponse, error)

ShowTags 查询资源标签列表配置接口

用于查询资源标签列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowTagsInvoker added in v0.1.81

func (c *CdnClient) ShowTagsInvoker(request *model.ShowTagsRequest) *ShowTagsInvoker

ShowTagsInvoker 查询资源标签列表配置接口

func (*CdnClient) ShowTopDomainNames deprecated added in v0.1.10

func (c *CdnClient) ShowTopDomainNames(request *model.ShowTopDomainNamesRequest) (*model.ShowTopDomainNamesResponse, error)

Deprecated: This function is deprecated and will be removed in the future versions. ShowTopDomainNames 查询TOP域名

- 查询TOP域名。

- 支持查询90天内的数据。

- 查询时间跨度不能超过1天。

- 起始时间和结束时间,左闭右开,必须同时指定。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。

- 起始时间、结束时间必须传整点毫秒级时间戳。

- 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。

- 单租户调用频率:5次/s。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowTopDomainNamesInvoker deprecated added in v0.1.10

func (c *CdnClient) ShowTopDomainNamesInvoker(request *model.ShowTopDomainNamesRequest) *ShowTopDomainNamesInvoker

Deprecated: This function is deprecated and will be removed in the future versions. ShowTopDomainNamesInvoker 查询TOP域名

func (*CdnClient) ShowTopUrl

func (c *CdnClient) ShowTopUrl(request *model.ShowTopUrlRequest) (*model.ShowTopUrlResponse, error)

ShowTopUrl 查询TOP100 URL明细

- 查询TOP100 URL明细。

- 支持查询90天内的数据。

- 查询跨度不能超过31天。

- 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。

- 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。

- 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。

- 单租户调用频率:5次/s。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowTopUrlInvoker added in v0.0.90

func (c *CdnClient) ShowTopUrlInvoker(request *model.ShowTopUrlRequest) *ShowTopUrlInvoker

ShowTopUrlInvoker 查询TOP100 URL明细

func (*CdnClient) ShowUrlTaskInfo added in v0.1.63

func (c *CdnClient) ShowUrlTaskInfo(request *model.ShowUrlTaskInfoRequest) (*model.ShowUrlTaskInfoResponse, error)

ShowUrlTaskInfo 查询刷新预热URL记录

查询刷新预热URL记录。如需此接口,请提交工单开通。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowUrlTaskInfoInvoker added in v0.1.63

func (c *CdnClient) ShowUrlTaskInfoInvoker(request *model.ShowUrlTaskInfoRequest) *ShowUrlTaskInfoInvoker

ShowUrlTaskInfoInvoker 查询刷新预热URL记录

func (*CdnClient) ShowVerifyDomainOwnerInfo added in v0.1.81

ShowVerifyDomainOwnerInfo 查询域名归属校验信息

用于查询域名归属校验信息

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) ShowVerifyDomainOwnerInfoInvoker added in v0.1.81

func (c *CdnClient) ShowVerifyDomainOwnerInfoInvoker(request *model.ShowVerifyDomainOwnerInfoRequest) *ShowVerifyDomainOwnerInfoInvoker

ShowVerifyDomainOwnerInfoInvoker 查询域名归属校验信息

func (*CdnClient) UpdateDomainFullConfig added in v0.1.37

UpdateDomainFullConfig 修改域名全量配置接口

修改域名配置接口,支持修改业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽、回源SNI、访问URL重写、浏览器缓存过期时间、区域访问控制。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateDomainFullConfigInvoker added in v0.1.37

func (c *CdnClient) UpdateDomainFullConfigInvoker(request *model.UpdateDomainFullConfigRequest) *UpdateDomainFullConfigInvoker

UpdateDomainFullConfigInvoker 修改域名全量配置接口

func (*CdnClient) UpdateDomainMultiCertificates added in v0.1.81

UpdateDomainMultiCertificates 一个证书批量设置多个域名

一个证书配置多个域名,设置域名强制https回源参数。

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdateDomainMultiCertificatesInvoker added in v0.1.81

func (c *CdnClient) UpdateDomainMultiCertificatesInvoker(request *model.UpdateDomainMultiCertificatesRequest) *UpdateDomainMultiCertificatesInvoker

UpdateDomainMultiCertificatesInvoker 一个证书批量设置多个域名

func (*CdnClient) UpdatePrivateBucketAccess added in v0.1.81

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

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) UpdatePrivateBucketAccessInvoker added in v0.1.81

func (c *CdnClient) UpdatePrivateBucketAccessInvoker(request *model.UpdatePrivateBucketAccessRequest) *UpdatePrivateBucketAccessInvoker

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

func (*CdnClient) VerifyDomainOwner added in v0.1.81

func (c *CdnClient) VerifyDomainOwner(request *model.VerifyDomainOwnerRequest) (*model.VerifyDomainOwnerResponse, error)

VerifyDomainOwner 域名归属校验

用于域名归属校验

Please refer to HUAWEI cloud API Explorer for details.

func (*CdnClient) VerifyDomainOwnerInvoker added in v0.1.81

func (c *CdnClient) VerifyDomainOwnerInvoker(request *model.VerifyDomainOwnerRequest) *VerifyDomainOwnerInvoker

VerifyDomainOwnerInvoker 域名归属校验

type CreateDomainInvoker added in v0.1.81

type CreateDomainInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateDomainInvoker) Invoke added in v0.1.81

type CreatePreheatingTasksInvoker added in v0.1.63

type CreatePreheatingTasksInvoker struct {
	*invoker.BaseInvoker
}

func (*CreatePreheatingTasksInvoker) Invoke added in v0.1.63

type CreateRefreshTasksInvoker added in v0.1.63

type CreateRefreshTasksInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateRefreshTasksInvoker) Invoke added in v0.1.63

type CreateTagsInvoker added in v0.1.81

type CreateTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateTagsInvoker) Invoke added in v0.1.81

type DeleteDomainInvoker added in v0.1.81

type DeleteDomainInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteDomainInvoker) Invoke added in v0.1.81

type DisableDomainInvoker added in v0.1.81

type DisableDomainInvoker struct {
	*invoker.BaseInvoker
}

func (*DisableDomainInvoker) Invoke added in v0.1.81

type DownloadRegionCarrierExcelInvoker added in v0.1.10

type DownloadRegionCarrierExcelInvoker struct {
	*invoker.BaseInvoker
}

func (*DownloadRegionCarrierExcelInvoker) Invoke deprecated added in v0.1.10

Deprecated: This function is deprecated and will be removed in the future versions.

type DownloadStatisticsExcelInvoker added in v0.1.10

type DownloadStatisticsExcelInvoker struct {
	*invoker.BaseInvoker
}

func (*DownloadStatisticsExcelInvoker) Invoke deprecated added in v0.1.10

Deprecated: This function is deprecated and will be removed in the future versions.

type EnableDomainInvoker added in v0.1.81

type EnableDomainInvoker struct {
	*invoker.BaseInvoker
}

func (*EnableDomainInvoker) Invoke added in v0.1.81

type ListCdnDomainTopRefersInvoker added in v0.1.78

type ListCdnDomainTopRefersInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCdnDomainTopRefersInvoker) Invoke added in v0.1.78

type ListDomainsInvoker added in v0.1.32

type ListDomainsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListDomainsInvoker) Invoke added in v0.1.32

type SetChargeModesInvoker added in v0.1.10

type SetChargeModesInvoker struct {
	*invoker.BaseInvoker
}

func (*SetChargeModesInvoker) Invoke added in v0.1.10

type ShowBandwidthCalcInvoker added in v0.1.10

type ShowBandwidthCalcInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowBandwidthCalcInvoker) Invoke deprecated added in v0.1.10

Deprecated: This function is deprecated and will be removed in the future versions.

type ShowCertificatesHttpsInfoInvoker added in v0.1.81

type ShowCertificatesHttpsInfoInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCertificatesHttpsInfoInvoker) Invoke added in v0.1.81

type ShowChargeModesInvoker added in v0.1.10

type ShowChargeModesInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowChargeModesInvoker) Invoke added in v0.1.10

type ShowDomainDetailByNameInvoker added in v0.1.32

type ShowDomainDetailByNameInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainDetailByNameInvoker) Invoke added in v0.1.32

type ShowDomainFullConfigInvoker added in v0.1.37

type ShowDomainFullConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainFullConfigInvoker) Invoke added in v0.1.37

type ShowDomainLocationStatsInvoker added in v0.0.90

type ShowDomainLocationStatsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainLocationStatsInvoker) Invoke added in v0.0.90

type ShowDomainStatsInvoker added in v0.0.90

type ShowDomainStatsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowDomainStatsInvoker) Invoke added in v0.0.90

type ShowHistoryTaskDetailsInvoker added in v0.1.63

type ShowHistoryTaskDetailsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowHistoryTaskDetailsInvoker) Invoke added in v0.1.63

type ShowHistoryTasksInvoker added in v0.1.63

type ShowHistoryTasksInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowHistoryTasksInvoker) Invoke added in v0.1.63

type ShowIpInfoInvoker added in v0.1.81

type ShowIpInfoInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowIpInfoInvoker) Invoke added in v0.1.81

type ShowLogsInvoker added in v0.1.80

type ShowLogsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowLogsInvoker) Invoke added in v0.1.80

func (i *ShowLogsInvoker) Invoke() (*model.ShowLogsResponse, error)

type ShowQuotaInvoker added in v0.1.91

type ShowQuotaInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowQuotaInvoker) Invoke added in v0.1.91

type ShowTagsInvoker added in v0.1.81

type ShowTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowTagsInvoker) Invoke added in v0.1.81

func (i *ShowTagsInvoker) Invoke() (*model.ShowTagsResponse, error)

type ShowTopDomainNamesInvoker added in v0.1.10

type ShowTopDomainNamesInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowTopDomainNamesInvoker) Invoke deprecated added in v0.1.10

Deprecated: This function is deprecated and will be removed in the future versions.

type ShowTopUrlInvoker added in v0.0.90

type ShowTopUrlInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowTopUrlInvoker) Invoke added in v0.0.90

type ShowUrlTaskInfoInvoker added in v0.1.63

type ShowUrlTaskInfoInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowUrlTaskInfoInvoker) Invoke added in v0.1.63

type ShowVerifyDomainOwnerInfoInvoker added in v0.1.81

type ShowVerifyDomainOwnerInfoInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowVerifyDomainOwnerInfoInvoker) Invoke added in v0.1.81

type UpdateDomainFullConfigInvoker added in v0.1.37

type UpdateDomainFullConfigInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateDomainFullConfigInvoker) Invoke added in v0.1.37

type UpdateDomainMultiCertificatesInvoker added in v0.1.81

type UpdateDomainMultiCertificatesInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateDomainMultiCertificatesInvoker) Invoke added in v0.1.81

type UpdatePrivateBucketAccessInvoker added in v0.1.81

type UpdatePrivateBucketAccessInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdatePrivateBucketAccessInvoker) Invoke added in v0.1.81

type VerifyDomainOwnerInvoker added in v0.1.81

type VerifyDomainOwnerInvoker struct {
	*invoker.BaseInvoker
}

func (*VerifyDomainOwnerInvoker) Invoke added in v0.1.81

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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