@huaweicloud/huaweicloud-sdk-cdn 3.1.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (387) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +1 -0
  3. package/huaweicloud-sdk-cdn.d.ts +2 -0
  4. package/huaweicloud-sdk-cdn.js +18 -0
  5. package/package.json +19 -0
  6. package/v1/CdnClient.d.ts +1372 -0
  7. package/v1/CdnClient.js +3128 -0
  8. package/v1/CdnRegion.d.ts +7 -0
  9. package/v1/CdnRegion.js +29 -0
  10. package/v1/model/BatchDeleteTagsRequest.d.ts +6 -0
  11. package/v1/model/BatchDeleteTagsRequest.js +13 -0
  12. package/v1/model/BatchDeleteTagsResponse.d.ts +4 -0
  13. package/v1/model/BatchDeleteTagsResponse.js +27 -0
  14. package/v1/model/BlackWhiteListBody.d.ts +9 -0
  15. package/v1/model/BlackWhiteListBody.js +28 -0
  16. package/v1/model/CacheConfig.d.ts +17 -0
  17. package/v1/model/CacheConfig.js +45 -0
  18. package/v1/model/CacheConfigRequest.d.ts +17 -0
  19. package/v1/model/CacheConfigRequest.js +45 -0
  20. package/v1/model/CacheConfigRequestBody.d.ts +8 -0
  21. package/v1/model/CacheConfigRequestBody.js +24 -0
  22. package/v1/model/CacheUrlParameterFilter.d.ts +7 -0
  23. package/v1/model/CacheUrlParameterFilter.js +17 -0
  24. package/v1/model/CdnIps.d.ts +13 -0
  25. package/v1/model/CdnIps.js +29 -0
  26. package/v1/model/Compress.d.ts +7 -0
  27. package/v1/model/Compress.js +18 -0
  28. package/v1/model/CompressRequest.d.ts +7 -0
  29. package/v1/model/CompressRequest.js +23 -0
  30. package/v1/model/CompressResponse.d.ts +12 -0
  31. package/v1/model/CompressResponse.js +38 -0
  32. package/v1/model/CompressRules.d.ts +11 -0
  33. package/v1/model/CompressRules.js +37 -0
  34. package/v1/model/Configs.d.ts +69 -0
  35. package/v1/model/Configs.js +189 -0
  36. package/v1/model/ConfigsGetBody.d.ts +69 -0
  37. package/v1/model/ConfigsGetBody.js +189 -0
  38. package/v1/model/CreateDomainRequest.d.ts +6 -0
  39. package/v1/model/CreateDomainRequest.js +13 -0
  40. package/v1/model/CreateDomainRequestBody.d.ts +6 -0
  41. package/v1/model/CreateDomainRequestBody.js +14 -0
  42. package/v1/model/CreateDomainResponse.d.ts +7 -0
  43. package/v1/model/CreateDomainResponse.js +31 -0
  44. package/v1/model/CreateDomainResponseBodyContent.d.ts +67 -0
  45. package/v1/model/CreateDomainResponseBodyContent.js +211 -0
  46. package/v1/model/CreatePreheatingTasksRequest.d.ts +10 -0
  47. package/v1/model/CreatePreheatingTasksRequest.js +27 -0
  48. package/v1/model/CreatePreheatingTasksResponse.d.ts +8 -0
  49. package/v1/model/CreatePreheatingTasksResponse.js +41 -0
  50. package/v1/model/CreateRefreshTasksRequest.d.ts +10 -0
  51. package/v1/model/CreateRefreshTasksRequest.js +27 -0
  52. package/v1/model/CreateRefreshTasksResponse.d.ts +8 -0
  53. package/v1/model/CreateRefreshTasksResponse.js +41 -0
  54. package/v1/model/CreateTagsRequest.d.ts +6 -0
  55. package/v1/model/CreateTagsRequest.js +13 -0
  56. package/v1/model/CreateTagsRequestBody.d.ts +9 -0
  57. package/v1/model/CreateTagsRequestBody.js +29 -0
  58. package/v1/model/CreateTagsResponse.d.ts +4 -0
  59. package/v1/model/CreateTagsResponse.js +27 -0
  60. package/v1/model/DeleteDomainRequest.d.ts +11 -0
  61. package/v1/model/DeleteDomainRequest.js +38 -0
  62. package/v1/model/DeleteDomainResponse.d.ts +7 -0
  63. package/v1/model/DeleteDomainResponse.js +31 -0
  64. package/v1/model/DeleteTagsRequestBody.d.ts +9 -0
  65. package/v1/model/DeleteTagsRequestBody.js +29 -0
  66. package/v1/model/DisableDomainRequest.d.ts +11 -0
  67. package/v1/model/DisableDomainRequest.js +38 -0
  68. package/v1/model/DisableDomainResponse.d.ts +7 -0
  69. package/v1/model/DisableDomainResponse.js +31 -0
  70. package/v1/model/DomainBody.d.ts +41 -0
  71. package/v1/model/DomainBody.js +94 -0
  72. package/v1/model/DomainItemDetail.d.ts +21 -0
  73. package/v1/model/DomainItemDetail.js +55 -0
  74. package/v1/model/DomainItemLocationDetails.d.ts +18 -0
  75. package/v1/model/DomainItemLocationDetails.js +55 -0
  76. package/v1/model/DomainOriginHost.d.ts +15 -0
  77. package/v1/model/DomainOriginHost.js +52 -0
  78. package/v1/model/DomainRegion.d.ts +17 -0
  79. package/v1/model/DomainRegion.js +37 -0
  80. package/v1/model/Domains.d.ts +88 -0
  81. package/v1/model/Domains.js +263 -0
  82. package/v1/model/DomainsWithPort.d.ts +88 -0
  83. package/v1/model/DomainsWithPort.js +263 -0
  84. package/v1/model/EnableDomainRequest.d.ts +11 -0
  85. package/v1/model/EnableDomainRequest.js +38 -0
  86. package/v1/model/EnableDomainResponse.d.ts +7 -0
  87. package/v1/model/EnableDomainResponse.js +31 -0
  88. package/v1/model/ErrorCodeCache.d.ts +7 -0
  89. package/v1/model/ErrorCodeCache.js +17 -0
  90. package/v1/model/ErrorCodeRedirectRules.d.ts +15 -0
  91. package/v1/model/ErrorCodeRedirectRules.js +54 -0
  92. package/v1/model/Follow302StatusBody.d.ts +19 -0
  93. package/v1/model/Follow302StatusBody.js +46 -0
  94. package/v1/model/Follow302StatusRequest.d.ts +15 -0
  95. package/v1/model/Follow302StatusRequest.js +33 -0
  96. package/v1/model/ForceRedirect.d.ts +11 -0
  97. package/v1/model/ForceRedirect.js +38 -0
  98. package/v1/model/ForceRedirectConfig.d.ts +7 -0
  99. package/v1/model/ForceRedirectConfig.js +18 -0
  100. package/v1/model/HeaderBody.d.ts +6 -0
  101. package/v1/model/HeaderBody.js +13 -0
  102. package/v1/model/HeaderMap.d.ts +27 -0
  103. package/v1/model/HeaderMap.js +93 -0
  104. package/v1/model/HttpGetBody.d.ts +27 -0
  105. package/v1/model/HttpGetBody.js +93 -0
  106. package/v1/model/HttpInfoRequest.d.ts +6 -0
  107. package/v1/model/HttpInfoRequest.js +14 -0
  108. package/v1/model/HttpInfoRequestBody.d.ts +32 -0
  109. package/v1/model/HttpInfoRequestBody.js +103 -0
  110. package/v1/model/HttpInfoResponseBody.d.ts +36 -0
  111. package/v1/model/HttpInfoResponseBody.js +115 -0
  112. package/v1/model/HttpPutBody.d.ts +31 -0
  113. package/v1/model/HttpPutBody.js +107 -0
  114. package/v1/model/HttpResponseHeader.d.ts +9 -0
  115. package/v1/model/HttpResponseHeader.js +23 -0
  116. package/v1/model/HttpsDetail.d.ts +44 -0
  117. package/v1/model/HttpsDetail.js +143 -0
  118. package/v1/model/ListDomainsRequest.d.ts +63 -0
  119. package/v1/model/ListDomainsRequest.js +142 -0
  120. package/v1/model/ListDomainsResponse.d.ts +9 -0
  121. package/v1/model/ListDomainsResponse.js +35 -0
  122. package/v1/model/LogObject.d.ts +21 -0
  123. package/v1/model/LogObject.js +63 -0
  124. package/v1/model/ModelMap.d.ts +7 -0
  125. package/v1/model/ModelMap.js +18 -0
  126. package/v1/model/ModifyDomainConfigRequestBody.d.ts +6 -0
  127. package/v1/model/ModifyDomainConfigRequestBody.js +13 -0
  128. package/v1/model/OriginHostBody.d.ts +19 -0
  129. package/v1/model/OriginHostBody.js +47 -0
  130. package/v1/model/OriginHostRequest.d.ts +8 -0
  131. package/v1/model/OriginHostRequest.js +24 -0
  132. package/v1/model/OriginRangeBody.d.ts +19 -0
  133. package/v1/model/OriginRangeBody.js +46 -0
  134. package/v1/model/OriginRequest.d.ts +6 -0
  135. package/v1/model/OriginRequest.js +14 -0
  136. package/v1/model/OriginRequestHeader.d.ts +9 -0
  137. package/v1/model/OriginRequestHeader.js +23 -0
  138. package/v1/model/OriginRequestUrlRewrite.d.ts +17 -0
  139. package/v1/model/OriginRequestUrlRewrite.js +58 -0
  140. package/v1/model/PreheatingTaskRequest.d.ts +8 -0
  141. package/v1/model/PreheatingTaskRequest.js +24 -0
  142. package/v1/model/PreheatingTaskRequestBody.d.ts +5 -0
  143. package/v1/model/PreheatingTaskRequestBody.js +14 -0
  144. package/v1/model/Quotas.d.ts +15 -0
  145. package/v1/model/Quotas.js +45 -0
  146. package/v1/model/RangeStatusRequest.d.ts +15 -0
  147. package/v1/model/RangeStatusRequest.js +33 -0
  148. package/v1/model/Referer.d.ts +15 -0
  149. package/v1/model/Referer.js +52 -0
  150. package/v1/model/RefererBody.d.ts +6 -0
  151. package/v1/model/RefererBody.js +14 -0
  152. package/v1/model/RefererRsp.d.ts +15 -0
  153. package/v1/model/RefererRsp.js +51 -0
  154. package/v1/model/RefreshTaskRequest.d.ts +8 -0
  155. package/v1/model/RefreshTaskRequest.js +24 -0
  156. package/v1/model/RefreshTaskRequestBody.d.ts +15 -0
  157. package/v1/model/RefreshTaskRequestBody.js +27 -0
  158. package/v1/model/ResourceBody.d.ts +6 -0
  159. package/v1/model/ResourceBody.js +14 -0
  160. package/v1/model/Rules.d.ts +17 -0
  161. package/v1/model/Rules.js +53 -0
  162. package/v1/model/ShowBlackWhiteListRequest.d.ts +11 -0
  163. package/v1/model/ShowBlackWhiteListRequest.js +38 -0
  164. package/v1/model/ShowBlackWhiteListResponse.d.ts +10 -0
  165. package/v1/model/ShowBlackWhiteListResponse.js +45 -0
  166. package/v1/model/ShowCacheRulesRequest.d.ts +11 -0
  167. package/v1/model/ShowCacheRulesRequest.js +38 -0
  168. package/v1/model/ShowCacheRulesResponse.d.ts +9 -0
  169. package/v1/model/ShowCacheRulesResponse.js +41 -0
  170. package/v1/model/ShowCertificatesHttpsInfoRequest.d.ts +23 -0
  171. package/v1/model/ShowCertificatesHttpsInfoRequest.js +79 -0
  172. package/v1/model/ShowCertificatesHttpsInfoResponse.d.ts +9 -0
  173. package/v1/model/ShowCertificatesHttpsInfoResponse.js +35 -0
  174. package/v1/model/ShowDomainDetailRequest.d.ts +11 -0
  175. package/v1/model/ShowDomainDetailRequest.js +38 -0
  176. package/v1/model/ShowDomainDetailResponse.d.ts +7 -0
  177. package/v1/model/ShowDomainDetailResponse.js +31 -0
  178. package/v1/model/ShowDomainFullConfigRequest.d.ts +11 -0
  179. package/v1/model/ShowDomainFullConfigRequest.js +38 -0
  180. package/v1/model/ShowDomainFullConfigResponse.d.ts +7 -0
  181. package/v1/model/ShowDomainFullConfigResponse.js +31 -0
  182. package/v1/model/ShowDomainItemDetailsRequest.d.ts +27 -0
  183. package/v1/model/ShowDomainItemDetailsRequest.js +97 -0
  184. package/v1/model/ShowDomainItemDetailsResponse.d.ts +9 -0
  185. package/v1/model/ShowDomainItemDetailsResponse.js +41 -0
  186. package/v1/model/ShowDomainItemLocationDetailsRequest.d.ts +27 -0
  187. package/v1/model/ShowDomainItemLocationDetailsRequest.js +93 -0
  188. package/v1/model/ShowDomainItemLocationDetailsResponse.d.ts +9 -0
  189. package/v1/model/ShowDomainItemLocationDetailsResponse.js +41 -0
  190. package/v1/model/ShowDomainLocationStatsRequest.d.ts +37 -0
  191. package/v1/model/ShowDomainLocationStatsRequest.js +118 -0
  192. package/v1/model/ShowDomainLocationStatsResponse.d.ts +14 -0
  193. package/v1/model/ShowDomainLocationStatsResponse.js +45 -0
  194. package/v1/model/ShowDomainStatsRequest.d.ts +35 -0
  195. package/v1/model/ShowDomainStatsRequest.js +120 -0
  196. package/v1/model/ShowDomainStatsResponse.d.ts +10 -0
  197. package/v1/model/ShowDomainStatsResponse.js +31 -0
  198. package/v1/model/ShowHistoryTaskDetailsRequest.d.ts +27 -0
  199. package/v1/model/ShowHistoryTaskDetailsRequest.js +88 -0
  200. package/v1/model/ShowHistoryTaskDetailsResponse.d.ts +31 -0
  201. package/v1/model/ShowHistoryTaskDetailsResponse.js +97 -0
  202. package/v1/model/ShowHistoryTasksRequest.d.ts +53 -0
  203. package/v1/model/ShowHistoryTasksRequest.js +143 -0
  204. package/v1/model/ShowHistoryTasksResponse.d.ts +9 -0
  205. package/v1/model/ShowHistoryTasksResponse.js +35 -0
  206. package/v1/model/ShowHttpInfoRequest.d.ts +11 -0
  207. package/v1/model/ShowHttpInfoRequest.js +38 -0
  208. package/v1/model/ShowHttpInfoResponse.d.ts +7 -0
  209. package/v1/model/ShowHttpInfoResponse.js +31 -0
  210. package/v1/model/ShowIpInfoRequest.d.ts +9 -0
  211. package/v1/model/ShowIpInfoRequest.js +28 -0
  212. package/v1/model/ShowIpInfoResponse.d.ts +9 -0
  213. package/v1/model/ShowIpInfoResponse.js +41 -0
  214. package/v1/model/ShowLogsRequest.d.ts +23 -0
  215. package/v1/model/ShowLogsRequest.js +81 -0
  216. package/v1/model/ShowLogsResponse.d.ts +9 -0
  217. package/v1/model/ShowLogsResponse.js +35 -0
  218. package/v1/model/ShowOriginHostRequest.d.ts +11 -0
  219. package/v1/model/ShowOriginHostRequest.js +38 -0
  220. package/v1/model/ShowOriginHostResponse.d.ts +9 -0
  221. package/v1/model/ShowOriginHostResponse.js +41 -0
  222. package/v1/model/ShowQuotaRequest.d.ts +3 -0
  223. package/v1/model/ShowQuotaRequest.js +9 -0
  224. package/v1/model/ShowQuotaResponse.d.ts +7 -0
  225. package/v1/model/ShowQuotaResponse.js +31 -0
  226. package/v1/model/ShowReferRequest.d.ts +11 -0
  227. package/v1/model/ShowReferRequest.js +38 -0
  228. package/v1/model/ShowReferResponse.d.ts +7 -0
  229. package/v1/model/ShowReferResponse.js +31 -0
  230. package/v1/model/ShowResponseHeaderRequest.d.ts +11 -0
  231. package/v1/model/ShowResponseHeaderRequest.js +38 -0
  232. package/v1/model/ShowResponseHeaderResponse.d.ts +7 -0
  233. package/v1/model/ShowResponseHeaderResponse.js +31 -0
  234. package/v1/model/ShowTagsRequest.d.ts +7 -0
  235. package/v1/model/ShowTagsRequest.js +24 -0
  236. package/v1/model/ShowTagsResponse.d.ts +6 -0
  237. package/v1/model/ShowTagsResponse.js +31 -0
  238. package/v1/model/ShowTopUrlRequest.d.ts +43 -0
  239. package/v1/model/ShowTopUrlRequest.js +115 -0
  240. package/v1/model/ShowTopUrlResponse.d.ts +13 -0
  241. package/v1/model/ShowTopUrlResponse.js +55 -0
  242. package/v1/model/ShowUrlTaskInfoRequest.d.ts +27 -0
  243. package/v1/model/ShowUrlTaskInfoRequest.js +81 -0
  244. package/v1/model/ShowUrlTaskInfoResponse.d.ts +15 -0
  245. package/v1/model/ShowUrlTaskInfoResponse.js +53 -0
  246. package/v1/model/SourceWithPort.d.ts +40 -0
  247. package/v1/model/SourceWithPort.js +120 -0
  248. package/v1/model/Sources.d.ts +32 -0
  249. package/v1/model/Sources.js +92 -0
  250. package/v1/model/SourcesConfig.d.ts +29 -0
  251. package/v1/model/SourcesConfig.js +100 -0
  252. package/v1/model/TasksObject.d.ts +43 -0
  253. package/v1/model/TasksObject.js +93 -0
  254. package/v1/model/TopUrlSummary.d.ts +19 -0
  255. package/v1/model/TopUrlSummary.js +59 -0
  256. package/v1/model/UpdateBlackWhiteListRequest.d.ts +14 -0
  257. package/v1/model/UpdateBlackWhiteListRequest.js +42 -0
  258. package/v1/model/UpdateBlackWhiteListResponse.d.ts +10 -0
  259. package/v1/model/UpdateBlackWhiteListResponse.js +39 -0
  260. package/v1/model/UpdateCacheRulesRequest.d.ts +14 -0
  261. package/v1/model/UpdateCacheRulesRequest.js +42 -0
  262. package/v1/model/UpdateCacheRulesResponse.d.ts +9 -0
  263. package/v1/model/UpdateCacheRulesResponse.js +41 -0
  264. package/v1/model/UpdateDomainFullConfigRequest.d.ts +14 -0
  265. package/v1/model/UpdateDomainFullConfigRequest.js +42 -0
  266. package/v1/model/UpdateDomainFullConfigResponse.d.ts +4 -0
  267. package/v1/model/UpdateDomainFullConfigResponse.js +27 -0
  268. package/v1/model/UpdateDomainMultiCertificatesRequest.d.ts +10 -0
  269. package/v1/model/UpdateDomainMultiCertificatesRequest.js +27 -0
  270. package/v1/model/UpdateDomainMultiCertificatesRequestBody.d.ts +6 -0
  271. package/v1/model/UpdateDomainMultiCertificatesRequestBody.js +13 -0
  272. package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.d.ts +40 -0
  273. package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.js +131 -0
  274. package/v1/model/UpdateDomainMultiCertificatesResponse.d.ts +7 -0
  275. package/v1/model/UpdateDomainMultiCertificatesResponse.js +31 -0
  276. package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.d.ts +40 -0
  277. package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.js +130 -0
  278. package/v1/model/UpdateDomainOriginRequest.d.ts +14 -0
  279. package/v1/model/UpdateDomainOriginRequest.js +42 -0
  280. package/v1/model/UpdateDomainOriginResponse.d.ts +7 -0
  281. package/v1/model/UpdateDomainOriginResponse.js +31 -0
  282. package/v1/model/UpdateFollow302SwitchRequest.d.ts +14 -0
  283. package/v1/model/UpdateFollow302SwitchRequest.js +42 -0
  284. package/v1/model/UpdateFollow302SwitchResponse.d.ts +9 -0
  285. package/v1/model/UpdateFollow302SwitchResponse.js +41 -0
  286. package/v1/model/UpdateHttpsInfoRequest.d.ts +14 -0
  287. package/v1/model/UpdateHttpsInfoRequest.js +42 -0
  288. package/v1/model/UpdateHttpsInfoResponse.d.ts +7 -0
  289. package/v1/model/UpdateHttpsInfoResponse.js +31 -0
  290. package/v1/model/UpdateOriginHostRequest.d.ts +14 -0
  291. package/v1/model/UpdateOriginHostRequest.js +42 -0
  292. package/v1/model/UpdateOriginHostResponse.d.ts +9 -0
  293. package/v1/model/UpdateOriginHostResponse.js +41 -0
  294. package/v1/model/UpdatePrivateBucketAccessBody.d.ts +5 -0
  295. package/v1/model/UpdatePrivateBucketAccessBody.js +13 -0
  296. package/v1/model/UpdatePrivateBucketAccessRequest.d.ts +14 -0
  297. package/v1/model/UpdatePrivateBucketAccessRequest.js +42 -0
  298. package/v1/model/UpdatePrivateBucketAccessResponse.d.ts +6 -0
  299. package/v1/model/UpdatePrivateBucketAccessResponse.js +31 -0
  300. package/v1/model/UpdateRangeSwitchRequest.d.ts +14 -0
  301. package/v1/model/UpdateRangeSwitchRequest.js +42 -0
  302. package/v1/model/UpdateRangeSwitchResponse.d.ts +9 -0
  303. package/v1/model/UpdateRangeSwitchResponse.js +41 -0
  304. package/v1/model/UpdateReferRequest.d.ts +14 -0
  305. package/v1/model/UpdateReferRequest.js +42 -0
  306. package/v1/model/UpdateReferResponse.d.ts +7 -0
  307. package/v1/model/UpdateReferResponse.js +31 -0
  308. package/v1/model/UpdateResponseHeaderRequest.d.ts +14 -0
  309. package/v1/model/UpdateResponseHeaderRequest.js +42 -0
  310. package/v1/model/UpdateResponseHeaderResponse.d.ts +7 -0
  311. package/v1/model/UpdateResponseHeaderResponse.js +31 -0
  312. package/v1/model/UrlAuth.d.ts +17 -0
  313. package/v1/model/UrlAuth.js +50 -0
  314. package/v1/model/UrlAuthGetBody.d.ts +15 -0
  315. package/v1/model/UrlAuthGetBody.js +46 -0
  316. package/v1/model/UrlObject.d.ts +21 -0
  317. package/v1/model/UrlObject.js +63 -0
  318. package/v1/model/Urls.d.ts +27 -0
  319. package/v1/model/Urls.js +81 -0
  320. package/v1/model/UserAgentFilter.d.ts +7 -0
  321. package/v1/model/UserAgentFilter.js +18 -0
  322. package/v1/public-api.d.ts +158 -0
  323. package/v1/public-api.js +174 -0
  324. package/v2/CdnClient.d.ts +532 -0
  325. package/v2/CdnClient.js +1196 -0
  326. package/v2/CdnRegion.d.ts +7 -0
  327. package/v2/CdnRegion.js +29 -0
  328. package/v2/model/BatchCopyConfigs.d.ts +15 -0
  329. package/v2/model/BatchCopyConfigs.js +54 -0
  330. package/v2/model/BatchCopyDRequestBody.d.ts +6 -0
  331. package/v2/model/BatchCopyDRequestBody.js +14 -0
  332. package/v2/model/BatchCopyDomainRequest.d.ts +6 -0
  333. package/v2/model/BatchCopyDomainRequest.js +13 -0
  334. package/v2/model/BatchCopyDomainResponse.d.ts +7 -0
  335. package/v2/model/BatchCopyDomainResponse.js +31 -0
  336. package/v2/model/BatchCopyErrorRsp.d.ts +6 -0
  337. package/v2/model/BatchCopyErrorRsp.js +13 -0
  338. package/v2/model/BatchCopyErrorRspError.d.ts +11 -0
  339. package/v2/model/BatchCopyErrorRspError.js +37 -0
  340. package/v2/model/BatchCopyResultVo.d.ts +19 -0
  341. package/v2/model/BatchCopyResultVo.js +42 -0
  342. package/v2/model/DownloadRegionCarrierExcelRequest.d.ts +35 -0
  343. package/v2/model/DownloadRegionCarrierExcelRequest.js +113 -0
  344. package/v2/model/DownloadRegionCarrierExcelResponse.d.ts +4 -0
  345. package/v2/model/DownloadRegionCarrierExcelResponse.js +27 -0
  346. package/v2/model/DownloadStatisticsExcelRequest.d.ts +33 -0
  347. package/v2/model/DownloadStatisticsExcelRequest.js +115 -0
  348. package/v2/model/DownloadStatisticsExcelResponse.d.ts +4 -0
  349. package/v2/model/DownloadStatisticsExcelResponse.js +27 -0
  350. package/v2/model/ErrMsg.d.ts +11 -0
  351. package/v2/model/ErrMsg.js +39 -0
  352. package/v2/model/ErrRsp.d.ts +6 -0
  353. package/v2/model/ErrRsp.js +14 -0
  354. package/v2/model/SetChargeModesBody.d.ts +15 -0
  355. package/v2/model/SetChargeModesBody.js +54 -0
  356. package/v2/model/SetChargeModesRequest.d.ts +6 -0
  357. package/v2/model/SetChargeModesRequest.js +13 -0
  358. package/v2/model/SetChargeModesResponse.d.ts +26 -0
  359. package/v2/model/SetChargeModesResponse.js +101 -0
  360. package/v2/model/ShowBandwidthCalcRequest.d.ts +27 -0
  361. package/v2/model/ShowBandwidthCalcRequest.js +97 -0
  362. package/v2/model/ShowBandwidthCalcResponse.d.ts +14 -0
  363. package/v2/model/ShowBandwidthCalcResponse.js +41 -0
  364. package/v2/model/ShowChargeModesRequest.d.ts +13 -0
  365. package/v2/model/ShowChargeModesRequest.js +42 -0
  366. package/v2/model/ShowChargeModesResponse.d.ts +10 -0
  367. package/v2/model/ShowChargeModesResponse.js +31 -0
  368. package/v2/model/ShowDomainLocationStatsRequest.d.ts +37 -0
  369. package/v2/model/ShowDomainLocationStatsRequest.js +118 -0
  370. package/v2/model/ShowDomainLocationStatsResponse.d.ts +14 -0
  371. package/v2/model/ShowDomainLocationStatsResponse.js +45 -0
  372. package/v2/model/ShowDomainStatsRequest.d.ts +35 -0
  373. package/v2/model/ShowDomainStatsRequest.js +120 -0
  374. package/v2/model/ShowDomainStatsResponse.d.ts +10 -0
  375. package/v2/model/ShowDomainStatsResponse.js +31 -0
  376. package/v2/model/ShowTopDomainNamesRequest.d.ts +25 -0
  377. package/v2/model/ShowTopDomainNamesRequest.js +86 -0
  378. package/v2/model/ShowTopDomainNamesResponse.d.ts +14 -0
  379. package/v2/model/ShowTopDomainNamesResponse.js +41 -0
  380. package/v2/model/ShowTopUrlRequest.d.ts +27 -0
  381. package/v2/model/ShowTopUrlRequest.js +97 -0
  382. package/v2/model/ShowTopUrlResponse.d.ts +13 -0
  383. package/v2/model/ShowTopUrlResponse.js +55 -0
  384. package/v2/model/TopUrlSummary.d.ts +19 -0
  385. package/v2/model/TopUrlSummary.js +59 -0
  386. package/v2/public-api.d.ts +31 -0
  387. package/v2/public-api.js +47 -0
@@ -0,0 +1,1196 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.RequiredError = exports.ParamCreater = exports.CdnClient = void 0;
19
+ var ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
20
+ var BatchCopyDomainRequest_1 = require("./model/BatchCopyDomainRequest");
21
+ var DownloadRegionCarrierExcelRequest_1 = require("./model/DownloadRegionCarrierExcelRequest");
22
+ var DownloadStatisticsExcelRequest_1 = require("./model/DownloadStatisticsExcelRequest");
23
+ var SetChargeModesRequest_1 = require("./model/SetChargeModesRequest");
24
+ var ShowBandwidthCalcRequest_1 = require("./model/ShowBandwidthCalcRequest");
25
+ var ShowChargeModesRequest_1 = require("./model/ShowChargeModesRequest");
26
+ var ShowDomainLocationStatsRequest_1 = require("./model/ShowDomainLocationStatsRequest");
27
+ var ShowDomainStatsRequest_1 = require("./model/ShowDomainStatsRequest");
28
+ var ShowTopDomainNamesRequest_1 = require("./model/ShowTopDomainNamesRequest");
29
+ var ShowTopUrlRequest_1 = require("./model/ShowTopUrlRequest");
30
+ var CdnClient = /** @class */ (function () {
31
+ function CdnClient(client) {
32
+ this.hcClient = client;
33
+ }
34
+ CdnClient.newBuilder = function () {
35
+ return new ClientBuilder_1.ClientBuilder(newClient);
36
+ };
37
+ CdnClient.prototype.getPath = function () {
38
+ return __dirname;
39
+ };
40
+ /**
41
+ * 批量域名复制接口
42
+ *
43
+ * Please refer to HUAWEI cloud API Explorer for details.
44
+ *
45
+ * @summary 批量域名复制
46
+ * @param {BatchCopyDRequestBody} batchCopyDRequestBody 域名复制参数请求体
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ CdnClient.prototype.batchCopyDomain = function (batchCopyDomainRequest) {
51
+ var options = (0, exports.ParamCreater)().batchCopyDomain(batchCopyDomainRequest);
52
+ // @ts-ignore
53
+ options['responseHeaders'] = [''];
54
+ return this.hcClient.sendRequest(options);
55
+ };
56
+ /**
57
+ * - 下载区域运营商指标数据表格文件。
58
+ *
59
+ * - 支持下载90天内的指标数据表格。
60
+ *
61
+ * - 时间跨度不能超过31天。
62
+ *
63
+ * - 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
64
+ *
65
+ * - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
66
+ *
67
+ * - 单租户调用频率:10次/min。
68
+ *
69
+ * Please refer to HUAWEI cloud API Explorer for details.
70
+ *
71
+ * @summary 下载区域运营商指标数据表格文件
72
+ * @param {number} startTime - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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)
73
+ * @param {number} endTime - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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)
74
+ * @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
75
+ * @param {string} excelType 统计数据表格类型,目前支持 - 区域用量统计数据(excel_type_usage) - 区域访问情况统计数据(excel_type_access) - 区域情况统计数据(excel_type_region) - 区域运营商情况统计数据(excel_type_carrier) - 国家情况统计数据(excel_type_country) - top_url统计数据(excel_type_top_url)
76
+ * @param {number} [interval] - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
77
+ * @param {string} [country] - 国家&地区编码,多个以英文逗号分隔,all表示全部,取值见附录 - 访问运营商统计数据时不能填写 - 访问top_url数据时不能填写 - 访问区域情况数据时只能填写cn(中国)
78
+ * @param {string} [excelLanguage] 创建表格语言,支持zh(中文),en(英文)两种,如果不传默认为zh
79
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
80
+ * @param {string} [region] - 地区区域,当country为cn(中国)时有效 - 访问运营商统计数据时不能填写 - 访问国家统计数据时不能填写 - 访问top_url数据时不能填写
81
+ * @param {string} [carrier] - 运营商编码 - 访问区域统计数据时不能填写 - 访问国家统计数据时不能填写 - 访问top_url数据时不能填写
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ CdnClient.prototype.downloadRegionCarrierExcel = function (downloadRegionCarrierExcelRequest) {
86
+ var options = (0, exports.ParamCreater)().downloadRegionCarrierExcel(downloadRegionCarrierExcelRequest);
87
+ // @ts-ignore
88
+ options['responseHeaders'] = [''];
89
+ return this.hcClient.sendRequest(options);
90
+ };
91
+ /**
92
+ * - 下载统计指标数据表格文件。
93
+ *
94
+ * - 支持下载90天内的指标数据。
95
+ *
96
+ * - 时间跨度不能超过31天。
97
+ *
98
+ * - 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
99
+ *
100
+ * - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
101
+ *
102
+ * - 单租户调用频率:10次/min。
103
+ *
104
+ * Please refer to HUAWEI cloud API Explorer for details.
105
+ *
106
+ * @summary 下载统计指标数据表格文件
107
+ * @param {number} startTime - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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)
108
+ * @param {number} endTime - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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)
109
+ * @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
110
+ * @param {string} excelType 统计数据表格类型,目前支持 - 用量统计数据(excel_type_usage) - 访问情况统计数据(excel_type_access) - 回源情况统计数据(excel_type_origin) - http_code统计数据(excel_type_http_code)
111
+ * @param {string} [excelLanguage] 创建表格语言,支持zh(中文),en(英文)两种,如果不传默认为zh
112
+ * @param {string} [serviceArea] 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。
113
+ * @param {number} [interval] - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
114
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ CdnClient.prototype.downloadStatisticsExcel = function (downloadStatisticsExcelRequest) {
119
+ var options = (0, exports.ParamCreater)().downloadStatisticsExcel(downloadStatisticsExcelRequest);
120
+ // @ts-ignore
121
+ options['responseHeaders'] = [''];
122
+ return this.hcClient.sendRequest(options);
123
+ };
124
+ /**
125
+ * - 设置用户计费模式。
126
+ *
127
+ * - 服务区域仅支持mainland_china(国内)
128
+ *
129
+ * - 计费模式仅支持设置flux(流量),bw(带宽)
130
+ *
131
+ * - 加速类型仅支持base(基础加速)
132
+ *
133
+ * - 单租户调用频率:10次/min。
134
+ *
135
+ * Please refer to HUAWEI cloud API Explorer for details.
136
+ *
137
+ * @summary 设置用户计费模式
138
+ * @param {SetChargeModesBody} setChargeModesBody 设置计费模式参数请求体
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ CdnClient.prototype.setChargeModes = function (setChargeModesRequest) {
143
+ var options = (0, exports.ParamCreater)().setChargeModes(setChargeModesRequest);
144
+ // @ts-ignore
145
+ options['responseHeaders'] = [''];
146
+ return this.hcClient.sendRequest(options);
147
+ };
148
+ /**
149
+ * - 查询域名带宽峰值类数据。
150
+ *
151
+ * - 支持查询90天内的数据。
152
+ *
153
+ * - 查询时间跨度不能超过31天。
154
+ *
155
+ * - 起始时间和结束时间,左闭右开。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
156
+ *
157
+ * - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
158
+ *
159
+ * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、峰值类指标单位统一为bps(比特率),请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
160
+ *
161
+ * - 单租户调用频率:2次/s。
162
+ *
163
+ * Please refer to HUAWEI cloud API Explorer for details.
164
+ *
165
+ * @summary 查询域名带宽峰值类数据
166
+ * @param {number} startTime - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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)
167
+ * @param {number} endTime - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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)
168
+ * @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
169
+ * @param {string} calcType 查询类别,目前支持bw_95(95峰值带宽),bw_peak(日峰值月平均带宽),bw_95_average(95月平均带宽)
170
+ * @param {string} [serviceArea] 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。
171
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
172
+ * @param {*} [options] Override http request option.
173
+ * @throws {RequiredError}
174
+ */
175
+ CdnClient.prototype.showBandwidthCalc = function (showBandwidthCalcRequest) {
176
+ var options = (0, exports.ParamCreater)().showBandwidthCalc(showBandwidthCalcRequest);
177
+ // @ts-ignore
178
+ options['responseHeaders'] = [''];
179
+ return this.hcClient.sendRequest(options);
180
+ };
181
+ /**
182
+ * - 查询用户计费模式。
183
+ *
184
+ * - 服务区域仅支持mainland_china(国内,默认)和outside_mainland_china(海外)
185
+ *
186
+ * - 计费模式状态支持active(已生效),upcoming(待生效)两种状态,默认为active(已生效)
187
+ *
188
+ * - 加速类型仅支持base(基础加速)
189
+ *
190
+ * - 单租户调用频率:5次/s。
191
+ *
192
+ * Please refer to HUAWEI cloud API Explorer for details.
193
+ *
194
+ * @summary 查询用户计费模式
195
+ * @param {string} productType 加速类型,base(基础加速)
196
+ * @param {string} [status] 查询计费模式状态,active(已生效),upcoming(待生效),不传默认为active(已生效)
197
+ * @param {string} [serviceArea] 服务区域,mainland_china(国内),outside_mainland_china(海外),不传默认为mainland_china(国内)
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ CdnClient.prototype.showChargeModes = function (showChargeModesRequest) {
202
+ var options = (0, exports.ParamCreater)().showChargeModes(showChargeModesRequest);
203
+ // @ts-ignore
204
+ options['responseHeaders'] = [''];
205
+ return this.hcClient.sendRequest(options);
206
+ };
207
+ /**
208
+ * - 支持查询90天内的数据。
209
+ *
210
+ * - 支持多指标同时查询,不超过5个。
211
+ *
212
+ * - 最多同时指定20个域名。
213
+ *
214
+ * - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
215
+ *
216
+ * - action取值:location_detail,location_summary
217
+ *
218
+ * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。
219
+ *
220
+ * - 单租户调用频率:15次/s。
221
+ *
222
+ * Please refer to HUAWEI cloud API Explorer for details.
223
+ *
224
+ * @summary 查询域名统计区域运营商数据
225
+ * @param {string} action - 动作名称,可选location_summary、location_detail。 - location_summary:查询汇总数据 - location_detail:查询数据详情。
226
+ * @param {number} startTime - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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)
227
+ * @param {number} endTime - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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)
228
+ * @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
229
+ * @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)
230
+ * @param {number} [interval] - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
231
+ * @param {string} [country] - 国家&地区编码,多个以英文逗号分隔,all表示全部,取值见附录 - 访问运营商统计数据时不能填写 - 访问top_url数据时不能填写 - 访问区域情况数据时只能填写cn(中国)
232
+ * @param {string} [province] 省份编码,当country为cn(中国)时有效,多个以英文逗号分隔,all表示全部,取值见附录
233
+ * @param {string} [isp] 运营商编码,多个以英文逗号分隔,all表示全部,取值见附录
234
+ * @param {string} [groupBy] 数据分组方式,多个以英文逗号分隔,可选domain、country、province、isp,默认不分组
235
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
236
+ * @param {*} [options] Override http request option.
237
+ * @throws {RequiredError}
238
+ */
239
+ CdnClient.prototype.showDomainLocationStats = function (showDomainLocationStatsRequest) {
240
+ var options = (0, exports.ParamCreater)().showDomainLocationStats(showDomainLocationStatsRequest);
241
+ // @ts-ignore
242
+ options['responseHeaders'] = [''];
243
+ return this.hcClient.sendRequest(options);
244
+ };
245
+ /**
246
+ * - 支持查询90天内的数据。
247
+ *
248
+ * - 支持多指标同时查询,不超过5个。
249
+ *
250
+ * - 最多同时指定20个域名。
251
+ *
252
+ * - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
253
+ *
254
+ * - action取值:detail,summary
255
+ *
256
+ * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
257
+ *
258
+ * - 单租户调用频率:15次/s。
259
+ *
260
+ * Please refer to HUAWEI cloud API Explorer for details.
261
+ *
262
+ * @summary 查询域名统计基础数据
263
+ * @param {string} action - 动作名称,可选summary、detail。 - summary:查询汇总数据 - detail:查询数据详情。
264
+ * @param {number} startTime - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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)
265
+ * @param {number} endTime - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - 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)
266
+ * @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
267
+ * @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不能一起查询
268
+ * @param {number} [interval] - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
269
+ * @param {string} [groupBy] 数据分组方式,可选domain,默认不分组
270
+ * @param {string} [serviceArea] 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。
271
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ CdnClient.prototype.showDomainStats = function (showDomainStatsRequest) {
276
+ var options = (0, exports.ParamCreater)().showDomainStats(showDomainStatsRequest);
277
+ // @ts-ignore
278
+ options['responseHeaders'] = [''];
279
+ return this.hcClient.sendRequest(options);
280
+ };
281
+ /**
282
+ * - 查询TOP域名。
283
+ *
284
+ * - 支持查询90天内的数据。
285
+ *
286
+ * - 查询时间跨度不能超过1天。
287
+ *
288
+ * - 起始时间和结束时间,左闭右开,必须同时指定。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
289
+ *
290
+ * - 起始时间、结束时间必须传整点毫秒级时间戳。
291
+ *
292
+ * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
293
+ *
294
+ * - 单租户调用频率:5次/s。
295
+ *
296
+ * Please refer to HUAWEI cloud API Explorer for details.
297
+ *
298
+ * @summary 查询TOP域名
299
+ * @param {number} startTime - 查询起始时间戳,时间戳应设置需为整点时间戳,设置方式如下: - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
300
+ * @param {number} endTime - 查询结束时间戳,时间戳应设置需为整点时间戳,设置方式如下: - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
301
+ * @param {string} statType - 统计类型 - 目前只支持bw(带宽),flux(流量),req_num(请求总数)
302
+ * @param {string} [serviceArea] 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。
303
+ * @param {number} [limit] top域名查询数量,默认为20,最大为500,最小为0
304
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ */
308
+ CdnClient.prototype.showTopDomainNames = function (showTopDomainNamesRequest) {
309
+ var options = (0, exports.ParamCreater)().showTopDomainNames(showTopDomainNamesRequest);
310
+ // @ts-ignore
311
+ options['responseHeaders'] = [''];
312
+ return this.hcClient.sendRequest(options);
313
+ };
314
+ /**
315
+ * - 查询TOP100 URL明细。
316
+ *
317
+ * - 支持查询90天内的数据。
318
+ *
319
+ * - 查询跨度不能超过31天。
320
+ *
321
+ * - 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。
322
+ *
323
+ * - 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。
324
+ *
325
+ * - 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
326
+ *
327
+ * - 单租户调用频率:5次/s。
328
+ *
329
+ * Please refer to HUAWEI cloud API Explorer for details.
330
+ *
331
+ * @summary 查询TOP100 URL明细
332
+ * @param {number} startTime 查询起始时间戳,只能传0点毫秒时间戳
333
+ * @param {number} endTime 查询结束时间戳,只能传0点毫秒时间戳
334
+ * @param {string} domainName 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
335
+ * @param {string} statType - 参数类型支持:flux(流量),req_num(请求数)
336
+ * @param {string} [serviceArea] 服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为mainland_china
337
+ * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
338
+ * @param {*} [options] Override http request option.
339
+ * @throws {RequiredError}
340
+ */
341
+ CdnClient.prototype.showTopUrl = function (showTopUrlRequest) {
342
+ var options = (0, exports.ParamCreater)().showTopUrl(showTopUrlRequest);
343
+ // @ts-ignore
344
+ options['responseHeaders'] = [''];
345
+ return this.hcClient.sendRequest(options);
346
+ };
347
+ return CdnClient;
348
+ }());
349
+ exports.CdnClient = CdnClient;
350
+ var ParamCreater = function () {
351
+ return {
352
+ /**
353
+ * 批量域名复制接口
354
+ *
355
+ * Please refer to HUAWEI cloud API Explorer for details.
356
+ */
357
+ batchCopyDomain: function (batchCopyDomainRequest) {
358
+ var options = {
359
+ method: "POST",
360
+ url: "/v1.0/cdn/configuration/domains/batch-copy",
361
+ contentType: "application/json",
362
+ queryParams: {},
363
+ pathParams: {},
364
+ headers: {},
365
+ data: {}
366
+ };
367
+ var localVarHeaderParameter = {};
368
+ var body;
369
+ if (batchCopyDomainRequest !== null && batchCopyDomainRequest !== undefined) {
370
+ if (batchCopyDomainRequest instanceof BatchCopyDomainRequest_1.BatchCopyDomainRequest) {
371
+ body = batchCopyDomainRequest.body;
372
+ }
373
+ else {
374
+ body = batchCopyDomainRequest['body'];
375
+ }
376
+ }
377
+ if (body === null || body === undefined) {
378
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
379
+ }
380
+ localVarHeaderParameter['Content-Type'] = 'application/json';
381
+ options.data = body !== undefined ? body : {};
382
+ options.headers = localVarHeaderParameter;
383
+ return options;
384
+ },
385
+ /**
386
+ * - 下载区域运营商指标数据表格文件。
387
+ *
388
+ * - 支持下载90天内的指标数据表格。
389
+ *
390
+ * - 时间跨度不能超过31天。
391
+ *
392
+ * - 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
393
+ *
394
+ * - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
395
+ *
396
+ * - 单租户调用频率:10次/min。
397
+ *
398
+ * Please refer to HUAWEI cloud API Explorer for details.
399
+ */
400
+ downloadRegionCarrierExcel: function (downloadRegionCarrierExcelRequest) {
401
+ var options = {
402
+ method: "GET",
403
+ url: "/v1.0/cdn/statistics/region-carrier-excel",
404
+ contentType: "application/json",
405
+ queryParams: {},
406
+ pathParams: {},
407
+ headers: {},
408
+ data: {}
409
+ };
410
+ var localVarHeaderParameter = {};
411
+ var localVarQueryParameter = {};
412
+ var startTime;
413
+ var endTime;
414
+ var domainName;
415
+ var excelType;
416
+ var interval;
417
+ var country;
418
+ var excelLanguage;
419
+ var enterpriseProjectId;
420
+ var region;
421
+ var carrier;
422
+ if (downloadRegionCarrierExcelRequest !== null && downloadRegionCarrierExcelRequest !== undefined) {
423
+ if (downloadRegionCarrierExcelRequest instanceof DownloadRegionCarrierExcelRequest_1.DownloadRegionCarrierExcelRequest) {
424
+ startTime = downloadRegionCarrierExcelRequest.startTime;
425
+ endTime = downloadRegionCarrierExcelRequest.endTime;
426
+ domainName = downloadRegionCarrierExcelRequest.domainName;
427
+ excelType = downloadRegionCarrierExcelRequest.excelType;
428
+ interval = downloadRegionCarrierExcelRequest.interval;
429
+ country = downloadRegionCarrierExcelRequest.country;
430
+ excelLanguage = downloadRegionCarrierExcelRequest.excelLanguage;
431
+ enterpriseProjectId = downloadRegionCarrierExcelRequest.enterpriseProjectId;
432
+ region = downloadRegionCarrierExcelRequest.region;
433
+ carrier = downloadRegionCarrierExcelRequest.carrier;
434
+ }
435
+ else {
436
+ startTime = downloadRegionCarrierExcelRequest['start_time'];
437
+ endTime = downloadRegionCarrierExcelRequest['end_time'];
438
+ domainName = downloadRegionCarrierExcelRequest['domain_name'];
439
+ excelType = downloadRegionCarrierExcelRequest['excel_type'];
440
+ interval = downloadRegionCarrierExcelRequest['interval'];
441
+ country = downloadRegionCarrierExcelRequest['country'];
442
+ excelLanguage = downloadRegionCarrierExcelRequest['excel_language'];
443
+ enterpriseProjectId = downloadRegionCarrierExcelRequest['enterprise_project_id'];
444
+ region = downloadRegionCarrierExcelRequest['region'];
445
+ carrier = downloadRegionCarrierExcelRequest['carrier'];
446
+ }
447
+ }
448
+ if (startTime === null || startTime === undefined) {
449
+ throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling downloadRegionCarrierExcel.');
450
+ }
451
+ if (startTime !== null && startTime !== undefined) {
452
+ localVarQueryParameter['start_time'] = startTime;
453
+ }
454
+ if (endTime === null || endTime === undefined) {
455
+ throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling downloadRegionCarrierExcel.');
456
+ }
457
+ if (endTime !== null && endTime !== undefined) {
458
+ localVarQueryParameter['end_time'] = endTime;
459
+ }
460
+ if (domainName === null || domainName === undefined) {
461
+ throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling downloadRegionCarrierExcel.');
462
+ }
463
+ if (domainName !== null && domainName !== undefined) {
464
+ localVarQueryParameter['domain_name'] = domainName;
465
+ }
466
+ if (excelType === null || excelType === undefined) {
467
+ throw new RequiredError('excelType', 'Required parameter excelType was null or undefined when calling downloadRegionCarrierExcel.');
468
+ }
469
+ if (excelType !== null && excelType !== undefined) {
470
+ localVarQueryParameter['excel_type'] = excelType;
471
+ }
472
+ if (interval !== null && interval !== undefined) {
473
+ localVarQueryParameter['interval'] = interval;
474
+ }
475
+ if (country !== null && country !== undefined) {
476
+ localVarQueryParameter['country'] = country;
477
+ }
478
+ if (excelLanguage !== null && excelLanguage !== undefined) {
479
+ localVarQueryParameter['excel_language'] = excelLanguage;
480
+ }
481
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
482
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
483
+ }
484
+ if (region !== null && region !== undefined) {
485
+ localVarQueryParameter['region'] = region;
486
+ }
487
+ if (carrier !== null && carrier !== undefined) {
488
+ localVarQueryParameter['carrier'] = carrier;
489
+ }
490
+ options.queryParams = localVarQueryParameter;
491
+ options.headers = localVarHeaderParameter;
492
+ return options;
493
+ },
494
+ /**
495
+ * - 下载统计指标数据表格文件。
496
+ *
497
+ * - 支持下载90天内的指标数据。
498
+ *
499
+ * - 时间跨度不能超过31天。
500
+ *
501
+ * - 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
502
+ *
503
+ * - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
504
+ *
505
+ * - 单租户调用频率:10次/min。
506
+ *
507
+ * Please refer to HUAWEI cloud API Explorer for details.
508
+ */
509
+ downloadStatisticsExcel: function (downloadStatisticsExcelRequest) {
510
+ var options = {
511
+ method: "GET",
512
+ url: "/v1.0/cdn/statistics/statistics-excel",
513
+ contentType: "application/json",
514
+ queryParams: {},
515
+ pathParams: {},
516
+ headers: {},
517
+ data: {}
518
+ };
519
+ var localVarHeaderParameter = {};
520
+ var localVarQueryParameter = {};
521
+ var startTime;
522
+ var endTime;
523
+ var domainName;
524
+ var excelType;
525
+ var excelLanguage;
526
+ var serviceArea;
527
+ var interval;
528
+ var enterpriseProjectId;
529
+ if (downloadStatisticsExcelRequest !== null && downloadStatisticsExcelRequest !== undefined) {
530
+ if (downloadStatisticsExcelRequest instanceof DownloadStatisticsExcelRequest_1.DownloadStatisticsExcelRequest) {
531
+ startTime = downloadStatisticsExcelRequest.startTime;
532
+ endTime = downloadStatisticsExcelRequest.endTime;
533
+ domainName = downloadStatisticsExcelRequest.domainName;
534
+ excelType = downloadStatisticsExcelRequest.excelType;
535
+ excelLanguage = downloadStatisticsExcelRequest.excelLanguage;
536
+ serviceArea = downloadStatisticsExcelRequest.serviceArea;
537
+ interval = downloadStatisticsExcelRequest.interval;
538
+ enterpriseProjectId = downloadStatisticsExcelRequest.enterpriseProjectId;
539
+ }
540
+ else {
541
+ startTime = downloadStatisticsExcelRequest['start_time'];
542
+ endTime = downloadStatisticsExcelRequest['end_time'];
543
+ domainName = downloadStatisticsExcelRequest['domain_name'];
544
+ excelType = downloadStatisticsExcelRequest['excel_type'];
545
+ excelLanguage = downloadStatisticsExcelRequest['excel_language'];
546
+ serviceArea = downloadStatisticsExcelRequest['service_area'];
547
+ interval = downloadStatisticsExcelRequest['interval'];
548
+ enterpriseProjectId = downloadStatisticsExcelRequest['enterprise_project_id'];
549
+ }
550
+ }
551
+ if (startTime === null || startTime === undefined) {
552
+ throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling downloadStatisticsExcel.');
553
+ }
554
+ if (startTime !== null && startTime !== undefined) {
555
+ localVarQueryParameter['start_time'] = startTime;
556
+ }
557
+ if (endTime === null || endTime === undefined) {
558
+ throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling downloadStatisticsExcel.');
559
+ }
560
+ if (endTime !== null && endTime !== undefined) {
561
+ localVarQueryParameter['end_time'] = endTime;
562
+ }
563
+ if (domainName === null || domainName === undefined) {
564
+ throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling downloadStatisticsExcel.');
565
+ }
566
+ if (domainName !== null && domainName !== undefined) {
567
+ localVarQueryParameter['domain_name'] = domainName;
568
+ }
569
+ if (excelType === null || excelType === undefined) {
570
+ throw new RequiredError('excelType', 'Required parameter excelType was null or undefined when calling downloadStatisticsExcel.');
571
+ }
572
+ if (excelType !== null && excelType !== undefined) {
573
+ localVarQueryParameter['excel_type'] = excelType;
574
+ }
575
+ if (excelLanguage !== null && excelLanguage !== undefined) {
576
+ localVarQueryParameter['excel_language'] = excelLanguage;
577
+ }
578
+ if (serviceArea !== null && serviceArea !== undefined) {
579
+ localVarQueryParameter['service_area'] = serviceArea;
580
+ }
581
+ if (interval !== null && interval !== undefined) {
582
+ localVarQueryParameter['interval'] = interval;
583
+ }
584
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
585
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
586
+ }
587
+ options.queryParams = localVarQueryParameter;
588
+ options.headers = localVarHeaderParameter;
589
+ return options;
590
+ },
591
+ /**
592
+ * - 设置用户计费模式。
593
+ *
594
+ * - 服务区域仅支持mainland_china(国内)
595
+ *
596
+ * - 计费模式仅支持设置flux(流量),bw(带宽)
597
+ *
598
+ * - 加速类型仅支持base(基础加速)
599
+ *
600
+ * - 单租户调用频率:10次/min。
601
+ *
602
+ * Please refer to HUAWEI cloud API Explorer for details.
603
+ */
604
+ setChargeModes: function (setChargeModesRequest) {
605
+ var options = {
606
+ method: "PUT",
607
+ url: "/v1.0/cdn/charge/charge-modes",
608
+ contentType: "application/json",
609
+ queryParams: {},
610
+ pathParams: {},
611
+ headers: {},
612
+ data: {}
613
+ };
614
+ var localVarHeaderParameter = {};
615
+ var body;
616
+ if (setChargeModesRequest !== null && setChargeModesRequest !== undefined) {
617
+ if (setChargeModesRequest instanceof SetChargeModesRequest_1.SetChargeModesRequest) {
618
+ body = setChargeModesRequest.body;
619
+ }
620
+ else {
621
+ body = setChargeModesRequest['body'];
622
+ }
623
+ }
624
+ if (body === null || body === undefined) {
625
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
626
+ }
627
+ localVarHeaderParameter['Content-Type'] = 'application/json';
628
+ options.data = body !== undefined ? body : {};
629
+ options.headers = localVarHeaderParameter;
630
+ return options;
631
+ },
632
+ /**
633
+ * - 查询域名带宽峰值类数据。
634
+ *
635
+ * - 支持查询90天内的数据。
636
+ *
637
+ * - 查询时间跨度不能超过31天。
638
+ *
639
+ * - 起始时间和结束时间,左闭右开。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
640
+ *
641
+ * - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
642
+ *
643
+ * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、峰值类指标单位统一为bps(比特率),请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
644
+ *
645
+ * - 单租户调用频率:2次/s。
646
+ *
647
+ * Please refer to HUAWEI cloud API Explorer for details.
648
+ */
649
+ showBandwidthCalc: function (showBandwidthCalcRequest) {
650
+ var options = {
651
+ method: "GET",
652
+ url: "/v1.0/cdn/statistics/bandwidth-calc",
653
+ contentType: "application/json",
654
+ queryParams: {},
655
+ pathParams: {},
656
+ headers: {},
657
+ data: {}
658
+ };
659
+ var localVarHeaderParameter = {};
660
+ var localVarQueryParameter = {};
661
+ var startTime;
662
+ var endTime;
663
+ var domainName;
664
+ var calcType;
665
+ var serviceArea;
666
+ var enterpriseProjectId;
667
+ if (showBandwidthCalcRequest !== null && showBandwidthCalcRequest !== undefined) {
668
+ if (showBandwidthCalcRequest instanceof ShowBandwidthCalcRequest_1.ShowBandwidthCalcRequest) {
669
+ startTime = showBandwidthCalcRequest.startTime;
670
+ endTime = showBandwidthCalcRequest.endTime;
671
+ domainName = showBandwidthCalcRequest.domainName;
672
+ calcType = showBandwidthCalcRequest.calcType;
673
+ serviceArea = showBandwidthCalcRequest.serviceArea;
674
+ enterpriseProjectId = showBandwidthCalcRequest.enterpriseProjectId;
675
+ }
676
+ else {
677
+ startTime = showBandwidthCalcRequest['start_time'];
678
+ endTime = showBandwidthCalcRequest['end_time'];
679
+ domainName = showBandwidthCalcRequest['domain_name'];
680
+ calcType = showBandwidthCalcRequest['calc_type'];
681
+ serviceArea = showBandwidthCalcRequest['service_area'];
682
+ enterpriseProjectId = showBandwidthCalcRequest['enterprise_project_id'];
683
+ }
684
+ }
685
+ if (startTime === null || startTime === undefined) {
686
+ throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showBandwidthCalc.');
687
+ }
688
+ if (startTime !== null && startTime !== undefined) {
689
+ localVarQueryParameter['start_time'] = startTime;
690
+ }
691
+ if (endTime === null || endTime === undefined) {
692
+ throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showBandwidthCalc.');
693
+ }
694
+ if (endTime !== null && endTime !== undefined) {
695
+ localVarQueryParameter['end_time'] = endTime;
696
+ }
697
+ if (domainName === null || domainName === undefined) {
698
+ throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showBandwidthCalc.');
699
+ }
700
+ if (domainName !== null && domainName !== undefined) {
701
+ localVarQueryParameter['domain_name'] = domainName;
702
+ }
703
+ if (calcType === null || calcType === undefined) {
704
+ throw new RequiredError('calcType', 'Required parameter calcType was null or undefined when calling showBandwidthCalc.');
705
+ }
706
+ if (calcType !== null && calcType !== undefined) {
707
+ localVarQueryParameter['calc_type'] = calcType;
708
+ }
709
+ if (serviceArea !== null && serviceArea !== undefined) {
710
+ localVarQueryParameter['service_area'] = serviceArea;
711
+ }
712
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
713
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
714
+ }
715
+ options.queryParams = localVarQueryParameter;
716
+ options.headers = localVarHeaderParameter;
717
+ return options;
718
+ },
719
+ /**
720
+ * - 查询用户计费模式。
721
+ *
722
+ * - 服务区域仅支持mainland_china(国内,默认)和outside_mainland_china(海外)
723
+ *
724
+ * - 计费模式状态支持active(已生效),upcoming(待生效)两种状态,默认为active(已生效)
725
+ *
726
+ * - 加速类型仅支持base(基础加速)
727
+ *
728
+ * - 单租户调用频率:5次/s。
729
+ *
730
+ * Please refer to HUAWEI cloud API Explorer for details.
731
+ */
732
+ showChargeModes: function (showChargeModesRequest) {
733
+ var options = {
734
+ method: "GET",
735
+ url: "/v1.0/cdn/charge/charge-modes",
736
+ contentType: "application/json",
737
+ queryParams: {},
738
+ pathParams: {},
739
+ headers: {},
740
+ data: {}
741
+ };
742
+ var localVarHeaderParameter = {};
743
+ var localVarQueryParameter = {};
744
+ var productType;
745
+ var status;
746
+ var serviceArea;
747
+ if (showChargeModesRequest !== null && showChargeModesRequest !== undefined) {
748
+ if (showChargeModesRequest instanceof ShowChargeModesRequest_1.ShowChargeModesRequest) {
749
+ productType = showChargeModesRequest.productType;
750
+ status = showChargeModesRequest.status;
751
+ serviceArea = showChargeModesRequest.serviceArea;
752
+ }
753
+ else {
754
+ productType = showChargeModesRequest['product_type'];
755
+ status = showChargeModesRequest['status'];
756
+ serviceArea = showChargeModesRequest['service_area'];
757
+ }
758
+ }
759
+ if (productType === null || productType === undefined) {
760
+ throw new RequiredError('productType', 'Required parameter productType was null or undefined when calling showChargeModes.');
761
+ }
762
+ if (productType !== null && productType !== undefined) {
763
+ localVarQueryParameter['product_type'] = productType;
764
+ }
765
+ if (status !== null && status !== undefined) {
766
+ localVarQueryParameter['status'] = status;
767
+ }
768
+ if (serviceArea !== null && serviceArea !== undefined) {
769
+ localVarQueryParameter['service_area'] = serviceArea;
770
+ }
771
+ options.queryParams = localVarQueryParameter;
772
+ options.headers = localVarHeaderParameter;
773
+ return options;
774
+ },
775
+ /**
776
+ * - 支持查询90天内的数据。
777
+ *
778
+ * - 支持多指标同时查询,不超过5个。
779
+ *
780
+ * - 最多同时指定20个域名。
781
+ *
782
+ * - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
783
+ *
784
+ * - action取值:location_detail,location_summary
785
+ *
786
+ * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。
787
+ *
788
+ * - 单租户调用频率:15次/s。
789
+ *
790
+ * Please refer to HUAWEI cloud API Explorer for details.
791
+ */
792
+ showDomainLocationStats: function (showDomainLocationStatsRequest) {
793
+ var options = {
794
+ method: "GET",
795
+ url: "/v1.0/cdn/statistics/domain-location-stats",
796
+ contentType: "application/json",
797
+ queryParams: {},
798
+ pathParams: {},
799
+ headers: {},
800
+ data: {}
801
+ };
802
+ var localVarHeaderParameter = {};
803
+ var localVarQueryParameter = {};
804
+ var action;
805
+ var startTime;
806
+ var endTime;
807
+ var domainName;
808
+ var statType;
809
+ var interval;
810
+ var country;
811
+ var province;
812
+ var isp;
813
+ var groupBy;
814
+ var enterpriseProjectId;
815
+ if (showDomainLocationStatsRequest !== null && showDomainLocationStatsRequest !== undefined) {
816
+ if (showDomainLocationStatsRequest instanceof ShowDomainLocationStatsRequest_1.ShowDomainLocationStatsRequest) {
817
+ action = showDomainLocationStatsRequest.action;
818
+ startTime = showDomainLocationStatsRequest.startTime;
819
+ endTime = showDomainLocationStatsRequest.endTime;
820
+ domainName = showDomainLocationStatsRequest.domainName;
821
+ statType = showDomainLocationStatsRequest.statType;
822
+ interval = showDomainLocationStatsRequest.interval;
823
+ country = showDomainLocationStatsRequest.country;
824
+ province = showDomainLocationStatsRequest.province;
825
+ isp = showDomainLocationStatsRequest.isp;
826
+ groupBy = showDomainLocationStatsRequest.groupBy;
827
+ enterpriseProjectId = showDomainLocationStatsRequest.enterpriseProjectId;
828
+ }
829
+ else {
830
+ action = showDomainLocationStatsRequest['action'];
831
+ startTime = showDomainLocationStatsRequest['start_time'];
832
+ endTime = showDomainLocationStatsRequest['end_time'];
833
+ domainName = showDomainLocationStatsRequest['domain_name'];
834
+ statType = showDomainLocationStatsRequest['stat_type'];
835
+ interval = showDomainLocationStatsRequest['interval'];
836
+ country = showDomainLocationStatsRequest['country'];
837
+ province = showDomainLocationStatsRequest['province'];
838
+ isp = showDomainLocationStatsRequest['isp'];
839
+ groupBy = showDomainLocationStatsRequest['group_by'];
840
+ enterpriseProjectId = showDomainLocationStatsRequest['enterprise_project_id'];
841
+ }
842
+ }
843
+ if (action === null || action === undefined) {
844
+ throw new RequiredError('action', 'Required parameter action was null or undefined when calling showDomainLocationStats.');
845
+ }
846
+ if (action !== null && action !== undefined) {
847
+ localVarQueryParameter['action'] = action;
848
+ }
849
+ if (startTime === null || startTime === undefined) {
850
+ throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showDomainLocationStats.');
851
+ }
852
+ if (startTime !== null && startTime !== undefined) {
853
+ localVarQueryParameter['start_time'] = startTime;
854
+ }
855
+ if (endTime === null || endTime === undefined) {
856
+ throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showDomainLocationStats.');
857
+ }
858
+ if (endTime !== null && endTime !== undefined) {
859
+ localVarQueryParameter['end_time'] = endTime;
860
+ }
861
+ if (domainName === null || domainName === undefined) {
862
+ throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showDomainLocationStats.');
863
+ }
864
+ if (domainName !== null && domainName !== undefined) {
865
+ localVarQueryParameter['domain_name'] = domainName;
866
+ }
867
+ if (statType === null || statType === undefined) {
868
+ throw new RequiredError('statType', 'Required parameter statType was null or undefined when calling showDomainLocationStats.');
869
+ }
870
+ if (statType !== null && statType !== undefined) {
871
+ localVarQueryParameter['stat_type'] = statType;
872
+ }
873
+ if (interval !== null && interval !== undefined) {
874
+ localVarQueryParameter['interval'] = interval;
875
+ }
876
+ if (country !== null && country !== undefined) {
877
+ localVarQueryParameter['country'] = country;
878
+ }
879
+ if (province !== null && province !== undefined) {
880
+ localVarQueryParameter['province'] = province;
881
+ }
882
+ if (isp !== null && isp !== undefined) {
883
+ localVarQueryParameter['isp'] = isp;
884
+ }
885
+ if (groupBy !== null && groupBy !== undefined) {
886
+ localVarQueryParameter['group_by'] = groupBy;
887
+ }
888
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
889
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
890
+ }
891
+ options.queryParams = localVarQueryParameter;
892
+ options.headers = localVarHeaderParameter;
893
+ return options;
894
+ },
895
+ /**
896
+ * - 支持查询90天内的数据。
897
+ *
898
+ * - 支持多指标同时查询,不超过5个。
899
+ *
900
+ * - 最多同时指定20个域名。
901
+ *
902
+ * - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
903
+ *
904
+ * - action取值:detail,summary
905
+ *
906
+ * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
907
+ *
908
+ * - 单租户调用频率:15次/s。
909
+ *
910
+ * Please refer to HUAWEI cloud API Explorer for details.
911
+ */
912
+ showDomainStats: function (showDomainStatsRequest) {
913
+ var options = {
914
+ method: "GET",
915
+ url: "/v1.0/cdn/statistics/domain-stats",
916
+ contentType: "application/json",
917
+ queryParams: {},
918
+ pathParams: {},
919
+ headers: {},
920
+ data: {}
921
+ };
922
+ var localVarHeaderParameter = {};
923
+ var localVarQueryParameter = {};
924
+ var action;
925
+ var startTime;
926
+ var endTime;
927
+ var domainName;
928
+ var statType;
929
+ var interval;
930
+ var groupBy;
931
+ var serviceArea;
932
+ var enterpriseProjectId;
933
+ if (showDomainStatsRequest !== null && showDomainStatsRequest !== undefined) {
934
+ if (showDomainStatsRequest instanceof ShowDomainStatsRequest_1.ShowDomainStatsRequest) {
935
+ action = showDomainStatsRequest.action;
936
+ startTime = showDomainStatsRequest.startTime;
937
+ endTime = showDomainStatsRequest.endTime;
938
+ domainName = showDomainStatsRequest.domainName;
939
+ statType = showDomainStatsRequest.statType;
940
+ interval = showDomainStatsRequest.interval;
941
+ groupBy = showDomainStatsRequest.groupBy;
942
+ serviceArea = showDomainStatsRequest.serviceArea;
943
+ enterpriseProjectId = showDomainStatsRequest.enterpriseProjectId;
944
+ }
945
+ else {
946
+ action = showDomainStatsRequest['action'];
947
+ startTime = showDomainStatsRequest['start_time'];
948
+ endTime = showDomainStatsRequest['end_time'];
949
+ domainName = showDomainStatsRequest['domain_name'];
950
+ statType = showDomainStatsRequest['stat_type'];
951
+ interval = showDomainStatsRequest['interval'];
952
+ groupBy = showDomainStatsRequest['group_by'];
953
+ serviceArea = showDomainStatsRequest['service_area'];
954
+ enterpriseProjectId = showDomainStatsRequest['enterprise_project_id'];
955
+ }
956
+ }
957
+ if (action === null || action === undefined) {
958
+ throw new RequiredError('action', 'Required parameter action was null or undefined when calling showDomainStats.');
959
+ }
960
+ if (action !== null && action !== undefined) {
961
+ localVarQueryParameter['action'] = action;
962
+ }
963
+ if (startTime === null || startTime === undefined) {
964
+ throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showDomainStats.');
965
+ }
966
+ if (startTime !== null && startTime !== undefined) {
967
+ localVarQueryParameter['start_time'] = startTime;
968
+ }
969
+ if (endTime === null || endTime === undefined) {
970
+ throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showDomainStats.');
971
+ }
972
+ if (endTime !== null && endTime !== undefined) {
973
+ localVarQueryParameter['end_time'] = endTime;
974
+ }
975
+ if (domainName === null || domainName === undefined) {
976
+ throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showDomainStats.');
977
+ }
978
+ if (domainName !== null && domainName !== undefined) {
979
+ localVarQueryParameter['domain_name'] = domainName;
980
+ }
981
+ if (statType === null || statType === undefined) {
982
+ throw new RequiredError('statType', 'Required parameter statType was null or undefined when calling showDomainStats.');
983
+ }
984
+ if (statType !== null && statType !== undefined) {
985
+ localVarQueryParameter['stat_type'] = statType;
986
+ }
987
+ if (interval !== null && interval !== undefined) {
988
+ localVarQueryParameter['interval'] = interval;
989
+ }
990
+ if (groupBy !== null && groupBy !== undefined) {
991
+ localVarQueryParameter['group_by'] = groupBy;
992
+ }
993
+ if (serviceArea !== null && serviceArea !== undefined) {
994
+ localVarQueryParameter['service_area'] = serviceArea;
995
+ }
996
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
997
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
998
+ }
999
+ options.queryParams = localVarQueryParameter;
1000
+ options.headers = localVarHeaderParameter;
1001
+ return options;
1002
+ },
1003
+ /**
1004
+ * - 查询TOP域名。
1005
+ *
1006
+ * - 支持查询90天内的数据。
1007
+ *
1008
+ * - 查询时间跨度不能超过1天。
1009
+ *
1010
+ * - 起始时间和结束时间,左闭右开,必须同时指定。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
1011
+ *
1012
+ * - 起始时间、结束时间必须传整点毫秒级时间戳。
1013
+ *
1014
+ * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
1015
+ *
1016
+ * - 单租户调用频率:5次/s。
1017
+ *
1018
+ * Please refer to HUAWEI cloud API Explorer for details.
1019
+ */
1020
+ showTopDomainNames: function (showTopDomainNamesRequest) {
1021
+ var options = {
1022
+ method: "GET",
1023
+ url: "/v1/cdn/statistics/top-domain-names",
1024
+ contentType: "application/json",
1025
+ queryParams: {},
1026
+ pathParams: {},
1027
+ headers: {},
1028
+ data: {}
1029
+ };
1030
+ var localVarHeaderParameter = {};
1031
+ var localVarQueryParameter = {};
1032
+ var startTime;
1033
+ var endTime;
1034
+ var statType;
1035
+ var serviceArea;
1036
+ var limit;
1037
+ var enterpriseProjectId;
1038
+ if (showTopDomainNamesRequest !== null && showTopDomainNamesRequest !== undefined) {
1039
+ if (showTopDomainNamesRequest instanceof ShowTopDomainNamesRequest_1.ShowTopDomainNamesRequest) {
1040
+ startTime = showTopDomainNamesRequest.startTime;
1041
+ endTime = showTopDomainNamesRequest.endTime;
1042
+ statType = showTopDomainNamesRequest.statType;
1043
+ serviceArea = showTopDomainNamesRequest.serviceArea;
1044
+ limit = showTopDomainNamesRequest.limit;
1045
+ enterpriseProjectId = showTopDomainNamesRequest.enterpriseProjectId;
1046
+ }
1047
+ else {
1048
+ startTime = showTopDomainNamesRequest['start_time'];
1049
+ endTime = showTopDomainNamesRequest['end_time'];
1050
+ statType = showTopDomainNamesRequest['stat_type'];
1051
+ serviceArea = showTopDomainNamesRequest['service_area'];
1052
+ limit = showTopDomainNamesRequest['limit'];
1053
+ enterpriseProjectId = showTopDomainNamesRequest['enterprise_project_id'];
1054
+ }
1055
+ }
1056
+ if (startTime === null || startTime === undefined) {
1057
+ throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showTopDomainNames.');
1058
+ }
1059
+ if (startTime !== null && startTime !== undefined) {
1060
+ localVarQueryParameter['start_time'] = startTime;
1061
+ }
1062
+ if (endTime === null || endTime === undefined) {
1063
+ throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showTopDomainNames.');
1064
+ }
1065
+ if (endTime !== null && endTime !== undefined) {
1066
+ localVarQueryParameter['end_time'] = endTime;
1067
+ }
1068
+ if (statType === null || statType === undefined) {
1069
+ throw new RequiredError('statType', 'Required parameter statType was null or undefined when calling showTopDomainNames.');
1070
+ }
1071
+ if (statType !== null && statType !== undefined) {
1072
+ localVarQueryParameter['stat_type'] = statType;
1073
+ }
1074
+ if (serviceArea !== null && serviceArea !== undefined) {
1075
+ localVarQueryParameter['service_area'] = serviceArea;
1076
+ }
1077
+ if (limit !== null && limit !== undefined) {
1078
+ localVarQueryParameter['limit'] = limit;
1079
+ }
1080
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1081
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
1082
+ }
1083
+ options.queryParams = localVarQueryParameter;
1084
+ options.headers = localVarHeaderParameter;
1085
+ return options;
1086
+ },
1087
+ /**
1088
+ * - 查询TOP100 URL明细。
1089
+ *
1090
+ * - 支持查询90天内的数据。
1091
+ *
1092
+ * - 查询跨度不能超过31天。
1093
+ *
1094
+ * - 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。
1095
+ *
1096
+ * - 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。
1097
+ *
1098
+ * - 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
1099
+ *
1100
+ * - 单租户调用频率:5次/s。
1101
+ *
1102
+ * Please refer to HUAWEI cloud API Explorer for details.
1103
+ */
1104
+ showTopUrl: function (showTopUrlRequest) {
1105
+ var options = {
1106
+ method: "GET",
1107
+ url: "/v1.0/cdn/statistics/top-url",
1108
+ contentType: "application/json",
1109
+ queryParams: {},
1110
+ pathParams: {},
1111
+ headers: {},
1112
+ data: {}
1113
+ };
1114
+ var localVarHeaderParameter = {};
1115
+ var localVarQueryParameter = {};
1116
+ var startTime;
1117
+ var endTime;
1118
+ var domainName;
1119
+ var statType;
1120
+ var serviceArea;
1121
+ var enterpriseProjectId;
1122
+ if (showTopUrlRequest !== null && showTopUrlRequest !== undefined) {
1123
+ if (showTopUrlRequest instanceof ShowTopUrlRequest_1.ShowTopUrlRequest) {
1124
+ startTime = showTopUrlRequest.startTime;
1125
+ endTime = showTopUrlRequest.endTime;
1126
+ domainName = showTopUrlRequest.domainName;
1127
+ statType = showTopUrlRequest.statType;
1128
+ serviceArea = showTopUrlRequest.serviceArea;
1129
+ enterpriseProjectId = showTopUrlRequest.enterpriseProjectId;
1130
+ }
1131
+ else {
1132
+ startTime = showTopUrlRequest['start_time'];
1133
+ endTime = showTopUrlRequest['end_time'];
1134
+ domainName = showTopUrlRequest['domain_name'];
1135
+ statType = showTopUrlRequest['stat_type'];
1136
+ serviceArea = showTopUrlRequest['service_area'];
1137
+ enterpriseProjectId = showTopUrlRequest['enterprise_project_id'];
1138
+ }
1139
+ }
1140
+ if (startTime === null || startTime === undefined) {
1141
+ throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showTopUrl.');
1142
+ }
1143
+ if (startTime !== null && startTime !== undefined) {
1144
+ localVarQueryParameter['start_time'] = startTime;
1145
+ }
1146
+ if (endTime === null || endTime === undefined) {
1147
+ throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showTopUrl.');
1148
+ }
1149
+ if (endTime !== null && endTime !== undefined) {
1150
+ localVarQueryParameter['end_time'] = endTime;
1151
+ }
1152
+ if (domainName === null || domainName === undefined) {
1153
+ throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showTopUrl.');
1154
+ }
1155
+ if (domainName !== null && domainName !== undefined) {
1156
+ localVarQueryParameter['domain_name'] = domainName;
1157
+ }
1158
+ if (statType === null || statType === undefined) {
1159
+ throw new RequiredError('statType', 'Required parameter statType was null or undefined when calling showTopUrl.');
1160
+ }
1161
+ if (statType !== null && statType !== undefined) {
1162
+ localVarQueryParameter['stat_type'] = statType;
1163
+ }
1164
+ if (serviceArea !== null && serviceArea !== undefined) {
1165
+ localVarQueryParameter['service_area'] = serviceArea;
1166
+ }
1167
+ if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1168
+ localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
1169
+ }
1170
+ options.queryParams = localVarQueryParameter;
1171
+ options.headers = localVarHeaderParameter;
1172
+ return options;
1173
+ },
1174
+ };
1175
+ };
1176
+ exports.ParamCreater = ParamCreater;
1177
+ function newClient(client) {
1178
+ return new CdnClient(client);
1179
+ }
1180
+ /**
1181
+ *
1182
+ * @export
1183
+ * @class RequiredError
1184
+ * @extends {Error}
1185
+ */
1186
+ var RequiredError = /** @class */ (function (_super) {
1187
+ __extends(RequiredError, _super);
1188
+ function RequiredError(field, msg) {
1189
+ var _this = _super.call(this, msg) || this;
1190
+ _this.field = field;
1191
+ _this.name = "RequiredError";
1192
+ return _this;
1193
+ }
1194
+ return RequiredError;
1195
+ }(Error));
1196
+ exports.RequiredError = RequiredError;