@huaweicloud/huaweicloud-sdk-cdn 3.1.46 → 3.1.48
Sign up to get free protection for your applications and to get access to all the features.
- package/huaweicloud-sdk-cdn.d.ts +4 -0
- package/huaweicloud-sdk-cdn.d.ts.map +1 -0
- package/huaweicloud-sdk-cdn.js +33 -0
- package/huaweicloud-sdk-cdn.js.map +1 -0
- package/package.json +8 -4
- package/v1/CdnClient.d.ts +1359 -0
- package/v1/CdnClient.d.ts.map +1 -0
- package/v1/CdnClient.js +3107 -0
- package/v1/CdnClient.js.map +1 -0
- package/v1/CdnRegion.d.ts +8 -0
- package/v1/CdnRegion.d.ts.map +1 -0
- package/v1/CdnRegion.js +24 -0
- package/v1/CdnRegion.js.map +1 -0
- package/v1/model/BatchDeleteTagsRequest.d.ts +7 -0
- package/v1/model/BatchDeleteTagsRequest.d.ts.map +1 -0
- package/v1/model/BatchDeleteTagsRequest.js +13 -0
- package/v1/model/BatchDeleteTagsRequest.js.map +1 -0
- package/v1/model/BatchDeleteTagsResponse.d.ts +5 -0
- package/v1/model/BatchDeleteTagsResponse.d.ts.map +1 -0
- package/v1/model/BatchDeleteTagsResponse.js +11 -0
- package/v1/model/BatchDeleteTagsResponse.js.map +1 -0
- package/v1/model/BlackWhiteListBody.d.ts +10 -0
- package/v1/model/BlackWhiteListBody.d.ts.map +1 -0
- package/v1/model/BlackWhiteListBody.js +24 -0
- package/v1/model/BlackWhiteListBody.js.map +1 -0
- package/v1/model/CacheConfig.d.ts +18 -0
- package/v1/model/CacheConfig.d.ts.map +1 -0
- package/v1/model/CacheConfig.js +37 -0
- package/v1/model/CacheConfig.js.map +1 -0
- package/v1/model/CacheConfigRequest.d.ts +18 -0
- package/v1/model/CacheConfigRequest.d.ts.map +1 -0
- package/v1/model/CacheConfigRequest.js +37 -0
- package/v1/model/CacheConfigRequest.js.map +1 -0
- package/v1/model/CacheConfigRequestBody.d.ts +9 -0
- package/v1/model/CacheConfigRequestBody.d.ts.map +1 -0
- package/v1/model/CacheConfigRequestBody.js +20 -0
- package/v1/model/CacheConfigRequestBody.js.map +1 -0
- package/v1/model/CacheRules.d.ts +32 -0
- package/v1/model/CacheRules.d.ts.map +1 -0
- package/v1/model/CacheRules.js +83 -0
- package/v1/model/CacheRules.js.map +1 -0
- package/v1/model/CacheUrlParameterFilter.d.ts +8 -0
- package/v1/model/CacheUrlParameterFilter.d.ts.map +1 -0
- package/v1/model/CacheUrlParameterFilter.js +17 -0
- package/v1/model/CacheUrlParameterFilter.js.map +1 -0
- package/v1/model/CdnIps.d.ts +14 -0
- package/v1/model/CdnIps.d.ts.map +1 -0
- package/v1/model/CdnIps.js +29 -0
- package/v1/model/CdnIps.js.map +1 -0
- package/v1/model/Compress.d.ts +8 -0
- package/v1/model/Compress.d.ts.map +1 -0
- package/v1/model/Compress.js +18 -0
- package/v1/model/Compress.js.map +1 -0
- package/v1/model/CompressRequest.d.ts +8 -0
- package/v1/model/CompressRequest.d.ts.map +1 -0
- package/v1/model/CompressRequest.js +19 -0
- package/v1/model/CompressRequest.js.map +1 -0
- package/v1/model/CompressResponse.d.ts +13 -0
- package/v1/model/CompressResponse.d.ts.map +1 -0
- package/v1/model/CompressResponse.js +30 -0
- package/v1/model/CompressResponse.js.map +1 -0
- package/v1/model/CompressRules.d.ts +12 -0
- package/v1/model/CompressRules.d.ts.map +1 -0
- package/v1/model/CompressRules.js +29 -0
- package/v1/model/CompressRules.js.map +1 -0
- package/v1/model/Configs.d.ts +87 -0
- package/v1/model/Configs.d.ts.map +1 -0
- package/v1/model/Configs.js +175 -0
- package/v1/model/Configs.js.map +1 -0
- package/v1/model/ConfigsGetBody.d.ts +87 -0
- package/v1/model/ConfigsGetBody.d.ts.map +1 -0
- package/v1/model/ConfigsGetBody.js +175 -0
- package/v1/model/ConfigsGetBody.js.map +1 -0
- package/v1/model/CreateDomainRequest.d.ts +7 -0
- package/v1/model/CreateDomainRequest.d.ts.map +1 -0
- package/v1/model/CreateDomainRequest.js +13 -0
- package/v1/model/CreateDomainRequest.js.map +1 -0
- package/v1/model/CreateDomainRequestBody.d.ts +7 -0
- package/v1/model/CreateDomainRequestBody.d.ts.map +1 -0
- package/v1/model/CreateDomainRequestBody.js +14 -0
- package/v1/model/CreateDomainRequestBody.js.map +1 -0
- package/v1/model/CreateDomainResponse.d.ts +8 -0
- package/v1/model/CreateDomainResponse.d.ts.map +1 -0
- package/v1/model/CreateDomainResponse.js +15 -0
- package/v1/model/CreateDomainResponse.js.map +1 -0
- package/v1/model/CreateDomainResponseBodyContent.d.ts +68 -0
- package/v1/model/CreateDomainResponseBodyContent.d.ts.map +1 -0
- package/v1/model/CreateDomainResponseBodyContent.js +159 -0
- package/v1/model/CreateDomainResponseBodyContent.js.map +1 -0
- package/v1/model/CreatePreheatingTasksRequest.d.ts +11 -0
- package/v1/model/CreatePreheatingTasksRequest.d.ts.map +1 -0
- package/v1/model/CreatePreheatingTasksRequest.js +23 -0
- package/v1/model/CreatePreheatingTasksRequest.js.map +1 -0
- package/v1/model/CreatePreheatingTasksResponse.d.ts +9 -0
- package/v1/model/CreatePreheatingTasksResponse.d.ts.map +1 -0
- package/v1/model/CreatePreheatingTasksResponse.js +21 -0
- package/v1/model/CreatePreheatingTasksResponse.js.map +1 -0
- package/v1/model/CreateRefreshTasksRequest.d.ts +11 -0
- package/v1/model/CreateRefreshTasksRequest.d.ts.map +1 -0
- package/v1/model/CreateRefreshTasksRequest.js +23 -0
- package/v1/model/CreateRefreshTasksRequest.js.map +1 -0
- package/v1/model/CreateRefreshTasksResponse.d.ts +9 -0
- package/v1/model/CreateRefreshTasksResponse.d.ts.map +1 -0
- package/v1/model/CreateRefreshTasksResponse.js +21 -0
- package/v1/model/CreateRefreshTasksResponse.js.map +1 -0
- package/v1/model/CreateTagsRequest.d.ts +7 -0
- package/v1/model/CreateTagsRequest.d.ts.map +1 -0
- package/v1/model/CreateTagsRequest.js +13 -0
- package/v1/model/CreateTagsRequest.js.map +1 -0
- package/v1/model/CreateTagsRequestBody.d.ts +10 -0
- package/v1/model/CreateTagsRequestBody.d.ts.map +1 -0
- package/v1/model/CreateTagsRequestBody.js +25 -0
- package/v1/model/CreateTagsRequestBody.js.map +1 -0
- package/v1/model/CreateTagsResponse.d.ts +5 -0
- package/v1/model/CreateTagsResponse.d.ts.map +1 -0
- package/v1/model/CreateTagsResponse.js +11 -0
- package/v1/model/CreateTagsResponse.js.map +1 -0
- package/v1/model/DeleteDomainRequest.d.ts +12 -0
- package/v1/model/DeleteDomainRequest.d.ts.map +1 -0
- package/v1/model/DeleteDomainRequest.js +30 -0
- package/v1/model/DeleteDomainRequest.js.map +1 -0
- package/v1/model/DeleteDomainResponse.d.ts +8 -0
- package/v1/model/DeleteDomainResponse.d.ts.map +1 -0
- package/v1/model/DeleteDomainResponse.js +15 -0
- package/v1/model/DeleteDomainResponse.js.map +1 -0
- package/v1/model/DeleteTagsRequestBody.d.ts +10 -0
- package/v1/model/DeleteTagsRequestBody.d.ts.map +1 -0
- package/v1/model/DeleteTagsRequestBody.js +25 -0
- package/v1/model/DeleteTagsRequestBody.js.map +1 -0
- package/v1/model/DisableDomainRequest.d.ts +12 -0
- package/v1/model/DisableDomainRequest.d.ts.map +1 -0
- package/v1/model/DisableDomainRequest.js +30 -0
- package/v1/model/DisableDomainRequest.js.map +1 -0
- package/v1/model/DisableDomainResponse.d.ts +8 -0
- package/v1/model/DisableDomainResponse.d.ts.map +1 -0
- package/v1/model/DisableDomainResponse.js +15 -0
- package/v1/model/DisableDomainResponse.js.map +1 -0
- package/v1/model/DomainBody.d.ts +42 -0
- package/v1/model/DomainBody.d.ts.map +1 -0
- package/v1/model/DomainBody.js +78 -0
- package/v1/model/DomainBody.js.map +1 -0
- package/v1/model/DomainItemDetail.d.ts +22 -0
- package/v1/model/DomainItemDetail.d.ts.map +1 -0
- package/v1/model/DomainItemDetail.js +43 -0
- package/v1/model/DomainItemDetail.js.map +1 -0
- package/v1/model/DomainItemLocationDetails.d.ts +19 -0
- package/v1/model/DomainItemLocationDetails.d.ts.map +1 -0
- package/v1/model/DomainItemLocationDetails.js +43 -0
- package/v1/model/DomainItemLocationDetails.js.map +1 -0
- package/v1/model/DomainOriginHost.d.ts +16 -0
- package/v1/model/DomainOriginHost.d.ts.map +1 -0
- package/v1/model/DomainOriginHost.js +40 -0
- package/v1/model/DomainOriginHost.js.map +1 -0
- package/v1/model/DomainRegion.d.ts +18 -0
- package/v1/model/DomainRegion.d.ts.map +1 -0
- package/v1/model/DomainRegion.js +29 -0
- package/v1/model/DomainRegion.js.map +1 -0
- package/v1/model/Domains.d.ts +92 -0
- package/v1/model/Domains.d.ts.map +1 -0
- package/v1/model/Domains.js +203 -0
- package/v1/model/Domains.js.map +1 -0
- package/v1/model/DomainsWithPort.d.ts +89 -0
- package/v1/model/DomainsWithPort.d.ts.map +1 -0
- package/v1/model/DomainsWithPort.js +199 -0
- package/v1/model/DomainsWithPort.js.map +1 -0
- package/v1/model/EnableDomainRequest.d.ts +12 -0
- package/v1/model/EnableDomainRequest.d.ts.map +1 -0
- package/v1/model/EnableDomainRequest.js +30 -0
- package/v1/model/EnableDomainRequest.js.map +1 -0
- package/v1/model/EnableDomainResponse.d.ts +8 -0
- package/v1/model/EnableDomainResponse.d.ts.map +1 -0
- package/v1/model/EnableDomainResponse.js +15 -0
- package/v1/model/EnableDomainResponse.js.map +1 -0
- package/v1/model/EpResourceTag.d.ts +8 -0
- package/v1/model/EpResourceTag.d.ts.map +1 -0
- package/v1/model/EpResourceTag.js +19 -0
- package/v1/model/EpResourceTag.js.map +1 -0
- package/v1/model/ErrorCodeCache.d.ts +8 -0
- package/v1/model/ErrorCodeCache.d.ts.map +1 -0
- package/v1/model/ErrorCodeCache.js +17 -0
- package/v1/model/ErrorCodeCache.js.map +1 -0
- package/v1/model/ErrorCodeRedirectRules.d.ts +16 -0
- package/v1/model/ErrorCodeRedirectRules.d.ts.map +1 -0
- package/v1/model/ErrorCodeRedirectRules.js +42 -0
- package/v1/model/ErrorCodeRedirectRules.js.map +1 -0
- package/v1/model/Follow302StatusBody.d.ts +20 -0
- package/v1/model/Follow302StatusBody.d.ts.map +1 -0
- package/v1/model/Follow302StatusBody.js +38 -0
- package/v1/model/Follow302StatusBody.js.map +1 -0
- package/v1/model/Follow302StatusRequest.d.ts +16 -0
- package/v1/model/Follow302StatusRequest.d.ts.map +1 -0
- package/v1/model/Follow302StatusRequest.js +29 -0
- package/v1/model/Follow302StatusRequest.js.map +1 -0
- package/v1/model/ForceRedirect.d.ts +12 -0
- package/v1/model/ForceRedirect.d.ts.map +1 -0
- package/v1/model/ForceRedirect.js +30 -0
- package/v1/model/ForceRedirect.js.map +1 -0
- package/v1/model/ForceRedirectConfig.d.ts +12 -0
- package/v1/model/ForceRedirectConfig.d.ts.map +1 -0
- package/v1/model/ForceRedirectConfig.js +28 -0
- package/v1/model/ForceRedirectConfig.js.map +1 -0
- package/v1/model/HeaderBody.d.ts +7 -0
- package/v1/model/HeaderBody.d.ts.map +1 -0
- package/v1/model/HeaderBody.js +13 -0
- package/v1/model/HeaderBody.js.map +1 -0
- package/v1/model/HeaderMap.d.ts +28 -0
- package/v1/model/HeaderMap.d.ts.map +1 -0
- package/v1/model/HeaderMap.js +69 -0
- package/v1/model/HeaderMap.js.map +1 -0
- package/v1/model/HttpGetBody.d.ts +28 -0
- package/v1/model/HttpGetBody.d.ts.map +1 -0
- package/v1/model/HttpGetBody.js +69 -0
- package/v1/model/HttpGetBody.js.map +1 -0
- package/v1/model/HttpInfoRequest.d.ts +7 -0
- package/v1/model/HttpInfoRequest.d.ts.map +1 -0
- package/v1/model/HttpInfoRequest.js +14 -0
- package/v1/model/HttpInfoRequest.js.map +1 -0
- package/v1/model/HttpInfoRequestBody.d.ts +33 -0
- package/v1/model/HttpInfoRequestBody.d.ts.map +1 -0
- package/v1/model/HttpInfoRequestBody.js +79 -0
- package/v1/model/HttpInfoRequestBody.js.map +1 -0
- package/v1/model/HttpInfoResponseBody.d.ts +37 -0
- package/v1/model/HttpInfoResponseBody.d.ts.map +1 -0
- package/v1/model/HttpInfoResponseBody.js +87 -0
- package/v1/model/HttpInfoResponseBody.js.map +1 -0
- package/v1/model/HttpPutBody.d.ts +32 -0
- package/v1/model/HttpPutBody.d.ts.map +1 -0
- package/v1/model/HttpPutBody.js +79 -0
- package/v1/model/HttpPutBody.js.map +1 -0
- package/v1/model/HttpResponseHeader.d.ts +10 -0
- package/v1/model/HttpResponseHeader.d.ts.map +1 -0
- package/v1/model/HttpResponseHeader.js +23 -0
- package/v1/model/HttpResponseHeader.js.map +1 -0
- package/v1/model/HttpsDetail.d.ts +45 -0
- package/v1/model/HttpsDetail.d.ts.map +1 -0
- package/v1/model/HttpsDetail.js +107 -0
- package/v1/model/HttpsDetail.js.map +1 -0
- package/v1/model/IpFilter.d.ts +8 -0
- package/v1/model/IpFilter.d.ts.map +1 -0
- package/v1/model/IpFilter.js +18 -0
- package/v1/model/IpFilter.js.map +1 -0
- package/v1/model/ListDomainsRequest.d.ts +72 -0
- package/v1/model/ListDomainsRequest.d.ts.map +1 -0
- package/v1/model/ListDomainsRequest.js +134 -0
- package/v1/model/ListDomainsRequest.js.map +1 -0
- package/v1/model/ListDomainsResponse.d.ts +10 -0
- package/v1/model/ListDomainsResponse.d.ts.map +1 -0
- package/v1/model/ListDomainsResponse.js +19 -0
- package/v1/model/ListDomainsResponse.js.map +1 -0
- package/v1/model/LogObject.d.ts +22 -0
- package/v1/model/LogObject.d.ts.map +1 -0
- package/v1/model/LogObject.js +51 -0
- package/v1/model/LogObject.js.map +1 -0
- package/v1/model/ModelMap.d.ts +8 -0
- package/v1/model/ModelMap.d.ts.map +1 -0
- package/v1/model/ModelMap.js +18 -0
- package/v1/model/ModelMap.js.map +1 -0
- package/v1/model/ModifyDomainConfigRequestBody.d.ts +7 -0
- package/v1/model/ModifyDomainConfigRequestBody.d.ts.map +1 -0
- package/v1/model/ModifyDomainConfigRequestBody.js +13 -0
- package/v1/model/ModifyDomainConfigRequestBody.js.map +1 -0
- package/v1/model/OriginHostBody.d.ts +20 -0
- package/v1/model/OriginHostBody.d.ts.map +1 -0
- package/v1/model/OriginHostBody.js +39 -0
- package/v1/model/OriginHostBody.js.map +1 -0
- package/v1/model/OriginHostRequest.d.ts +9 -0
- package/v1/model/OriginHostRequest.d.ts.map +1 -0
- package/v1/model/OriginHostRequest.js +20 -0
- package/v1/model/OriginHostRequest.js.map +1 -0
- package/v1/model/OriginRangeBody.d.ts +20 -0
- package/v1/model/OriginRangeBody.d.ts.map +1 -0
- package/v1/model/OriginRangeBody.js +38 -0
- package/v1/model/OriginRangeBody.js.map +1 -0
- package/v1/model/OriginRequest.d.ts +7 -0
- package/v1/model/OriginRequest.d.ts.map +1 -0
- package/v1/model/OriginRequest.js +14 -0
- package/v1/model/OriginRequest.js.map +1 -0
- package/v1/model/OriginRequestHeader.d.ts +10 -0
- package/v1/model/OriginRequestHeader.d.ts.map +1 -0
- package/v1/model/OriginRequestHeader.js +23 -0
- package/v1/model/OriginRequestHeader.js.map +1 -0
- package/v1/model/OriginRequestUrlRewrite.d.ts +18 -0
- package/v1/model/OriginRequestUrlRewrite.d.ts.map +1 -0
- package/v1/model/OriginRequestUrlRewrite.js +46 -0
- package/v1/model/OriginRequestUrlRewrite.js.map +1 -0
- package/v1/model/PreheatingTaskRequest.d.ts +9 -0
- package/v1/model/PreheatingTaskRequest.d.ts.map +1 -0
- package/v1/model/PreheatingTaskRequest.js +20 -0
- package/v1/model/PreheatingTaskRequest.js.map +1 -0
- package/v1/model/PreheatingTaskRequestBody.d.ts +6 -0
- package/v1/model/PreheatingTaskRequestBody.d.ts.map +1 -0
- package/v1/model/PreheatingTaskRequestBody.js +14 -0
- package/v1/model/PreheatingTaskRequestBody.js.map +1 -0
- package/v1/model/Quotas.d.ts +16 -0
- package/v1/model/Quotas.d.ts.map +1 -0
- package/v1/model/Quotas.js +37 -0
- package/v1/model/Quotas.js.map +1 -0
- package/v1/model/RangeStatusRequest.d.ts +16 -0
- package/v1/model/RangeStatusRequest.d.ts.map +1 -0
- package/v1/model/RangeStatusRequest.js +29 -0
- package/v1/model/RangeStatusRequest.js.map +1 -0
- package/v1/model/Referer.d.ts +16 -0
- package/v1/model/Referer.d.ts.map +1 -0
- package/v1/model/Referer.js +40 -0
- package/v1/model/Referer.js.map +1 -0
- package/v1/model/RefererBody.d.ts +7 -0
- package/v1/model/RefererBody.d.ts.map +1 -0
- package/v1/model/RefererBody.js +14 -0
- package/v1/model/RefererBody.js.map +1 -0
- package/v1/model/RefererConfig.d.ts +12 -0
- package/v1/model/RefererConfig.d.ts.map +1 -0
- package/v1/model/RefererConfig.js +28 -0
- package/v1/model/RefererConfig.js.map +1 -0
- package/v1/model/RefererRsp.d.ts +16 -0
- package/v1/model/RefererRsp.d.ts.map +1 -0
- package/v1/model/RefererRsp.js +39 -0
- package/v1/model/RefererRsp.js.map +1 -0
- package/v1/model/RefreshTaskRequest.d.ts +9 -0
- package/v1/model/RefreshTaskRequest.d.ts.map +1 -0
- package/v1/model/RefreshTaskRequest.js +20 -0
- package/v1/model/RefreshTaskRequest.js.map +1 -0
- package/v1/model/RefreshTaskRequestBody.d.ts +26 -0
- package/v1/model/RefreshTaskRequestBody.d.ts.map +1 -0
- package/v1/model/RefreshTaskRequestBody.js +40 -0
- package/v1/model/RefreshTaskRequestBody.js.map +1 -0
- package/v1/model/ResourceBody.d.ts +7 -0
- package/v1/model/ResourceBody.d.ts.map +1 -0
- package/v1/model/ResourceBody.js +14 -0
- package/v1/model/ResourceBody.js.map +1 -0
- package/v1/model/Rules.d.ts +18 -0
- package/v1/model/Rules.d.ts.map +1 -0
- package/v1/model/Rules.js +45 -0
- package/v1/model/Rules.js.map +1 -0
- package/v1/model/ShowBlackWhiteListRequest.d.ts +12 -0
- package/v1/model/ShowBlackWhiteListRequest.d.ts.map +1 -0
- package/v1/model/ShowBlackWhiteListRequest.js +30 -0
- package/v1/model/ShowBlackWhiteListRequest.js.map +1 -0
- package/v1/model/ShowBlackWhiteListResponse.d.ts +11 -0
- package/v1/model/ShowBlackWhiteListResponse.d.ts.map +1 -0
- package/v1/model/ShowBlackWhiteListResponse.js +25 -0
- package/v1/model/ShowBlackWhiteListResponse.js.map +1 -0
- package/v1/model/ShowCacheRulesRequest.d.ts +12 -0
- package/v1/model/ShowCacheRulesRequest.d.ts.map +1 -0
- package/v1/model/ShowCacheRulesRequest.js +30 -0
- package/v1/model/ShowCacheRulesRequest.js.map +1 -0
- package/v1/model/ShowCacheRulesResponse.d.ts +10 -0
- package/v1/model/ShowCacheRulesResponse.d.ts.map +1 -0
- package/v1/model/ShowCacheRulesResponse.js +21 -0
- package/v1/model/ShowCacheRulesResponse.js.map +1 -0
- package/v1/model/ShowCertificatesHttpsInfoRequest.d.ts +24 -0
- package/v1/model/ShowCertificatesHttpsInfoRequest.d.ts.map +1 -0
- package/v1/model/ShowCertificatesHttpsInfoRequest.js +59 -0
- package/v1/model/ShowCertificatesHttpsInfoRequest.js.map +1 -0
- package/v1/model/ShowCertificatesHttpsInfoResponse.d.ts +10 -0
- package/v1/model/ShowCertificatesHttpsInfoResponse.d.ts.map +1 -0
- package/v1/model/ShowCertificatesHttpsInfoResponse.js +19 -0
- package/v1/model/ShowCertificatesHttpsInfoResponse.js.map +1 -0
- package/v1/model/ShowDomainDetailRequest.d.ts +12 -0
- package/v1/model/ShowDomainDetailRequest.d.ts.map +1 -0
- package/v1/model/ShowDomainDetailRequest.js +30 -0
- package/v1/model/ShowDomainDetailRequest.js.map +1 -0
- package/v1/model/ShowDomainDetailResponse.d.ts +8 -0
- package/v1/model/ShowDomainDetailResponse.d.ts.map +1 -0
- package/v1/model/ShowDomainDetailResponse.js +15 -0
- package/v1/model/ShowDomainDetailResponse.js.map +1 -0
- package/v1/model/ShowDomainFullConfigRequest.d.ts +12 -0
- package/v1/model/ShowDomainFullConfigRequest.d.ts.map +1 -0
- package/v1/model/ShowDomainFullConfigRequest.js +30 -0
- package/v1/model/ShowDomainFullConfigRequest.js.map +1 -0
- package/v1/model/ShowDomainFullConfigResponse.d.ts +8 -0
- package/v1/model/ShowDomainFullConfigResponse.d.ts.map +1 -0
- package/v1/model/ShowDomainFullConfigResponse.js +15 -0
- package/v1/model/ShowDomainFullConfigResponse.js.map +1 -0
- package/v1/model/ShowDomainItemDetailsRequest.d.ts +28 -0
- package/v1/model/ShowDomainItemDetailsRequest.d.ts.map +1 -0
- package/v1/model/ShowDomainItemDetailsRequest.js +73 -0
- package/v1/model/ShowDomainItemDetailsRequest.js.map +1 -0
- package/v1/model/ShowDomainItemDetailsResponse.d.ts +10 -0
- package/v1/model/ShowDomainItemDetailsResponse.d.ts.map +1 -0
- package/v1/model/ShowDomainItemDetailsResponse.js +21 -0
- package/v1/model/ShowDomainItemDetailsResponse.js.map +1 -0
- package/v1/model/ShowDomainItemLocationDetailsRequest.d.ts +28 -0
- package/v1/model/ShowDomainItemLocationDetailsRequest.d.ts.map +1 -0
- package/v1/model/ShowDomainItemLocationDetailsRequest.js +73 -0
- package/v1/model/ShowDomainItemLocationDetailsRequest.js.map +1 -0
- package/v1/model/ShowDomainItemLocationDetailsResponse.d.ts +10 -0
- package/v1/model/ShowDomainItemLocationDetailsResponse.d.ts.map +1 -0
- package/v1/model/ShowDomainItemLocationDetailsResponse.js +21 -0
- package/v1/model/ShowDomainItemLocationDetailsResponse.js.map +1 -0
- package/v1/model/ShowDomainLocationStatsRequest.d.ts +38 -0
- package/v1/model/ShowDomainLocationStatsRequest.d.ts.map +1 -0
- package/v1/model/ShowDomainLocationStatsRequest.js +94 -0
- package/v1/model/ShowDomainLocationStatsRequest.js.map +1 -0
- package/v1/model/ShowDomainLocationStatsResponse.d.ts +15 -0
- package/v1/model/ShowDomainLocationStatsResponse.d.ts.map +1 -0
- package/v1/model/ShowDomainLocationStatsResponse.js +25 -0
- package/v1/model/ShowDomainLocationStatsResponse.js.map +1 -0
- package/v1/model/ShowDomainStatsRequest.d.ts +36 -0
- package/v1/model/ShowDomainStatsRequest.d.ts.map +1 -0
- package/v1/model/ShowDomainStatsRequest.js +92 -0
- package/v1/model/ShowDomainStatsRequest.js.map +1 -0
- package/v1/model/ShowDomainStatsResponse.d.ts +11 -0
- package/v1/model/ShowDomainStatsResponse.d.ts.map +1 -0
- package/v1/model/ShowDomainStatsResponse.js +15 -0
- package/v1/model/ShowDomainStatsResponse.js.map +1 -0
- package/v1/model/ShowHistoryTaskDetailsRequest.d.ts +28 -0
- package/v1/model/ShowHistoryTaskDetailsRequest.d.ts.map +1 -0
- package/v1/model/ShowHistoryTaskDetailsRequest.js +68 -0
- package/v1/model/ShowHistoryTaskDetailsRequest.js.map +1 -0
- package/v1/model/ShowHistoryTaskDetailsResponse.d.ts +32 -0
- package/v1/model/ShowHistoryTaskDetailsResponse.d.ts.map +1 -0
- package/v1/model/ShowHistoryTaskDetailsResponse.js +69 -0
- package/v1/model/ShowHistoryTaskDetailsResponse.js.map +1 -0
- package/v1/model/ShowHistoryTasksRequest.d.ts +54 -0
- package/v1/model/ShowHistoryTasksRequest.d.ts.map +1 -0
- package/v1/model/ShowHistoryTasksRequest.js +111 -0
- package/v1/model/ShowHistoryTasksRequest.js.map +1 -0
- package/v1/model/ShowHistoryTasksResponse.d.ts +10 -0
- package/v1/model/ShowHistoryTasksResponse.d.ts.map +1 -0
- package/v1/model/ShowHistoryTasksResponse.js +19 -0
- package/v1/model/ShowHistoryTasksResponse.js.map +1 -0
- package/v1/model/ShowHttpInfoRequest.d.ts +12 -0
- package/v1/model/ShowHttpInfoRequest.d.ts.map +1 -0
- package/v1/model/ShowHttpInfoRequest.js +30 -0
- package/v1/model/ShowHttpInfoRequest.js.map +1 -0
- package/v1/model/ShowHttpInfoResponse.d.ts +8 -0
- package/v1/model/ShowHttpInfoResponse.d.ts.map +1 -0
- package/v1/model/ShowHttpInfoResponse.js +15 -0
- package/v1/model/ShowHttpInfoResponse.js.map +1 -0
- package/v1/model/ShowIpInfoRequest.d.ts +10 -0
- package/v1/model/ShowIpInfoRequest.d.ts.map +1 -0
- package/v1/model/ShowIpInfoRequest.js +24 -0
- package/v1/model/ShowIpInfoRequest.js.map +1 -0
- package/v1/model/ShowIpInfoResponse.d.ts +10 -0
- package/v1/model/ShowIpInfoResponse.d.ts.map +1 -0
- package/v1/model/ShowIpInfoResponse.js +21 -0
- package/v1/model/ShowIpInfoResponse.js.map +1 -0
- package/v1/model/ShowLogsRequest.d.ts +28 -0
- package/v1/model/ShowLogsRequest.d.ts.map +1 -0
- package/v1/model/ShowLogsRequest.js +70 -0
- package/v1/model/ShowLogsRequest.js.map +1 -0
- package/v1/model/ShowLogsResponse.d.ts +10 -0
- package/v1/model/ShowLogsResponse.d.ts.map +1 -0
- package/v1/model/ShowLogsResponse.js +19 -0
- package/v1/model/ShowLogsResponse.js.map +1 -0
- package/v1/model/ShowOriginHostRequest.d.ts +12 -0
- package/v1/model/ShowOriginHostRequest.d.ts.map +1 -0
- package/v1/model/ShowOriginHostRequest.js +30 -0
- package/v1/model/ShowOriginHostRequest.js.map +1 -0
- package/v1/model/ShowOriginHostResponse.d.ts +10 -0
- package/v1/model/ShowOriginHostResponse.d.ts.map +1 -0
- package/v1/model/ShowOriginHostResponse.js +21 -0
- package/v1/model/ShowOriginHostResponse.js.map +1 -0
- package/v1/model/ShowQuotaRequest.d.ts +4 -0
- package/v1/model/ShowQuotaRequest.d.ts.map +1 -0
- package/v1/model/ShowQuotaRequest.js +9 -0
- package/v1/model/ShowQuotaRequest.js.map +1 -0
- package/v1/model/ShowQuotaResponse.d.ts +8 -0
- package/v1/model/ShowQuotaResponse.d.ts.map +1 -0
- package/v1/model/ShowQuotaResponse.js +15 -0
- package/v1/model/ShowQuotaResponse.js.map +1 -0
- package/v1/model/ShowReferRequest.d.ts +12 -0
- package/v1/model/ShowReferRequest.d.ts.map +1 -0
- package/v1/model/ShowReferRequest.js +30 -0
- package/v1/model/ShowReferRequest.js.map +1 -0
- package/v1/model/ShowReferResponse.d.ts +8 -0
- package/v1/model/ShowReferResponse.d.ts.map +1 -0
- package/v1/model/ShowReferResponse.js +15 -0
- package/v1/model/ShowReferResponse.js.map +1 -0
- package/v1/model/ShowResponseHeaderRequest.d.ts +12 -0
- package/v1/model/ShowResponseHeaderRequest.d.ts.map +1 -0
- package/v1/model/ShowResponseHeaderRequest.js +30 -0
- package/v1/model/ShowResponseHeaderRequest.js.map +1 -0
- package/v1/model/ShowResponseHeaderResponse.d.ts +8 -0
- package/v1/model/ShowResponseHeaderResponse.d.ts.map +1 -0
- package/v1/model/ShowResponseHeaderResponse.js +15 -0
- package/v1/model/ShowResponseHeaderResponse.js.map +1 -0
- package/v1/model/ShowTagsRequest.d.ts +8 -0
- package/v1/model/ShowTagsRequest.d.ts.map +1 -0
- package/v1/model/ShowTagsRequest.js +20 -0
- package/v1/model/ShowTagsRequest.js.map +1 -0
- package/v1/model/ShowTagsResponse.d.ts +7 -0
- package/v1/model/ShowTagsResponse.d.ts.map +1 -0
- package/v1/model/ShowTagsResponse.js +15 -0
- package/v1/model/ShowTagsResponse.js.map +1 -0
- package/v1/model/ShowTopUrlRequest.d.ts +44 -0
- package/v1/model/ShowTopUrlRequest.d.ts.map +1 -0
- package/v1/model/ShowTopUrlRequest.js +91 -0
- package/v1/model/ShowTopUrlRequest.js.map +1 -0
- package/v1/model/ShowTopUrlResponse.d.ts +14 -0
- package/v1/model/ShowTopUrlResponse.d.ts.map +1 -0
- package/v1/model/ShowTopUrlResponse.js +31 -0
- package/v1/model/ShowTopUrlResponse.js.map +1 -0
- package/v1/model/ShowUrlTaskInfoRequest.d.ts +28 -0
- package/v1/model/ShowUrlTaskInfoRequest.d.ts.map +1 -0
- package/v1/model/ShowUrlTaskInfoRequest.js +65 -0
- package/v1/model/ShowUrlTaskInfoRequest.js.map +1 -0
- package/v1/model/ShowUrlTaskInfoResponse.d.ts +16 -0
- package/v1/model/ShowUrlTaskInfoResponse.d.ts.map +1 -0
- package/v1/model/ShowUrlTaskInfoResponse.js +33 -0
- package/v1/model/ShowUrlTaskInfoResponse.js.map +1 -0
- package/v1/model/SourceWithPort.d.ts +41 -0
- package/v1/model/SourceWithPort.d.ts.map +1 -0
- package/v1/model/SourceWithPort.js +92 -0
- package/v1/model/SourceWithPort.js.map +1 -0
- package/v1/model/Sources.d.ts +33 -0
- package/v1/model/Sources.d.ts.map +1 -0
- package/v1/model/Sources.js +72 -0
- package/v1/model/Sources.js.map +1 -0
- package/v1/model/SourcesConfig.d.ts +30 -0
- package/v1/model/SourcesConfig.d.ts.map +1 -0
- package/v1/model/SourcesConfig.js +76 -0
- package/v1/model/SourcesConfig.js.map +1 -0
- package/v1/model/TasksObject.d.ts +44 -0
- package/v1/model/TasksObject.d.ts.map +1 -0
- package/v1/model/TasksObject.js +81 -0
- package/v1/model/TasksObject.js.map +1 -0
- package/v1/model/TopUrlSummary.d.ts +20 -0
- package/v1/model/TopUrlSummary.d.ts.map +1 -0
- package/v1/model/TopUrlSummary.js +47 -0
- package/v1/model/TopUrlSummary.js.map +1 -0
- package/v1/model/UpdateBlackWhiteListRequest.d.ts +15 -0
- package/v1/model/UpdateBlackWhiteListRequest.d.ts.map +1 -0
- package/v1/model/UpdateBlackWhiteListRequest.js +34 -0
- package/v1/model/UpdateBlackWhiteListRequest.js.map +1 -0
- package/v1/model/UpdateBlackWhiteListResponse.d.ts +11 -0
- package/v1/model/UpdateBlackWhiteListResponse.d.ts.map +1 -0
- package/v1/model/UpdateBlackWhiteListResponse.js +23 -0
- package/v1/model/UpdateBlackWhiteListResponse.js.map +1 -0
- package/v1/model/UpdateCacheRulesRequest.d.ts +15 -0
- package/v1/model/UpdateCacheRulesRequest.d.ts.map +1 -0
- package/v1/model/UpdateCacheRulesRequest.js +34 -0
- package/v1/model/UpdateCacheRulesRequest.js.map +1 -0
- package/v1/model/UpdateCacheRulesResponse.d.ts +10 -0
- package/v1/model/UpdateCacheRulesResponse.d.ts.map +1 -0
- package/v1/model/UpdateCacheRulesResponse.js +21 -0
- package/v1/model/UpdateCacheRulesResponse.js.map +1 -0
- package/v1/model/UpdateDomainFullConfigRequest.d.ts +15 -0
- package/v1/model/UpdateDomainFullConfigRequest.d.ts.map +1 -0
- package/v1/model/UpdateDomainFullConfigRequest.js +34 -0
- package/v1/model/UpdateDomainFullConfigRequest.js.map +1 -0
- package/v1/model/UpdateDomainFullConfigResponse.d.ts +5 -0
- package/v1/model/UpdateDomainFullConfigResponse.d.ts.map +1 -0
- package/v1/model/UpdateDomainFullConfigResponse.js +11 -0
- package/v1/model/UpdateDomainFullConfigResponse.js.map +1 -0
- package/v1/model/UpdateDomainMultiCertificatesRequest.d.ts +11 -0
- package/v1/model/UpdateDomainMultiCertificatesRequest.d.ts.map +1 -0
- package/v1/model/UpdateDomainMultiCertificatesRequest.js +23 -0
- package/v1/model/UpdateDomainMultiCertificatesRequest.js.map +1 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBody.d.ts +7 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBody.d.ts.map +1 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBody.js +13 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBody.js.map +1 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.d.ts +41 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.d.ts.map +1 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.js +99 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.js.map +1 -0
- package/v1/model/UpdateDomainMultiCertificatesResponse.d.ts +8 -0
- package/v1/model/UpdateDomainMultiCertificatesResponse.d.ts.map +1 -0
- package/v1/model/UpdateDomainMultiCertificatesResponse.js +15 -0
- package/v1/model/UpdateDomainMultiCertificatesResponse.js.map +1 -0
- package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.d.ts +41 -0
- package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.d.ts.map +1 -0
- package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.js +98 -0
- package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.js.map +1 -0
- package/v1/model/UpdateDomainOriginRequest.d.ts +15 -0
- package/v1/model/UpdateDomainOriginRequest.d.ts.map +1 -0
- package/v1/model/UpdateDomainOriginRequest.js +34 -0
- package/v1/model/UpdateDomainOriginRequest.js.map +1 -0
- package/v1/model/UpdateDomainOriginResponse.d.ts +8 -0
- package/v1/model/UpdateDomainOriginResponse.d.ts.map +1 -0
- package/v1/model/UpdateDomainOriginResponse.js +15 -0
- package/v1/model/UpdateDomainOriginResponse.js.map +1 -0
- package/v1/model/UpdateFollow302SwitchRequest.d.ts +15 -0
- package/v1/model/UpdateFollow302SwitchRequest.d.ts.map +1 -0
- package/v1/model/UpdateFollow302SwitchRequest.js +34 -0
- package/v1/model/UpdateFollow302SwitchRequest.js.map +1 -0
- package/v1/model/UpdateFollow302SwitchResponse.d.ts +10 -0
- package/v1/model/UpdateFollow302SwitchResponse.d.ts.map +1 -0
- package/v1/model/UpdateFollow302SwitchResponse.js +21 -0
- package/v1/model/UpdateFollow302SwitchResponse.js.map +1 -0
- package/v1/model/UpdateHttpsInfoRequest.d.ts +15 -0
- package/v1/model/UpdateHttpsInfoRequest.d.ts.map +1 -0
- package/v1/model/UpdateHttpsInfoRequest.js +34 -0
- package/v1/model/UpdateHttpsInfoRequest.js.map +1 -0
- package/v1/model/UpdateHttpsInfoResponse.d.ts +8 -0
- package/v1/model/UpdateHttpsInfoResponse.d.ts.map +1 -0
- package/v1/model/UpdateHttpsInfoResponse.js +15 -0
- package/v1/model/UpdateHttpsInfoResponse.js.map +1 -0
- package/v1/model/UpdateOriginHostRequest.d.ts +15 -0
- package/v1/model/UpdateOriginHostRequest.d.ts.map +1 -0
- package/v1/model/UpdateOriginHostRequest.js +34 -0
- package/v1/model/UpdateOriginHostRequest.js.map +1 -0
- package/v1/model/UpdateOriginHostResponse.d.ts +10 -0
- package/v1/model/UpdateOriginHostResponse.d.ts.map +1 -0
- package/v1/model/UpdateOriginHostResponse.js +21 -0
- package/v1/model/UpdateOriginHostResponse.js.map +1 -0
- package/v1/model/UpdatePrivateBucketAccessBody.d.ts +6 -0
- package/v1/model/UpdatePrivateBucketAccessBody.d.ts.map +1 -0
- package/v1/model/UpdatePrivateBucketAccessBody.js +13 -0
- package/v1/model/UpdatePrivateBucketAccessBody.js.map +1 -0
- package/v1/model/UpdatePrivateBucketAccessRequest.d.ts +15 -0
- package/v1/model/UpdatePrivateBucketAccessRequest.d.ts.map +1 -0
- package/v1/model/UpdatePrivateBucketAccessRequest.js +34 -0
- package/v1/model/UpdatePrivateBucketAccessRequest.js.map +1 -0
- package/v1/model/UpdatePrivateBucketAccessResponse.d.ts +7 -0
- package/v1/model/UpdatePrivateBucketAccessResponse.d.ts.map +1 -0
- package/v1/model/UpdatePrivateBucketAccessResponse.js +15 -0
- package/v1/model/UpdatePrivateBucketAccessResponse.js.map +1 -0
- package/v1/model/UpdateRangeSwitchRequest.d.ts +15 -0
- package/v1/model/UpdateRangeSwitchRequest.d.ts.map +1 -0
- package/v1/model/UpdateRangeSwitchRequest.js +34 -0
- package/v1/model/UpdateRangeSwitchRequest.js.map +1 -0
- package/v1/model/UpdateRangeSwitchResponse.d.ts +10 -0
- package/v1/model/UpdateRangeSwitchResponse.d.ts.map +1 -0
- package/v1/model/UpdateRangeSwitchResponse.js +21 -0
- package/v1/model/UpdateRangeSwitchResponse.js.map +1 -0
- package/v1/model/UpdateReferRequest.d.ts +15 -0
- package/v1/model/UpdateReferRequest.d.ts.map +1 -0
- package/v1/model/UpdateReferRequest.js +34 -0
- package/v1/model/UpdateReferRequest.js.map +1 -0
- package/v1/model/UpdateReferResponse.d.ts +8 -0
- package/v1/model/UpdateReferResponse.d.ts.map +1 -0
- package/v1/model/UpdateReferResponse.js +15 -0
- package/v1/model/UpdateReferResponse.js.map +1 -0
- package/v1/model/UpdateResponseHeaderRequest.d.ts +15 -0
- package/v1/model/UpdateResponseHeaderRequest.d.ts.map +1 -0
- package/v1/model/UpdateResponseHeaderRequest.js +34 -0
- package/v1/model/UpdateResponseHeaderRequest.js.map +1 -0
- package/v1/model/UpdateResponseHeaderResponse.d.ts +8 -0
- package/v1/model/UpdateResponseHeaderResponse.d.ts.map +1 -0
- package/v1/model/UpdateResponseHeaderResponse.js +15 -0
- package/v1/model/UpdateResponseHeaderResponse.js.map +1 -0
- package/v1/model/UrlAuth.d.ts +18 -0
- package/v1/model/UrlAuth.d.ts.map +1 -0
- package/v1/model/UrlAuth.js +42 -0
- package/v1/model/UrlAuth.js.map +1 -0
- package/v1/model/UrlAuthGetBody.d.ts +16 -0
- package/v1/model/UrlAuthGetBody.d.ts.map +1 -0
- package/v1/model/UrlAuthGetBody.js +38 -0
- package/v1/model/UrlAuthGetBody.js.map +1 -0
- package/v1/model/UrlObject.d.ts +22 -0
- package/v1/model/UrlObject.d.ts.map +1 -0
- package/v1/model/UrlObject.js +51 -0
- package/v1/model/UrlObject.js.map +1 -0
- package/v1/model/Urls.d.ts +28 -0
- package/v1/model/Urls.d.ts.map +1 -0
- package/v1/model/Urls.js +65 -0
- package/v1/model/Urls.js.map +1 -0
- package/v1/model/UserAgentFilter.d.ts +8 -0
- package/v1/model/UserAgentFilter.d.ts.map +1 -0
- package/v1/model/UserAgentFilter.js +18 -0
- package/v1/model/UserAgentFilter.js.map +1 -0
- package/v1/public-api.d.ts +163 -0
- package/v1/public-api.d.ts.map +1 -0
- package/v1/public-api.js +179 -0
- package/v1/public-api.js.map +1 -0
- package/v2/CdnClient.d.ts +651 -0
- package/v2/CdnClient.d.ts.map +1 -0
- package/v2/CdnClient.js +1466 -0
- package/v2/CdnClient.js.map +1 -0
- package/v2/CdnRegion.d.ts +8 -0
- package/v2/CdnRegion.d.ts.map +1 -0
- package/v2/CdnRegion.js +24 -0
- package/v2/CdnRegion.js.map +1 -0
- package/v2/model/BackSources.d.ts +24 -0
- package/v2/model/BackSources.d.ts.map +1 -0
- package/v2/model/BackSources.js +61 -0
- package/v2/model/BackSources.js.map +1 -0
- package/v2/model/BatchCopyConfigs.d.ts +16 -0
- package/v2/model/BatchCopyConfigs.d.ts.map +1 -0
- package/v2/model/BatchCopyConfigs.js +42 -0
- package/v2/model/BatchCopyConfigs.js.map +1 -0
- package/v2/model/BatchCopyDRequestBody.d.ts +7 -0
- package/v2/model/BatchCopyDRequestBody.d.ts.map +1 -0
- package/v2/model/BatchCopyDRequestBody.js +14 -0
- package/v2/model/BatchCopyDRequestBody.js.map +1 -0
- package/v2/model/BatchCopyDomainRequest.d.ts +7 -0
- package/v2/model/BatchCopyDomainRequest.d.ts.map +1 -0
- package/v2/model/BatchCopyDomainRequest.js +13 -0
- package/v2/model/BatchCopyDomainRequest.js.map +1 -0
- package/v2/model/BatchCopyDomainResponse.d.ts +8 -0
- package/v2/model/BatchCopyDomainResponse.d.ts.map +1 -0
- package/v2/model/BatchCopyDomainResponse.js +15 -0
- package/v2/model/BatchCopyDomainResponse.js.map +1 -0
- package/v2/model/BatchCopyErrorRsp.d.ts +7 -0
- package/v2/model/BatchCopyErrorRsp.d.ts.map +1 -0
- package/v2/model/BatchCopyErrorRsp.js +13 -0
- package/v2/model/BatchCopyErrorRsp.js.map +1 -0
- package/v2/model/BatchCopyErrorRspError.d.ts +12 -0
- package/v2/model/BatchCopyErrorRspError.d.ts.map +1 -0
- package/v2/model/BatchCopyErrorRspError.js +29 -0
- package/v2/model/BatchCopyErrorRspError.js.map +1 -0
- package/v2/model/BatchCopyResultVo.d.ts +20 -0
- package/v2/model/BatchCopyResultVo.d.ts.map +1 -0
- package/v2/model/BatchCopyResultVo.js +38 -0
- package/v2/model/BatchCopyResultVo.js.map +1 -0
- package/v2/model/CacheRules.d.ts +32 -0
- package/v2/model/CacheRules.d.ts.map +1 -0
- package/v2/model/CacheRules.js +83 -0
- package/v2/model/CacheRules.js.map +1 -0
- package/v2/model/CacheUrlParameterFilter.d.ts +8 -0
- package/v2/model/CacheUrlParameterFilter.d.ts.map +1 -0
- package/v2/model/CacheUrlParameterFilter.js +17 -0
- package/v2/model/CacheUrlParameterFilter.js.map +1 -0
- package/v2/model/CommonRemoteAuth.d.ts +13 -0
- package/v2/model/CommonRemoteAuth.d.ts.map +1 -0
- package/v2/model/CommonRemoteAuth.js +31 -0
- package/v2/model/CommonRemoteAuth.js.map +1 -0
- package/v2/model/Compress.d.ts +12 -0
- package/v2/model/Compress.d.ts.map +1 -0
- package/v2/model/Compress.js +29 -0
- package/v2/model/Compress.js.map +1 -0
- package/v2/model/Configs.d.ts +126 -0
- package/v2/model/Configs.d.ts.map +1 -0
- package/v2/model/Configs.js +259 -0
- package/v2/model/Configs.js.map +1 -0
- package/v2/model/ConfigsGetBody.d.ts +126 -0
- package/v2/model/ConfigsGetBody.d.ts.map +1 -0
- package/v2/model/ConfigsGetBody.js +259 -0
- package/v2/model/ConfigsGetBody.js.map +1 -0
- package/v2/model/CustomArgs.d.ts +10 -0
- package/v2/model/CustomArgs.d.ts.map +1 -0
- package/v2/model/CustomArgs.js +24 -0
- package/v2/model/CustomArgs.js.map +1 -0
- package/v2/model/DomainOriginHost.d.ts +16 -0
- package/v2/model/DomainOriginHost.d.ts.map +1 -0
- package/v2/model/DomainOriginHost.js +40 -0
- package/v2/model/DomainOriginHost.js.map +1 -0
- package/v2/model/Domains.d.ts +88 -0
- package/v2/model/Domains.d.ts.map +1 -0
- package/v2/model/Domains.js +193 -0
- package/v2/model/Domains.js.map +1 -0
- package/v2/model/DomainsWithPort.d.ts +52 -0
- package/v2/model/DomainsWithPort.d.ts.map +1 -0
- package/v2/model/DomainsWithPort.js +109 -0
- package/v2/model/DomainsWithPort.js.map +1 -0
- package/v2/model/DownloadRegionCarrierExcelRequest.d.ts +36 -0
- package/v2/model/DownloadRegionCarrierExcelRequest.d.ts.map +1 -0
- package/v2/model/DownloadRegionCarrierExcelRequest.js +89 -0
- package/v2/model/DownloadRegionCarrierExcelRequest.js.map +1 -0
- package/v2/model/DownloadRegionCarrierExcelResponse.d.ts +5 -0
- package/v2/model/DownloadRegionCarrierExcelResponse.d.ts.map +1 -0
- package/v2/model/DownloadRegionCarrierExcelResponse.js +11 -0
- package/v2/model/DownloadRegionCarrierExcelResponse.js.map +1 -0
- package/v2/model/DownloadStatisticsExcelRequest.d.ts +34 -0
- package/v2/model/DownloadStatisticsExcelRequest.d.ts.map +1 -0
- package/v2/model/DownloadStatisticsExcelRequest.js +87 -0
- package/v2/model/DownloadStatisticsExcelRequest.js.map +1 -0
- package/v2/model/DownloadStatisticsExcelResponse.d.ts +5 -0
- package/v2/model/DownloadStatisticsExcelResponse.d.ts.map +1 -0
- package/v2/model/DownloadStatisticsExcelResponse.js +11 -0
- package/v2/model/DownloadStatisticsExcelResponse.js.map +1 -0
- package/v2/model/EpResourceTag.d.ts +8 -0
- package/v2/model/EpResourceTag.d.ts.map +1 -0
- package/v2/model/EpResourceTag.js +19 -0
- package/v2/model/EpResourceTag.js.map +1 -0
- package/v2/model/ErrMsg.d.ts +12 -0
- package/v2/model/ErrMsg.d.ts.map +1 -0
- package/v2/model/ErrMsg.js +31 -0
- package/v2/model/ErrMsg.js.map +1 -0
- package/v2/model/ErrRsp.d.ts +7 -0
- package/v2/model/ErrRsp.d.ts.map +1 -0
- package/v2/model/ErrRsp.js +14 -0
- package/v2/model/ErrRsp.js.map +1 -0
- package/v2/model/ErrorCodeCache.d.ts +8 -0
- package/v2/model/ErrorCodeCache.d.ts.map +1 -0
- package/v2/model/ErrorCodeCache.js +17 -0
- package/v2/model/ErrorCodeCache.js.map +1 -0
- package/v2/model/ErrorCodeRedirectRules.d.ts +16 -0
- package/v2/model/ErrorCodeRedirectRules.d.ts.map +1 -0
- package/v2/model/ErrorCodeRedirectRules.js +42 -0
- package/v2/model/ErrorCodeRedirectRules.js.map +1 -0
- package/v2/model/FlexibleOrigins.d.ts +19 -0
- package/v2/model/FlexibleOrigins.d.ts.map +1 -0
- package/v2/model/FlexibleOrigins.js +47 -0
- package/v2/model/FlexibleOrigins.js.map +1 -0
- package/v2/model/ForceRedirectConfig.d.ts +12 -0
- package/v2/model/ForceRedirectConfig.d.ts.map +1 -0
- package/v2/model/ForceRedirectConfig.js +28 -0
- package/v2/model/ForceRedirectConfig.js.map +1 -0
- package/v2/model/HttpGetBody.d.ts +40 -0
- package/v2/model/HttpGetBody.d.ts.map +1 -0
- package/v2/model/HttpGetBody.js +99 -0
- package/v2/model/HttpGetBody.js.map +1 -0
- package/v2/model/HttpPutBody.d.ts +40 -0
- package/v2/model/HttpPutBody.d.ts.map +1 -0
- package/v2/model/HttpPutBody.js +99 -0
- package/v2/model/HttpPutBody.js.map +1 -0
- package/v2/model/HttpResponseHeader.d.ts +10 -0
- package/v2/model/HttpResponseHeader.d.ts.map +1 -0
- package/v2/model/HttpResponseHeader.js +23 -0
- package/v2/model/HttpResponseHeader.js.map +1 -0
- package/v2/model/IpFilter.d.ts +8 -0
- package/v2/model/IpFilter.d.ts.map +1 -0
- package/v2/model/IpFilter.js +18 -0
- package/v2/model/IpFilter.js.map +1 -0
- package/v2/model/ListDomainsRequest.d.ts +40 -0
- package/v2/model/ListDomainsRequest.d.ts.map +1 -0
- package/v2/model/ListDomainsRequest.js +99 -0
- package/v2/model/ListDomainsRequest.js.map +1 -0
- package/v2/model/ListDomainsResponse.d.ts +10 -0
- package/v2/model/ListDomainsResponse.d.ts.map +1 -0
- package/v2/model/ListDomainsResponse.js +19 -0
- package/v2/model/ListDomainsResponse.js.map +1 -0
- package/v2/model/ModifyDomainConfigRequestBody.d.ts +7 -0
- package/v2/model/ModifyDomainConfigRequestBody.d.ts.map +1 -0
- package/v2/model/ModifyDomainConfigRequestBody.js +13 -0
- package/v2/model/ModifyDomainConfigRequestBody.js.map +1 -0
- package/v2/model/OriginRequestHeader.d.ts +10 -0
- package/v2/model/OriginRequestHeader.d.ts.map +1 -0
- package/v2/model/OriginRequestHeader.js +23 -0
- package/v2/model/OriginRequestHeader.js.map +1 -0
- package/v2/model/OriginRequestUrlRewrite.d.ts +18 -0
- package/v2/model/OriginRequestUrlRewrite.d.ts.map +1 -0
- package/v2/model/OriginRequestUrlRewrite.js +46 -0
- package/v2/model/OriginRequestUrlRewrite.js.map +1 -0
- package/v2/model/RefererConfig.d.ts +12 -0
- package/v2/model/RefererConfig.d.ts.map +1 -0
- package/v2/model/RefererConfig.js +28 -0
- package/v2/model/RefererConfig.js.map +1 -0
- package/v2/model/RemoteAuthRuleVo.d.ts +63 -0
- package/v2/model/RemoteAuthRuleVo.d.ts.map +1 -0
- package/v2/model/RemoteAuthRuleVo.js +163 -0
- package/v2/model/RemoteAuthRuleVo.js.map +1 -0
- package/v2/model/RequestLimitRules.d.ts +16 -0
- package/v2/model/RequestLimitRules.d.ts.map +1 -0
- package/v2/model/RequestLimitRules.js +39 -0
- package/v2/model/RequestLimitRules.js.map +1 -0
- package/v2/model/SetChargeModesBody.d.ts +16 -0
- package/v2/model/SetChargeModesBody.d.ts.map +1 -0
- package/v2/model/SetChargeModesBody.js +42 -0
- package/v2/model/SetChargeModesBody.js.map +1 -0
- package/v2/model/SetChargeModesRequest.d.ts +7 -0
- package/v2/model/SetChargeModesRequest.d.ts.map +1 -0
- package/v2/model/SetChargeModesRequest.js +13 -0
- package/v2/model/SetChargeModesRequest.js.map +1 -0
- package/v2/model/SetChargeModesResponse.d.ts +27 -0
- package/v2/model/SetChargeModesResponse.d.ts.map +1 -0
- package/v2/model/SetChargeModesResponse.js +65 -0
- package/v2/model/SetChargeModesResponse.js.map +1 -0
- package/v2/model/ShowBandwidthCalcRequest.d.ts +28 -0
- package/v2/model/ShowBandwidthCalcRequest.d.ts.map +1 -0
- package/v2/model/ShowBandwidthCalcRequest.js +73 -0
- package/v2/model/ShowBandwidthCalcRequest.js.map +1 -0
- package/v2/model/ShowBandwidthCalcResponse.d.ts +15 -0
- package/v2/model/ShowBandwidthCalcResponse.d.ts.map +1 -0
- package/v2/model/ShowBandwidthCalcResponse.js +21 -0
- package/v2/model/ShowBandwidthCalcResponse.js.map +1 -0
- package/v2/model/ShowChargeModesRequest.d.ts +14 -0
- package/v2/model/ShowChargeModesRequest.d.ts.map +1 -0
- package/v2/model/ShowChargeModesRequest.js +34 -0
- package/v2/model/ShowChargeModesRequest.js.map +1 -0
- package/v2/model/ShowChargeModesResponse.d.ts +11 -0
- package/v2/model/ShowChargeModesResponse.d.ts.map +1 -0
- package/v2/model/ShowChargeModesResponse.js +15 -0
- package/v2/model/ShowChargeModesResponse.js.map +1 -0
- package/v2/model/ShowDomainDetailByNameRequest.d.ts +12 -0
- package/v2/model/ShowDomainDetailByNameRequest.d.ts.map +1 -0
- package/v2/model/ShowDomainDetailByNameRequest.js +30 -0
- package/v2/model/ShowDomainDetailByNameRequest.js.map +1 -0
- package/v2/model/ShowDomainDetailByNameResponse.d.ts +8 -0
- package/v2/model/ShowDomainDetailByNameResponse.d.ts.map +1 -0
- package/v2/model/ShowDomainDetailByNameResponse.js +15 -0
- package/v2/model/ShowDomainDetailByNameResponse.js.map +1 -0
- package/v2/model/ShowDomainFullConfigRequest.d.ts +16 -0
- package/v2/model/ShowDomainFullConfigRequest.d.ts.map +1 -0
- package/v2/model/ShowDomainFullConfigRequest.js +40 -0
- package/v2/model/ShowDomainFullConfigRequest.js.map +1 -0
- package/v2/model/ShowDomainFullConfigResponse.d.ts +8 -0
- package/v2/model/ShowDomainFullConfigResponse.d.ts.map +1 -0
- package/v2/model/ShowDomainFullConfigResponse.js +15 -0
- package/v2/model/ShowDomainFullConfigResponse.js.map +1 -0
- package/v2/model/ShowDomainLocationStatsRequest.d.ts +38 -0
- package/v2/model/ShowDomainLocationStatsRequest.d.ts.map +1 -0
- package/v2/model/ShowDomainLocationStatsRequest.js +94 -0
- package/v2/model/ShowDomainLocationStatsRequest.js.map +1 -0
- package/v2/model/ShowDomainLocationStatsResponse.d.ts +15 -0
- package/v2/model/ShowDomainLocationStatsResponse.d.ts.map +1 -0
- package/v2/model/ShowDomainLocationStatsResponse.js +25 -0
- package/v2/model/ShowDomainLocationStatsResponse.js.map +1 -0
- package/v2/model/ShowDomainStatsRequest.d.ts +36 -0
- package/v2/model/ShowDomainStatsRequest.d.ts.map +1 -0
- package/v2/model/ShowDomainStatsRequest.js +92 -0
- package/v2/model/ShowDomainStatsRequest.js.map +1 -0
- package/v2/model/ShowDomainStatsResponse.d.ts +11 -0
- package/v2/model/ShowDomainStatsResponse.d.ts.map +1 -0
- package/v2/model/ShowDomainStatsResponse.js +15 -0
- package/v2/model/ShowDomainStatsResponse.js.map +1 -0
- package/v2/model/ShowTopDomainNamesRequest.d.ts +26 -0
- package/v2/model/ShowTopDomainNamesRequest.d.ts.map +1 -0
- package/v2/model/ShowTopDomainNamesRequest.js +66 -0
- package/v2/model/ShowTopDomainNamesRequest.js.map +1 -0
- package/v2/model/ShowTopDomainNamesResponse.d.ts +15 -0
- package/v2/model/ShowTopDomainNamesResponse.d.ts.map +1 -0
- package/v2/model/ShowTopDomainNamesResponse.js +21 -0
- package/v2/model/ShowTopDomainNamesResponse.js.map +1 -0
- package/v2/model/ShowTopUrlRequest.d.ts +28 -0
- package/v2/model/ShowTopUrlRequest.d.ts.map +1 -0
- package/v2/model/ShowTopUrlRequest.js +73 -0
- package/v2/model/ShowTopUrlRequest.js.map +1 -0
- package/v2/model/ShowTopUrlResponse.d.ts +14 -0
- package/v2/model/ShowTopUrlResponse.d.ts.map +1 -0
- package/v2/model/ShowTopUrlResponse.js +31 -0
- package/v2/model/ShowTopUrlResponse.js.map +1 -0
- package/v2/model/Sources.d.ts +33 -0
- package/v2/model/Sources.d.ts.map +1 -0
- package/v2/model/Sources.js +72 -0
- package/v2/model/Sources.js.map +1 -0
- package/v2/model/SourcesConfig.d.ts +36 -0
- package/v2/model/SourcesConfig.d.ts.map +1 -0
- package/v2/model/SourcesConfig.js +90 -0
- package/v2/model/SourcesConfig.js.map +1 -0
- package/v2/model/TopUrlSummary.d.ts +20 -0
- package/v2/model/TopUrlSummary.d.ts.map +1 -0
- package/v2/model/TopUrlSummary.js +47 -0
- package/v2/model/TopUrlSummary.js.map +1 -0
- package/v2/model/UpdateDomainFullConfigRequest.d.ts +15 -0
- package/v2/model/UpdateDomainFullConfigRequest.d.ts.map +1 -0
- package/v2/model/UpdateDomainFullConfigRequest.js +34 -0
- package/v2/model/UpdateDomainFullConfigRequest.js.map +1 -0
- package/v2/model/UpdateDomainFullConfigResponse.d.ts +5 -0
- package/v2/model/UpdateDomainFullConfigResponse.d.ts.map +1 -0
- package/v2/model/UpdateDomainFullConfigResponse.js +11 -0
- package/v2/model/UpdateDomainFullConfigResponse.js.map +1 -0
- package/v2/model/UrlAuth.d.ts +34 -0
- package/v2/model/UrlAuth.d.ts.map +1 -0
- package/v2/model/UrlAuth.js +85 -0
- package/v2/model/UrlAuth.js.map +1 -0
- package/v2/model/UrlAuthGetBody.d.ts +34 -0
- package/v2/model/UrlAuthGetBody.d.ts.map +1 -0
- package/v2/model/UrlAuthGetBody.js +82 -0
- package/v2/model/UrlAuthGetBody.js.map +1 -0
- package/v2/model/UserAgentFilter.d.ts +12 -0
- package/v2/model/UserAgentFilter.d.ts.map +1 -0
- package/v2/model/UserAgentFilter.js +28 -0
- package/v2/model/UserAgentFilter.js.map +1 -0
- package/v2/model/VideoSeek.d.ts +20 -0
- package/v2/model/VideoSeek.d.ts.map +1 -0
- package/v2/model/VideoSeek.js +50 -0
- package/v2/model/VideoSeek.js.map +1 -0
- package/v2/model/WebSocketSeek.d.ts +8 -0
- package/v2/model/WebSocketSeek.d.ts.map +1 -0
- package/v2/model/WebSocketSeek.js +19 -0
- package/v2/model/WebSocketSeek.js.map +1 -0
- package/v2/public-api.d.ts +73 -0
- package/v2/public-api.d.ts.map +1 -0
- package/v2/public-api.js +89 -0
- package/v2/public-api.js.map +1 -0
- package/huaweicloud-sdk-cdn.ts +0 -6
- package/v1/CdnClient.ts +0 -3659
- package/v1/CdnRegion.ts +0 -28
- package/v1/model/BatchDeleteTagsRequest.ts +0 -12
- package/v1/model/BatchDeleteTagsResponse.ts +0 -8
- package/v1/model/BlackWhiteListBody.ts +0 -23
- package/v1/model/CacheConfig.ts +0 -40
- package/v1/model/CacheConfigRequest.ts +0 -40
- package/v1/model/CacheConfigRequestBody.ts +0 -19
- package/v1/model/CacheRules.ts +0 -88
- package/v1/model/CacheUrlParameterFilter.ts +0 -16
- package/v1/model/CdnIps.ts +0 -31
- package/v1/model/Compress.ts +0 -17
- package/v1/model/CompressRequest.ts +0 -17
- package/v1/model/CompressResponse.ts +0 -30
- package/v1/model/CompressRules.ts +0 -28
- package/v1/model/Configs.ts +0 -206
- package/v1/model/ConfigsGetBody.ts +0 -206
- package/v1/model/CreateDomainRequest.ts +0 -12
- package/v1/model/CreateDomainRequestBody.ts +0 -13
- package/v1/model/CreateDomainResponse.ts +0 -14
- package/v1/model/CreateDomainResponseBodyContent.ts +0 -176
- package/v1/model/CreatePreheatingTasksRequest.ts +0 -23
- package/v1/model/CreatePreheatingTasksResponse.ts +0 -19
- package/v1/model/CreateRefreshTasksRequest.ts +0 -23
- package/v1/model/CreateRefreshTasksResponse.ts +0 -19
- package/v1/model/CreateTagsRequest.ts +0 -12
- package/v1/model/CreateTagsRequestBody.ts +0 -24
- package/v1/model/CreateTagsResponse.ts +0 -8
- package/v1/model/DeleteDomainRequest.ts +0 -29
- package/v1/model/DeleteDomainResponse.ts +0 -14
- package/v1/model/DeleteTagsRequestBody.ts +0 -24
- package/v1/model/DisableDomainRequest.ts +0 -29
- package/v1/model/DisableDomainResponse.ts +0 -14
- package/v1/model/DomainBody.ts +0 -80
- package/v1/model/DomainItemDetail.ts +0 -44
- package/v1/model/DomainItemLocationDetails.ts +0 -45
- package/v1/model/DomainOriginHost.ts +0 -40
- package/v1/model/DomainRegion.ts +0 -28
- package/v1/model/Domains.ts +0 -225
- package/v1/model/DomainsWithPort.ts +0 -219
- package/v1/model/EnableDomainRequest.ts +0 -29
- package/v1/model/EnableDomainResponse.ts +0 -14
- package/v1/model/EpResourceTag.ts +0 -18
- package/v1/model/ErrorCodeCache.ts +0 -16
- package/v1/model/ErrorCodeRedirectRules.ts +0 -42
- package/v1/model/Follow302StatusBody.ts +0 -37
- package/v1/model/Follow302StatusRequest.ts +0 -27
- package/v1/model/ForceRedirect.ts +0 -29
- package/v1/model/ForceRedirectConfig.ts +0 -28
- package/v1/model/HeaderBody.ts +0 -12
- package/v1/model/HeaderMap.ts +0 -72
- package/v1/model/HttpGetBody.ts +0 -72
- package/v1/model/HttpInfoRequest.ts +0 -13
- package/v1/model/HttpInfoRequestBody.ts +0 -85
- package/v1/model/HttpInfoResponseBody.ts +0 -94
- package/v1/model/HttpPutBody.ts +0 -83
- package/v1/model/HttpResponseHeader.ts +0 -23
- package/v1/model/HttpsDetail.ts +0 -116
- package/v1/model/IpFilter.ts +0 -17
- package/v1/model/ListDomainsRequest.ts +0 -138
- package/v1/model/ListDomainsResponse.ts +0 -19
- package/v1/model/LogObject.ts +0 -54
- package/v1/model/ModelMap.ts +0 -17
- package/v1/model/ModifyDomainConfigRequestBody.ts +0 -12
- package/v1/model/OriginHostBody.ts +0 -38
- package/v1/model/OriginHostRequest.ts +0 -19
- package/v1/model/OriginRangeBody.ts +0 -37
- package/v1/model/OriginRequest.ts +0 -13
- package/v1/model/OriginRequestHeader.ts +0 -23
- package/v1/model/OriginRequestUrlRewrite.ts +0 -47
- package/v1/model/PreheatingTaskRequest.ts +0 -19
- package/v1/model/PreheatingTaskRequestBody.ts +0 -12
- package/v1/model/Quotas.ts +0 -38
- package/v1/model/RangeStatusRequest.ts +0 -27
- package/v1/model/Referer.ts +0 -40
- package/v1/model/RefererBody.ts +0 -13
- package/v1/model/RefererConfig.ts +0 -28
- package/v1/model/RefererRsp.ts +0 -39
- package/v1/model/RefreshTaskRequest.ts +0 -19
- package/v1/model/RefreshTaskRequestBody.ts +0 -39
- package/v1/model/ResourceBody.ts +0 -13
- package/v1/model/Rules.ts +0 -47
- package/v1/model/ShowBlackWhiteListRequest.ts +0 -29
- package/v1/model/ShowBlackWhiteListResponse.ts +0 -24
- package/v1/model/ShowCacheRulesRequest.ts +0 -29
- package/v1/model/ShowCacheRulesResponse.ts +0 -20
- package/v1/model/ShowCertificatesHttpsInfoRequest.ts +0 -61
- package/v1/model/ShowCertificatesHttpsInfoResponse.ts +0 -19
- package/v1/model/ShowDomainDetailRequest.ts +0 -29
- package/v1/model/ShowDomainDetailResponse.ts +0 -14
- package/v1/model/ShowDomainFullConfigRequest.ts +0 -29
- package/v1/model/ShowDomainFullConfigResponse.ts +0 -14
- package/v1/model/ShowDomainItemDetailsRequest.ts +0 -76
- package/v1/model/ShowDomainItemDetailsResponse.ts +0 -20
- package/v1/model/ShowDomainItemLocationDetailsRequest.ts +0 -77
- package/v1/model/ShowDomainItemLocationDetailsResponse.ts +0 -20
- package/v1/model/ShowDomainLocationStatsRequest.ts +0 -102
- package/v1/model/ShowDomainLocationStatsResponse.ts +0 -24
- package/v1/model/ShowDomainStatsRequest.ts +0 -98
- package/v1/model/ShowDomainStatsResponse.ts +0 -13
- package/v1/model/ShowHistoryTaskDetailsRequest.ts +0 -72
- package/v1/model/ShowHistoryTaskDetailsResponse.ts +0 -77
- package/v1/model/ShowHistoryTasksRequest.ts +0 -116
- package/v1/model/ShowHistoryTasksResponse.ts +0 -19
- package/v1/model/ShowHttpInfoRequest.ts +0 -29
- package/v1/model/ShowHttpInfoResponse.ts +0 -14
- package/v1/model/ShowIpInfoRequest.ts +0 -23
- package/v1/model/ShowIpInfoResponse.ts +0 -20
- package/v1/model/ShowLogsRequest.ts +0 -73
- package/v1/model/ShowLogsResponse.ts +0 -19
- package/v1/model/ShowOriginHostRequest.ts +0 -29
- package/v1/model/ShowOriginHostResponse.ts +0 -20
- package/v1/model/ShowQuotaRequest.ts +0 -6
- package/v1/model/ShowQuotaResponse.ts +0 -14
- package/v1/model/ShowReferRequest.ts +0 -29
- package/v1/model/ShowReferResponse.ts +0 -14
- package/v1/model/ShowResponseHeaderRequest.ts +0 -29
- package/v1/model/ShowResponseHeaderResponse.ts +0 -14
- package/v1/model/ShowTagsRequest.ts +0 -18
- package/v1/model/ShowTagsResponse.ts +0 -13
- package/v1/model/ShowTopUrlRequest.ts +0 -93
- package/v1/model/ShowTopUrlResponse.ts +0 -31
- package/v1/model/ShowUrlTaskInfoRequest.ts +0 -70
- package/v1/model/ShowUrlTaskInfoResponse.ts +0 -35
- package/v1/model/SourceWithPort.ts +0 -96
- package/v1/model/Sources.ts +0 -74
- package/v1/model/SourcesConfig.ts +0 -80
- package/v1/model/TasksObject.ts +0 -86
- package/v1/model/TopUrlSummary.ts +0 -49
- package/v1/model/UpdateBlackWhiteListRequest.ts +0 -35
- package/v1/model/UpdateBlackWhiteListResponse.ts +0 -23
- package/v1/model/UpdateCacheRulesRequest.ts +0 -35
- package/v1/model/UpdateCacheRulesResponse.ts +0 -20
- package/v1/model/UpdateDomainFullConfigRequest.ts +0 -35
- package/v1/model/UpdateDomainFullConfigResponse.ts +0 -8
- package/v1/model/UpdateDomainMultiCertificatesRequest.ts +0 -23
- package/v1/model/UpdateDomainMultiCertificatesRequestBody.ts +0 -12
- package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.ts +0 -107
- package/v1/model/UpdateDomainMultiCertificatesResponse.ts +0 -14
- package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.ts +0 -106
- package/v1/model/UpdateDomainOriginRequest.ts +0 -35
- package/v1/model/UpdateDomainOriginResponse.ts +0 -14
- package/v1/model/UpdateFollow302SwitchRequest.ts +0 -35
- package/v1/model/UpdateFollow302SwitchResponse.ts +0 -20
- package/v1/model/UpdateHttpsInfoRequest.ts +0 -35
- package/v1/model/UpdateHttpsInfoResponse.ts +0 -14
- package/v1/model/UpdateOriginHostRequest.ts +0 -35
- package/v1/model/UpdateOriginHostResponse.ts +0 -20
- package/v1/model/UpdatePrivateBucketAccessBody.ts +0 -11
- package/v1/model/UpdatePrivateBucketAccessRequest.ts +0 -35
- package/v1/model/UpdatePrivateBucketAccessResponse.ts +0 -13
- package/v1/model/UpdateRangeSwitchRequest.ts +0 -35
- package/v1/model/UpdateRangeSwitchResponse.ts +0 -20
- package/v1/model/UpdateReferRequest.ts +0 -35
- package/v1/model/UpdateReferResponse.ts +0 -14
- package/v1/model/UpdateResponseHeaderRequest.ts +0 -35
- package/v1/model/UpdateResponseHeaderResponse.ts +0 -14
- package/v1/model/UrlAuth.ts +0 -44
- package/v1/model/UrlAuthGetBody.ts +0 -39
- package/v1/model/UrlObject.ts +0 -54
- package/v1/model/Urls.ts +0 -70
- package/v1/model/UserAgentFilter.ts +0 -17
- package/v1/public-api.ts +0 -163
- package/v2/CdnClient.ts +0 -1701
- package/v2/CdnRegion.ts +0 -28
- package/v2/model/BackSources.ts +0 -63
- package/v2/model/BatchCopyConfigs.ts +0 -42
- package/v2/model/BatchCopyDRequestBody.ts +0 -13
- package/v2/model/BatchCopyDomainRequest.ts +0 -12
- package/v2/model/BatchCopyDomainResponse.ts +0 -14
- package/v2/model/BatchCopyErrorRsp.ts +0 -12
- package/v2/model/BatchCopyErrorRspError.ts +0 -28
- package/v2/model/BatchCopyResultVo.ts +0 -38
- package/v2/model/CacheRules.ts +0 -88
- package/v2/model/CacheUrlParameterFilter.ts +0 -16
- package/v2/model/CommonRemoteAuth.ts +0 -31
- package/v2/model/Compress.ts +0 -29
- package/v2/model/Configs.ts +0 -304
- package/v2/model/ConfigsGetBody.ts +0 -304
- package/v2/model/CustomArgs.ts +0 -24
- package/v2/model/DomainOriginHost.ts +0 -40
- package/v2/model/Domains.ts +0 -214
- package/v2/model/DomainsWithPort.ts +0 -119
- package/v2/model/DownloadRegionCarrierExcelRequest.ts +0 -96
- package/v2/model/DownloadRegionCarrierExcelResponse.ts +0 -8
- package/v2/model/DownloadStatisticsExcelRequest.ts +0 -92
- package/v2/model/DownloadStatisticsExcelResponse.ts +0 -8
- package/v2/model/EpResourceTag.ts +0 -18
- package/v2/model/ErrMsg.ts +0 -30
- package/v2/model/ErrRsp.ts +0 -13
- package/v2/model/ErrorCodeCache.ts +0 -16
- package/v2/model/ErrorCodeRedirectRules.ts +0 -42
- package/v2/model/FlexibleOrigins.ts +0 -49
- package/v2/model/ForceRedirectConfig.ts +0 -28
- package/v2/model/HttpGetBody.ts +0 -105
- package/v2/model/HttpPutBody.ts +0 -105
- package/v2/model/HttpResponseHeader.ts +0 -23
- package/v2/model/IpFilter.ts +0 -17
- package/v2/model/ListDomainsRequest.ts +0 -105
- package/v2/model/ListDomainsResponse.ts +0 -19
- package/v2/model/ModifyDomainConfigRequestBody.ts +0 -12
- package/v2/model/OriginRequestHeader.ts +0 -23
- package/v2/model/OriginRequestUrlRewrite.ts +0 -47
- package/v2/model/RefererConfig.ts +0 -28
- package/v2/model/RemoteAuthRuleVo.ts +0 -176
- package/v2/model/RequestLimitRules.ts +0 -40
- package/v2/model/SetChargeModesBody.ts +0 -42
- package/v2/model/SetChargeModesRequest.ts +0 -12
- package/v2/model/SetChargeModesResponse.ts +0 -68
- package/v2/model/ShowBandwidthCalcRequest.ts +0 -76
- package/v2/model/ShowBandwidthCalcResponse.ts +0 -19
- package/v2/model/ShowChargeModesRequest.ts +0 -34
- package/v2/model/ShowChargeModesResponse.ts +0 -13
- package/v2/model/ShowDomainDetailByNameRequest.ts +0 -29
- package/v2/model/ShowDomainDetailByNameResponse.ts +0 -14
- package/v2/model/ShowDomainFullConfigRequest.ts +0 -40
- package/v2/model/ShowDomainFullConfigResponse.ts +0 -14
- package/v2/model/ShowDomainLocationStatsRequest.ts +0 -102
- package/v2/model/ShowDomainLocationStatsResponse.ts +0 -24
- package/v2/model/ShowDomainStatsRequest.ts +0 -98
- package/v2/model/ShowDomainStatsResponse.ts +0 -13
- package/v2/model/ShowTopDomainNamesRequest.ts +0 -69
- package/v2/model/ShowTopDomainNamesResponse.ts +0 -19
- package/v2/model/ShowTopUrlRequest.ts +0 -76
- package/v2/model/ShowTopUrlResponse.ts +0 -31
- package/v2/model/Sources.ts +0 -74
- package/v2/model/SourcesConfig.ts +0 -96
- package/v2/model/TopUrlSummary.ts +0 -49
- package/v2/model/UpdateDomainFullConfigRequest.ts +0 -35
- package/v2/model/UpdateDomainFullConfigResponse.ts +0 -8
- package/v2/model/UrlAuth.ts +0 -91
- package/v2/model/UrlAuthGetBody.ts +0 -88
- package/v2/model/UserAgentFilter.ts +0 -28
- package/v2/model/VideoSeek.ts +0 -51
- package/v2/model/WebSocketSeek.ts +0 -18
- package/v2/public-api.ts +0 -73
package/v1/CdnClient.ts
DELETED
@@ -1,3659 +0,0 @@
|
|
1
|
-
import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient";
|
2
|
-
import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
|
3
|
-
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
4
|
-
|
5
|
-
import { BatchDeleteTagsRequest } from './model/BatchDeleteTagsRequest';
|
6
|
-
import { BatchDeleteTagsResponse } from './model/BatchDeleteTagsResponse';
|
7
|
-
import { BlackWhiteListBody } from './model/BlackWhiteListBody';
|
8
|
-
import { CacheConfig } from './model/CacheConfig';
|
9
|
-
import { CacheConfigRequest } from './model/CacheConfigRequest';
|
10
|
-
import { CacheConfigRequestBody } from './model/CacheConfigRequestBody';
|
11
|
-
import { CacheRules } from './model/CacheRules';
|
12
|
-
import { CacheUrlParameterFilter } from './model/CacheUrlParameterFilter';
|
13
|
-
import { CdnIps } from './model/CdnIps';
|
14
|
-
import { Compress } from './model/Compress';
|
15
|
-
import { CompressRequest } from './model/CompressRequest';
|
16
|
-
import { CompressResponse } from './model/CompressResponse';
|
17
|
-
import { CompressRules } from './model/CompressRules';
|
18
|
-
import { Configs } from './model/Configs';
|
19
|
-
import { ConfigsGetBody } from './model/ConfigsGetBody';
|
20
|
-
import { CreateDomainRequest } from './model/CreateDomainRequest';
|
21
|
-
import { CreateDomainRequestBody } from './model/CreateDomainRequestBody';
|
22
|
-
import { CreateDomainResponse } from './model/CreateDomainResponse';
|
23
|
-
import { CreateDomainResponseBodyContent } from './model/CreateDomainResponseBodyContent';
|
24
|
-
import { CreatePreheatingTasksRequest } from './model/CreatePreheatingTasksRequest';
|
25
|
-
import { CreatePreheatingTasksResponse } from './model/CreatePreheatingTasksResponse';
|
26
|
-
import { CreateRefreshTasksRequest } from './model/CreateRefreshTasksRequest';
|
27
|
-
import { CreateRefreshTasksResponse } from './model/CreateRefreshTasksResponse';
|
28
|
-
import { CreateTagsRequest } from './model/CreateTagsRequest';
|
29
|
-
import { CreateTagsRequestBody } from './model/CreateTagsRequestBody';
|
30
|
-
import { CreateTagsResponse } from './model/CreateTagsResponse';
|
31
|
-
import { DeleteDomainRequest } from './model/DeleteDomainRequest';
|
32
|
-
import { DeleteDomainResponse } from './model/DeleteDomainResponse';
|
33
|
-
import { DeleteTagsRequestBody } from './model/DeleteTagsRequestBody';
|
34
|
-
import { DisableDomainRequest } from './model/DisableDomainRequest';
|
35
|
-
import { DisableDomainResponse } from './model/DisableDomainResponse';
|
36
|
-
import { DomainBody } from './model/DomainBody';
|
37
|
-
import { DomainItemDetail } from './model/DomainItemDetail';
|
38
|
-
import { DomainItemLocationDetails } from './model/DomainItemLocationDetails';
|
39
|
-
import { DomainOriginHost } from './model/DomainOriginHost';
|
40
|
-
import { DomainRegion } from './model/DomainRegion';
|
41
|
-
import { Domains } from './model/Domains';
|
42
|
-
import { DomainsWithPort } from './model/DomainsWithPort';
|
43
|
-
import { EnableDomainRequest } from './model/EnableDomainRequest';
|
44
|
-
import { EnableDomainResponse } from './model/EnableDomainResponse';
|
45
|
-
import { EpResourceTag } from './model/EpResourceTag';
|
46
|
-
import { ErrorCodeCache } from './model/ErrorCodeCache';
|
47
|
-
import { ErrorCodeRedirectRules } from './model/ErrorCodeRedirectRules';
|
48
|
-
import { Follow302StatusBody } from './model/Follow302StatusBody';
|
49
|
-
import { Follow302StatusRequest } from './model/Follow302StatusRequest';
|
50
|
-
import { ForceRedirect } from './model/ForceRedirect';
|
51
|
-
import { ForceRedirectConfig } from './model/ForceRedirectConfig';
|
52
|
-
import { HeaderBody } from './model/HeaderBody';
|
53
|
-
import { HeaderMap } from './model/HeaderMap';
|
54
|
-
import { HttpGetBody } from './model/HttpGetBody';
|
55
|
-
import { HttpInfoRequest } from './model/HttpInfoRequest';
|
56
|
-
import { HttpInfoRequestBody } from './model/HttpInfoRequestBody';
|
57
|
-
import { HttpInfoResponseBody } from './model/HttpInfoResponseBody';
|
58
|
-
import { HttpPutBody } from './model/HttpPutBody';
|
59
|
-
import { HttpResponseHeader } from './model/HttpResponseHeader';
|
60
|
-
import { HttpsDetail } from './model/HttpsDetail';
|
61
|
-
import { IpFilter } from './model/IpFilter';
|
62
|
-
import { ListDomainsRequest } from './model/ListDomainsRequest';
|
63
|
-
import { ListDomainsResponse } from './model/ListDomainsResponse';
|
64
|
-
import { LogObject } from './model/LogObject';
|
65
|
-
import { ModelMap } from './model/ModelMap';
|
66
|
-
import { ModifyDomainConfigRequestBody } from './model/ModifyDomainConfigRequestBody';
|
67
|
-
import { OriginHostBody } from './model/OriginHostBody';
|
68
|
-
import { OriginHostRequest } from './model/OriginHostRequest';
|
69
|
-
import { OriginRangeBody } from './model/OriginRangeBody';
|
70
|
-
import { OriginRequest } from './model/OriginRequest';
|
71
|
-
import { OriginRequestHeader } from './model/OriginRequestHeader';
|
72
|
-
import { OriginRequestUrlRewrite } from './model/OriginRequestUrlRewrite';
|
73
|
-
import { PreheatingTaskRequest } from './model/PreheatingTaskRequest';
|
74
|
-
import { PreheatingTaskRequestBody } from './model/PreheatingTaskRequestBody';
|
75
|
-
import { Quotas } from './model/Quotas';
|
76
|
-
import { RangeStatusRequest } from './model/RangeStatusRequest';
|
77
|
-
import { Referer } from './model/Referer';
|
78
|
-
import { RefererBody } from './model/RefererBody';
|
79
|
-
import { RefererConfig } from './model/RefererConfig';
|
80
|
-
import { RefererRsp } from './model/RefererRsp';
|
81
|
-
import { RefreshTaskRequest } from './model/RefreshTaskRequest';
|
82
|
-
import { RefreshTaskRequestBody } from './model/RefreshTaskRequestBody';
|
83
|
-
import { ResourceBody } from './model/ResourceBody';
|
84
|
-
import { Rules } from './model/Rules';
|
85
|
-
import { ShowBlackWhiteListRequest } from './model/ShowBlackWhiteListRequest';
|
86
|
-
import { ShowBlackWhiteListResponse } from './model/ShowBlackWhiteListResponse';
|
87
|
-
import { ShowCacheRulesRequest } from './model/ShowCacheRulesRequest';
|
88
|
-
import { ShowCacheRulesResponse } from './model/ShowCacheRulesResponse';
|
89
|
-
import { ShowCertificatesHttpsInfoRequest } from './model/ShowCertificatesHttpsInfoRequest';
|
90
|
-
import { ShowCertificatesHttpsInfoResponse } from './model/ShowCertificatesHttpsInfoResponse';
|
91
|
-
import { ShowDomainDetailRequest } from './model/ShowDomainDetailRequest';
|
92
|
-
import { ShowDomainDetailResponse } from './model/ShowDomainDetailResponse';
|
93
|
-
import { ShowDomainFullConfigRequest } from './model/ShowDomainFullConfigRequest';
|
94
|
-
import { ShowDomainFullConfigResponse } from './model/ShowDomainFullConfigResponse';
|
95
|
-
import { ShowDomainItemDetailsRequest } from './model/ShowDomainItemDetailsRequest';
|
96
|
-
import { ShowDomainItemDetailsResponse } from './model/ShowDomainItemDetailsResponse';
|
97
|
-
import { ShowDomainItemLocationDetailsRequest } from './model/ShowDomainItemLocationDetailsRequest';
|
98
|
-
import { ShowDomainItemLocationDetailsResponse } from './model/ShowDomainItemLocationDetailsResponse';
|
99
|
-
import { ShowDomainLocationStatsRequest } from './model/ShowDomainLocationStatsRequest';
|
100
|
-
import { ShowDomainLocationStatsResponse } from './model/ShowDomainLocationStatsResponse';
|
101
|
-
import { ShowDomainStatsRequest } from './model/ShowDomainStatsRequest';
|
102
|
-
import { ShowDomainStatsResponse } from './model/ShowDomainStatsResponse';
|
103
|
-
import { ShowHistoryTaskDetailsRequest } from './model/ShowHistoryTaskDetailsRequest';
|
104
|
-
import { ShowHistoryTaskDetailsResponse } from './model/ShowHistoryTaskDetailsResponse';
|
105
|
-
import { ShowHistoryTasksRequest } from './model/ShowHistoryTasksRequest';
|
106
|
-
import { ShowHistoryTasksResponse } from './model/ShowHistoryTasksResponse';
|
107
|
-
import { ShowHttpInfoRequest } from './model/ShowHttpInfoRequest';
|
108
|
-
import { ShowHttpInfoResponse } from './model/ShowHttpInfoResponse';
|
109
|
-
import { ShowIpInfoRequest } from './model/ShowIpInfoRequest';
|
110
|
-
import { ShowIpInfoResponse } from './model/ShowIpInfoResponse';
|
111
|
-
import { ShowLogsRequest } from './model/ShowLogsRequest';
|
112
|
-
import { ShowLogsResponse } from './model/ShowLogsResponse';
|
113
|
-
import { ShowOriginHostRequest } from './model/ShowOriginHostRequest';
|
114
|
-
import { ShowOriginHostResponse } from './model/ShowOriginHostResponse';
|
115
|
-
import { ShowQuotaRequest } from './model/ShowQuotaRequest';
|
116
|
-
import { ShowQuotaResponse } from './model/ShowQuotaResponse';
|
117
|
-
import { ShowReferRequest } from './model/ShowReferRequest';
|
118
|
-
import { ShowReferResponse } from './model/ShowReferResponse';
|
119
|
-
import { ShowResponseHeaderRequest } from './model/ShowResponseHeaderRequest';
|
120
|
-
import { ShowResponseHeaderResponse } from './model/ShowResponseHeaderResponse';
|
121
|
-
import { ShowTagsRequest } from './model/ShowTagsRequest';
|
122
|
-
import { ShowTagsResponse } from './model/ShowTagsResponse';
|
123
|
-
import { ShowTopUrlRequest } from './model/ShowTopUrlRequest';
|
124
|
-
import { ShowTopUrlResponse } from './model/ShowTopUrlResponse';
|
125
|
-
import { ShowUrlTaskInfoRequest } from './model/ShowUrlTaskInfoRequest';
|
126
|
-
import { ShowUrlTaskInfoResponse } from './model/ShowUrlTaskInfoResponse';
|
127
|
-
import { SourceWithPort } from './model/SourceWithPort';
|
128
|
-
import { Sources } from './model/Sources';
|
129
|
-
import { SourcesConfig } from './model/SourcesConfig';
|
130
|
-
import { TasksObject } from './model/TasksObject';
|
131
|
-
import { TopUrlSummary } from './model/TopUrlSummary';
|
132
|
-
import { UpdateBlackWhiteListRequest } from './model/UpdateBlackWhiteListRequest';
|
133
|
-
import { UpdateBlackWhiteListResponse } from './model/UpdateBlackWhiteListResponse';
|
134
|
-
import { UpdateCacheRulesRequest } from './model/UpdateCacheRulesRequest';
|
135
|
-
import { UpdateCacheRulesResponse } from './model/UpdateCacheRulesResponse';
|
136
|
-
import { UpdateDomainFullConfigRequest } from './model/UpdateDomainFullConfigRequest';
|
137
|
-
import { UpdateDomainFullConfigResponse } from './model/UpdateDomainFullConfigResponse';
|
138
|
-
import { UpdateDomainMultiCertificatesRequest } from './model/UpdateDomainMultiCertificatesRequest';
|
139
|
-
import { UpdateDomainMultiCertificatesRequestBody } from './model/UpdateDomainMultiCertificatesRequestBody';
|
140
|
-
import { UpdateDomainMultiCertificatesRequestBodyContent } from './model/UpdateDomainMultiCertificatesRequestBodyContent';
|
141
|
-
import { UpdateDomainMultiCertificatesResponse } from './model/UpdateDomainMultiCertificatesResponse';
|
142
|
-
import { UpdateDomainMultiCertificatesResponseBodyContent } from './model/UpdateDomainMultiCertificatesResponseBodyContent';
|
143
|
-
import { UpdateDomainOriginRequest } from './model/UpdateDomainOriginRequest';
|
144
|
-
import { UpdateDomainOriginResponse } from './model/UpdateDomainOriginResponse';
|
145
|
-
import { UpdateFollow302SwitchRequest } from './model/UpdateFollow302SwitchRequest';
|
146
|
-
import { UpdateFollow302SwitchResponse } from './model/UpdateFollow302SwitchResponse';
|
147
|
-
import { UpdateHttpsInfoRequest } from './model/UpdateHttpsInfoRequest';
|
148
|
-
import { UpdateHttpsInfoResponse } from './model/UpdateHttpsInfoResponse';
|
149
|
-
import { UpdateOriginHostRequest } from './model/UpdateOriginHostRequest';
|
150
|
-
import { UpdateOriginHostResponse } from './model/UpdateOriginHostResponse';
|
151
|
-
import { UpdatePrivateBucketAccessBody } from './model/UpdatePrivateBucketAccessBody';
|
152
|
-
import { UpdatePrivateBucketAccessRequest } from './model/UpdatePrivateBucketAccessRequest';
|
153
|
-
import { UpdatePrivateBucketAccessResponse } from './model/UpdatePrivateBucketAccessResponse';
|
154
|
-
import { UpdateRangeSwitchRequest } from './model/UpdateRangeSwitchRequest';
|
155
|
-
import { UpdateRangeSwitchResponse } from './model/UpdateRangeSwitchResponse';
|
156
|
-
import { UpdateReferRequest } from './model/UpdateReferRequest';
|
157
|
-
import { UpdateReferResponse } from './model/UpdateReferResponse';
|
158
|
-
import { UpdateResponseHeaderRequest } from './model/UpdateResponseHeaderRequest';
|
159
|
-
import { UpdateResponseHeaderResponse } from './model/UpdateResponseHeaderResponse';
|
160
|
-
import { UrlAuth } from './model/UrlAuth';
|
161
|
-
import { UrlAuthGetBody } from './model/UrlAuthGetBody';
|
162
|
-
import { UrlObject } from './model/UrlObject';
|
163
|
-
import { Urls } from './model/Urls';
|
164
|
-
import { UserAgentFilter } from './model/UserAgentFilter';
|
165
|
-
|
166
|
-
export class CdnClient {
|
167
|
-
public static newBuilder(): ClientBuilder<CdnClient> {
|
168
|
-
return new ClientBuilder<CdnClient>(newClient);
|
169
|
-
}
|
170
|
-
|
171
|
-
private hcClient: HcClient;
|
172
|
-
public constructor(client: HcClient) {
|
173
|
-
this.hcClient = client;
|
174
|
-
}
|
175
|
-
|
176
|
-
public getPath() {
|
177
|
-
return __dirname;
|
178
|
-
}
|
179
|
-
|
180
|
-
|
181
|
-
/**
|
182
|
-
* 用于删除资源标签。
|
183
|
-
*
|
184
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
185
|
-
*
|
186
|
-
* @summary 删除资源标签配置接口
|
187
|
-
* @param {DeleteTagsRequestBody} batchDeleteTagsRequestBody DeleteTags对象。
|
188
|
-
* @param {*} [options] Override http request option.
|
189
|
-
* @throws {RequiredError}
|
190
|
-
*/
|
191
|
-
public batchDeleteTags(batchDeleteTagsRequest?: BatchDeleteTagsRequest): Promise<BatchDeleteTagsResponse> {
|
192
|
-
const options = ParamCreater().batchDeleteTags(batchDeleteTagsRequest);
|
193
|
-
|
194
|
-
// @ts-ignore
|
195
|
-
options['responseHeaders'] = [''];
|
196
|
-
|
197
|
-
return this.hcClient.sendRequest(options);
|
198
|
-
}
|
199
|
-
|
200
|
-
/**
|
201
|
-
* 创建加速域名。
|
202
|
-
*
|
203
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
204
|
-
*
|
205
|
-
* @summary 创建加速域名
|
206
|
-
* @param {CreateDomainRequestBody} domain This is a auto create Body Object
|
207
|
-
* @param {*} [options] Override http request option.
|
208
|
-
* @throws {RequiredError}
|
209
|
-
*/
|
210
|
-
public createDomain(createDomainRequest?: CreateDomainRequest): Promise<CreateDomainResponse> {
|
211
|
-
const options = ParamCreater().createDomain(createDomainRequest);
|
212
|
-
|
213
|
-
// @ts-ignore
|
214
|
-
options['responseHeaders'] = [''];
|
215
|
-
|
216
|
-
return this.hcClient.sendRequest(options);
|
217
|
-
}
|
218
|
-
|
219
|
-
/**
|
220
|
-
* 创建预热任务。
|
221
|
-
*
|
222
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
223
|
-
*
|
224
|
-
* @summary 创建预热缓存任务
|
225
|
-
* @param {PreheatingTaskRequest} preheatingTask urls: 多个URL之间需要用逗号分隔,目前不支持对目录的预热,单个url的长度限制为4096字符。每个账户每天最多预热1000个URL,单次提交数量不超过1000条。
|
226
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示在当前企业项目下添加缓存预热任务,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
227
|
-
* @param {*} [options] Override http request option.
|
228
|
-
* @throws {RequiredError}
|
229
|
-
*/
|
230
|
-
public createPreheatingTasks(createPreheatingTasksRequest?: CreatePreheatingTasksRequest): Promise<CreatePreheatingTasksResponse> {
|
231
|
-
const options = ParamCreater().createPreheatingTasks(createPreheatingTasksRequest);
|
232
|
-
|
233
|
-
// @ts-ignore
|
234
|
-
options['responseHeaders'] = [''];
|
235
|
-
|
236
|
-
return this.hcClient.sendRequest(options);
|
237
|
-
}
|
238
|
-
|
239
|
-
/**
|
240
|
-
* 创建刷新缓存任务。
|
241
|
-
*
|
242
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
243
|
-
*
|
244
|
-
* @summary 创建刷新缓存任务
|
245
|
-
* @param {RefreshTaskRequest} refreshTask type: 刷新类型,其值可为file 或directory,默认为file; urls: 多个URL之间需用逗号分隔,单个url长度限制为4096字符。每个账户每天最多刷新2000个文件和100个目录,单次提交数量不超过1000条。
|
246
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示在当前企业项目下添加缓存刷新任务,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
247
|
-
* @param {*} [options] Override http request option.
|
248
|
-
* @throws {RequiredError}
|
249
|
-
*/
|
250
|
-
public createRefreshTasks(createRefreshTasksRequest?: CreateRefreshTasksRequest): Promise<CreateRefreshTasksResponse> {
|
251
|
-
const options = ParamCreater().createRefreshTasks(createRefreshTasksRequest);
|
252
|
-
|
253
|
-
// @ts-ignore
|
254
|
-
options['responseHeaders'] = [''];
|
255
|
-
|
256
|
-
return this.hcClient.sendRequest(options);
|
257
|
-
}
|
258
|
-
|
259
|
-
/**
|
260
|
-
* 用于创建资源标签。
|
261
|
-
*
|
262
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
263
|
-
*
|
264
|
-
* @summary 创建资源标签配置接口
|
265
|
-
* @param {CreateTagsRequestBody} createTagsRequestBody CreateTags对象。
|
266
|
-
* @param {*} [options] Override http request option.
|
267
|
-
* @throws {RequiredError}
|
268
|
-
*/
|
269
|
-
public createTags(createTagsRequest?: CreateTagsRequest): Promise<CreateTagsResponse> {
|
270
|
-
const options = ParamCreater().createTags(createTagsRequest);
|
271
|
-
|
272
|
-
// @ts-ignore
|
273
|
-
options['responseHeaders'] = [''];
|
274
|
-
|
275
|
-
return this.hcClient.sendRequest(options);
|
276
|
-
}
|
277
|
-
|
278
|
-
/**
|
279
|
-
* 删除加速域名。
|
280
|
-
*
|
281
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
282
|
-
*
|
283
|
-
* @summary 删除加速域名
|
284
|
-
* @param {string} domainId 加速域名ID。
|
285
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
286
|
-
* @param {*} [options] Override http request option.
|
287
|
-
* @throws {RequiredError}
|
288
|
-
*/
|
289
|
-
public deleteDomain(deleteDomainRequest?: DeleteDomainRequest): Promise<DeleteDomainResponse> {
|
290
|
-
const options = ParamCreater().deleteDomain(deleteDomainRequest);
|
291
|
-
|
292
|
-
// @ts-ignore
|
293
|
-
options['responseHeaders'] = [''];
|
294
|
-
|
295
|
-
return this.hcClient.sendRequest(options);
|
296
|
-
}
|
297
|
-
|
298
|
-
/**
|
299
|
-
* 停用加速域名。
|
300
|
-
*
|
301
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
302
|
-
*
|
303
|
-
* @summary 停用加速域名
|
304
|
-
* @param {string} domainId 加速域名ID。
|
305
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
306
|
-
* @param {*} [options] Override http request option.
|
307
|
-
* @throws {RequiredError}
|
308
|
-
*/
|
309
|
-
public disableDomain(disableDomainRequest?: DisableDomainRequest): Promise<DisableDomainResponse> {
|
310
|
-
const options = ParamCreater().disableDomain(disableDomainRequest);
|
311
|
-
|
312
|
-
// @ts-ignore
|
313
|
-
options['responseHeaders'] = [''];
|
314
|
-
|
315
|
-
return this.hcClient.sendRequest(options);
|
316
|
-
}
|
317
|
-
|
318
|
-
/**
|
319
|
-
* 启用加速域名。
|
320
|
-
*
|
321
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
322
|
-
*
|
323
|
-
* @summary 启用加速域名
|
324
|
-
* @param {string} domainId 加速域名ID。
|
325
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
326
|
-
* @param {*} [options] Override http request option.
|
327
|
-
* @throws {RequiredError}
|
328
|
-
*/
|
329
|
-
public enableDomain(enableDomainRequest?: EnableDomainRequest): Promise<EnableDomainResponse> {
|
330
|
-
const options = ParamCreater().enableDomain(enableDomainRequest);
|
331
|
-
|
332
|
-
// @ts-ignore
|
333
|
-
options['responseHeaders'] = [''];
|
334
|
-
|
335
|
-
return this.hcClient.sendRequest(options);
|
336
|
-
}
|
337
|
-
|
338
|
-
/**
|
339
|
-
* 查询加速域名信息
|
340
|
-
*
|
341
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
342
|
-
*
|
343
|
-
* @summary 查询加速域名
|
344
|
-
* @param {string} [domainName] 加速域名,采用模糊匹配的方式。(长度限制为1-255字符)。
|
345
|
-
* @param {'web' | 'download' | 'video' | 'wholeSite'} [businessType] 加速域名的业务类型。取值: - web(网站加速) - download(文件下载加速) - video(点播加速) - wholeSite(全站加速)
|
346
|
-
* @param {'online' | 'offline' | 'configuring' | 'configure_failed' | 'checking' | 'check_failed' | 'deleting'} [domainStatus] 加速域名状态。取值意义: - online表示“已开启” - offline表示“已停用” - configuring表示“配置中” - configure_failed表示“配置失败” - checking表示“审核中” - check_failed表示“审核未通过” - deleting表示“删除中”。
|
347
|
-
* @param {'mainland_china' | 'outside_mainland_china' | 'global'} [serviceArea] 华为云CDN提供的加速服务范围,包含: - mainland_china 中国大陆 - outside_mainland_china 中国大陆境外 - global 全球。
|
348
|
-
* @param {number} [pageSize] 每页加速域名的数量,取值范围1-10000,不设值时默认值为30。
|
349
|
-
* @param {number} [pageNumber] 查询的页码,即:从哪一页开始查询。取值范围1-65535,不设值时默认值为1。
|
350
|
-
* @param {boolean} [showTags] 展示标签标识 true:不展示 false:展示。
|
351
|
-
* @param {boolean} [exactMatch] 精准匹配 on:开启 off:关闭。
|
352
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
353
|
-
* @param {*} [options] Override http request option.
|
354
|
-
* @throws {RequiredError}
|
355
|
-
*/
|
356
|
-
public listDomains(listDomainsRequest?: ListDomainsRequest): Promise<ListDomainsResponse> {
|
357
|
-
const options = ParamCreater().listDomains(listDomainsRequest);
|
358
|
-
|
359
|
-
// @ts-ignore
|
360
|
-
options['responseHeaders'] = [''];
|
361
|
-
|
362
|
-
return this.hcClient.sendRequest(options);
|
363
|
-
}
|
364
|
-
|
365
|
-
/**
|
366
|
-
* 查询域名已经设置的IP黑白名单。
|
367
|
-
*
|
368
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
369
|
-
*
|
370
|
-
* @summary 查询IP黑白名单
|
371
|
-
* @param {string} domainId 需要查询IP黑白名单的域名id。获取方法请参见查询加速域名。
|
372
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
373
|
-
* @param {*} [options] Override http request option.
|
374
|
-
* @throws {RequiredError}
|
375
|
-
*/
|
376
|
-
public showBlackWhiteList(showBlackWhiteListRequest?: ShowBlackWhiteListRequest): Promise<ShowBlackWhiteListResponse> {
|
377
|
-
const options = ParamCreater().showBlackWhiteList(showBlackWhiteListRequest);
|
378
|
-
|
379
|
-
// @ts-ignore
|
380
|
-
options['responseHeaders'] = [''];
|
381
|
-
|
382
|
-
return this.hcClient.sendRequest(options);
|
383
|
-
}
|
384
|
-
|
385
|
-
/**
|
386
|
-
* 查询缓存规则。
|
387
|
-
*
|
388
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
389
|
-
*
|
390
|
-
* @summary 查询缓存规则
|
391
|
-
* @param {string} domainId 加速域名ID。
|
392
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
393
|
-
* @param {*} [options] Override http request option.
|
394
|
-
* @throws {RequiredError}
|
395
|
-
*/
|
396
|
-
public showCacheRules(showCacheRulesRequest?: ShowCacheRulesRequest): Promise<ShowCacheRulesResponse> {
|
397
|
-
const options = ParamCreater().showCacheRules(showCacheRulesRequest);
|
398
|
-
|
399
|
-
// @ts-ignore
|
400
|
-
options['responseHeaders'] = [''];
|
401
|
-
|
402
|
-
return this.hcClient.sendRequest(options);
|
403
|
-
}
|
404
|
-
|
405
|
-
/**
|
406
|
-
* 查询所有绑定HTTPS证书的域名信息
|
407
|
-
*
|
408
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
409
|
-
*
|
410
|
-
* @summary 查询所有绑定HTTPS证书的域名信息
|
411
|
-
* @param {number} [pageSize] 每页的数量,取值范围1-10000,不设值时默认值为30。
|
412
|
-
* @param {number} [pageNumber] 查询的页码。取值范围1-65535,不设值时默认值为1。
|
413
|
-
* @param {string} [domainName] 加速域名。
|
414
|
-
* @param {string} [userDomainId] 域名所属用户的domain_id。
|
415
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
416
|
-
* @param {*} [options] Override http request option.
|
417
|
-
* @throws {RequiredError}
|
418
|
-
*/
|
419
|
-
public showCertificatesHttpsInfo(showCertificatesHttpsInfoRequest?: ShowCertificatesHttpsInfoRequest): Promise<ShowCertificatesHttpsInfoResponse> {
|
420
|
-
const options = ParamCreater().showCertificatesHttpsInfo(showCertificatesHttpsInfoRequest);
|
421
|
-
|
422
|
-
// @ts-ignore
|
423
|
-
options['responseHeaders'] = [''];
|
424
|
-
|
425
|
-
return this.hcClient.sendRequest(options);
|
426
|
-
}
|
427
|
-
|
428
|
-
/**
|
429
|
-
* 查询加速域名详情。
|
430
|
-
*
|
431
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
432
|
-
*
|
433
|
-
* @summary 查询加速域名详情
|
434
|
-
* @param {string} domainId 加速域名ID。
|
435
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
436
|
-
* @param {*} [options] Override http request option.
|
437
|
-
* @throws {RequiredError}
|
438
|
-
*/
|
439
|
-
public showDomainDetail(showDomainDetailRequest?: ShowDomainDetailRequest): Promise<ShowDomainDetailResponse> {
|
440
|
-
const options = ParamCreater().showDomainDetail(showDomainDetailRequest);
|
441
|
-
|
442
|
-
// @ts-ignore
|
443
|
-
options['responseHeaders'] = [''];
|
444
|
-
|
445
|
-
return this.hcClient.sendRequest(options);
|
446
|
-
}
|
447
|
-
|
448
|
-
/**
|
449
|
-
* 查询域名配置接口,
|
450
|
-
* 支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转。
|
451
|
-
*
|
452
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
453
|
-
*
|
454
|
-
* @summary 查询域名配置接口
|
455
|
-
* @param {string} domainName 加速域名。
|
456
|
-
* @param {string} [enterpriseProjectId] 企业项目ID, all:所有项目。
|
457
|
-
* @param {*} [options] Override http request option.
|
458
|
-
* @throws {RequiredError}
|
459
|
-
*/
|
460
|
-
public showDomainFullConfig(showDomainFullConfigRequest?: ShowDomainFullConfigRequest): Promise<ShowDomainFullConfigResponse> {
|
461
|
-
const options = ParamCreater().showDomainFullConfig(showDomainFullConfigRequest);
|
462
|
-
|
463
|
-
// @ts-ignore
|
464
|
-
options['responseHeaders'] = [''];
|
465
|
-
|
466
|
-
return this.hcClient.sendRequest(options);
|
467
|
-
}
|
468
|
-
|
469
|
-
/**
|
470
|
-
* - 支持查询90天内的数据。
|
471
|
-
* - 查询跨度不能超过7天。
|
472
|
-
* - 最多同时指定100个域名。
|
473
|
-
* - 起始时间和结束时间,左闭右开,需要同时指定。
|
474
|
-
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果传的不是5分钟时刻点,返回数据可能与预期不一致。
|
475
|
-
* - 统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
476
|
-
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
477
|
-
* - 如果传的是多个域名,则每个域名的数据分开返回。
|
478
|
-
* - 支持同时查询多个指标,不超过10个。
|
479
|
-
*
|
480
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
481
|
-
*
|
482
|
-
* @summary 批量查询域名的统计明细-按域名单独返回
|
483
|
-
* @param {number} startTime 查询起始时间戳,必须设为5分钟整时刻点
|
484
|
-
* @param {number} endTime 查询结束时间戳,必须设为5分钟整时刻点
|
485
|
-
* @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com,all表示查询名下全部域名
|
486
|
-
* @param {string} statType 网络资源消耗: - bw(带宽) - flux(流量) - bs_bw(回源带宽) - bs_flux(回源流量) 访问情况: - req_num(请求总数) - hit_num(请求命中次数) - bs_num(回源总数) - bs_fail_num(回源失败数) - hit_flux(命中流量) HTTP状态码(组合指标): - http_code_2xx(状态码汇总2xx) - http_code_3xx(状态码汇总3xx) - http_code_4xx(状态码汇总4xx) - http_code_5xx(状态码汇总5xx) - bs_http_code_2xx(回源状态码汇总2xx) - bs_http_code_3xx(回源状态码汇总3xx) - bs_http_code_4xx(回源状态码汇总4xx) - bs_http_code_5xx(回源状态码汇总5xx) - status_code_2xx(状态码详情2xx) - status_code_3xx(状态码详情3xx) - status_code_4xx(状态码详情4xx) - status_code_5xx(状态码详情5xx) - bs_status_code_2xx(回源状态码详情2xx) - bs_status_code_3xx(回源状态码详情3xx) - bs_status_code_4xx(回源状态码详情4xx) - bs_status_code_5xx(回源状态码详情5xx) - status_code和bs_status_code不能一起查询,否则数据会不准确,status_code不支持指定服务区域
|
487
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,不传表示查询默认项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
488
|
-
* @param {string} [serviceArea] mainland_china(中国大陆),outside_mainland_china(中国大陆境外),默认为mainland_china。
|
489
|
-
* @param {*} [options] Override http request option.
|
490
|
-
* @throws {RequiredError}
|
491
|
-
*/
|
492
|
-
public showDomainItemDetails(showDomainItemDetailsRequest?: ShowDomainItemDetailsRequest): Promise<ShowDomainItemDetailsResponse> {
|
493
|
-
const options = ParamCreater().showDomainItemDetails(showDomainItemDetailsRequest);
|
494
|
-
|
495
|
-
// @ts-ignore
|
496
|
-
options['responseHeaders'] = [''];
|
497
|
-
|
498
|
-
return this.hcClient.sendRequest(options);
|
499
|
-
}
|
500
|
-
|
501
|
-
/**
|
502
|
-
* - 支持查询90天内的数据。
|
503
|
-
* - 查询跨度是7天。
|
504
|
-
* - 最多同时指定100个域名。
|
505
|
-
* - 起始时间和结束时间,左闭右开,需要同时指定。
|
506
|
-
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果传的不是5分钟时刻点,返回数据可能与预期不一致。
|
507
|
-
* - 统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
508
|
-
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类指标单位统一为次数。
|
509
|
-
* - 用于查询指定域名、指定统计指标的明细数据。
|
510
|
-
* - 如果传的是多个域名,则每个域名的数据分开返回。
|
511
|
-
* - 支持按区域、运营商维度查询统计数据, 回源指标除外。
|
512
|
-
* - 支持同时查询多个指标,不超过10个。
|
513
|
-
* - 域名为海外加速场景不适用。
|
514
|
-
*
|
515
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
516
|
-
*
|
517
|
-
* @summary 批量查询域名的区域、运营商统计明细-按域名单独返回
|
518
|
-
* @param {number} startTime 查询开始时间戳,必须设为5分钟整时刻点
|
519
|
-
* @param {number} endTime 查询结束时间戳,必须设为5分钟整时刻点
|
520
|
-
* @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com,all表示查询名下全部域名
|
521
|
-
* @param {string} statType 指标类型列表 网络资源消耗:bw(带宽),flux(流量),ipv6_bw(ipv6带宽),ipv6_flux(ipv6流量), https_bw(https带宽),https_flux(https流量) 访问情况:req_num(请求总数),hit_num(请求命中次数),req_time(请求时长) HTTP状态码(组合指标):status_code_2xx(状态码2xx),status_code_3xx(状态码3xx),status_code_4xx(状态码4xx),status_code_5xx(状态码5xx)
|
522
|
-
* @param {string} region 区域列表,以逗号分隔,all表示查询全部区域
|
523
|
-
* @param {string} isp 运营商列表,以逗号分隔,all表示查询全部运营商
|
524
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,不传表示查询默认项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
525
|
-
* @param {*} [options] Override http request option.
|
526
|
-
* @throws {RequiredError}
|
527
|
-
*/
|
528
|
-
public showDomainItemLocationDetails(showDomainItemLocationDetailsRequest?: ShowDomainItemLocationDetailsRequest): Promise<ShowDomainItemLocationDetailsResponse> {
|
529
|
-
const options = ParamCreater().showDomainItemLocationDetails(showDomainItemLocationDetailsRequest);
|
530
|
-
|
531
|
-
// @ts-ignore
|
532
|
-
options['responseHeaders'] = [''];
|
533
|
-
|
534
|
-
return this.hcClient.sendRequest(options);
|
535
|
-
}
|
536
|
-
|
537
|
-
/**
|
538
|
-
* - 支持查询90天内的数据。
|
539
|
-
*
|
540
|
-
* - 支持多指标同时查询,不超过5个。
|
541
|
-
*
|
542
|
-
* - 最多同时指定20个域名。
|
543
|
-
*
|
544
|
-
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
545
|
-
*
|
546
|
-
* - action取值:location_detail,location_summary
|
547
|
-
*
|
548
|
-
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。
|
549
|
-
*
|
550
|
-
* - 单租户调用频率:15次/s。
|
551
|
-
*
|
552
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
553
|
-
*
|
554
|
-
* @summary 按区域运营商查询域名统计数据
|
555
|
-
* @param {string} action - 动作名称,可选location_summary、location_detail。 - location_summary:查询汇总数据 - location_detail:查询数据详情。
|
556
|
-
* @param {number} startTime - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
|
557
|
-
* @param {number} endTime - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
|
558
|
-
* @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com,all表示查询名下全部域名。
|
559
|
-
* @param {string} statType - 网络资源消耗 - bw(带宽) - flux(流量) - 访问情况 - req_num(请求总数) - HTTP状态码(组合指标) - http_code_2xx(状态码汇总2xx) - http_code_3xx(状态码汇总3xx) - http_code_4xx(状态码汇总4xx) - http_code_5xx(状态码汇总5xx) - status_code_2xx(状态码详情2xx) - status_code_3xx(状态码详情3xx) - status_code_4xx(状态码详情4xx) - status_code_5xx(状态码详情5xx)
|
560
|
-
* @param {number} [interval] - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
|
561
|
-
* @param {string} [groupBy] 数据分组方式,多个以英文逗号分隔,可选domain、country、province、isp,默认不分组。
|
562
|
-
* @param {string} [country] 国家编码,多个以英文逗号分隔,all表示全部,取值见附录。
|
563
|
-
* @param {string} [province] 省份编码,当country为cn(中国)时有效,多个以英文逗号分隔,all表示全部,取值见附录。
|
564
|
-
* @param {string} [isp] 运营商编码,多个以英文逗号分隔,all表示全部,取值见附录。
|
565
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
566
|
-
* @param {*} [options] Override http request option.
|
567
|
-
* @throws {RequiredError}
|
568
|
-
*/
|
569
|
-
public showDomainLocationStats(showDomainLocationStatsRequest?: ShowDomainLocationStatsRequest): Promise<ShowDomainLocationStatsResponse> {
|
570
|
-
const options = ParamCreater().showDomainLocationStats(showDomainLocationStatsRequest);
|
571
|
-
|
572
|
-
// @ts-ignore
|
573
|
-
options['responseHeaders'] = [''];
|
574
|
-
|
575
|
-
return this.hcClient.sendRequest(options);
|
576
|
-
}
|
577
|
-
|
578
|
-
/**
|
579
|
-
* - 支持查询90天内的数据。
|
580
|
-
*
|
581
|
-
* - 支持多指标同时查询,不超过5个。
|
582
|
-
*
|
583
|
-
* - 最多同时指定20个域名。
|
584
|
-
*
|
585
|
-
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
586
|
-
*
|
587
|
-
* - action取值:detail,summary
|
588
|
-
*
|
589
|
-
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
590
|
-
*
|
591
|
-
* - 单租户调用频率:15次/s。
|
592
|
-
*
|
593
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
594
|
-
*
|
595
|
-
* @summary 查询域名统计数据
|
596
|
-
* @param {string} action - 动作名称,可选summary、detail。 - summary:查询汇总数据 - detail:查询数据详情。
|
597
|
-
* @param {number} startTime - 查询起始时间戳,需与结束时间戳同时指定,左闭右开,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
|
598
|
-
* @param {number} endTime - 查询结束时间戳,需与开始时间戳同时指定,左闭右开,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
|
599
|
-
* @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com,all表示查询名下全部域名。
|
600
|
-
* @param {string} statType - 网络资源消耗: - bw(带宽) - flux(流量) - bs_bw(回源带宽) - bs_flux(回源流量) - 访问情况: - req_num(请求总数) - hit_num(请求命中次数) - bs_num(回源总数) - bs_fail_num(回源失败数) - hit_flux(命中流量) - HTTP状态码(组合指标): - http_code_2xx(状态码汇总2xx) - http_code_3xx(状态码汇总3xx) - http_code_4xx(状态码汇总4xx) - http_code_5xx(状态码汇总5xx) - bs_http_code_2xx(回源状态码汇总2xx) - bs_http_code_3xx(回源状态码汇总3xx) - bs_http_code_4xx(回源状态码汇总4xx) - bs_http_code_5xx(回源状态码汇总5xx) - status_code_2xx(状态码详情2xx) - status_code_3xx(状态码详情3xx) - status_code_4xx(状态码详情4xx) - status_code_5xx(状态码详情5xx) - bs_status_code_2xx(回源状态码详情2xx) - bs_status_code_3xx(回源状态码详情3xx) - bs_status_code_4xx(回源状态码详情4xx) - bs_status_code_5xx(回源状态码详情5xx) - status_code和bs_status_code不能一起查询
|
601
|
-
* @param {number} [interval] - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
|
602
|
-
* @param {string} [groupBy] 数据分组方式,可选domain,默认不分组。
|
603
|
-
* @param {string} [serviceArea] 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。
|
604
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
605
|
-
* @param {*} [options] Override http request option.
|
606
|
-
* @throws {RequiredError}
|
607
|
-
*/
|
608
|
-
public showDomainStats(showDomainStatsRequest?: ShowDomainStatsRequest): Promise<ShowDomainStatsResponse> {
|
609
|
-
const options = ParamCreater().showDomainStats(showDomainStatsRequest);
|
610
|
-
|
611
|
-
// @ts-ignore
|
612
|
-
options['responseHeaders'] = [''];
|
613
|
-
|
614
|
-
return this.hcClient.sendRequest(options);
|
615
|
-
}
|
616
|
-
|
617
|
-
/**
|
618
|
-
* 查询刷新预热任务详情。
|
619
|
-
*
|
620
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
621
|
-
*
|
622
|
-
* @summary 查询刷新预热任务详情
|
623
|
-
* @param {string} historyTasksId 刷新任务ID。
|
624
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
625
|
-
* @param {number} [pageSize] 刷新预热的urls所显示单页最大数量,取值范围为1-10000。page_size和page_number必须同时传值。默认值30。
|
626
|
-
* @param {number} [pageNumber] 刷新预热的urls当前查询为第几页,取值范围为1-65535。默认值1。
|
627
|
-
* @param {string} [status] url的状态 processing 处理中,succeed 完成,failed 失败,waiting 等待,refreshing 刷新中,preheating 预热中。
|
628
|
-
* @param {string} [url] url的地址。
|
629
|
-
* @param {number} [createTime] 刷新预热任务的创建时间。不传参默认为查询7天内的任务。最长可查询15天内数据。
|
630
|
-
* @param {*} [options] Override http request option.
|
631
|
-
* @throws {RequiredError}
|
632
|
-
*/
|
633
|
-
public showHistoryTaskDetails(showHistoryTaskDetailsRequest?: ShowHistoryTaskDetailsRequest): Promise<ShowHistoryTaskDetailsResponse> {
|
634
|
-
const options = ParamCreater().showHistoryTaskDetails(showHistoryTaskDetailsRequest);
|
635
|
-
|
636
|
-
// @ts-ignore
|
637
|
-
options['responseHeaders'] = [''];
|
638
|
-
|
639
|
-
return this.hcClient.sendRequest(options);
|
640
|
-
}
|
641
|
-
|
642
|
-
/**
|
643
|
-
* 查询刷新预热任务。
|
644
|
-
*
|
645
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
646
|
-
*
|
647
|
-
* @summary 查询刷新预热任务
|
648
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
649
|
-
* @param {number} [pageSize] 单页最大数量,取值范围为1-10000。page_size和page_number必须同时传值。默认值30。
|
650
|
-
* @param {number} [pageNumber] 当前查询第几页,取值范围为1-65535。默认值1。
|
651
|
-
* @param {'task_inprocess' | 'task_done'} [status] 任务状态。 task_inprocess 表示任务处理中,task_done表示任务完成。
|
652
|
-
* @param {number} [startDate] 查询起始时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。
|
653
|
-
* @param {number} [endDate] 查询结束时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。
|
654
|
-
* @param {string} [orderField] 用来排序的字段,支持的字段有“task_type”,“total”,“processing”, “succeed”,“failed”,“create_time”。order_field和order_type必须同时传值,否则使用默认值\"create_time\" 和 \"desc\"。
|
655
|
-
* @param {string} [orderType] desc 或者asc。默认值desc。
|
656
|
-
* @param {'file' | 'directory'} [fileType] 默认是文件file。file:文件,directory:目录。
|
657
|
-
* @param {*} [options] Override http request option.
|
658
|
-
* @throws {RequiredError}
|
659
|
-
*/
|
660
|
-
public showHistoryTasks(showHistoryTasksRequest?: ShowHistoryTasksRequest): Promise<ShowHistoryTasksResponse> {
|
661
|
-
const options = ParamCreater().showHistoryTasks(showHistoryTasksRequest);
|
662
|
-
|
663
|
-
// @ts-ignore
|
664
|
-
options['responseHeaders'] = [''];
|
665
|
-
|
666
|
-
return this.hcClient.sendRequest(options);
|
667
|
-
}
|
668
|
-
|
669
|
-
/**
|
670
|
-
* 获取加速域名证书。
|
671
|
-
*
|
672
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
673
|
-
*
|
674
|
-
* @summary 查询HTTPS配置
|
675
|
-
* @param {string} domainId 加速域名ID。
|
676
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
677
|
-
* @param {*} [options] Override http request option.
|
678
|
-
* @throws {RequiredError}
|
679
|
-
*/
|
680
|
-
public showHttpInfo(showHttpInfoRequest?: ShowHttpInfoRequest): Promise<ShowHttpInfoResponse> {
|
681
|
-
const options = ParamCreater().showHttpInfo(showHttpInfoRequest);
|
682
|
-
|
683
|
-
// @ts-ignore
|
684
|
-
options['responseHeaders'] = [''];
|
685
|
-
|
686
|
-
return this.hcClient.sendRequest(options);
|
687
|
-
}
|
688
|
-
|
689
|
-
/**
|
690
|
-
* 查询IP归属信息。
|
691
|
-
*
|
692
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
693
|
-
*
|
694
|
-
* @summary 查询IP归属信息
|
695
|
-
* @param {string} ips IP地址列表,以“,”分割,最多20个。
|
696
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
697
|
-
* @param {*} [options] Override http request option.
|
698
|
-
* @throws {RequiredError}
|
699
|
-
*/
|
700
|
-
public showIpInfo(showIpInfoRequest?: ShowIpInfoRequest): Promise<ShowIpInfoResponse> {
|
701
|
-
const options = ParamCreater().showIpInfo(showIpInfoRequest);
|
702
|
-
|
703
|
-
// @ts-ignore
|
704
|
-
options['responseHeaders'] = [''];
|
705
|
-
|
706
|
-
return this.hcClient.sendRequest(options);
|
707
|
-
}
|
708
|
-
|
709
|
-
/**
|
710
|
-
* 查询日志下载链接,支持查询30天内的日志信息。
|
711
|
-
*
|
712
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
713
|
-
*
|
714
|
-
* @summary 日志查询
|
715
|
-
* @param {string} domainName 只支持单个域名,如:www.test1.com。
|
716
|
-
* @param {number} [startTime] 查询开始时间,时间格式为整点毫秒时间戳,此参数传空值时默认为当天0点。
|
717
|
-
* @param {number} [endTime] 查询结束时间(不包含结束时间),时间格式为整点毫秒时间戳,与开始时间的最大跨度为30天,此参数传空值时默认为开始时间加1天。
|
718
|
-
* @param {number} [pageSize] 单页最大数量,取值范围为1-10000。
|
719
|
-
* @param {number} [pageNumber] 当前查询第几页,取值范围为1-65535。
|
720
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
721
|
-
* @param {*} [options] Override http request option.
|
722
|
-
* @throws {RequiredError}
|
723
|
-
*/
|
724
|
-
public showLogs(showLogsRequest?: ShowLogsRequest): Promise<ShowLogsResponse> {
|
725
|
-
const options = ParamCreater().showLogs(showLogsRequest);
|
726
|
-
|
727
|
-
// @ts-ignore
|
728
|
-
options['responseHeaders'] = [''];
|
729
|
-
|
730
|
-
return this.hcClient.sendRequest(options);
|
731
|
-
}
|
732
|
-
|
733
|
-
/**
|
734
|
-
* 查询回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。
|
735
|
-
*
|
736
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
737
|
-
*
|
738
|
-
* @summary 查询回源HOST
|
739
|
-
* @param {string} domainId 加速域名ID。
|
740
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
741
|
-
* @param {*} [options] Override http request option.
|
742
|
-
* @throws {RequiredError}
|
743
|
-
*/
|
744
|
-
public showOriginHost(showOriginHostRequest?: ShowOriginHostRequest): Promise<ShowOriginHostResponse> {
|
745
|
-
const options = ParamCreater().showOriginHost(showOriginHostRequest);
|
746
|
-
|
747
|
-
// @ts-ignore
|
748
|
-
options['responseHeaders'] = [''];
|
749
|
-
|
750
|
-
return this.hcClient.sendRequest(options);
|
751
|
-
}
|
752
|
-
|
753
|
-
/**
|
754
|
-
* 查询当前用户域名、刷新文件、刷新目录和预热的配额
|
755
|
-
*
|
756
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
757
|
-
*
|
758
|
-
* @summary 查询用户配额
|
759
|
-
* @param {*} [options] Override http request option.
|
760
|
-
* @throws {RequiredError}
|
761
|
-
*/
|
762
|
-
public showQuota(): Promise<ShowQuotaResponse> {
|
763
|
-
const options = ParamCreater().showQuota();
|
764
|
-
|
765
|
-
// @ts-ignore
|
766
|
-
options['responseHeaders'] = [''];
|
767
|
-
|
768
|
-
return this.hcClient.sendRequest(options);
|
769
|
-
}
|
770
|
-
|
771
|
-
/**
|
772
|
-
* 查询Referer过滤规则。
|
773
|
-
*
|
774
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
775
|
-
*
|
776
|
-
* @summary 查询Referer过滤规则
|
777
|
-
* @param {string} domainId 加速域名ID。
|
778
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
779
|
-
* @param {*} [options] Override http request option.
|
780
|
-
* @throws {RequiredError}
|
781
|
-
*/
|
782
|
-
public showRefer(showReferRequest?: ShowReferRequest): Promise<ShowReferResponse> {
|
783
|
-
const options = ParamCreater().showRefer(showReferRequest);
|
784
|
-
|
785
|
-
// @ts-ignore
|
786
|
-
options['responseHeaders'] = [''];
|
787
|
-
|
788
|
-
return this.hcClient.sendRequest(options);
|
789
|
-
}
|
790
|
-
|
791
|
-
/**
|
792
|
-
* 列举header所有配置。
|
793
|
-
*
|
794
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
795
|
-
*
|
796
|
-
* @summary 查询响应头配置
|
797
|
-
* @param {string} domainId 加速域名ID。
|
798
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
799
|
-
* @param {*} [options] Override http request option.
|
800
|
-
* @throws {RequiredError}
|
801
|
-
*/
|
802
|
-
public showResponseHeader(showResponseHeaderRequest?: ShowResponseHeaderRequest): Promise<ShowResponseHeaderResponse> {
|
803
|
-
const options = ParamCreater().showResponseHeader(showResponseHeaderRequest);
|
804
|
-
|
805
|
-
// @ts-ignore
|
806
|
-
options['responseHeaders'] = [''];
|
807
|
-
|
808
|
-
return this.hcClient.sendRequest(options);
|
809
|
-
}
|
810
|
-
|
811
|
-
/**
|
812
|
-
* 用于查询资源标签列表。
|
813
|
-
*
|
814
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
815
|
-
*
|
816
|
-
* @summary 查询资源标签列表配置接口
|
817
|
-
* @param {string} resourceId 资源id。 > 域名ID
|
818
|
-
* @param {*} [options] Override http request option.
|
819
|
-
* @throws {RequiredError}
|
820
|
-
*/
|
821
|
-
public showTags(showTagsRequest?: ShowTagsRequest): Promise<ShowTagsResponse> {
|
822
|
-
const options = ParamCreater().showTags(showTagsRequest);
|
823
|
-
|
824
|
-
// @ts-ignore
|
825
|
-
options['responseHeaders'] = [''];
|
826
|
-
|
827
|
-
return this.hcClient.sendRequest(options);
|
828
|
-
}
|
829
|
-
|
830
|
-
/**
|
831
|
-
* - 查询TOP100 URL明细。
|
832
|
-
*
|
833
|
-
* - 支持查询90天内的数据。
|
834
|
-
*
|
835
|
-
* - 查询跨度不能超过31天。
|
836
|
-
*
|
837
|
-
* - 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00
|
838
|
-
* 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。
|
839
|
-
*
|
840
|
-
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。
|
841
|
-
*
|
842
|
-
* - 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
843
|
-
*
|
844
|
-
* - 单租户调用频率:5次/s。
|
845
|
-
*
|
846
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
847
|
-
*
|
848
|
-
* @summary 查询TOP100 URL明细
|
849
|
-
* @param {number} startTime 查询起始时间戳(单位:毫秒)。该时间戳的取值在转化为日期格式后须满足以下格式:XXXX-XX-XX 00:00:00
|
850
|
-
* @param {number} endTime 查询结束时间戳(单位:毫秒)。该时间戳的取值在转化为日期格式后须满足以下格式:XXXX-XX-XX 00:00:00
|
851
|
-
* @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com ,ALL表示查询名下全部域名。
|
852
|
-
* @param {'flux' | 'req_num'} statType 参数类型支持:flux(流量),req_num(请求总数)。
|
853
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
854
|
-
* @param {'mainland_china' | 'outside_mainland_china'} [serviceArea] mainland_china(中国大陆),outside_mainland_china(中国大陆境外),默认为mainland_china。
|
855
|
-
* @param {*} [options] Override http request option.
|
856
|
-
* @throws {RequiredError}
|
857
|
-
*/
|
858
|
-
public showTopUrl(showTopUrlRequest?: ShowTopUrlRequest): Promise<ShowTopUrlResponse> {
|
859
|
-
const options = ParamCreater().showTopUrl(showTopUrlRequest);
|
860
|
-
|
861
|
-
// @ts-ignore
|
862
|
-
options['responseHeaders'] = [''];
|
863
|
-
|
864
|
-
return this.hcClient.sendRequest(options);
|
865
|
-
}
|
866
|
-
|
867
|
-
/**
|
868
|
-
* 查询刷新预热URL记录。如需此接口,请提交工单开通
|
869
|
-
*
|
870
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
871
|
-
*
|
872
|
-
* @summary 查询刷新预热URL记录
|
873
|
-
* @param {number} [startTime] 起始时间戳(毫秒),默认当天00:00
|
874
|
-
* @param {number} [endTime] 结束时间戳(毫秒),默认次日00:00
|
875
|
-
* @param {number} [offset] 偏移量
|
876
|
-
* @param {number} [limit] 单次查询数据条数,上限为100
|
877
|
-
* @param {string} [url] 刷新预热url
|
878
|
-
* @param {string} [taskType] 任务类型,REFRESH:刷新任务;PREHEATING:预热任务
|
879
|
-
* @param {string} [status] url状态,状态类型:processing:处理中;succeed:完成;failed:失败;waiting:等待;refreshing:刷新中; preheating : 预热中
|
880
|
-
* @param {string} [fileType] 文件类型,file:文件;directory:目录
|
881
|
-
* @param {*} [options] Override http request option.
|
882
|
-
* @throws {RequiredError}
|
883
|
-
*/
|
884
|
-
public showUrlTaskInfo(showUrlTaskInfoRequest?: ShowUrlTaskInfoRequest): Promise<ShowUrlTaskInfoResponse> {
|
885
|
-
const options = ParamCreater().showUrlTaskInfo(showUrlTaskInfoRequest);
|
886
|
-
|
887
|
-
// @ts-ignore
|
888
|
-
options['responseHeaders'] = ['X-request-id'];
|
889
|
-
|
890
|
-
return this.hcClient.sendRequest(options);
|
891
|
-
}
|
892
|
-
|
893
|
-
/**
|
894
|
-
* 设置域名的IP黑白名单。
|
895
|
-
*
|
896
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
897
|
-
*
|
898
|
-
* @summary 设置IP黑白名单
|
899
|
-
* @param {string} domainId 需要设置IP黑白名单的域名id。获取方法请参见查询加速域名。
|
900
|
-
* @param {BlackWhiteListBody} blackWhiteListBody This is a auto Body Object
|
901
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
902
|
-
* @param {*} [options] Override http request option.
|
903
|
-
* @throws {RequiredError}
|
904
|
-
*/
|
905
|
-
public updateBlackWhiteList(updateBlackWhiteListRequest?: UpdateBlackWhiteListRequest): Promise<UpdateBlackWhiteListResponse> {
|
906
|
-
const options = ParamCreater().updateBlackWhiteList(updateBlackWhiteListRequest);
|
907
|
-
|
908
|
-
// @ts-ignore
|
909
|
-
options['responseHeaders'] = [''];
|
910
|
-
|
911
|
-
return this.hcClient.sendRequest(options);
|
912
|
-
}
|
913
|
-
|
914
|
-
/**
|
915
|
-
* 设置CDN节点上缓存资源的缓存策略。
|
916
|
-
*
|
917
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
918
|
-
*
|
919
|
-
* @summary 设置缓存规则
|
920
|
-
* @param {string} domainId 加速域名ID。
|
921
|
-
* @param {CacheConfigRequestBody} cacheConfig This is a auto create Body Object
|
922
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
923
|
-
* @param {*} [options] Override http request option.
|
924
|
-
* @throws {RequiredError}
|
925
|
-
*/
|
926
|
-
public updateCacheRules(updateCacheRulesRequest?: UpdateCacheRulesRequest): Promise<UpdateCacheRulesResponse> {
|
927
|
-
const options = ParamCreater().updateCacheRules(updateCacheRulesRequest);
|
928
|
-
|
929
|
-
// @ts-ignore
|
930
|
-
options['responseHeaders'] = [''];
|
931
|
-
|
932
|
-
return this.hcClient.sendRequest(options);
|
933
|
-
}
|
934
|
-
|
935
|
-
/**
|
936
|
-
* 修改域名配置接口,
|
937
|
-
* 支持修改回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转。
|
938
|
-
*
|
939
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
940
|
-
*
|
941
|
-
* @summary 修改域名全量配置接口
|
942
|
-
* @param {string} domainName 加速域名
|
943
|
-
* @param {ModifyDomainConfigRequestBody} configs configs对象。
|
944
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。 > 当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
945
|
-
* @param {*} [options] Override http request option.
|
946
|
-
* @throws {RequiredError}
|
947
|
-
*/
|
948
|
-
public updateDomainFullConfig(updateDomainFullConfigRequest?: UpdateDomainFullConfigRequest): Promise<UpdateDomainFullConfigResponse> {
|
949
|
-
const options = ParamCreater().updateDomainFullConfig(updateDomainFullConfigRequest);
|
950
|
-
|
951
|
-
// @ts-ignore
|
952
|
-
options['responseHeaders'] = [''];
|
953
|
-
|
954
|
-
return this.hcClient.sendRequest(options);
|
955
|
-
}
|
956
|
-
|
957
|
-
/**
|
958
|
-
* 一个证书配置多个域名,设置域名强制https回源参数。
|
959
|
-
*
|
960
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
961
|
-
*
|
962
|
-
* @summary 一个证书批量设置多个域名
|
963
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
964
|
-
* @param {UpdateDomainMultiCertificatesRequestBody} [https] https配置。
|
965
|
-
* @param {*} [options] Override http request option.
|
966
|
-
* @throws {RequiredError}
|
967
|
-
*/
|
968
|
-
public updateDomainMultiCertificates(updateDomainMultiCertificatesRequest?: UpdateDomainMultiCertificatesRequest): Promise<UpdateDomainMultiCertificatesResponse> {
|
969
|
-
const options = ParamCreater().updateDomainMultiCertificates(updateDomainMultiCertificatesRequest);
|
970
|
-
|
971
|
-
// @ts-ignore
|
972
|
-
options['responseHeaders'] = [''];
|
973
|
-
|
974
|
-
return this.hcClient.sendRequest(options);
|
975
|
-
}
|
976
|
-
|
977
|
-
/**
|
978
|
-
* 修改加速域名的源站配置。
|
979
|
-
*
|
980
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
981
|
-
*
|
982
|
-
* @summary 修改源站信息。
|
983
|
-
* @param {string} domainId 加速域名ID。
|
984
|
-
* @param {OriginRequest} origin This is a auto create Body Object
|
985
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
986
|
-
* @param {*} [options] Override http request option.
|
987
|
-
* @throws {RequiredError}
|
988
|
-
*/
|
989
|
-
public updateDomainOrigin(updateDomainOriginRequest?: UpdateDomainOriginRequest): Promise<UpdateDomainOriginResponse> {
|
990
|
-
const options = ParamCreater().updateDomainOrigin(updateDomainOriginRequest);
|
991
|
-
|
992
|
-
// @ts-ignore
|
993
|
-
options['responseHeaders'] = [''];
|
994
|
-
|
995
|
-
return this.hcClient.sendRequest(options);
|
996
|
-
}
|
997
|
-
|
998
|
-
/**
|
999
|
-
* 开启此项配置后,当CDN节点回源请求源站返回301/302状态码时,CDN节点会先跳转到301/302对应地址获取资源并缓存后再返回给用户。
|
1000
|
-
*
|
1001
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1002
|
-
*
|
1003
|
-
* @summary 开启/关闭回源跟随
|
1004
|
-
* @param {string} domainId 加速域名id。
|
1005
|
-
* @param {Follow302StatusRequest} followStatus This is a auto create Body Object
|
1006
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
1007
|
-
* @param {*} [options] Override http request option.
|
1008
|
-
* @throws {RequiredError}
|
1009
|
-
*/
|
1010
|
-
public updateFollow302Switch(updateFollow302SwitchRequest?: UpdateFollow302SwitchRequest): Promise<UpdateFollow302SwitchResponse> {
|
1011
|
-
const options = ParamCreater().updateFollow302Switch(updateFollow302SwitchRequest);
|
1012
|
-
|
1013
|
-
// @ts-ignore
|
1014
|
-
options['responseHeaders'] = [''];
|
1015
|
-
|
1016
|
-
return this.hcClient.sendRequest(options);
|
1017
|
-
}
|
1018
|
-
|
1019
|
-
/**
|
1020
|
-
* 设置加速域名HTTPS。通过配置加速域名的HTTPS证书,并将其部署在全网CDN节点,实现HTTPS安全加速。
|
1021
|
-
*
|
1022
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1023
|
-
*
|
1024
|
-
* @summary 配置HTTPS
|
1025
|
-
* @param {string} domainId 加速域名ID。
|
1026
|
-
* @param {HttpInfoRequest} https https配置。
|
1027
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
1028
|
-
* @param {*} [options] Override http request option.
|
1029
|
-
* @throws {RequiredError}
|
1030
|
-
*/
|
1031
|
-
public updateHttpsInfo(updateHttpsInfoRequest?: UpdateHttpsInfoRequest): Promise<UpdateHttpsInfoResponse> {
|
1032
|
-
const options = ParamCreater().updateHttpsInfo(updateHttpsInfoRequest);
|
1033
|
-
|
1034
|
-
// @ts-ignore
|
1035
|
-
options['responseHeaders'] = [''];
|
1036
|
-
|
1037
|
-
return this.hcClient.sendRequest(options);
|
1038
|
-
}
|
1039
|
-
|
1040
|
-
/**
|
1041
|
-
* 修改回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。
|
1042
|
-
*
|
1043
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1044
|
-
*
|
1045
|
-
* @summary 修改回源HOST。
|
1046
|
-
* @param {string} domainId 加速域名ID。
|
1047
|
-
* @param {OriginHostRequest} originHost This is a auto create Body Object
|
1048
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
1049
|
-
* @param {*} [options] Override http request option.
|
1050
|
-
* @throws {RequiredError}
|
1051
|
-
*/
|
1052
|
-
public updateOriginHost(updateOriginHostRequest?: UpdateOriginHostRequest): Promise<UpdateOriginHostResponse> {
|
1053
|
-
const options = ParamCreater().updateOriginHost(updateOriginHostRequest);
|
1054
|
-
|
1055
|
-
// @ts-ignore
|
1056
|
-
options['responseHeaders'] = [''];
|
1057
|
-
|
1058
|
-
return this.hcClient.sendRequest(options);
|
1059
|
-
}
|
1060
|
-
|
1061
|
-
/**
|
1062
|
-
* 修改私有桶开启关闭状态。
|
1063
|
-
*
|
1064
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1065
|
-
*
|
1066
|
-
* @summary 修改私有桶开启关闭状态
|
1067
|
-
* @param {string} domainId 加速域名id。
|
1068
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
1069
|
-
* @param {UpdatePrivateBucketAccessBody} [status] 桶开启关闭状态(true:开启;false:关闭),默认为关闭
|
1070
|
-
* @param {*} [options] Override http request option.
|
1071
|
-
* @throws {RequiredError}
|
1072
|
-
*/
|
1073
|
-
public updatePrivateBucketAccess(updatePrivateBucketAccessRequest?: UpdatePrivateBucketAccessRequest): Promise<UpdatePrivateBucketAccessResponse> {
|
1074
|
-
const options = ParamCreater().updatePrivateBucketAccess(updatePrivateBucketAccessRequest);
|
1075
|
-
|
1076
|
-
// @ts-ignore
|
1077
|
-
options['responseHeaders'] = [''];
|
1078
|
-
|
1079
|
-
return this.hcClient.sendRequest(options);
|
1080
|
-
}
|
1081
|
-
|
1082
|
-
/**
|
1083
|
-
* Range回源是指源站在收到CDN节点回源请求时,根据http请求头中的Range信息返回指定范围的数据给CDN节点。
|
1084
|
-
*
|
1085
|
-
* 开启Range回源前需要确认源站是否支持Range请求,若源站不支持Range请求,开启Range回源将导致资源无法缓存。
|
1086
|
-
*
|
1087
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1088
|
-
*
|
1089
|
-
* @summary 开启/关闭Range回源
|
1090
|
-
* @param {string} domainId 加速域名id。
|
1091
|
-
* @param {RangeStatusRequest} rangeStatus range状态(\"off\"/\"on\")
|
1092
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
1093
|
-
* @param {*} [options] Override http request option.
|
1094
|
-
* @throws {RequiredError}
|
1095
|
-
*/
|
1096
|
-
public updateRangeSwitch(updateRangeSwitchRequest?: UpdateRangeSwitchRequest): Promise<UpdateRangeSwitchResponse> {
|
1097
|
-
const options = ParamCreater().updateRangeSwitch(updateRangeSwitchRequest);
|
1098
|
-
|
1099
|
-
// @ts-ignore
|
1100
|
-
options['responseHeaders'] = [''];
|
1101
|
-
|
1102
|
-
return this.hcClient.sendRequest(options);
|
1103
|
-
}
|
1104
|
-
|
1105
|
-
/**
|
1106
|
-
* 设置Referer过滤规则。通过设置过滤策略,对访问者身份进行识别和过滤,实现限制访问来源的目的。
|
1107
|
-
*
|
1108
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1109
|
-
*
|
1110
|
-
* @summary 设置Referer过滤规则
|
1111
|
-
* @param {string} domainId 加速域名ID。
|
1112
|
-
* @param {RefererBody} refer
|
1113
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
1114
|
-
* @param {*} [options] Override http request option.
|
1115
|
-
* @throws {RequiredError}
|
1116
|
-
*/
|
1117
|
-
public updateRefer(updateReferRequest?: UpdateReferRequest): Promise<UpdateReferResponse> {
|
1118
|
-
const options = ParamCreater().updateRefer(updateReferRequest);
|
1119
|
-
|
1120
|
-
// @ts-ignore
|
1121
|
-
options['responseHeaders'] = [''];
|
1122
|
-
|
1123
|
-
return this.hcClient.sendRequest(options);
|
1124
|
-
}
|
1125
|
-
|
1126
|
-
/**
|
1127
|
-
* 新增/修改域名响应头配置。
|
1128
|
-
*
|
1129
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1130
|
-
*
|
1131
|
-
* @summary 新增/修改响应头配置
|
1132
|
-
* @param {string} domainId 加速域名ID。
|
1133
|
-
* @param {HeaderBody} headers 置响应头的键和值。
|
1134
|
-
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
1135
|
-
* @param {*} [options] Override http request option.
|
1136
|
-
* @throws {RequiredError}
|
1137
|
-
*/
|
1138
|
-
public updateResponseHeader(updateResponseHeaderRequest?: UpdateResponseHeaderRequest): Promise<UpdateResponseHeaderResponse> {
|
1139
|
-
const options = ParamCreater().updateResponseHeader(updateResponseHeaderRequest);
|
1140
|
-
|
1141
|
-
// @ts-ignore
|
1142
|
-
options['responseHeaders'] = [''];
|
1143
|
-
|
1144
|
-
return this.hcClient.sendRequest(options);
|
1145
|
-
}
|
1146
|
-
}
|
1147
|
-
|
1148
|
-
export const ParamCreater = function () {
|
1149
|
-
return {
|
1150
|
-
|
1151
|
-
/**
|
1152
|
-
* 用于删除资源标签。
|
1153
|
-
*
|
1154
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1155
|
-
*/
|
1156
|
-
batchDeleteTags(batchDeleteTagsRequest?: BatchDeleteTagsRequest) {
|
1157
|
-
const options = {
|
1158
|
-
method: "POST",
|
1159
|
-
url: "/v1.0/cdn/configuration/tags/batch-delete",
|
1160
|
-
contentType: "application/json",
|
1161
|
-
queryParams: {},
|
1162
|
-
pathParams: {},
|
1163
|
-
headers: {},
|
1164
|
-
data: {}
|
1165
|
-
};
|
1166
|
-
const localVarHeaderParameter = {} as any;
|
1167
|
-
|
1168
|
-
let body: any;
|
1169
|
-
|
1170
|
-
if (batchDeleteTagsRequest !== null && batchDeleteTagsRequest !== undefined) {
|
1171
|
-
if (batchDeleteTagsRequest instanceof BatchDeleteTagsRequest) {
|
1172
|
-
body = batchDeleteTagsRequest.body
|
1173
|
-
} else {
|
1174
|
-
body = batchDeleteTagsRequest['body'];
|
1175
|
-
}
|
1176
|
-
}
|
1177
|
-
|
1178
|
-
|
1179
|
-
if (body === null || body === undefined) {
|
1180
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
1181
|
-
}
|
1182
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1183
|
-
|
1184
|
-
options.data = body !== undefined ? body : {};
|
1185
|
-
options.headers = localVarHeaderParameter;
|
1186
|
-
return options;
|
1187
|
-
},
|
1188
|
-
|
1189
|
-
/**
|
1190
|
-
* 创建加速域名。
|
1191
|
-
*
|
1192
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1193
|
-
*/
|
1194
|
-
createDomain(createDomainRequest?: CreateDomainRequest) {
|
1195
|
-
const options = {
|
1196
|
-
method: "POST",
|
1197
|
-
url: "/v1.0/cdn/domains",
|
1198
|
-
contentType: "application/json",
|
1199
|
-
queryParams: {},
|
1200
|
-
pathParams: {},
|
1201
|
-
headers: {},
|
1202
|
-
data: {}
|
1203
|
-
};
|
1204
|
-
const localVarHeaderParameter = {} as any;
|
1205
|
-
|
1206
|
-
let body: any;
|
1207
|
-
|
1208
|
-
if (createDomainRequest !== null && createDomainRequest !== undefined) {
|
1209
|
-
if (createDomainRequest instanceof CreateDomainRequest) {
|
1210
|
-
body = createDomainRequest.body
|
1211
|
-
} else {
|
1212
|
-
body = createDomainRequest['body'];
|
1213
|
-
}
|
1214
|
-
}
|
1215
|
-
|
1216
|
-
|
1217
|
-
if (body === null || body === undefined) {
|
1218
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
1219
|
-
}
|
1220
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1221
|
-
|
1222
|
-
options.data = body !== undefined ? body : {};
|
1223
|
-
options.headers = localVarHeaderParameter;
|
1224
|
-
return options;
|
1225
|
-
},
|
1226
|
-
|
1227
|
-
/**
|
1228
|
-
* 创建预热任务。
|
1229
|
-
*
|
1230
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1231
|
-
*/
|
1232
|
-
createPreheatingTasks(createPreheatingTasksRequest?: CreatePreheatingTasksRequest) {
|
1233
|
-
const options = {
|
1234
|
-
method: "POST",
|
1235
|
-
url: "/v1.0/cdn/content/preheating-tasks",
|
1236
|
-
contentType: "application/json",
|
1237
|
-
queryParams: {},
|
1238
|
-
pathParams: {},
|
1239
|
-
headers: {},
|
1240
|
-
data: {}
|
1241
|
-
};
|
1242
|
-
const localVarHeaderParameter = {} as any;
|
1243
|
-
const localVarQueryParameter = {} as any;
|
1244
|
-
let body: any;
|
1245
|
-
|
1246
|
-
let enterpriseProjectId;
|
1247
|
-
|
1248
|
-
if (createPreheatingTasksRequest !== null && createPreheatingTasksRequest !== undefined) {
|
1249
|
-
if (createPreheatingTasksRequest instanceof CreatePreheatingTasksRequest) {
|
1250
|
-
body = createPreheatingTasksRequest.body
|
1251
|
-
enterpriseProjectId = createPreheatingTasksRequest.enterpriseProjectId;
|
1252
|
-
} else {
|
1253
|
-
body = createPreheatingTasksRequest['body'];
|
1254
|
-
enterpriseProjectId = createPreheatingTasksRequest['enterprise_project_id'];
|
1255
|
-
}
|
1256
|
-
}
|
1257
|
-
|
1258
|
-
|
1259
|
-
if (body === null || body === undefined) {
|
1260
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
1261
|
-
}
|
1262
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1263
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1264
|
-
}
|
1265
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1266
|
-
|
1267
|
-
options.data = body !== undefined ? body : {};
|
1268
|
-
options.queryParams = localVarQueryParameter;
|
1269
|
-
options.headers = localVarHeaderParameter;
|
1270
|
-
return options;
|
1271
|
-
},
|
1272
|
-
|
1273
|
-
/**
|
1274
|
-
* 创建刷新缓存任务。
|
1275
|
-
*
|
1276
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1277
|
-
*/
|
1278
|
-
createRefreshTasks(createRefreshTasksRequest?: CreateRefreshTasksRequest) {
|
1279
|
-
const options = {
|
1280
|
-
method: "POST",
|
1281
|
-
url: "/v1.0/cdn/content/refresh-tasks",
|
1282
|
-
contentType: "application/json",
|
1283
|
-
queryParams: {},
|
1284
|
-
pathParams: {},
|
1285
|
-
headers: {},
|
1286
|
-
data: {}
|
1287
|
-
};
|
1288
|
-
const localVarHeaderParameter = {} as any;
|
1289
|
-
const localVarQueryParameter = {} as any;
|
1290
|
-
let body: any;
|
1291
|
-
|
1292
|
-
let enterpriseProjectId;
|
1293
|
-
|
1294
|
-
if (createRefreshTasksRequest !== null && createRefreshTasksRequest !== undefined) {
|
1295
|
-
if (createRefreshTasksRequest instanceof CreateRefreshTasksRequest) {
|
1296
|
-
body = createRefreshTasksRequest.body
|
1297
|
-
enterpriseProjectId = createRefreshTasksRequest.enterpriseProjectId;
|
1298
|
-
} else {
|
1299
|
-
body = createRefreshTasksRequest['body'];
|
1300
|
-
enterpriseProjectId = createRefreshTasksRequest['enterprise_project_id'];
|
1301
|
-
}
|
1302
|
-
}
|
1303
|
-
|
1304
|
-
|
1305
|
-
if (body === null || body === undefined) {
|
1306
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
1307
|
-
}
|
1308
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1309
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1310
|
-
}
|
1311
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1312
|
-
|
1313
|
-
options.data = body !== undefined ? body : {};
|
1314
|
-
options.queryParams = localVarQueryParameter;
|
1315
|
-
options.headers = localVarHeaderParameter;
|
1316
|
-
return options;
|
1317
|
-
},
|
1318
|
-
|
1319
|
-
/**
|
1320
|
-
* 用于创建资源标签。
|
1321
|
-
*
|
1322
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1323
|
-
*/
|
1324
|
-
createTags(createTagsRequest?: CreateTagsRequest) {
|
1325
|
-
const options = {
|
1326
|
-
method: "POST",
|
1327
|
-
url: "/v1.0/cdn/configuration/tags",
|
1328
|
-
contentType: "application/json",
|
1329
|
-
queryParams: {},
|
1330
|
-
pathParams: {},
|
1331
|
-
headers: {},
|
1332
|
-
data: {}
|
1333
|
-
};
|
1334
|
-
const localVarHeaderParameter = {} as any;
|
1335
|
-
|
1336
|
-
let body: any;
|
1337
|
-
|
1338
|
-
if (createTagsRequest !== null && createTagsRequest !== undefined) {
|
1339
|
-
if (createTagsRequest instanceof CreateTagsRequest) {
|
1340
|
-
body = createTagsRequest.body
|
1341
|
-
} else {
|
1342
|
-
body = createTagsRequest['body'];
|
1343
|
-
}
|
1344
|
-
}
|
1345
|
-
|
1346
|
-
|
1347
|
-
if (body === null || body === undefined) {
|
1348
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
1349
|
-
}
|
1350
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1351
|
-
|
1352
|
-
options.data = body !== undefined ? body : {};
|
1353
|
-
options.headers = localVarHeaderParameter;
|
1354
|
-
return options;
|
1355
|
-
},
|
1356
|
-
|
1357
|
-
/**
|
1358
|
-
* 删除加速域名。
|
1359
|
-
*
|
1360
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1361
|
-
*/
|
1362
|
-
deleteDomain(deleteDomainRequest?: DeleteDomainRequest) {
|
1363
|
-
const options = {
|
1364
|
-
method: "DELETE",
|
1365
|
-
url: "/v1.0/cdn/domains/{domain_id}",
|
1366
|
-
contentType: "application/json",
|
1367
|
-
queryParams: {},
|
1368
|
-
pathParams: {},
|
1369
|
-
headers: {}
|
1370
|
-
};
|
1371
|
-
const localVarHeaderParameter = {} as any;
|
1372
|
-
const localVarQueryParameter = {} as any;
|
1373
|
-
|
1374
|
-
let domainId;
|
1375
|
-
|
1376
|
-
let enterpriseProjectId;
|
1377
|
-
|
1378
|
-
if (deleteDomainRequest !== null && deleteDomainRequest !== undefined) {
|
1379
|
-
if (deleteDomainRequest instanceof DeleteDomainRequest) {
|
1380
|
-
domainId = deleteDomainRequest.domainId;
|
1381
|
-
enterpriseProjectId = deleteDomainRequest.enterpriseProjectId;
|
1382
|
-
} else {
|
1383
|
-
domainId = deleteDomainRequest['domain_id'];
|
1384
|
-
enterpriseProjectId = deleteDomainRequest['enterprise_project_id'];
|
1385
|
-
}
|
1386
|
-
}
|
1387
|
-
|
1388
|
-
|
1389
|
-
if (domainId === null || domainId === undefined) {
|
1390
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling deleteDomain.');
|
1391
|
-
}
|
1392
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1393
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1394
|
-
}
|
1395
|
-
|
1396
|
-
options.queryParams = localVarQueryParameter;
|
1397
|
-
options.pathParams = { 'domain_id': domainId, };
|
1398
|
-
options.headers = localVarHeaderParameter;
|
1399
|
-
return options;
|
1400
|
-
},
|
1401
|
-
|
1402
|
-
/**
|
1403
|
-
* 停用加速域名。
|
1404
|
-
*
|
1405
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1406
|
-
*/
|
1407
|
-
disableDomain(disableDomainRequest?: DisableDomainRequest) {
|
1408
|
-
const options = {
|
1409
|
-
method: "PUT",
|
1410
|
-
url: "/v1.0/cdn/domains/{domain_id}/disable",
|
1411
|
-
contentType: "application/json",
|
1412
|
-
queryParams: {},
|
1413
|
-
pathParams: {},
|
1414
|
-
headers: {}
|
1415
|
-
};
|
1416
|
-
const localVarHeaderParameter = {} as any;
|
1417
|
-
const localVarQueryParameter = {} as any;
|
1418
|
-
|
1419
|
-
let domainId;
|
1420
|
-
|
1421
|
-
let enterpriseProjectId;
|
1422
|
-
|
1423
|
-
if (disableDomainRequest !== null && disableDomainRequest !== undefined) {
|
1424
|
-
if (disableDomainRequest instanceof DisableDomainRequest) {
|
1425
|
-
domainId = disableDomainRequest.domainId;
|
1426
|
-
enterpriseProjectId = disableDomainRequest.enterpriseProjectId;
|
1427
|
-
} else {
|
1428
|
-
domainId = disableDomainRequest['domain_id'];
|
1429
|
-
enterpriseProjectId = disableDomainRequest['enterprise_project_id'];
|
1430
|
-
}
|
1431
|
-
}
|
1432
|
-
|
1433
|
-
|
1434
|
-
if (domainId === null || domainId === undefined) {
|
1435
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling disableDomain.');
|
1436
|
-
}
|
1437
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1438
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1439
|
-
}
|
1440
|
-
|
1441
|
-
options.queryParams = localVarQueryParameter;
|
1442
|
-
options.pathParams = { 'domain_id': domainId, };
|
1443
|
-
options.headers = localVarHeaderParameter;
|
1444
|
-
return options;
|
1445
|
-
},
|
1446
|
-
|
1447
|
-
/**
|
1448
|
-
* 启用加速域名。
|
1449
|
-
*
|
1450
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1451
|
-
*/
|
1452
|
-
enableDomain(enableDomainRequest?: EnableDomainRequest) {
|
1453
|
-
const options = {
|
1454
|
-
method: "PUT",
|
1455
|
-
url: "/v1.0/cdn/domains/{domain_id}/enable",
|
1456
|
-
contentType: "application/json",
|
1457
|
-
queryParams: {},
|
1458
|
-
pathParams: {},
|
1459
|
-
headers: {}
|
1460
|
-
};
|
1461
|
-
const localVarHeaderParameter = {} as any;
|
1462
|
-
const localVarQueryParameter = {} as any;
|
1463
|
-
|
1464
|
-
let domainId;
|
1465
|
-
|
1466
|
-
let enterpriseProjectId;
|
1467
|
-
|
1468
|
-
if (enableDomainRequest !== null && enableDomainRequest !== undefined) {
|
1469
|
-
if (enableDomainRequest instanceof EnableDomainRequest) {
|
1470
|
-
domainId = enableDomainRequest.domainId;
|
1471
|
-
enterpriseProjectId = enableDomainRequest.enterpriseProjectId;
|
1472
|
-
} else {
|
1473
|
-
domainId = enableDomainRequest['domain_id'];
|
1474
|
-
enterpriseProjectId = enableDomainRequest['enterprise_project_id'];
|
1475
|
-
}
|
1476
|
-
}
|
1477
|
-
|
1478
|
-
|
1479
|
-
if (domainId === null || domainId === undefined) {
|
1480
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling enableDomain.');
|
1481
|
-
}
|
1482
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1483
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1484
|
-
}
|
1485
|
-
|
1486
|
-
options.queryParams = localVarQueryParameter;
|
1487
|
-
options.pathParams = { 'domain_id': domainId, };
|
1488
|
-
options.headers = localVarHeaderParameter;
|
1489
|
-
return options;
|
1490
|
-
},
|
1491
|
-
|
1492
|
-
/**
|
1493
|
-
* 查询加速域名信息
|
1494
|
-
*
|
1495
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1496
|
-
*/
|
1497
|
-
listDomains(listDomainsRequest?: ListDomainsRequest) {
|
1498
|
-
const options = {
|
1499
|
-
method: "GET",
|
1500
|
-
url: "/v1.0/cdn/domains",
|
1501
|
-
contentType: "application/json",
|
1502
|
-
queryParams: {},
|
1503
|
-
pathParams: {},
|
1504
|
-
headers: {}
|
1505
|
-
};
|
1506
|
-
const localVarHeaderParameter = {} as any;
|
1507
|
-
const localVarQueryParameter = {} as any;
|
1508
|
-
|
1509
|
-
let domainName;
|
1510
|
-
|
1511
|
-
let businessType;
|
1512
|
-
|
1513
|
-
let domainStatus;
|
1514
|
-
|
1515
|
-
let serviceArea;
|
1516
|
-
|
1517
|
-
let pageSize;
|
1518
|
-
|
1519
|
-
let pageNumber;
|
1520
|
-
|
1521
|
-
let showTags;
|
1522
|
-
|
1523
|
-
let exactMatch;
|
1524
|
-
|
1525
|
-
let enterpriseProjectId;
|
1526
|
-
|
1527
|
-
if (listDomainsRequest !== null && listDomainsRequest !== undefined) {
|
1528
|
-
if (listDomainsRequest instanceof ListDomainsRequest) {
|
1529
|
-
domainName = listDomainsRequest.domainName;
|
1530
|
-
businessType = listDomainsRequest.businessType;
|
1531
|
-
domainStatus = listDomainsRequest.domainStatus;
|
1532
|
-
serviceArea = listDomainsRequest.serviceArea;
|
1533
|
-
pageSize = listDomainsRequest.pageSize;
|
1534
|
-
pageNumber = listDomainsRequest.pageNumber;
|
1535
|
-
showTags = listDomainsRequest.showTags;
|
1536
|
-
exactMatch = listDomainsRequest.exactMatch;
|
1537
|
-
enterpriseProjectId = listDomainsRequest.enterpriseProjectId;
|
1538
|
-
} else {
|
1539
|
-
domainName = listDomainsRequest['domain_name'];
|
1540
|
-
businessType = listDomainsRequest['business_type'];
|
1541
|
-
domainStatus = listDomainsRequest['domain_status'];
|
1542
|
-
serviceArea = listDomainsRequest['service_area'];
|
1543
|
-
pageSize = listDomainsRequest['page_size'];
|
1544
|
-
pageNumber = listDomainsRequest['page_number'];
|
1545
|
-
showTags = listDomainsRequest['show_tags'];
|
1546
|
-
exactMatch = listDomainsRequest['exact_match'];
|
1547
|
-
enterpriseProjectId = listDomainsRequest['enterprise_project_id'];
|
1548
|
-
}
|
1549
|
-
}
|
1550
|
-
|
1551
|
-
|
1552
|
-
if (domainName !== null && domainName !== undefined) {
|
1553
|
-
localVarQueryParameter['domain_name'] = domainName;
|
1554
|
-
}
|
1555
|
-
if (businessType !== null && businessType !== undefined) {
|
1556
|
-
localVarQueryParameter['business_type'] = businessType;
|
1557
|
-
}
|
1558
|
-
if (domainStatus !== null && domainStatus !== undefined) {
|
1559
|
-
localVarQueryParameter['domain_status'] = domainStatus;
|
1560
|
-
}
|
1561
|
-
if (serviceArea !== null && serviceArea !== undefined) {
|
1562
|
-
localVarQueryParameter['service_area'] = serviceArea;
|
1563
|
-
}
|
1564
|
-
if (pageSize !== null && pageSize !== undefined) {
|
1565
|
-
localVarQueryParameter['page_size'] = pageSize;
|
1566
|
-
}
|
1567
|
-
if (pageNumber !== null && pageNumber !== undefined) {
|
1568
|
-
localVarQueryParameter['page_number'] = pageNumber;
|
1569
|
-
}
|
1570
|
-
if (showTags !== null && showTags !== undefined) {
|
1571
|
-
localVarQueryParameter['show_tags'] = showTags;
|
1572
|
-
}
|
1573
|
-
if (exactMatch !== null && exactMatch !== undefined) {
|
1574
|
-
localVarQueryParameter['exact_match'] = exactMatch;
|
1575
|
-
}
|
1576
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1577
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1578
|
-
}
|
1579
|
-
|
1580
|
-
options.queryParams = localVarQueryParameter;
|
1581
|
-
options.headers = localVarHeaderParameter;
|
1582
|
-
return options;
|
1583
|
-
},
|
1584
|
-
|
1585
|
-
/**
|
1586
|
-
* 查询域名已经设置的IP黑白名单。
|
1587
|
-
*
|
1588
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1589
|
-
*/
|
1590
|
-
showBlackWhiteList(showBlackWhiteListRequest?: ShowBlackWhiteListRequest) {
|
1591
|
-
const options = {
|
1592
|
-
method: "GET",
|
1593
|
-
url: "/v1.0/cdn/domains/{domain_id}/ip-acl",
|
1594
|
-
contentType: "application/json",
|
1595
|
-
queryParams: {},
|
1596
|
-
pathParams: {},
|
1597
|
-
headers: {}
|
1598
|
-
};
|
1599
|
-
const localVarHeaderParameter = {} as any;
|
1600
|
-
const localVarQueryParameter = {} as any;
|
1601
|
-
|
1602
|
-
let domainId;
|
1603
|
-
|
1604
|
-
let enterpriseProjectId;
|
1605
|
-
|
1606
|
-
if (showBlackWhiteListRequest !== null && showBlackWhiteListRequest !== undefined) {
|
1607
|
-
if (showBlackWhiteListRequest instanceof ShowBlackWhiteListRequest) {
|
1608
|
-
domainId = showBlackWhiteListRequest.domainId;
|
1609
|
-
enterpriseProjectId = showBlackWhiteListRequest.enterpriseProjectId;
|
1610
|
-
} else {
|
1611
|
-
domainId = showBlackWhiteListRequest['domain_id'];
|
1612
|
-
enterpriseProjectId = showBlackWhiteListRequest['enterprise_project_id'];
|
1613
|
-
}
|
1614
|
-
}
|
1615
|
-
|
1616
|
-
|
1617
|
-
if (domainId === null || domainId === undefined) {
|
1618
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling showBlackWhiteList.');
|
1619
|
-
}
|
1620
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1621
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1622
|
-
}
|
1623
|
-
|
1624
|
-
options.queryParams = localVarQueryParameter;
|
1625
|
-
options.pathParams = { 'domain_id': domainId, };
|
1626
|
-
options.headers = localVarHeaderParameter;
|
1627
|
-
return options;
|
1628
|
-
},
|
1629
|
-
|
1630
|
-
/**
|
1631
|
-
* 查询缓存规则。
|
1632
|
-
*
|
1633
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1634
|
-
*/
|
1635
|
-
showCacheRules(showCacheRulesRequest?: ShowCacheRulesRequest) {
|
1636
|
-
const options = {
|
1637
|
-
method: "GET",
|
1638
|
-
url: "/v1.0/cdn/domains/{domain_id}/cache",
|
1639
|
-
contentType: "application/json",
|
1640
|
-
queryParams: {},
|
1641
|
-
pathParams: {},
|
1642
|
-
headers: {}
|
1643
|
-
};
|
1644
|
-
const localVarHeaderParameter = {} as any;
|
1645
|
-
const localVarQueryParameter = {} as any;
|
1646
|
-
|
1647
|
-
let domainId;
|
1648
|
-
|
1649
|
-
let enterpriseProjectId;
|
1650
|
-
|
1651
|
-
if (showCacheRulesRequest !== null && showCacheRulesRequest !== undefined) {
|
1652
|
-
if (showCacheRulesRequest instanceof ShowCacheRulesRequest) {
|
1653
|
-
domainId = showCacheRulesRequest.domainId;
|
1654
|
-
enterpriseProjectId = showCacheRulesRequest.enterpriseProjectId;
|
1655
|
-
} else {
|
1656
|
-
domainId = showCacheRulesRequest['domain_id'];
|
1657
|
-
enterpriseProjectId = showCacheRulesRequest['enterprise_project_id'];
|
1658
|
-
}
|
1659
|
-
}
|
1660
|
-
|
1661
|
-
|
1662
|
-
if (domainId === null || domainId === undefined) {
|
1663
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling showCacheRules.');
|
1664
|
-
}
|
1665
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1666
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1667
|
-
}
|
1668
|
-
|
1669
|
-
options.queryParams = localVarQueryParameter;
|
1670
|
-
options.pathParams = { 'domain_id': domainId, };
|
1671
|
-
options.headers = localVarHeaderParameter;
|
1672
|
-
return options;
|
1673
|
-
},
|
1674
|
-
|
1675
|
-
/**
|
1676
|
-
* 查询所有绑定HTTPS证书的域名信息
|
1677
|
-
*
|
1678
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1679
|
-
*/
|
1680
|
-
showCertificatesHttpsInfo(showCertificatesHttpsInfoRequest?: ShowCertificatesHttpsInfoRequest) {
|
1681
|
-
const options = {
|
1682
|
-
method: "GET",
|
1683
|
-
url: "/v1.0/cdn/domains/https-certificate-info",
|
1684
|
-
contentType: "application/json",
|
1685
|
-
queryParams: {},
|
1686
|
-
pathParams: {},
|
1687
|
-
headers: {}
|
1688
|
-
};
|
1689
|
-
const localVarHeaderParameter = {} as any;
|
1690
|
-
const localVarQueryParameter = {} as any;
|
1691
|
-
|
1692
|
-
let pageSize;
|
1693
|
-
|
1694
|
-
let pageNumber;
|
1695
|
-
|
1696
|
-
let domainName;
|
1697
|
-
|
1698
|
-
let userDomainId;
|
1699
|
-
|
1700
|
-
let enterpriseProjectId;
|
1701
|
-
|
1702
|
-
if (showCertificatesHttpsInfoRequest !== null && showCertificatesHttpsInfoRequest !== undefined) {
|
1703
|
-
if (showCertificatesHttpsInfoRequest instanceof ShowCertificatesHttpsInfoRequest) {
|
1704
|
-
pageSize = showCertificatesHttpsInfoRequest.pageSize;
|
1705
|
-
pageNumber = showCertificatesHttpsInfoRequest.pageNumber;
|
1706
|
-
domainName = showCertificatesHttpsInfoRequest.domainName;
|
1707
|
-
userDomainId = showCertificatesHttpsInfoRequest.userDomainId;
|
1708
|
-
enterpriseProjectId = showCertificatesHttpsInfoRequest.enterpriseProjectId;
|
1709
|
-
} else {
|
1710
|
-
pageSize = showCertificatesHttpsInfoRequest['page_size'];
|
1711
|
-
pageNumber = showCertificatesHttpsInfoRequest['page_number'];
|
1712
|
-
domainName = showCertificatesHttpsInfoRequest['domain_name'];
|
1713
|
-
userDomainId = showCertificatesHttpsInfoRequest['user_domain_id'];
|
1714
|
-
enterpriseProjectId = showCertificatesHttpsInfoRequest['enterprise_project_id'];
|
1715
|
-
}
|
1716
|
-
}
|
1717
|
-
|
1718
|
-
|
1719
|
-
if (pageSize !== null && pageSize !== undefined) {
|
1720
|
-
localVarQueryParameter['page_size'] = pageSize;
|
1721
|
-
}
|
1722
|
-
if (pageNumber !== null && pageNumber !== undefined) {
|
1723
|
-
localVarQueryParameter['page_number'] = pageNumber;
|
1724
|
-
}
|
1725
|
-
if (domainName !== null && domainName !== undefined) {
|
1726
|
-
localVarQueryParameter['domain_name'] = domainName;
|
1727
|
-
}
|
1728
|
-
if (userDomainId !== null && userDomainId !== undefined) {
|
1729
|
-
localVarQueryParameter['user_domain_id'] = userDomainId;
|
1730
|
-
}
|
1731
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1732
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1733
|
-
}
|
1734
|
-
|
1735
|
-
options.queryParams = localVarQueryParameter;
|
1736
|
-
options.headers = localVarHeaderParameter;
|
1737
|
-
return options;
|
1738
|
-
},
|
1739
|
-
|
1740
|
-
/**
|
1741
|
-
* 查询加速域名详情。
|
1742
|
-
*
|
1743
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1744
|
-
*/
|
1745
|
-
showDomainDetail(showDomainDetailRequest?: ShowDomainDetailRequest) {
|
1746
|
-
const options = {
|
1747
|
-
method: "GET",
|
1748
|
-
url: "/v1.0/cdn/domains/{domain_id}/detail",
|
1749
|
-
contentType: "application/json",
|
1750
|
-
queryParams: {},
|
1751
|
-
pathParams: {},
|
1752
|
-
headers: {}
|
1753
|
-
};
|
1754
|
-
const localVarHeaderParameter = {} as any;
|
1755
|
-
const localVarQueryParameter = {} as any;
|
1756
|
-
|
1757
|
-
let domainId;
|
1758
|
-
|
1759
|
-
let enterpriseProjectId;
|
1760
|
-
|
1761
|
-
if (showDomainDetailRequest !== null && showDomainDetailRequest !== undefined) {
|
1762
|
-
if (showDomainDetailRequest instanceof ShowDomainDetailRequest) {
|
1763
|
-
domainId = showDomainDetailRequest.domainId;
|
1764
|
-
enterpriseProjectId = showDomainDetailRequest.enterpriseProjectId;
|
1765
|
-
} else {
|
1766
|
-
domainId = showDomainDetailRequest['domain_id'];
|
1767
|
-
enterpriseProjectId = showDomainDetailRequest['enterprise_project_id'];
|
1768
|
-
}
|
1769
|
-
}
|
1770
|
-
|
1771
|
-
|
1772
|
-
if (domainId === null || domainId === undefined) {
|
1773
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling showDomainDetail.');
|
1774
|
-
}
|
1775
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1776
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1777
|
-
}
|
1778
|
-
|
1779
|
-
options.queryParams = localVarQueryParameter;
|
1780
|
-
options.pathParams = { 'domain_id': domainId, };
|
1781
|
-
options.headers = localVarHeaderParameter;
|
1782
|
-
return options;
|
1783
|
-
},
|
1784
|
-
|
1785
|
-
/**
|
1786
|
-
* 查询域名配置接口,
|
1787
|
-
* 支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转。
|
1788
|
-
*
|
1789
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1790
|
-
*/
|
1791
|
-
showDomainFullConfig(showDomainFullConfigRequest?: ShowDomainFullConfigRequest) {
|
1792
|
-
const options = {
|
1793
|
-
method: "GET",
|
1794
|
-
url: "/v1.1/cdn/configuration/domains/{domain_name}/configs",
|
1795
|
-
contentType: "application/json",
|
1796
|
-
queryParams: {},
|
1797
|
-
pathParams: {},
|
1798
|
-
headers: {}
|
1799
|
-
};
|
1800
|
-
const localVarHeaderParameter = {} as any;
|
1801
|
-
const localVarQueryParameter = {} as any;
|
1802
|
-
|
1803
|
-
let domainName;
|
1804
|
-
|
1805
|
-
let enterpriseProjectId;
|
1806
|
-
|
1807
|
-
if (showDomainFullConfigRequest !== null && showDomainFullConfigRequest !== undefined) {
|
1808
|
-
if (showDomainFullConfigRequest instanceof ShowDomainFullConfigRequest) {
|
1809
|
-
domainName = showDomainFullConfigRequest.domainName;
|
1810
|
-
enterpriseProjectId = showDomainFullConfigRequest.enterpriseProjectId;
|
1811
|
-
} else {
|
1812
|
-
domainName = showDomainFullConfigRequest['domain_name'];
|
1813
|
-
enterpriseProjectId = showDomainFullConfigRequest['enterprise_project_id'];
|
1814
|
-
}
|
1815
|
-
}
|
1816
|
-
|
1817
|
-
|
1818
|
-
if (domainName === null || domainName === undefined) {
|
1819
|
-
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainFullConfig.');
|
1820
|
-
}
|
1821
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1822
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1823
|
-
}
|
1824
|
-
|
1825
|
-
options.queryParams = localVarQueryParameter;
|
1826
|
-
options.pathParams = { 'domain_name': domainName, };
|
1827
|
-
options.headers = localVarHeaderParameter;
|
1828
|
-
return options;
|
1829
|
-
},
|
1830
|
-
|
1831
|
-
/**
|
1832
|
-
* - 支持查询90天内的数据。
|
1833
|
-
* - 查询跨度不能超过7天。
|
1834
|
-
* - 最多同时指定100个域名。
|
1835
|
-
* - 起始时间和结束时间,左闭右开,需要同时指定。
|
1836
|
-
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果传的不是5分钟时刻点,返回数据可能与预期不一致。
|
1837
|
-
* - 统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
1838
|
-
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
1839
|
-
* - 如果传的是多个域名,则每个域名的数据分开返回。
|
1840
|
-
* - 支持同时查询多个指标,不超过10个。
|
1841
|
-
*
|
1842
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1843
|
-
*/
|
1844
|
-
showDomainItemDetails(showDomainItemDetailsRequest?: ShowDomainItemDetailsRequest) {
|
1845
|
-
const options = {
|
1846
|
-
method: "GET",
|
1847
|
-
url: "/v1.0/cdn/statistics/domain-item-details",
|
1848
|
-
contentType: "application/json",
|
1849
|
-
queryParams: {},
|
1850
|
-
pathParams: {},
|
1851
|
-
headers: {}
|
1852
|
-
};
|
1853
|
-
const localVarHeaderParameter = {} as any;
|
1854
|
-
const localVarQueryParameter = {} as any;
|
1855
|
-
|
1856
|
-
let startTime;
|
1857
|
-
|
1858
|
-
let endTime;
|
1859
|
-
|
1860
|
-
let domainName;
|
1861
|
-
|
1862
|
-
let statType;
|
1863
|
-
|
1864
|
-
let enterpriseProjectId;
|
1865
|
-
|
1866
|
-
let serviceArea;
|
1867
|
-
|
1868
|
-
if (showDomainItemDetailsRequest !== null && showDomainItemDetailsRequest !== undefined) {
|
1869
|
-
if (showDomainItemDetailsRequest instanceof ShowDomainItemDetailsRequest) {
|
1870
|
-
startTime = showDomainItemDetailsRequest.startTime;
|
1871
|
-
endTime = showDomainItemDetailsRequest.endTime;
|
1872
|
-
domainName = showDomainItemDetailsRequest.domainName;
|
1873
|
-
statType = showDomainItemDetailsRequest.statType;
|
1874
|
-
enterpriseProjectId = showDomainItemDetailsRequest.enterpriseProjectId;
|
1875
|
-
serviceArea = showDomainItemDetailsRequest.serviceArea;
|
1876
|
-
} else {
|
1877
|
-
startTime = showDomainItemDetailsRequest['start_time'];
|
1878
|
-
endTime = showDomainItemDetailsRequest['end_time'];
|
1879
|
-
domainName = showDomainItemDetailsRequest['domain_name'];
|
1880
|
-
statType = showDomainItemDetailsRequest['stat_type'];
|
1881
|
-
enterpriseProjectId = showDomainItemDetailsRequest['enterprise_project_id'];
|
1882
|
-
serviceArea = showDomainItemDetailsRequest['service_area'];
|
1883
|
-
}
|
1884
|
-
}
|
1885
|
-
|
1886
|
-
|
1887
|
-
if (startTime === null || startTime === undefined) {
|
1888
|
-
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showDomainItemDetails.');
|
1889
|
-
}
|
1890
|
-
if (startTime !== null && startTime !== undefined) {
|
1891
|
-
localVarQueryParameter['start_time'] = startTime;
|
1892
|
-
}
|
1893
|
-
if (endTime === null || endTime === undefined) {
|
1894
|
-
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showDomainItemDetails.');
|
1895
|
-
}
|
1896
|
-
if (endTime !== null && endTime !== undefined) {
|
1897
|
-
localVarQueryParameter['end_time'] = endTime;
|
1898
|
-
}
|
1899
|
-
if (domainName === null || domainName === undefined) {
|
1900
|
-
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainItemDetails.');
|
1901
|
-
}
|
1902
|
-
if (domainName !== null && domainName !== undefined) {
|
1903
|
-
localVarQueryParameter['domain_name'] = domainName;
|
1904
|
-
}
|
1905
|
-
if (statType === null || statType === undefined) {
|
1906
|
-
throw new RequiredError('statType','Required parameter statType was null or undefined when calling showDomainItemDetails.');
|
1907
|
-
}
|
1908
|
-
if (statType !== null && statType !== undefined) {
|
1909
|
-
localVarQueryParameter['stat_type'] = statType;
|
1910
|
-
}
|
1911
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1912
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1913
|
-
}
|
1914
|
-
if (serviceArea !== null && serviceArea !== undefined) {
|
1915
|
-
localVarQueryParameter['service_area'] = serviceArea;
|
1916
|
-
}
|
1917
|
-
|
1918
|
-
options.queryParams = localVarQueryParameter;
|
1919
|
-
options.headers = localVarHeaderParameter;
|
1920
|
-
return options;
|
1921
|
-
},
|
1922
|
-
|
1923
|
-
/**
|
1924
|
-
* - 支持查询90天内的数据。
|
1925
|
-
* - 查询跨度是7天。
|
1926
|
-
* - 最多同时指定100个域名。
|
1927
|
-
* - 起始时间和结束时间,左闭右开,需要同时指定。
|
1928
|
-
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果传的不是5分钟时刻点,返回数据可能与预期不一致。
|
1929
|
-
* - 统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
1930
|
-
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类指标单位统一为次数。
|
1931
|
-
* - 用于查询指定域名、指定统计指标的明细数据。
|
1932
|
-
* - 如果传的是多个域名,则每个域名的数据分开返回。
|
1933
|
-
* - 支持按区域、运营商维度查询统计数据, 回源指标除外。
|
1934
|
-
* - 支持同时查询多个指标,不超过10个。
|
1935
|
-
* - 域名为海外加速场景不适用。
|
1936
|
-
*
|
1937
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
1938
|
-
*/
|
1939
|
-
showDomainItemLocationDetails(showDomainItemLocationDetailsRequest?: ShowDomainItemLocationDetailsRequest) {
|
1940
|
-
const options = {
|
1941
|
-
method: "GET",
|
1942
|
-
url: "/v1.0/cdn/statistics/domain-item-location-details",
|
1943
|
-
contentType: "application/json",
|
1944
|
-
queryParams: {},
|
1945
|
-
pathParams: {},
|
1946
|
-
headers: {}
|
1947
|
-
};
|
1948
|
-
const localVarHeaderParameter = {} as any;
|
1949
|
-
const localVarQueryParameter = {} as any;
|
1950
|
-
|
1951
|
-
let startTime;
|
1952
|
-
|
1953
|
-
let endTime;
|
1954
|
-
|
1955
|
-
let domainName;
|
1956
|
-
|
1957
|
-
let statType;
|
1958
|
-
|
1959
|
-
let region;
|
1960
|
-
|
1961
|
-
let isp;
|
1962
|
-
|
1963
|
-
let enterpriseProjectId;
|
1964
|
-
|
1965
|
-
if (showDomainItemLocationDetailsRequest !== null && showDomainItemLocationDetailsRequest !== undefined) {
|
1966
|
-
if (showDomainItemLocationDetailsRequest instanceof ShowDomainItemLocationDetailsRequest) {
|
1967
|
-
startTime = showDomainItemLocationDetailsRequest.startTime;
|
1968
|
-
endTime = showDomainItemLocationDetailsRequest.endTime;
|
1969
|
-
domainName = showDomainItemLocationDetailsRequest.domainName;
|
1970
|
-
statType = showDomainItemLocationDetailsRequest.statType;
|
1971
|
-
region = showDomainItemLocationDetailsRequest.region;
|
1972
|
-
isp = showDomainItemLocationDetailsRequest.isp;
|
1973
|
-
enterpriseProjectId = showDomainItemLocationDetailsRequest.enterpriseProjectId;
|
1974
|
-
} else {
|
1975
|
-
startTime = showDomainItemLocationDetailsRequest['start_time'];
|
1976
|
-
endTime = showDomainItemLocationDetailsRequest['end_time'];
|
1977
|
-
domainName = showDomainItemLocationDetailsRequest['domain_name'];
|
1978
|
-
statType = showDomainItemLocationDetailsRequest['stat_type'];
|
1979
|
-
region = showDomainItemLocationDetailsRequest['region'];
|
1980
|
-
isp = showDomainItemLocationDetailsRequest['isp'];
|
1981
|
-
enterpriseProjectId = showDomainItemLocationDetailsRequest['enterprise_project_id'];
|
1982
|
-
}
|
1983
|
-
}
|
1984
|
-
|
1985
|
-
|
1986
|
-
if (startTime === null || startTime === undefined) {
|
1987
|
-
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showDomainItemLocationDetails.');
|
1988
|
-
}
|
1989
|
-
if (startTime !== null && startTime !== undefined) {
|
1990
|
-
localVarQueryParameter['start_time'] = startTime;
|
1991
|
-
}
|
1992
|
-
if (endTime === null || endTime === undefined) {
|
1993
|
-
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showDomainItemLocationDetails.');
|
1994
|
-
}
|
1995
|
-
if (endTime !== null && endTime !== undefined) {
|
1996
|
-
localVarQueryParameter['end_time'] = endTime;
|
1997
|
-
}
|
1998
|
-
if (domainName === null || domainName === undefined) {
|
1999
|
-
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainItemLocationDetails.');
|
2000
|
-
}
|
2001
|
-
if (domainName !== null && domainName !== undefined) {
|
2002
|
-
localVarQueryParameter['domain_name'] = domainName;
|
2003
|
-
}
|
2004
|
-
if (statType === null || statType === undefined) {
|
2005
|
-
throw new RequiredError('statType','Required parameter statType was null or undefined when calling showDomainItemLocationDetails.');
|
2006
|
-
}
|
2007
|
-
if (statType !== null && statType !== undefined) {
|
2008
|
-
localVarQueryParameter['stat_type'] = statType;
|
2009
|
-
}
|
2010
|
-
if (region === null || region === undefined) {
|
2011
|
-
throw new RequiredError('region','Required parameter region was null or undefined when calling showDomainItemLocationDetails.');
|
2012
|
-
}
|
2013
|
-
if (region !== null && region !== undefined) {
|
2014
|
-
localVarQueryParameter['region'] = region;
|
2015
|
-
}
|
2016
|
-
if (isp === null || isp === undefined) {
|
2017
|
-
throw new RequiredError('isp','Required parameter isp was null or undefined when calling showDomainItemLocationDetails.');
|
2018
|
-
}
|
2019
|
-
if (isp !== null && isp !== undefined) {
|
2020
|
-
localVarQueryParameter['isp'] = isp;
|
2021
|
-
}
|
2022
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2023
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2024
|
-
}
|
2025
|
-
|
2026
|
-
options.queryParams = localVarQueryParameter;
|
2027
|
-
options.headers = localVarHeaderParameter;
|
2028
|
-
return options;
|
2029
|
-
},
|
2030
|
-
|
2031
|
-
/**
|
2032
|
-
* - 支持查询90天内的数据。
|
2033
|
-
*
|
2034
|
-
* - 支持多指标同时查询,不超过5个。
|
2035
|
-
*
|
2036
|
-
* - 最多同时指定20个域名。
|
2037
|
-
*
|
2038
|
-
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
2039
|
-
*
|
2040
|
-
* - action取值:location_detail,location_summary
|
2041
|
-
*
|
2042
|
-
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。
|
2043
|
-
*
|
2044
|
-
* - 单租户调用频率:15次/s。
|
2045
|
-
*
|
2046
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
2047
|
-
*/
|
2048
|
-
showDomainLocationStats(showDomainLocationStatsRequest?: ShowDomainLocationStatsRequest) {
|
2049
|
-
const options = {
|
2050
|
-
method: "GET",
|
2051
|
-
url: "/v1.0/cdn/statistics/domain-location-stats",
|
2052
|
-
contentType: "application/json",
|
2053
|
-
queryParams: {},
|
2054
|
-
pathParams: {},
|
2055
|
-
headers: {}
|
2056
|
-
};
|
2057
|
-
const localVarHeaderParameter = {} as any;
|
2058
|
-
const localVarQueryParameter = {} as any;
|
2059
|
-
|
2060
|
-
let action;
|
2061
|
-
|
2062
|
-
let startTime;
|
2063
|
-
|
2064
|
-
let endTime;
|
2065
|
-
|
2066
|
-
let domainName;
|
2067
|
-
|
2068
|
-
let statType;
|
2069
|
-
|
2070
|
-
let interval;
|
2071
|
-
|
2072
|
-
let groupBy;
|
2073
|
-
|
2074
|
-
let country;
|
2075
|
-
|
2076
|
-
let province;
|
2077
|
-
|
2078
|
-
let isp;
|
2079
|
-
|
2080
|
-
let enterpriseProjectId;
|
2081
|
-
|
2082
|
-
if (showDomainLocationStatsRequest !== null && showDomainLocationStatsRequest !== undefined) {
|
2083
|
-
if (showDomainLocationStatsRequest instanceof ShowDomainLocationStatsRequest) {
|
2084
|
-
action = showDomainLocationStatsRequest.action;
|
2085
|
-
startTime = showDomainLocationStatsRequest.startTime;
|
2086
|
-
endTime = showDomainLocationStatsRequest.endTime;
|
2087
|
-
domainName = showDomainLocationStatsRequest.domainName;
|
2088
|
-
statType = showDomainLocationStatsRequest.statType;
|
2089
|
-
interval = showDomainLocationStatsRequest.interval;
|
2090
|
-
groupBy = showDomainLocationStatsRequest.groupBy;
|
2091
|
-
country = showDomainLocationStatsRequest.country;
|
2092
|
-
province = showDomainLocationStatsRequest.province;
|
2093
|
-
isp = showDomainLocationStatsRequest.isp;
|
2094
|
-
enterpriseProjectId = showDomainLocationStatsRequest.enterpriseProjectId;
|
2095
|
-
} else {
|
2096
|
-
action = showDomainLocationStatsRequest['action'];
|
2097
|
-
startTime = showDomainLocationStatsRequest['start_time'];
|
2098
|
-
endTime = showDomainLocationStatsRequest['end_time'];
|
2099
|
-
domainName = showDomainLocationStatsRequest['domain_name'];
|
2100
|
-
statType = showDomainLocationStatsRequest['stat_type'];
|
2101
|
-
interval = showDomainLocationStatsRequest['interval'];
|
2102
|
-
groupBy = showDomainLocationStatsRequest['group_by'];
|
2103
|
-
country = showDomainLocationStatsRequest['country'];
|
2104
|
-
province = showDomainLocationStatsRequest['province'];
|
2105
|
-
isp = showDomainLocationStatsRequest['isp'];
|
2106
|
-
enterpriseProjectId = showDomainLocationStatsRequest['enterprise_project_id'];
|
2107
|
-
}
|
2108
|
-
}
|
2109
|
-
|
2110
|
-
|
2111
|
-
if (action === null || action === undefined) {
|
2112
|
-
throw new RequiredError('action','Required parameter action was null or undefined when calling showDomainLocationStats.');
|
2113
|
-
}
|
2114
|
-
if (action !== null && action !== undefined) {
|
2115
|
-
localVarQueryParameter['action'] = action;
|
2116
|
-
}
|
2117
|
-
if (startTime === null || startTime === undefined) {
|
2118
|
-
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showDomainLocationStats.');
|
2119
|
-
}
|
2120
|
-
if (startTime !== null && startTime !== undefined) {
|
2121
|
-
localVarQueryParameter['start_time'] = startTime;
|
2122
|
-
}
|
2123
|
-
if (endTime === null || endTime === undefined) {
|
2124
|
-
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showDomainLocationStats.');
|
2125
|
-
}
|
2126
|
-
if (endTime !== null && endTime !== undefined) {
|
2127
|
-
localVarQueryParameter['end_time'] = endTime;
|
2128
|
-
}
|
2129
|
-
if (domainName === null || domainName === undefined) {
|
2130
|
-
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainLocationStats.');
|
2131
|
-
}
|
2132
|
-
if (domainName !== null && domainName !== undefined) {
|
2133
|
-
localVarQueryParameter['domain_name'] = domainName;
|
2134
|
-
}
|
2135
|
-
if (statType === null || statType === undefined) {
|
2136
|
-
throw new RequiredError('statType','Required parameter statType was null or undefined when calling showDomainLocationStats.');
|
2137
|
-
}
|
2138
|
-
if (statType !== null && statType !== undefined) {
|
2139
|
-
localVarQueryParameter['stat_type'] = statType;
|
2140
|
-
}
|
2141
|
-
if (interval !== null && interval !== undefined) {
|
2142
|
-
localVarQueryParameter['interval'] = interval;
|
2143
|
-
}
|
2144
|
-
if (groupBy !== null && groupBy !== undefined) {
|
2145
|
-
localVarQueryParameter['group_by'] = groupBy;
|
2146
|
-
}
|
2147
|
-
if (country !== null && country !== undefined) {
|
2148
|
-
localVarQueryParameter['country'] = country;
|
2149
|
-
}
|
2150
|
-
if (province !== null && province !== undefined) {
|
2151
|
-
localVarQueryParameter['province'] = province;
|
2152
|
-
}
|
2153
|
-
if (isp !== null && isp !== undefined) {
|
2154
|
-
localVarQueryParameter['isp'] = isp;
|
2155
|
-
}
|
2156
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2157
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2158
|
-
}
|
2159
|
-
|
2160
|
-
options.queryParams = localVarQueryParameter;
|
2161
|
-
options.headers = localVarHeaderParameter;
|
2162
|
-
return options;
|
2163
|
-
},
|
2164
|
-
|
2165
|
-
/**
|
2166
|
-
* - 支持查询90天内的数据。
|
2167
|
-
*
|
2168
|
-
* - 支持多指标同时查询,不超过5个。
|
2169
|
-
*
|
2170
|
-
* - 最多同时指定20个域名。
|
2171
|
-
*
|
2172
|
-
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
2173
|
-
*
|
2174
|
-
* - action取值:detail,summary
|
2175
|
-
*
|
2176
|
-
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
2177
|
-
*
|
2178
|
-
* - 单租户调用频率:15次/s。
|
2179
|
-
*
|
2180
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
2181
|
-
*/
|
2182
|
-
showDomainStats(showDomainStatsRequest?: ShowDomainStatsRequest) {
|
2183
|
-
const options = {
|
2184
|
-
method: "GET",
|
2185
|
-
url: "/v1.0/cdn/statistics/domain-stats",
|
2186
|
-
contentType: "application/json",
|
2187
|
-
queryParams: {},
|
2188
|
-
pathParams: {},
|
2189
|
-
headers: {}
|
2190
|
-
};
|
2191
|
-
const localVarHeaderParameter = {} as any;
|
2192
|
-
const localVarQueryParameter = {} as any;
|
2193
|
-
|
2194
|
-
let action;
|
2195
|
-
|
2196
|
-
let startTime;
|
2197
|
-
|
2198
|
-
let endTime;
|
2199
|
-
|
2200
|
-
let domainName;
|
2201
|
-
|
2202
|
-
let statType;
|
2203
|
-
|
2204
|
-
let interval;
|
2205
|
-
|
2206
|
-
let groupBy;
|
2207
|
-
|
2208
|
-
let serviceArea;
|
2209
|
-
|
2210
|
-
let enterpriseProjectId;
|
2211
|
-
|
2212
|
-
if (showDomainStatsRequest !== null && showDomainStatsRequest !== undefined) {
|
2213
|
-
if (showDomainStatsRequest instanceof ShowDomainStatsRequest) {
|
2214
|
-
action = showDomainStatsRequest.action;
|
2215
|
-
startTime = showDomainStatsRequest.startTime;
|
2216
|
-
endTime = showDomainStatsRequest.endTime;
|
2217
|
-
domainName = showDomainStatsRequest.domainName;
|
2218
|
-
statType = showDomainStatsRequest.statType;
|
2219
|
-
interval = showDomainStatsRequest.interval;
|
2220
|
-
groupBy = showDomainStatsRequest.groupBy;
|
2221
|
-
serviceArea = showDomainStatsRequest.serviceArea;
|
2222
|
-
enterpriseProjectId = showDomainStatsRequest.enterpriseProjectId;
|
2223
|
-
} else {
|
2224
|
-
action = showDomainStatsRequest['action'];
|
2225
|
-
startTime = showDomainStatsRequest['start_time'];
|
2226
|
-
endTime = showDomainStatsRequest['end_time'];
|
2227
|
-
domainName = showDomainStatsRequest['domain_name'];
|
2228
|
-
statType = showDomainStatsRequest['stat_type'];
|
2229
|
-
interval = showDomainStatsRequest['interval'];
|
2230
|
-
groupBy = showDomainStatsRequest['group_by'];
|
2231
|
-
serviceArea = showDomainStatsRequest['service_area'];
|
2232
|
-
enterpriseProjectId = showDomainStatsRequest['enterprise_project_id'];
|
2233
|
-
}
|
2234
|
-
}
|
2235
|
-
|
2236
|
-
|
2237
|
-
if (action === null || action === undefined) {
|
2238
|
-
throw new RequiredError('action','Required parameter action was null or undefined when calling showDomainStats.');
|
2239
|
-
}
|
2240
|
-
if (action !== null && action !== undefined) {
|
2241
|
-
localVarQueryParameter['action'] = action;
|
2242
|
-
}
|
2243
|
-
if (startTime === null || startTime === undefined) {
|
2244
|
-
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showDomainStats.');
|
2245
|
-
}
|
2246
|
-
if (startTime !== null && startTime !== undefined) {
|
2247
|
-
localVarQueryParameter['start_time'] = startTime;
|
2248
|
-
}
|
2249
|
-
if (endTime === null || endTime === undefined) {
|
2250
|
-
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showDomainStats.');
|
2251
|
-
}
|
2252
|
-
if (endTime !== null && endTime !== undefined) {
|
2253
|
-
localVarQueryParameter['end_time'] = endTime;
|
2254
|
-
}
|
2255
|
-
if (domainName === null || domainName === undefined) {
|
2256
|
-
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainStats.');
|
2257
|
-
}
|
2258
|
-
if (domainName !== null && domainName !== undefined) {
|
2259
|
-
localVarQueryParameter['domain_name'] = domainName;
|
2260
|
-
}
|
2261
|
-
if (statType === null || statType === undefined) {
|
2262
|
-
throw new RequiredError('statType','Required parameter statType was null or undefined when calling showDomainStats.');
|
2263
|
-
}
|
2264
|
-
if (statType !== null && statType !== undefined) {
|
2265
|
-
localVarQueryParameter['stat_type'] = statType;
|
2266
|
-
}
|
2267
|
-
if (interval !== null && interval !== undefined) {
|
2268
|
-
localVarQueryParameter['interval'] = interval;
|
2269
|
-
}
|
2270
|
-
if (groupBy !== null && groupBy !== undefined) {
|
2271
|
-
localVarQueryParameter['group_by'] = groupBy;
|
2272
|
-
}
|
2273
|
-
if (serviceArea !== null && serviceArea !== undefined) {
|
2274
|
-
localVarQueryParameter['service_area'] = serviceArea;
|
2275
|
-
}
|
2276
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2277
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2278
|
-
}
|
2279
|
-
|
2280
|
-
options.queryParams = localVarQueryParameter;
|
2281
|
-
options.headers = localVarHeaderParameter;
|
2282
|
-
return options;
|
2283
|
-
},
|
2284
|
-
|
2285
|
-
/**
|
2286
|
-
* 查询刷新预热任务详情。
|
2287
|
-
*
|
2288
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
2289
|
-
*/
|
2290
|
-
showHistoryTaskDetails(showHistoryTaskDetailsRequest?: ShowHistoryTaskDetailsRequest) {
|
2291
|
-
const options = {
|
2292
|
-
method: "GET",
|
2293
|
-
url: "/v1.0/cdn/historytasks/{history_tasks_id}/detail",
|
2294
|
-
contentType: "application/json",
|
2295
|
-
queryParams: {},
|
2296
|
-
pathParams: {},
|
2297
|
-
headers: {}
|
2298
|
-
};
|
2299
|
-
const localVarHeaderParameter = {} as any;
|
2300
|
-
const localVarQueryParameter = {} as any;
|
2301
|
-
|
2302
|
-
let historyTasksId;
|
2303
|
-
|
2304
|
-
let enterpriseProjectId;
|
2305
|
-
|
2306
|
-
let pageSize;
|
2307
|
-
|
2308
|
-
let pageNumber;
|
2309
|
-
|
2310
|
-
let status;
|
2311
|
-
|
2312
|
-
let url;
|
2313
|
-
|
2314
|
-
let createTime;
|
2315
|
-
|
2316
|
-
if (showHistoryTaskDetailsRequest !== null && showHistoryTaskDetailsRequest !== undefined) {
|
2317
|
-
if (showHistoryTaskDetailsRequest instanceof ShowHistoryTaskDetailsRequest) {
|
2318
|
-
historyTasksId = showHistoryTaskDetailsRequest.historyTasksId;
|
2319
|
-
enterpriseProjectId = showHistoryTaskDetailsRequest.enterpriseProjectId;
|
2320
|
-
pageSize = showHistoryTaskDetailsRequest.pageSize;
|
2321
|
-
pageNumber = showHistoryTaskDetailsRequest.pageNumber;
|
2322
|
-
status = showHistoryTaskDetailsRequest.status;
|
2323
|
-
url = showHistoryTaskDetailsRequest.url;
|
2324
|
-
createTime = showHistoryTaskDetailsRequest.createTime;
|
2325
|
-
} else {
|
2326
|
-
historyTasksId = showHistoryTaskDetailsRequest['history_tasks_id'];
|
2327
|
-
enterpriseProjectId = showHistoryTaskDetailsRequest['enterprise_project_id'];
|
2328
|
-
pageSize = showHistoryTaskDetailsRequest['page_size'];
|
2329
|
-
pageNumber = showHistoryTaskDetailsRequest['page_number'];
|
2330
|
-
status = showHistoryTaskDetailsRequest['status'];
|
2331
|
-
url = showHistoryTaskDetailsRequest['url'];
|
2332
|
-
createTime = showHistoryTaskDetailsRequest['create_time'];
|
2333
|
-
}
|
2334
|
-
}
|
2335
|
-
|
2336
|
-
|
2337
|
-
if (historyTasksId === null || historyTasksId === undefined) {
|
2338
|
-
throw new RequiredError('historyTasksId','Required parameter historyTasksId was null or undefined when calling showHistoryTaskDetails.');
|
2339
|
-
}
|
2340
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2341
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2342
|
-
}
|
2343
|
-
if (pageSize !== null && pageSize !== undefined) {
|
2344
|
-
localVarQueryParameter['page_size'] = pageSize;
|
2345
|
-
}
|
2346
|
-
if (pageNumber !== null && pageNumber !== undefined) {
|
2347
|
-
localVarQueryParameter['page_number'] = pageNumber;
|
2348
|
-
}
|
2349
|
-
if (status !== null && status !== undefined) {
|
2350
|
-
localVarQueryParameter['status'] = status;
|
2351
|
-
}
|
2352
|
-
if (url !== null && url !== undefined) {
|
2353
|
-
localVarQueryParameter['url'] = url;
|
2354
|
-
}
|
2355
|
-
if (createTime !== null && createTime !== undefined) {
|
2356
|
-
localVarQueryParameter['create_time'] = createTime;
|
2357
|
-
}
|
2358
|
-
|
2359
|
-
options.queryParams = localVarQueryParameter;
|
2360
|
-
options.pathParams = { 'history_tasks_id': historyTasksId, };
|
2361
|
-
options.headers = localVarHeaderParameter;
|
2362
|
-
return options;
|
2363
|
-
},
|
2364
|
-
|
2365
|
-
/**
|
2366
|
-
* 查询刷新预热任务。
|
2367
|
-
*
|
2368
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
2369
|
-
*/
|
2370
|
-
showHistoryTasks(showHistoryTasksRequest?: ShowHistoryTasksRequest) {
|
2371
|
-
const options = {
|
2372
|
-
method: "GET",
|
2373
|
-
url: "/v1.0/cdn/historytasks",
|
2374
|
-
contentType: "application/json",
|
2375
|
-
queryParams: {},
|
2376
|
-
pathParams: {},
|
2377
|
-
headers: {}
|
2378
|
-
};
|
2379
|
-
const localVarHeaderParameter = {} as any;
|
2380
|
-
const localVarQueryParameter = {} as any;
|
2381
|
-
|
2382
|
-
let enterpriseProjectId;
|
2383
|
-
|
2384
|
-
let pageSize;
|
2385
|
-
|
2386
|
-
let pageNumber;
|
2387
|
-
|
2388
|
-
let status;
|
2389
|
-
|
2390
|
-
let startDate;
|
2391
|
-
|
2392
|
-
let endDate;
|
2393
|
-
|
2394
|
-
let orderField;
|
2395
|
-
|
2396
|
-
let orderType;
|
2397
|
-
|
2398
|
-
let fileType;
|
2399
|
-
|
2400
|
-
if (showHistoryTasksRequest !== null && showHistoryTasksRequest !== undefined) {
|
2401
|
-
if (showHistoryTasksRequest instanceof ShowHistoryTasksRequest) {
|
2402
|
-
enterpriseProjectId = showHistoryTasksRequest.enterpriseProjectId;
|
2403
|
-
pageSize = showHistoryTasksRequest.pageSize;
|
2404
|
-
pageNumber = showHistoryTasksRequest.pageNumber;
|
2405
|
-
status = showHistoryTasksRequest.status;
|
2406
|
-
startDate = showHistoryTasksRequest.startDate;
|
2407
|
-
endDate = showHistoryTasksRequest.endDate;
|
2408
|
-
orderField = showHistoryTasksRequest.orderField;
|
2409
|
-
orderType = showHistoryTasksRequest.orderType;
|
2410
|
-
fileType = showHistoryTasksRequest.fileType;
|
2411
|
-
} else {
|
2412
|
-
enterpriseProjectId = showHistoryTasksRequest['enterprise_project_id'];
|
2413
|
-
pageSize = showHistoryTasksRequest['page_size'];
|
2414
|
-
pageNumber = showHistoryTasksRequest['page_number'];
|
2415
|
-
status = showHistoryTasksRequest['status'];
|
2416
|
-
startDate = showHistoryTasksRequest['start_date'];
|
2417
|
-
endDate = showHistoryTasksRequest['end_date'];
|
2418
|
-
orderField = showHistoryTasksRequest['order_field'];
|
2419
|
-
orderType = showHistoryTasksRequest['order_type'];
|
2420
|
-
fileType = showHistoryTasksRequest['file_type'];
|
2421
|
-
}
|
2422
|
-
}
|
2423
|
-
|
2424
|
-
|
2425
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2426
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2427
|
-
}
|
2428
|
-
if (pageSize !== null && pageSize !== undefined) {
|
2429
|
-
localVarQueryParameter['page_size'] = pageSize;
|
2430
|
-
}
|
2431
|
-
if (pageNumber !== null && pageNumber !== undefined) {
|
2432
|
-
localVarQueryParameter['page_number'] = pageNumber;
|
2433
|
-
}
|
2434
|
-
if (status !== null && status !== undefined) {
|
2435
|
-
localVarQueryParameter['status'] = status;
|
2436
|
-
}
|
2437
|
-
if (startDate !== null && startDate !== undefined) {
|
2438
|
-
localVarQueryParameter['start_date'] = startDate;
|
2439
|
-
}
|
2440
|
-
if (endDate !== null && endDate !== undefined) {
|
2441
|
-
localVarQueryParameter['end_date'] = endDate;
|
2442
|
-
}
|
2443
|
-
if (orderField !== null && orderField !== undefined) {
|
2444
|
-
localVarQueryParameter['order_field'] = orderField;
|
2445
|
-
}
|
2446
|
-
if (orderType !== null && orderType !== undefined) {
|
2447
|
-
localVarQueryParameter['order_type'] = orderType;
|
2448
|
-
}
|
2449
|
-
if (fileType !== null && fileType !== undefined) {
|
2450
|
-
localVarQueryParameter['file_type'] = fileType;
|
2451
|
-
}
|
2452
|
-
|
2453
|
-
options.queryParams = localVarQueryParameter;
|
2454
|
-
options.headers = localVarHeaderParameter;
|
2455
|
-
return options;
|
2456
|
-
},
|
2457
|
-
|
2458
|
-
/**
|
2459
|
-
* 获取加速域名证书。
|
2460
|
-
*
|
2461
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
2462
|
-
*/
|
2463
|
-
showHttpInfo(showHttpInfoRequest?: ShowHttpInfoRequest) {
|
2464
|
-
const options = {
|
2465
|
-
method: "GET",
|
2466
|
-
url: "/v1.0/cdn/domains/{domain_id}/https-info",
|
2467
|
-
contentType: "application/json",
|
2468
|
-
queryParams: {},
|
2469
|
-
pathParams: {},
|
2470
|
-
headers: {}
|
2471
|
-
};
|
2472
|
-
const localVarHeaderParameter = {} as any;
|
2473
|
-
const localVarQueryParameter = {} as any;
|
2474
|
-
|
2475
|
-
let domainId;
|
2476
|
-
|
2477
|
-
let enterpriseProjectId;
|
2478
|
-
|
2479
|
-
if (showHttpInfoRequest !== null && showHttpInfoRequest !== undefined) {
|
2480
|
-
if (showHttpInfoRequest instanceof ShowHttpInfoRequest) {
|
2481
|
-
domainId = showHttpInfoRequest.domainId;
|
2482
|
-
enterpriseProjectId = showHttpInfoRequest.enterpriseProjectId;
|
2483
|
-
} else {
|
2484
|
-
domainId = showHttpInfoRequest['domain_id'];
|
2485
|
-
enterpriseProjectId = showHttpInfoRequest['enterprise_project_id'];
|
2486
|
-
}
|
2487
|
-
}
|
2488
|
-
|
2489
|
-
|
2490
|
-
if (domainId === null || domainId === undefined) {
|
2491
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling showHttpInfo.');
|
2492
|
-
}
|
2493
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2494
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2495
|
-
}
|
2496
|
-
|
2497
|
-
options.queryParams = localVarQueryParameter;
|
2498
|
-
options.pathParams = { 'domain_id': domainId, };
|
2499
|
-
options.headers = localVarHeaderParameter;
|
2500
|
-
return options;
|
2501
|
-
},
|
2502
|
-
|
2503
|
-
/**
|
2504
|
-
* 查询IP归属信息。
|
2505
|
-
*
|
2506
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
2507
|
-
*/
|
2508
|
-
showIpInfo(showIpInfoRequest?: ShowIpInfoRequest) {
|
2509
|
-
const options = {
|
2510
|
-
method: "GET",
|
2511
|
-
url: "/v1.0/cdn/ip-info",
|
2512
|
-
contentType: "application/json",
|
2513
|
-
queryParams: {},
|
2514
|
-
pathParams: {},
|
2515
|
-
headers: {}
|
2516
|
-
};
|
2517
|
-
const localVarHeaderParameter = {} as any;
|
2518
|
-
const localVarQueryParameter = {} as any;
|
2519
|
-
|
2520
|
-
let ips;
|
2521
|
-
|
2522
|
-
let enterpriseProjectId;
|
2523
|
-
|
2524
|
-
if (showIpInfoRequest !== null && showIpInfoRequest !== undefined) {
|
2525
|
-
if (showIpInfoRequest instanceof ShowIpInfoRequest) {
|
2526
|
-
ips = showIpInfoRequest.ips;
|
2527
|
-
enterpriseProjectId = showIpInfoRequest.enterpriseProjectId;
|
2528
|
-
} else {
|
2529
|
-
ips = showIpInfoRequest['ips'];
|
2530
|
-
enterpriseProjectId = showIpInfoRequest['enterprise_project_id'];
|
2531
|
-
}
|
2532
|
-
}
|
2533
|
-
|
2534
|
-
|
2535
|
-
if (ips === null || ips === undefined) {
|
2536
|
-
throw new RequiredError('ips','Required parameter ips was null or undefined when calling showIpInfo.');
|
2537
|
-
}
|
2538
|
-
if (ips !== null && ips !== undefined) {
|
2539
|
-
localVarQueryParameter['ips'] = ips;
|
2540
|
-
}
|
2541
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2542
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2543
|
-
}
|
2544
|
-
|
2545
|
-
options.queryParams = localVarQueryParameter;
|
2546
|
-
options.headers = localVarHeaderParameter;
|
2547
|
-
return options;
|
2548
|
-
},
|
2549
|
-
|
2550
|
-
/**
|
2551
|
-
* 查询日志下载链接,支持查询30天内的日志信息。
|
2552
|
-
*
|
2553
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
2554
|
-
*/
|
2555
|
-
showLogs(showLogsRequest?: ShowLogsRequest) {
|
2556
|
-
const options = {
|
2557
|
-
method: "GET",
|
2558
|
-
url: "/v1.0/cdn/logs",
|
2559
|
-
contentType: "application/json",
|
2560
|
-
queryParams: {},
|
2561
|
-
pathParams: {},
|
2562
|
-
headers: {}
|
2563
|
-
};
|
2564
|
-
const localVarHeaderParameter = {} as any;
|
2565
|
-
const localVarQueryParameter = {} as any;
|
2566
|
-
|
2567
|
-
let domainName;
|
2568
|
-
|
2569
|
-
let startTime;
|
2570
|
-
|
2571
|
-
let endTime;
|
2572
|
-
|
2573
|
-
let pageSize;
|
2574
|
-
|
2575
|
-
let pageNumber;
|
2576
|
-
|
2577
|
-
let enterpriseProjectId;
|
2578
|
-
|
2579
|
-
if (showLogsRequest !== null && showLogsRequest !== undefined) {
|
2580
|
-
if (showLogsRequest instanceof ShowLogsRequest) {
|
2581
|
-
domainName = showLogsRequest.domainName;
|
2582
|
-
startTime = showLogsRequest.startTime;
|
2583
|
-
endTime = showLogsRequest.endTime;
|
2584
|
-
pageSize = showLogsRequest.pageSize;
|
2585
|
-
pageNumber = showLogsRequest.pageNumber;
|
2586
|
-
enterpriseProjectId = showLogsRequest.enterpriseProjectId;
|
2587
|
-
} else {
|
2588
|
-
domainName = showLogsRequest['domain_name'];
|
2589
|
-
startTime = showLogsRequest['start_time'];
|
2590
|
-
endTime = showLogsRequest['end_time'];
|
2591
|
-
pageSize = showLogsRequest['page_size'];
|
2592
|
-
pageNumber = showLogsRequest['page_number'];
|
2593
|
-
enterpriseProjectId = showLogsRequest['enterprise_project_id'];
|
2594
|
-
}
|
2595
|
-
}
|
2596
|
-
|
2597
|
-
|
2598
|
-
if (domainName === null || domainName === undefined) {
|
2599
|
-
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showLogs.');
|
2600
|
-
}
|
2601
|
-
if (domainName !== null && domainName !== undefined) {
|
2602
|
-
localVarQueryParameter['domain_name'] = domainName;
|
2603
|
-
}
|
2604
|
-
if (startTime !== null && startTime !== undefined) {
|
2605
|
-
localVarQueryParameter['start_time'] = startTime;
|
2606
|
-
}
|
2607
|
-
if (endTime !== null && endTime !== undefined) {
|
2608
|
-
localVarQueryParameter['end_time'] = endTime;
|
2609
|
-
}
|
2610
|
-
if (pageSize !== null && pageSize !== undefined) {
|
2611
|
-
localVarQueryParameter['page_size'] = pageSize;
|
2612
|
-
}
|
2613
|
-
if (pageNumber !== null && pageNumber !== undefined) {
|
2614
|
-
localVarQueryParameter['page_number'] = pageNumber;
|
2615
|
-
}
|
2616
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2617
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2618
|
-
}
|
2619
|
-
|
2620
|
-
options.queryParams = localVarQueryParameter;
|
2621
|
-
options.headers = localVarHeaderParameter;
|
2622
|
-
return options;
|
2623
|
-
},
|
2624
|
-
|
2625
|
-
/**
|
2626
|
-
* 查询回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。
|
2627
|
-
*
|
2628
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
2629
|
-
*/
|
2630
|
-
showOriginHost(showOriginHostRequest?: ShowOriginHostRequest) {
|
2631
|
-
const options = {
|
2632
|
-
method: "GET",
|
2633
|
-
url: "/v1.0/cdn/domains/{domain_id}/originhost",
|
2634
|
-
contentType: "application/json",
|
2635
|
-
queryParams: {},
|
2636
|
-
pathParams: {},
|
2637
|
-
headers: {}
|
2638
|
-
};
|
2639
|
-
const localVarHeaderParameter = {} as any;
|
2640
|
-
const localVarQueryParameter = {} as any;
|
2641
|
-
|
2642
|
-
let domainId;
|
2643
|
-
|
2644
|
-
let enterpriseProjectId;
|
2645
|
-
|
2646
|
-
if (showOriginHostRequest !== null && showOriginHostRequest !== undefined) {
|
2647
|
-
if (showOriginHostRequest instanceof ShowOriginHostRequest) {
|
2648
|
-
domainId = showOriginHostRequest.domainId;
|
2649
|
-
enterpriseProjectId = showOriginHostRequest.enterpriseProjectId;
|
2650
|
-
} else {
|
2651
|
-
domainId = showOriginHostRequest['domain_id'];
|
2652
|
-
enterpriseProjectId = showOriginHostRequest['enterprise_project_id'];
|
2653
|
-
}
|
2654
|
-
}
|
2655
|
-
|
2656
|
-
|
2657
|
-
if (domainId === null || domainId === undefined) {
|
2658
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling showOriginHost.');
|
2659
|
-
}
|
2660
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2661
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2662
|
-
}
|
2663
|
-
|
2664
|
-
options.queryParams = localVarQueryParameter;
|
2665
|
-
options.pathParams = { 'domain_id': domainId, };
|
2666
|
-
options.headers = localVarHeaderParameter;
|
2667
|
-
return options;
|
2668
|
-
},
|
2669
|
-
|
2670
|
-
/**
|
2671
|
-
* 查询当前用户域名、刷新文件、刷新目录和预热的配额
|
2672
|
-
*
|
2673
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
2674
|
-
*/
|
2675
|
-
showQuota() {
|
2676
|
-
const options = {
|
2677
|
-
method: "GET",
|
2678
|
-
url: "/v1.0/cdn/quota",
|
2679
|
-
contentType: "application/json",
|
2680
|
-
queryParams: {},
|
2681
|
-
pathParams: {},
|
2682
|
-
headers: {}
|
2683
|
-
};
|
2684
|
-
const localVarHeaderParameter = {} as any;
|
2685
|
-
|
2686
|
-
|
2687
|
-
options.headers = localVarHeaderParameter;
|
2688
|
-
return options;
|
2689
|
-
},
|
2690
|
-
|
2691
|
-
/**
|
2692
|
-
* 查询Referer过滤规则。
|
2693
|
-
*
|
2694
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
2695
|
-
*/
|
2696
|
-
showRefer(showReferRequest?: ShowReferRequest) {
|
2697
|
-
const options = {
|
2698
|
-
method: "GET",
|
2699
|
-
url: "/v1.0/cdn/domains/{domain_id}/referer",
|
2700
|
-
contentType: "application/json",
|
2701
|
-
queryParams: {},
|
2702
|
-
pathParams: {},
|
2703
|
-
headers: {}
|
2704
|
-
};
|
2705
|
-
const localVarHeaderParameter = {} as any;
|
2706
|
-
const localVarQueryParameter = {} as any;
|
2707
|
-
|
2708
|
-
let domainId;
|
2709
|
-
|
2710
|
-
let enterpriseProjectId;
|
2711
|
-
|
2712
|
-
if (showReferRequest !== null && showReferRequest !== undefined) {
|
2713
|
-
if (showReferRequest instanceof ShowReferRequest) {
|
2714
|
-
domainId = showReferRequest.domainId;
|
2715
|
-
enterpriseProjectId = showReferRequest.enterpriseProjectId;
|
2716
|
-
} else {
|
2717
|
-
domainId = showReferRequest['domain_id'];
|
2718
|
-
enterpriseProjectId = showReferRequest['enterprise_project_id'];
|
2719
|
-
}
|
2720
|
-
}
|
2721
|
-
|
2722
|
-
|
2723
|
-
if (domainId === null || domainId === undefined) {
|
2724
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling showRefer.');
|
2725
|
-
}
|
2726
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2727
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2728
|
-
}
|
2729
|
-
|
2730
|
-
options.queryParams = localVarQueryParameter;
|
2731
|
-
options.pathParams = { 'domain_id': domainId, };
|
2732
|
-
options.headers = localVarHeaderParameter;
|
2733
|
-
return options;
|
2734
|
-
},
|
2735
|
-
|
2736
|
-
/**
|
2737
|
-
* 列举header所有配置。
|
2738
|
-
*
|
2739
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
2740
|
-
*/
|
2741
|
-
showResponseHeader(showResponseHeaderRequest?: ShowResponseHeaderRequest) {
|
2742
|
-
const options = {
|
2743
|
-
method: "GET",
|
2744
|
-
url: "/v1.0/cdn/domains/{domain_id}/response-header",
|
2745
|
-
contentType: "application/json",
|
2746
|
-
queryParams: {},
|
2747
|
-
pathParams: {},
|
2748
|
-
headers: {}
|
2749
|
-
};
|
2750
|
-
const localVarHeaderParameter = {} as any;
|
2751
|
-
const localVarQueryParameter = {} as any;
|
2752
|
-
|
2753
|
-
let domainId;
|
2754
|
-
|
2755
|
-
let enterpriseProjectId;
|
2756
|
-
|
2757
|
-
if (showResponseHeaderRequest !== null && showResponseHeaderRequest !== undefined) {
|
2758
|
-
if (showResponseHeaderRequest instanceof ShowResponseHeaderRequest) {
|
2759
|
-
domainId = showResponseHeaderRequest.domainId;
|
2760
|
-
enterpriseProjectId = showResponseHeaderRequest.enterpriseProjectId;
|
2761
|
-
} else {
|
2762
|
-
domainId = showResponseHeaderRequest['domain_id'];
|
2763
|
-
enterpriseProjectId = showResponseHeaderRequest['enterprise_project_id'];
|
2764
|
-
}
|
2765
|
-
}
|
2766
|
-
|
2767
|
-
|
2768
|
-
if (domainId === null || domainId === undefined) {
|
2769
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling showResponseHeader.');
|
2770
|
-
}
|
2771
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2772
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2773
|
-
}
|
2774
|
-
|
2775
|
-
options.queryParams = localVarQueryParameter;
|
2776
|
-
options.pathParams = { 'domain_id': domainId, };
|
2777
|
-
options.headers = localVarHeaderParameter;
|
2778
|
-
return options;
|
2779
|
-
},
|
2780
|
-
|
2781
|
-
/**
|
2782
|
-
* 用于查询资源标签列表。
|
2783
|
-
*
|
2784
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
2785
|
-
*/
|
2786
|
-
showTags(showTagsRequest?: ShowTagsRequest) {
|
2787
|
-
const options = {
|
2788
|
-
method: "GET",
|
2789
|
-
url: "/v1.0/cdn/configuration/tags",
|
2790
|
-
contentType: "application/json",
|
2791
|
-
queryParams: {},
|
2792
|
-
pathParams: {},
|
2793
|
-
headers: {}
|
2794
|
-
};
|
2795
|
-
const localVarHeaderParameter = {} as any;
|
2796
|
-
const localVarQueryParameter = {} as any;
|
2797
|
-
|
2798
|
-
let resourceId;
|
2799
|
-
|
2800
|
-
if (showTagsRequest !== null && showTagsRequest !== undefined) {
|
2801
|
-
if (showTagsRequest instanceof ShowTagsRequest) {
|
2802
|
-
resourceId = showTagsRequest.resourceId;
|
2803
|
-
} else {
|
2804
|
-
resourceId = showTagsRequest['resource_id'];
|
2805
|
-
}
|
2806
|
-
}
|
2807
|
-
|
2808
|
-
|
2809
|
-
if (resourceId === null || resourceId === undefined) {
|
2810
|
-
throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling showTags.');
|
2811
|
-
}
|
2812
|
-
if (resourceId !== null && resourceId !== undefined) {
|
2813
|
-
localVarQueryParameter['resource_id'] = resourceId;
|
2814
|
-
}
|
2815
|
-
|
2816
|
-
options.queryParams = localVarQueryParameter;
|
2817
|
-
options.headers = localVarHeaderParameter;
|
2818
|
-
return options;
|
2819
|
-
},
|
2820
|
-
|
2821
|
-
/**
|
2822
|
-
* - 查询TOP100 URL明细。
|
2823
|
-
*
|
2824
|
-
* - 支持查询90天内的数据。
|
2825
|
-
*
|
2826
|
-
* - 查询跨度不能超过31天。
|
2827
|
-
*
|
2828
|
-
* - 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00
|
2829
|
-
* 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。
|
2830
|
-
*
|
2831
|
-
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。
|
2832
|
-
*
|
2833
|
-
* - 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
2834
|
-
*
|
2835
|
-
* - 单租户调用频率:5次/s。
|
2836
|
-
*
|
2837
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
2838
|
-
*/
|
2839
|
-
showTopUrl(showTopUrlRequest?: ShowTopUrlRequest) {
|
2840
|
-
const options = {
|
2841
|
-
method: "GET",
|
2842
|
-
url: "/v1.0/cdn/statistics/top-url",
|
2843
|
-
contentType: "application/json",
|
2844
|
-
queryParams: {},
|
2845
|
-
pathParams: {},
|
2846
|
-
headers: {}
|
2847
|
-
};
|
2848
|
-
const localVarHeaderParameter = {} as any;
|
2849
|
-
const localVarQueryParameter = {} as any;
|
2850
|
-
|
2851
|
-
let startTime;
|
2852
|
-
|
2853
|
-
let endTime;
|
2854
|
-
|
2855
|
-
let domainName;
|
2856
|
-
|
2857
|
-
let statType;
|
2858
|
-
|
2859
|
-
let enterpriseProjectId;
|
2860
|
-
|
2861
|
-
let serviceArea;
|
2862
|
-
|
2863
|
-
if (showTopUrlRequest !== null && showTopUrlRequest !== undefined) {
|
2864
|
-
if (showTopUrlRequest instanceof ShowTopUrlRequest) {
|
2865
|
-
startTime = showTopUrlRequest.startTime;
|
2866
|
-
endTime = showTopUrlRequest.endTime;
|
2867
|
-
domainName = showTopUrlRequest.domainName;
|
2868
|
-
statType = showTopUrlRequest.statType;
|
2869
|
-
enterpriseProjectId = showTopUrlRequest.enterpriseProjectId;
|
2870
|
-
serviceArea = showTopUrlRequest.serviceArea;
|
2871
|
-
} else {
|
2872
|
-
startTime = showTopUrlRequest['start_time'];
|
2873
|
-
endTime = showTopUrlRequest['end_time'];
|
2874
|
-
domainName = showTopUrlRequest['domain_name'];
|
2875
|
-
statType = showTopUrlRequest['stat_type'];
|
2876
|
-
enterpriseProjectId = showTopUrlRequest['enterprise_project_id'];
|
2877
|
-
serviceArea = showTopUrlRequest['service_area'];
|
2878
|
-
}
|
2879
|
-
}
|
2880
|
-
|
2881
|
-
|
2882
|
-
if (startTime === null || startTime === undefined) {
|
2883
|
-
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showTopUrl.');
|
2884
|
-
}
|
2885
|
-
if (startTime !== null && startTime !== undefined) {
|
2886
|
-
localVarQueryParameter['start_time'] = startTime;
|
2887
|
-
}
|
2888
|
-
if (endTime === null || endTime === undefined) {
|
2889
|
-
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showTopUrl.');
|
2890
|
-
}
|
2891
|
-
if (endTime !== null && endTime !== undefined) {
|
2892
|
-
localVarQueryParameter['end_time'] = endTime;
|
2893
|
-
}
|
2894
|
-
if (domainName === null || domainName === undefined) {
|
2895
|
-
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showTopUrl.');
|
2896
|
-
}
|
2897
|
-
if (domainName !== null && domainName !== undefined) {
|
2898
|
-
localVarQueryParameter['domain_name'] = domainName;
|
2899
|
-
}
|
2900
|
-
if (statType === null || statType === undefined) {
|
2901
|
-
throw new RequiredError('statType','Required parameter statType was null or undefined when calling showTopUrl.');
|
2902
|
-
}
|
2903
|
-
if (statType !== null && statType !== undefined) {
|
2904
|
-
localVarQueryParameter['stat_type'] = statType;
|
2905
|
-
}
|
2906
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2907
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2908
|
-
}
|
2909
|
-
if (serviceArea !== null && serviceArea !== undefined) {
|
2910
|
-
localVarQueryParameter['service_area'] = serviceArea;
|
2911
|
-
}
|
2912
|
-
|
2913
|
-
options.queryParams = localVarQueryParameter;
|
2914
|
-
options.headers = localVarHeaderParameter;
|
2915
|
-
return options;
|
2916
|
-
},
|
2917
|
-
|
2918
|
-
/**
|
2919
|
-
* 查询刷新预热URL记录。如需此接口,请提交工单开通
|
2920
|
-
*
|
2921
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
2922
|
-
*/
|
2923
|
-
showUrlTaskInfo(showUrlTaskInfoRequest?: ShowUrlTaskInfoRequest) {
|
2924
|
-
const options = {
|
2925
|
-
method: "GET",
|
2926
|
-
url: "/v1.0/cdn/contentgateway/url-tasks",
|
2927
|
-
contentType: "application/json",
|
2928
|
-
queryParams: {},
|
2929
|
-
pathParams: {},
|
2930
|
-
headers: {}
|
2931
|
-
};
|
2932
|
-
const localVarHeaderParameter = {} as any;
|
2933
|
-
const localVarQueryParameter = {} as any;
|
2934
|
-
|
2935
|
-
let startTime;
|
2936
|
-
|
2937
|
-
let endTime;
|
2938
|
-
|
2939
|
-
let offset;
|
2940
|
-
|
2941
|
-
let limit;
|
2942
|
-
|
2943
|
-
let url;
|
2944
|
-
|
2945
|
-
let taskType;
|
2946
|
-
|
2947
|
-
let status;
|
2948
|
-
|
2949
|
-
let fileType;
|
2950
|
-
|
2951
|
-
if (showUrlTaskInfoRequest !== null && showUrlTaskInfoRequest !== undefined) {
|
2952
|
-
if (showUrlTaskInfoRequest instanceof ShowUrlTaskInfoRequest) {
|
2953
|
-
startTime = showUrlTaskInfoRequest.startTime;
|
2954
|
-
endTime = showUrlTaskInfoRequest.endTime;
|
2955
|
-
offset = showUrlTaskInfoRequest.offset;
|
2956
|
-
limit = showUrlTaskInfoRequest.limit;
|
2957
|
-
url = showUrlTaskInfoRequest.url;
|
2958
|
-
taskType = showUrlTaskInfoRequest.taskType;
|
2959
|
-
status = showUrlTaskInfoRequest.status;
|
2960
|
-
fileType = showUrlTaskInfoRequest.fileType;
|
2961
|
-
} else {
|
2962
|
-
startTime = showUrlTaskInfoRequest['start_time'];
|
2963
|
-
endTime = showUrlTaskInfoRequest['end_time'];
|
2964
|
-
offset = showUrlTaskInfoRequest['offset'];
|
2965
|
-
limit = showUrlTaskInfoRequest['limit'];
|
2966
|
-
url = showUrlTaskInfoRequest['url'];
|
2967
|
-
taskType = showUrlTaskInfoRequest['task_type'];
|
2968
|
-
status = showUrlTaskInfoRequest['status'];
|
2969
|
-
fileType = showUrlTaskInfoRequest['file_type'];
|
2970
|
-
}
|
2971
|
-
}
|
2972
|
-
|
2973
|
-
|
2974
|
-
if (startTime !== null && startTime !== undefined) {
|
2975
|
-
localVarQueryParameter['start_time'] = startTime;
|
2976
|
-
}
|
2977
|
-
if (endTime !== null && endTime !== undefined) {
|
2978
|
-
localVarQueryParameter['end_time'] = endTime;
|
2979
|
-
}
|
2980
|
-
if (offset !== null && offset !== undefined) {
|
2981
|
-
localVarQueryParameter['offset'] = offset;
|
2982
|
-
}
|
2983
|
-
if (limit !== null && limit !== undefined) {
|
2984
|
-
localVarQueryParameter['limit'] = limit;
|
2985
|
-
}
|
2986
|
-
if (url !== null && url !== undefined) {
|
2987
|
-
localVarQueryParameter['url'] = url;
|
2988
|
-
}
|
2989
|
-
if (taskType !== null && taskType !== undefined) {
|
2990
|
-
localVarQueryParameter['task_type'] = taskType;
|
2991
|
-
}
|
2992
|
-
if (status !== null && status !== undefined) {
|
2993
|
-
localVarQueryParameter['status'] = status;
|
2994
|
-
}
|
2995
|
-
if (fileType !== null && fileType !== undefined) {
|
2996
|
-
localVarQueryParameter['file_type'] = fileType;
|
2997
|
-
}
|
2998
|
-
|
2999
|
-
options.queryParams = localVarQueryParameter;
|
3000
|
-
options.headers = localVarHeaderParameter;
|
3001
|
-
return options;
|
3002
|
-
},
|
3003
|
-
|
3004
|
-
/**
|
3005
|
-
* 设置域名的IP黑白名单。
|
3006
|
-
*
|
3007
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
3008
|
-
*/
|
3009
|
-
updateBlackWhiteList(updateBlackWhiteListRequest?: UpdateBlackWhiteListRequest) {
|
3010
|
-
const options = {
|
3011
|
-
method: "PUT",
|
3012
|
-
url: "/v1.0/cdn/domains/{domain_id}/ip-acl",
|
3013
|
-
contentType: "application/json",
|
3014
|
-
queryParams: {},
|
3015
|
-
pathParams: {},
|
3016
|
-
headers: {},
|
3017
|
-
data: {}
|
3018
|
-
};
|
3019
|
-
const localVarHeaderParameter = {} as any;
|
3020
|
-
const localVarQueryParameter = {} as any;
|
3021
|
-
let body: any;
|
3022
|
-
|
3023
|
-
let domainId;
|
3024
|
-
|
3025
|
-
let enterpriseProjectId;
|
3026
|
-
|
3027
|
-
if (updateBlackWhiteListRequest !== null && updateBlackWhiteListRequest !== undefined) {
|
3028
|
-
if (updateBlackWhiteListRequest instanceof UpdateBlackWhiteListRequest) {
|
3029
|
-
domainId = updateBlackWhiteListRequest.domainId;
|
3030
|
-
body = updateBlackWhiteListRequest.body
|
3031
|
-
enterpriseProjectId = updateBlackWhiteListRequest.enterpriseProjectId;
|
3032
|
-
} else {
|
3033
|
-
domainId = updateBlackWhiteListRequest['domain_id'];
|
3034
|
-
body = updateBlackWhiteListRequest['body'];
|
3035
|
-
enterpriseProjectId = updateBlackWhiteListRequest['enterprise_project_id'];
|
3036
|
-
}
|
3037
|
-
}
|
3038
|
-
|
3039
|
-
|
3040
|
-
if (domainId === null || domainId === undefined) {
|
3041
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateBlackWhiteList.');
|
3042
|
-
}
|
3043
|
-
if (body === null || body === undefined) {
|
3044
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
3045
|
-
}
|
3046
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3047
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3048
|
-
}
|
3049
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3050
|
-
|
3051
|
-
options.data = body !== undefined ? body : {};
|
3052
|
-
options.queryParams = localVarQueryParameter;
|
3053
|
-
options.pathParams = { 'domain_id': domainId, };
|
3054
|
-
options.headers = localVarHeaderParameter;
|
3055
|
-
return options;
|
3056
|
-
},
|
3057
|
-
|
3058
|
-
/**
|
3059
|
-
* 设置CDN节点上缓存资源的缓存策略。
|
3060
|
-
*
|
3061
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
3062
|
-
*/
|
3063
|
-
updateCacheRules(updateCacheRulesRequest?: UpdateCacheRulesRequest) {
|
3064
|
-
const options = {
|
3065
|
-
method: "PUT",
|
3066
|
-
url: "/v1.0/cdn/domains/{domain_id}/cache",
|
3067
|
-
contentType: "application/json",
|
3068
|
-
queryParams: {},
|
3069
|
-
pathParams: {},
|
3070
|
-
headers: {},
|
3071
|
-
data: {}
|
3072
|
-
};
|
3073
|
-
const localVarHeaderParameter = {} as any;
|
3074
|
-
const localVarQueryParameter = {} as any;
|
3075
|
-
let body: any;
|
3076
|
-
|
3077
|
-
let domainId;
|
3078
|
-
|
3079
|
-
let enterpriseProjectId;
|
3080
|
-
|
3081
|
-
if (updateCacheRulesRequest !== null && updateCacheRulesRequest !== undefined) {
|
3082
|
-
if (updateCacheRulesRequest instanceof UpdateCacheRulesRequest) {
|
3083
|
-
domainId = updateCacheRulesRequest.domainId;
|
3084
|
-
body = updateCacheRulesRequest.body
|
3085
|
-
enterpriseProjectId = updateCacheRulesRequest.enterpriseProjectId;
|
3086
|
-
} else {
|
3087
|
-
domainId = updateCacheRulesRequest['domain_id'];
|
3088
|
-
body = updateCacheRulesRequest['body'];
|
3089
|
-
enterpriseProjectId = updateCacheRulesRequest['enterprise_project_id'];
|
3090
|
-
}
|
3091
|
-
}
|
3092
|
-
|
3093
|
-
|
3094
|
-
if (domainId === null || domainId === undefined) {
|
3095
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateCacheRules.');
|
3096
|
-
}
|
3097
|
-
if (body === null || body === undefined) {
|
3098
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
3099
|
-
}
|
3100
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3101
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3102
|
-
}
|
3103
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3104
|
-
|
3105
|
-
options.data = body !== undefined ? body : {};
|
3106
|
-
options.queryParams = localVarQueryParameter;
|
3107
|
-
options.pathParams = { 'domain_id': domainId, };
|
3108
|
-
options.headers = localVarHeaderParameter;
|
3109
|
-
return options;
|
3110
|
-
},
|
3111
|
-
|
3112
|
-
/**
|
3113
|
-
* 修改域名配置接口,
|
3114
|
-
* 支持修改回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转。
|
3115
|
-
*
|
3116
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
3117
|
-
*/
|
3118
|
-
updateDomainFullConfig(updateDomainFullConfigRequest?: UpdateDomainFullConfigRequest) {
|
3119
|
-
const options = {
|
3120
|
-
method: "PUT",
|
3121
|
-
url: "/v1.1/cdn/configuration/domains/{domain_name}/configs",
|
3122
|
-
contentType: "application/json",
|
3123
|
-
queryParams: {},
|
3124
|
-
pathParams: {},
|
3125
|
-
headers: {},
|
3126
|
-
data: {}
|
3127
|
-
};
|
3128
|
-
const localVarHeaderParameter = {} as any;
|
3129
|
-
const localVarQueryParameter = {} as any;
|
3130
|
-
let body: any;
|
3131
|
-
|
3132
|
-
let domainName;
|
3133
|
-
|
3134
|
-
let enterpriseProjectId;
|
3135
|
-
|
3136
|
-
if (updateDomainFullConfigRequest !== null && updateDomainFullConfigRequest !== undefined) {
|
3137
|
-
if (updateDomainFullConfigRequest instanceof UpdateDomainFullConfigRequest) {
|
3138
|
-
domainName = updateDomainFullConfigRequest.domainName;
|
3139
|
-
body = updateDomainFullConfigRequest.body
|
3140
|
-
enterpriseProjectId = updateDomainFullConfigRequest.enterpriseProjectId;
|
3141
|
-
} else {
|
3142
|
-
domainName = updateDomainFullConfigRequest['domain_name'];
|
3143
|
-
body = updateDomainFullConfigRequest['body'];
|
3144
|
-
enterpriseProjectId = updateDomainFullConfigRequest['enterprise_project_id'];
|
3145
|
-
}
|
3146
|
-
}
|
3147
|
-
|
3148
|
-
|
3149
|
-
if (domainName === null || domainName === undefined) {
|
3150
|
-
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling updateDomainFullConfig.');
|
3151
|
-
}
|
3152
|
-
if (body === null || body === undefined) {
|
3153
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
3154
|
-
}
|
3155
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3156
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3157
|
-
}
|
3158
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3159
|
-
|
3160
|
-
options.data = body !== undefined ? body : {};
|
3161
|
-
options.queryParams = localVarQueryParameter;
|
3162
|
-
options.pathParams = { 'domain_name': domainName, };
|
3163
|
-
options.headers = localVarHeaderParameter;
|
3164
|
-
return options;
|
3165
|
-
},
|
3166
|
-
|
3167
|
-
/**
|
3168
|
-
* 一个证书配置多个域名,设置域名强制https回源参数。
|
3169
|
-
*
|
3170
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
3171
|
-
*/
|
3172
|
-
updateDomainMultiCertificates(updateDomainMultiCertificatesRequest?: UpdateDomainMultiCertificatesRequest) {
|
3173
|
-
const options = {
|
3174
|
-
method: "PUT",
|
3175
|
-
url: "/v1.0/cdn/domains/config-https-info",
|
3176
|
-
contentType: "application/json",
|
3177
|
-
queryParams: {},
|
3178
|
-
pathParams: {},
|
3179
|
-
headers: {},
|
3180
|
-
data: {}
|
3181
|
-
};
|
3182
|
-
const localVarHeaderParameter = {} as any;
|
3183
|
-
const localVarQueryParameter = {} as any;
|
3184
|
-
let body: any;
|
3185
|
-
|
3186
|
-
let enterpriseProjectId;
|
3187
|
-
|
3188
|
-
if (updateDomainMultiCertificatesRequest !== null && updateDomainMultiCertificatesRequest !== undefined) {
|
3189
|
-
if (updateDomainMultiCertificatesRequest instanceof UpdateDomainMultiCertificatesRequest) {
|
3190
|
-
enterpriseProjectId = updateDomainMultiCertificatesRequest.enterpriseProjectId;
|
3191
|
-
body = updateDomainMultiCertificatesRequest.body
|
3192
|
-
} else {
|
3193
|
-
enterpriseProjectId = updateDomainMultiCertificatesRequest['enterprise_project_id'];
|
3194
|
-
body = updateDomainMultiCertificatesRequest['body'];
|
3195
|
-
}
|
3196
|
-
}
|
3197
|
-
|
3198
|
-
|
3199
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3200
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3201
|
-
}
|
3202
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3203
|
-
|
3204
|
-
options.data = body !== undefined ? body : {};
|
3205
|
-
options.queryParams = localVarQueryParameter;
|
3206
|
-
options.headers = localVarHeaderParameter;
|
3207
|
-
return options;
|
3208
|
-
},
|
3209
|
-
|
3210
|
-
/**
|
3211
|
-
* 修改加速域名的源站配置。
|
3212
|
-
*
|
3213
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
3214
|
-
*/
|
3215
|
-
updateDomainOrigin(updateDomainOriginRequest?: UpdateDomainOriginRequest) {
|
3216
|
-
const options = {
|
3217
|
-
method: "PUT",
|
3218
|
-
url: "/v1.0/cdn/domains/{domain_id}/origin",
|
3219
|
-
contentType: "application/json",
|
3220
|
-
queryParams: {},
|
3221
|
-
pathParams: {},
|
3222
|
-
headers: {},
|
3223
|
-
data: {}
|
3224
|
-
};
|
3225
|
-
const localVarHeaderParameter = {} as any;
|
3226
|
-
const localVarQueryParameter = {} as any;
|
3227
|
-
let body: any;
|
3228
|
-
|
3229
|
-
let domainId;
|
3230
|
-
|
3231
|
-
let enterpriseProjectId;
|
3232
|
-
|
3233
|
-
if (updateDomainOriginRequest !== null && updateDomainOriginRequest !== undefined) {
|
3234
|
-
if (updateDomainOriginRequest instanceof UpdateDomainOriginRequest) {
|
3235
|
-
domainId = updateDomainOriginRequest.domainId;
|
3236
|
-
body = updateDomainOriginRequest.body
|
3237
|
-
enterpriseProjectId = updateDomainOriginRequest.enterpriseProjectId;
|
3238
|
-
} else {
|
3239
|
-
domainId = updateDomainOriginRequest['domain_id'];
|
3240
|
-
body = updateDomainOriginRequest['body'];
|
3241
|
-
enterpriseProjectId = updateDomainOriginRequest['enterprise_project_id'];
|
3242
|
-
}
|
3243
|
-
}
|
3244
|
-
|
3245
|
-
|
3246
|
-
if (domainId === null || domainId === undefined) {
|
3247
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateDomainOrigin.');
|
3248
|
-
}
|
3249
|
-
if (body === null || body === undefined) {
|
3250
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
3251
|
-
}
|
3252
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3253
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3254
|
-
}
|
3255
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3256
|
-
|
3257
|
-
options.data = body !== undefined ? body : {};
|
3258
|
-
options.queryParams = localVarQueryParameter;
|
3259
|
-
options.pathParams = { 'domain_id': domainId, };
|
3260
|
-
options.headers = localVarHeaderParameter;
|
3261
|
-
return options;
|
3262
|
-
},
|
3263
|
-
|
3264
|
-
/**
|
3265
|
-
* 开启此项配置后,当CDN节点回源请求源站返回301/302状态码时,CDN节点会先跳转到301/302对应地址获取资源并缓存后再返回给用户。
|
3266
|
-
*
|
3267
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
3268
|
-
*/
|
3269
|
-
updateFollow302Switch(updateFollow302SwitchRequest?: UpdateFollow302SwitchRequest) {
|
3270
|
-
const options = {
|
3271
|
-
method: "PUT",
|
3272
|
-
url: "/v1.0/cdn/domains/{domain_id}/follow302-switch",
|
3273
|
-
contentType: "application/json",
|
3274
|
-
queryParams: {},
|
3275
|
-
pathParams: {},
|
3276
|
-
headers: {},
|
3277
|
-
data: {}
|
3278
|
-
};
|
3279
|
-
const localVarHeaderParameter = {} as any;
|
3280
|
-
const localVarQueryParameter = {} as any;
|
3281
|
-
let body: any;
|
3282
|
-
|
3283
|
-
let domainId;
|
3284
|
-
|
3285
|
-
let enterpriseProjectId;
|
3286
|
-
|
3287
|
-
if (updateFollow302SwitchRequest !== null && updateFollow302SwitchRequest !== undefined) {
|
3288
|
-
if (updateFollow302SwitchRequest instanceof UpdateFollow302SwitchRequest) {
|
3289
|
-
domainId = updateFollow302SwitchRequest.domainId;
|
3290
|
-
body = updateFollow302SwitchRequest.body
|
3291
|
-
enterpriseProjectId = updateFollow302SwitchRequest.enterpriseProjectId;
|
3292
|
-
} else {
|
3293
|
-
domainId = updateFollow302SwitchRequest['domain_id'];
|
3294
|
-
body = updateFollow302SwitchRequest['body'];
|
3295
|
-
enterpriseProjectId = updateFollow302SwitchRequest['enterprise_project_id'];
|
3296
|
-
}
|
3297
|
-
}
|
3298
|
-
|
3299
|
-
|
3300
|
-
if (domainId === null || domainId === undefined) {
|
3301
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateFollow302Switch.');
|
3302
|
-
}
|
3303
|
-
if (body === null || body === undefined) {
|
3304
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
3305
|
-
}
|
3306
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3307
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3308
|
-
}
|
3309
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3310
|
-
|
3311
|
-
options.data = body !== undefined ? body : {};
|
3312
|
-
options.queryParams = localVarQueryParameter;
|
3313
|
-
options.pathParams = { 'domain_id': domainId, };
|
3314
|
-
options.headers = localVarHeaderParameter;
|
3315
|
-
return options;
|
3316
|
-
},
|
3317
|
-
|
3318
|
-
/**
|
3319
|
-
* 设置加速域名HTTPS。通过配置加速域名的HTTPS证书,并将其部署在全网CDN节点,实现HTTPS安全加速。
|
3320
|
-
*
|
3321
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
3322
|
-
*/
|
3323
|
-
updateHttpsInfo(updateHttpsInfoRequest?: UpdateHttpsInfoRequest) {
|
3324
|
-
const options = {
|
3325
|
-
method: "PUT",
|
3326
|
-
url: "/v1.0/cdn/domains/{domain_id}/https-info",
|
3327
|
-
contentType: "application/json",
|
3328
|
-
queryParams: {},
|
3329
|
-
pathParams: {},
|
3330
|
-
headers: {},
|
3331
|
-
data: {}
|
3332
|
-
};
|
3333
|
-
const localVarHeaderParameter = {} as any;
|
3334
|
-
const localVarQueryParameter = {} as any;
|
3335
|
-
let body: any;
|
3336
|
-
|
3337
|
-
let domainId;
|
3338
|
-
|
3339
|
-
let enterpriseProjectId;
|
3340
|
-
|
3341
|
-
if (updateHttpsInfoRequest !== null && updateHttpsInfoRequest !== undefined) {
|
3342
|
-
if (updateHttpsInfoRequest instanceof UpdateHttpsInfoRequest) {
|
3343
|
-
domainId = updateHttpsInfoRequest.domainId;
|
3344
|
-
body = updateHttpsInfoRequest.body
|
3345
|
-
enterpriseProjectId = updateHttpsInfoRequest.enterpriseProjectId;
|
3346
|
-
} else {
|
3347
|
-
domainId = updateHttpsInfoRequest['domain_id'];
|
3348
|
-
body = updateHttpsInfoRequest['body'];
|
3349
|
-
enterpriseProjectId = updateHttpsInfoRequest['enterprise_project_id'];
|
3350
|
-
}
|
3351
|
-
}
|
3352
|
-
|
3353
|
-
|
3354
|
-
if (domainId === null || domainId === undefined) {
|
3355
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateHttpsInfo.');
|
3356
|
-
}
|
3357
|
-
if (body === null || body === undefined) {
|
3358
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
3359
|
-
}
|
3360
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3361
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3362
|
-
}
|
3363
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3364
|
-
|
3365
|
-
options.data = body !== undefined ? body : {};
|
3366
|
-
options.queryParams = localVarQueryParameter;
|
3367
|
-
options.pathParams = { 'domain_id': domainId, };
|
3368
|
-
options.headers = localVarHeaderParameter;
|
3369
|
-
return options;
|
3370
|
-
},
|
3371
|
-
|
3372
|
-
/**
|
3373
|
-
* 修改回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。
|
3374
|
-
*
|
3375
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
3376
|
-
*/
|
3377
|
-
updateOriginHost(updateOriginHostRequest?: UpdateOriginHostRequest) {
|
3378
|
-
const options = {
|
3379
|
-
method: "PUT",
|
3380
|
-
url: "/v1.0/cdn/domains/{domain_id}/originhost",
|
3381
|
-
contentType: "application/json",
|
3382
|
-
queryParams: {},
|
3383
|
-
pathParams: {},
|
3384
|
-
headers: {},
|
3385
|
-
data: {}
|
3386
|
-
};
|
3387
|
-
const localVarHeaderParameter = {} as any;
|
3388
|
-
const localVarQueryParameter = {} as any;
|
3389
|
-
let body: any;
|
3390
|
-
|
3391
|
-
let domainId;
|
3392
|
-
|
3393
|
-
let enterpriseProjectId;
|
3394
|
-
|
3395
|
-
if (updateOriginHostRequest !== null && updateOriginHostRequest !== undefined) {
|
3396
|
-
if (updateOriginHostRequest instanceof UpdateOriginHostRequest) {
|
3397
|
-
domainId = updateOriginHostRequest.domainId;
|
3398
|
-
body = updateOriginHostRequest.body
|
3399
|
-
enterpriseProjectId = updateOriginHostRequest.enterpriseProjectId;
|
3400
|
-
} else {
|
3401
|
-
domainId = updateOriginHostRequest['domain_id'];
|
3402
|
-
body = updateOriginHostRequest['body'];
|
3403
|
-
enterpriseProjectId = updateOriginHostRequest['enterprise_project_id'];
|
3404
|
-
}
|
3405
|
-
}
|
3406
|
-
|
3407
|
-
|
3408
|
-
if (domainId === null || domainId === undefined) {
|
3409
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateOriginHost.');
|
3410
|
-
}
|
3411
|
-
if (body === null || body === undefined) {
|
3412
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
3413
|
-
}
|
3414
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3415
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3416
|
-
}
|
3417
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3418
|
-
|
3419
|
-
options.data = body !== undefined ? body : {};
|
3420
|
-
options.queryParams = localVarQueryParameter;
|
3421
|
-
options.pathParams = { 'domain_id': domainId, };
|
3422
|
-
options.headers = localVarHeaderParameter;
|
3423
|
-
return options;
|
3424
|
-
},
|
3425
|
-
|
3426
|
-
/**
|
3427
|
-
* 修改私有桶开启关闭状态。
|
3428
|
-
*
|
3429
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
3430
|
-
*/
|
3431
|
-
updatePrivateBucketAccess(updatePrivateBucketAccessRequest?: UpdatePrivateBucketAccessRequest) {
|
3432
|
-
const options = {
|
3433
|
-
method: "PUT",
|
3434
|
-
url: "/v1.0/cdn/domains/{domain_id}/private-bucket-access",
|
3435
|
-
contentType: "application/json",
|
3436
|
-
queryParams: {},
|
3437
|
-
pathParams: {},
|
3438
|
-
headers: {},
|
3439
|
-
data: {}
|
3440
|
-
};
|
3441
|
-
const localVarHeaderParameter = {} as any;
|
3442
|
-
const localVarQueryParameter = {} as any;
|
3443
|
-
let body: any;
|
3444
|
-
|
3445
|
-
let domainId;
|
3446
|
-
|
3447
|
-
let enterpriseProjectId;
|
3448
|
-
|
3449
|
-
if (updatePrivateBucketAccessRequest !== null && updatePrivateBucketAccessRequest !== undefined) {
|
3450
|
-
if (updatePrivateBucketAccessRequest instanceof UpdatePrivateBucketAccessRequest) {
|
3451
|
-
domainId = updatePrivateBucketAccessRequest.domainId;
|
3452
|
-
enterpriseProjectId = updatePrivateBucketAccessRequest.enterpriseProjectId;
|
3453
|
-
body = updatePrivateBucketAccessRequest.body
|
3454
|
-
} else {
|
3455
|
-
domainId = updatePrivateBucketAccessRequest['domain_id'];
|
3456
|
-
enterpriseProjectId = updatePrivateBucketAccessRequest['enterprise_project_id'];
|
3457
|
-
body = updatePrivateBucketAccessRequest['body'];
|
3458
|
-
}
|
3459
|
-
}
|
3460
|
-
|
3461
|
-
|
3462
|
-
if (domainId === null || domainId === undefined) {
|
3463
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updatePrivateBucketAccess.');
|
3464
|
-
}
|
3465
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3466
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3467
|
-
}
|
3468
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3469
|
-
|
3470
|
-
options.data = body !== undefined ? body : {};
|
3471
|
-
options.queryParams = localVarQueryParameter;
|
3472
|
-
options.pathParams = { 'domain_id': domainId, };
|
3473
|
-
options.headers = localVarHeaderParameter;
|
3474
|
-
return options;
|
3475
|
-
},
|
3476
|
-
|
3477
|
-
/**
|
3478
|
-
* Range回源是指源站在收到CDN节点回源请求时,根据http请求头中的Range信息返回指定范围的数据给CDN节点。
|
3479
|
-
*
|
3480
|
-
* 开启Range回源前需要确认源站是否支持Range请求,若源站不支持Range请求,开启Range回源将导致资源无法缓存。
|
3481
|
-
*
|
3482
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
3483
|
-
*/
|
3484
|
-
updateRangeSwitch(updateRangeSwitchRequest?: UpdateRangeSwitchRequest) {
|
3485
|
-
const options = {
|
3486
|
-
method: "PUT",
|
3487
|
-
url: "/v1.0/cdn/domains/{domain_id}/range-switch",
|
3488
|
-
contentType: "application/json",
|
3489
|
-
queryParams: {},
|
3490
|
-
pathParams: {},
|
3491
|
-
headers: {},
|
3492
|
-
data: {}
|
3493
|
-
};
|
3494
|
-
const localVarHeaderParameter = {} as any;
|
3495
|
-
const localVarQueryParameter = {} as any;
|
3496
|
-
let body: any;
|
3497
|
-
|
3498
|
-
let domainId;
|
3499
|
-
|
3500
|
-
let enterpriseProjectId;
|
3501
|
-
|
3502
|
-
if (updateRangeSwitchRequest !== null && updateRangeSwitchRequest !== undefined) {
|
3503
|
-
if (updateRangeSwitchRequest instanceof UpdateRangeSwitchRequest) {
|
3504
|
-
domainId = updateRangeSwitchRequest.domainId;
|
3505
|
-
body = updateRangeSwitchRequest.body
|
3506
|
-
enterpriseProjectId = updateRangeSwitchRequest.enterpriseProjectId;
|
3507
|
-
} else {
|
3508
|
-
domainId = updateRangeSwitchRequest['domain_id'];
|
3509
|
-
body = updateRangeSwitchRequest['body'];
|
3510
|
-
enterpriseProjectId = updateRangeSwitchRequest['enterprise_project_id'];
|
3511
|
-
}
|
3512
|
-
}
|
3513
|
-
|
3514
|
-
|
3515
|
-
if (domainId === null || domainId === undefined) {
|
3516
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateRangeSwitch.');
|
3517
|
-
}
|
3518
|
-
if (body === null || body === undefined) {
|
3519
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
3520
|
-
}
|
3521
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3522
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3523
|
-
}
|
3524
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3525
|
-
|
3526
|
-
options.data = body !== undefined ? body : {};
|
3527
|
-
options.queryParams = localVarQueryParameter;
|
3528
|
-
options.pathParams = { 'domain_id': domainId, };
|
3529
|
-
options.headers = localVarHeaderParameter;
|
3530
|
-
return options;
|
3531
|
-
},
|
3532
|
-
|
3533
|
-
/**
|
3534
|
-
* 设置Referer过滤规则。通过设置过滤策略,对访问者身份进行识别和过滤,实现限制访问来源的目的。
|
3535
|
-
*
|
3536
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
3537
|
-
*/
|
3538
|
-
updateRefer(updateReferRequest?: UpdateReferRequest) {
|
3539
|
-
const options = {
|
3540
|
-
method: "PUT",
|
3541
|
-
url: "/v1.0/cdn/domains/{domain_id}/referer",
|
3542
|
-
contentType: "application/json",
|
3543
|
-
queryParams: {},
|
3544
|
-
pathParams: {},
|
3545
|
-
headers: {},
|
3546
|
-
data: {}
|
3547
|
-
};
|
3548
|
-
const localVarHeaderParameter = {} as any;
|
3549
|
-
const localVarQueryParameter = {} as any;
|
3550
|
-
let body: any;
|
3551
|
-
|
3552
|
-
let domainId;
|
3553
|
-
|
3554
|
-
let enterpriseProjectId;
|
3555
|
-
|
3556
|
-
if (updateReferRequest !== null && updateReferRequest !== undefined) {
|
3557
|
-
if (updateReferRequest instanceof UpdateReferRequest) {
|
3558
|
-
domainId = updateReferRequest.domainId;
|
3559
|
-
body = updateReferRequest.body
|
3560
|
-
enterpriseProjectId = updateReferRequest.enterpriseProjectId;
|
3561
|
-
} else {
|
3562
|
-
domainId = updateReferRequest['domain_id'];
|
3563
|
-
body = updateReferRequest['body'];
|
3564
|
-
enterpriseProjectId = updateReferRequest['enterprise_project_id'];
|
3565
|
-
}
|
3566
|
-
}
|
3567
|
-
|
3568
|
-
|
3569
|
-
if (domainId === null || domainId === undefined) {
|
3570
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateRefer.');
|
3571
|
-
}
|
3572
|
-
if (body === null || body === undefined) {
|
3573
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
3574
|
-
}
|
3575
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3576
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3577
|
-
}
|
3578
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3579
|
-
|
3580
|
-
options.data = body !== undefined ? body : {};
|
3581
|
-
options.queryParams = localVarQueryParameter;
|
3582
|
-
options.pathParams = { 'domain_id': domainId, };
|
3583
|
-
options.headers = localVarHeaderParameter;
|
3584
|
-
return options;
|
3585
|
-
},
|
3586
|
-
|
3587
|
-
/**
|
3588
|
-
* 新增/修改域名响应头配置。
|
3589
|
-
*
|
3590
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
3591
|
-
*/
|
3592
|
-
updateResponseHeader(updateResponseHeaderRequest?: UpdateResponseHeaderRequest) {
|
3593
|
-
const options = {
|
3594
|
-
method: "PUT",
|
3595
|
-
url: "/v1.0/cdn/domains/{domain_id}/response-header",
|
3596
|
-
contentType: "application/json",
|
3597
|
-
queryParams: {},
|
3598
|
-
pathParams: {},
|
3599
|
-
headers: {},
|
3600
|
-
data: {}
|
3601
|
-
};
|
3602
|
-
const localVarHeaderParameter = {} as any;
|
3603
|
-
const localVarQueryParameter = {} as any;
|
3604
|
-
let body: any;
|
3605
|
-
|
3606
|
-
let domainId;
|
3607
|
-
|
3608
|
-
let enterpriseProjectId;
|
3609
|
-
|
3610
|
-
if (updateResponseHeaderRequest !== null && updateResponseHeaderRequest !== undefined) {
|
3611
|
-
if (updateResponseHeaderRequest instanceof UpdateResponseHeaderRequest) {
|
3612
|
-
domainId = updateResponseHeaderRequest.domainId;
|
3613
|
-
body = updateResponseHeaderRequest.body
|
3614
|
-
enterpriseProjectId = updateResponseHeaderRequest.enterpriseProjectId;
|
3615
|
-
} else {
|
3616
|
-
domainId = updateResponseHeaderRequest['domain_id'];
|
3617
|
-
body = updateResponseHeaderRequest['body'];
|
3618
|
-
enterpriseProjectId = updateResponseHeaderRequest['enterprise_project_id'];
|
3619
|
-
}
|
3620
|
-
}
|
3621
|
-
|
3622
|
-
|
3623
|
-
if (domainId === null || domainId === undefined) {
|
3624
|
-
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateResponseHeader.');
|
3625
|
-
}
|
3626
|
-
if (body === null || body === undefined) {
|
3627
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
3628
|
-
}
|
3629
|
-
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3630
|
-
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3631
|
-
}
|
3632
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3633
|
-
|
3634
|
-
options.data = body !== undefined ? body : {};
|
3635
|
-
options.queryParams = localVarQueryParameter;
|
3636
|
-
options.pathParams = { 'domain_id': domainId, };
|
3637
|
-
options.headers = localVarHeaderParameter;
|
3638
|
-
return options;
|
3639
|
-
},
|
3640
|
-
|
3641
|
-
}
|
3642
|
-
};
|
3643
|
-
|
3644
|
-
function newClient(client: HcClient): CdnClient {
|
3645
|
-
return new CdnClient(client);
|
3646
|
-
}
|
3647
|
-
|
3648
|
-
/**
|
3649
|
-
*
|
3650
|
-
* @export
|
3651
|
-
* @class RequiredError
|
3652
|
-
* @extends {Error}
|
3653
|
-
*/
|
3654
|
-
export class RequiredError extends Error {
|
3655
|
-
name: "RequiredError" = "RequiredError";
|
3656
|
-
constructor(public field: string, msg?: string) {
|
3657
|
-
super(msg);
|
3658
|
-
}
|
3659
|
-
}
|