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