@huaweicloud/huaweicloud-sdk-cdn 3.1.44 → 3.1.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (710) hide show
  1. package/huaweicloud-sdk-cdn.ts +6 -0
  2. package/package.json +4 -4
  3. package/v1/{CdnClient.js → CdnClient.ts} +1463 -929
  4. package/v1/CdnRegion.ts +28 -0
  5. package/v1/model/BatchDeleteTagsRequest.ts +12 -0
  6. package/v1/model/BatchDeleteTagsResponse.ts +8 -0
  7. package/v1/model/BlackWhiteListBody.ts +23 -0
  8. package/v1/model/CacheConfig.ts +40 -0
  9. package/v1/model/CacheConfigRequest.ts +40 -0
  10. package/v1/model/CacheConfigRequestBody.ts +19 -0
  11. package/v1/model/CacheRules.ts +88 -0
  12. package/v1/model/CacheUrlParameterFilter.ts +16 -0
  13. package/v1/model/CdnIps.ts +31 -0
  14. package/v1/model/Compress.ts +17 -0
  15. package/v1/model/CompressRequest.ts +17 -0
  16. package/v1/model/CompressResponse.ts +30 -0
  17. package/v1/model/CompressRules.ts +28 -0
  18. package/v1/model/Configs.ts +206 -0
  19. package/v1/model/ConfigsGetBody.ts +206 -0
  20. package/v1/model/CreateDomainRequest.ts +12 -0
  21. package/v1/model/CreateDomainRequestBody.ts +13 -0
  22. package/v1/model/CreateDomainResponse.ts +14 -0
  23. package/v1/model/CreateDomainResponseBodyContent.ts +176 -0
  24. package/v1/model/CreatePreheatingTasksRequest.ts +23 -0
  25. package/v1/model/CreatePreheatingTasksResponse.ts +19 -0
  26. package/v1/model/CreateRefreshTasksRequest.ts +23 -0
  27. package/v1/model/CreateRefreshTasksResponse.ts +19 -0
  28. package/v1/model/CreateTagsRequest.ts +12 -0
  29. package/v1/model/CreateTagsRequestBody.ts +24 -0
  30. package/v1/model/CreateTagsResponse.ts +8 -0
  31. package/v1/model/DeleteDomainRequest.ts +29 -0
  32. package/v1/model/DeleteDomainResponse.ts +14 -0
  33. package/v1/model/DeleteTagsRequestBody.ts +24 -0
  34. package/v1/model/DisableDomainRequest.ts +29 -0
  35. package/v1/model/DisableDomainResponse.ts +14 -0
  36. package/v1/model/DomainBody.ts +80 -0
  37. package/v1/model/DomainItemDetail.ts +44 -0
  38. package/v1/model/DomainItemLocationDetails.ts +45 -0
  39. package/v1/model/DomainOriginHost.ts +40 -0
  40. package/v1/model/DomainRegion.ts +28 -0
  41. package/v1/model/Domains.ts +225 -0
  42. package/v1/model/DomainsWithPort.ts +219 -0
  43. package/v1/model/EnableDomainRequest.ts +29 -0
  44. package/v1/model/EnableDomainResponse.ts +14 -0
  45. package/v1/model/EpResourceTag.ts +18 -0
  46. package/v1/model/ErrorCodeCache.ts +16 -0
  47. package/v1/model/ErrorCodeRedirectRules.ts +42 -0
  48. package/v1/model/Follow302StatusBody.ts +37 -0
  49. package/v1/model/Follow302StatusRequest.ts +27 -0
  50. package/v1/model/ForceRedirect.ts +29 -0
  51. package/v1/model/ForceRedirectConfig.ts +28 -0
  52. package/v1/model/HeaderBody.ts +12 -0
  53. package/v1/model/HeaderMap.ts +72 -0
  54. package/v1/model/HttpGetBody.ts +72 -0
  55. package/v1/model/HttpInfoRequest.ts +13 -0
  56. package/v1/model/HttpInfoRequestBody.ts +85 -0
  57. package/v1/model/HttpInfoResponseBody.ts +94 -0
  58. package/v1/model/HttpPutBody.ts +83 -0
  59. package/v1/model/HttpResponseHeader.ts +23 -0
  60. package/v1/model/HttpsDetail.ts +116 -0
  61. package/v1/model/IpFilter.ts +17 -0
  62. package/v1/model/ListDomainsRequest.ts +138 -0
  63. package/v1/model/ListDomainsResponse.ts +19 -0
  64. package/v1/model/LogObject.ts +54 -0
  65. package/v1/model/ModelMap.ts +17 -0
  66. package/v1/model/ModifyDomainConfigRequestBody.ts +12 -0
  67. package/v1/model/OriginHostBody.ts +38 -0
  68. package/v1/model/OriginHostRequest.ts +19 -0
  69. package/v1/model/OriginRangeBody.ts +37 -0
  70. package/v1/model/OriginRequest.ts +13 -0
  71. package/v1/model/OriginRequestHeader.ts +23 -0
  72. package/v1/model/OriginRequestUrlRewrite.ts +47 -0
  73. package/v1/model/PreheatingTaskRequest.ts +19 -0
  74. package/v1/model/PreheatingTaskRequestBody.ts +12 -0
  75. package/v1/model/Quotas.ts +38 -0
  76. package/v1/model/RangeStatusRequest.ts +27 -0
  77. package/v1/model/Referer.ts +40 -0
  78. package/v1/model/RefererBody.ts +13 -0
  79. package/v1/model/RefererConfig.ts +28 -0
  80. package/v1/model/RefererRsp.ts +39 -0
  81. package/v1/model/RefreshTaskRequest.ts +19 -0
  82. package/v1/model/RefreshTaskRequestBody.ts +39 -0
  83. package/v1/model/ResourceBody.ts +13 -0
  84. package/v1/model/Rules.ts +47 -0
  85. package/v1/model/ShowBlackWhiteListRequest.ts +29 -0
  86. package/v1/model/ShowBlackWhiteListResponse.ts +24 -0
  87. package/v1/model/ShowCacheRulesRequest.ts +29 -0
  88. package/v1/model/ShowCacheRulesResponse.ts +20 -0
  89. package/v1/model/ShowCertificatesHttpsInfoRequest.ts +61 -0
  90. package/v1/model/ShowCertificatesHttpsInfoResponse.ts +19 -0
  91. package/v1/model/ShowDomainDetailRequest.ts +29 -0
  92. package/v1/model/ShowDomainDetailResponse.ts +14 -0
  93. package/v1/model/ShowDomainFullConfigRequest.ts +29 -0
  94. package/v1/model/ShowDomainFullConfigResponse.ts +14 -0
  95. package/v1/model/ShowDomainItemDetailsRequest.ts +76 -0
  96. package/v1/model/ShowDomainItemDetailsResponse.ts +20 -0
  97. package/v1/model/ShowDomainItemLocationDetailsRequest.ts +77 -0
  98. package/v1/model/ShowDomainItemLocationDetailsResponse.ts +20 -0
  99. package/v1/model/ShowDomainLocationStatsRequest.ts +102 -0
  100. package/v1/model/ShowDomainLocationStatsResponse.ts +24 -0
  101. package/v1/model/ShowDomainStatsRequest.ts +98 -0
  102. package/v1/model/ShowDomainStatsResponse.ts +13 -0
  103. package/v1/model/ShowHistoryTaskDetailsRequest.ts +72 -0
  104. package/v1/model/ShowHistoryTaskDetailsResponse.ts +77 -0
  105. package/v1/model/ShowHistoryTasksRequest.ts +116 -0
  106. package/v1/model/ShowHistoryTasksResponse.ts +19 -0
  107. package/v1/model/ShowHttpInfoRequest.ts +29 -0
  108. package/v1/model/ShowHttpInfoResponse.ts +14 -0
  109. package/v1/model/ShowIpInfoRequest.ts +23 -0
  110. package/v1/model/ShowIpInfoResponse.ts +20 -0
  111. package/v1/model/ShowLogsRequest.ts +73 -0
  112. package/v1/model/ShowLogsResponse.ts +19 -0
  113. package/v1/model/ShowOriginHostRequest.ts +29 -0
  114. package/v1/model/ShowOriginHostResponse.ts +20 -0
  115. package/v1/model/ShowQuotaRequest.ts +6 -0
  116. package/v1/model/ShowQuotaResponse.ts +14 -0
  117. package/v1/model/ShowReferRequest.ts +29 -0
  118. package/v1/model/ShowReferResponse.ts +14 -0
  119. package/v1/model/ShowResponseHeaderRequest.ts +29 -0
  120. package/v1/model/ShowResponseHeaderResponse.ts +14 -0
  121. package/v1/model/ShowTagsRequest.ts +18 -0
  122. package/v1/model/ShowTagsResponse.ts +13 -0
  123. package/v1/model/ShowTopUrlRequest.ts +93 -0
  124. package/v1/model/ShowTopUrlResponse.ts +31 -0
  125. package/v1/model/ShowUrlTaskInfoRequest.ts +70 -0
  126. package/v1/model/ShowUrlTaskInfoResponse.ts +35 -0
  127. package/v1/model/SourceWithPort.ts +96 -0
  128. package/v1/model/Sources.ts +74 -0
  129. package/v1/model/SourcesConfig.ts +80 -0
  130. package/v1/model/TasksObject.ts +86 -0
  131. package/v1/model/TopUrlSummary.ts +49 -0
  132. package/v1/model/UpdateBlackWhiteListRequest.ts +35 -0
  133. package/v1/model/UpdateBlackWhiteListResponse.ts +23 -0
  134. package/v1/model/UpdateCacheRulesRequest.ts +35 -0
  135. package/v1/model/UpdateCacheRulesResponse.ts +20 -0
  136. package/v1/model/UpdateDomainFullConfigRequest.ts +35 -0
  137. package/v1/model/UpdateDomainFullConfigResponse.ts +8 -0
  138. package/v1/model/UpdateDomainMultiCertificatesRequest.ts +23 -0
  139. package/v1/model/UpdateDomainMultiCertificatesRequestBody.ts +12 -0
  140. package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.ts +107 -0
  141. package/v1/model/UpdateDomainMultiCertificatesResponse.ts +14 -0
  142. package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.ts +106 -0
  143. package/v1/model/UpdateDomainOriginRequest.ts +35 -0
  144. package/v1/model/UpdateDomainOriginResponse.ts +14 -0
  145. package/v1/model/UpdateFollow302SwitchRequest.ts +35 -0
  146. package/v1/model/UpdateFollow302SwitchResponse.ts +20 -0
  147. package/v1/model/UpdateHttpsInfoRequest.ts +35 -0
  148. package/v1/model/UpdateHttpsInfoResponse.ts +14 -0
  149. package/v1/model/UpdateOriginHostRequest.ts +35 -0
  150. package/v1/model/UpdateOriginHostResponse.ts +20 -0
  151. package/v1/model/UpdatePrivateBucketAccessBody.ts +11 -0
  152. package/v1/model/UpdatePrivateBucketAccessRequest.ts +35 -0
  153. package/v1/model/UpdatePrivateBucketAccessResponse.ts +13 -0
  154. package/v1/model/UpdateRangeSwitchRequest.ts +35 -0
  155. package/v1/model/UpdateRangeSwitchResponse.ts +20 -0
  156. package/v1/model/UpdateReferRequest.ts +35 -0
  157. package/v1/model/UpdateReferResponse.ts +14 -0
  158. package/v1/model/UpdateResponseHeaderRequest.ts +35 -0
  159. package/v1/model/UpdateResponseHeaderResponse.ts +14 -0
  160. package/v1/model/UrlAuth.ts +44 -0
  161. package/v1/model/UrlAuthGetBody.ts +39 -0
  162. package/v1/model/UrlObject.ts +54 -0
  163. package/v1/model/Urls.ts +70 -0
  164. package/v1/model/UserAgentFilter.ts +17 -0
  165. package/v1/{public-api.d.ts → public-api.ts} +1 -0
  166. package/v2/{CdnClient.js → CdnClient.ts} +685 -466
  167. package/v2/CdnRegion.ts +28 -0
  168. package/v2/model/BackSources.ts +63 -0
  169. package/v2/model/BatchCopyConfigs.ts +42 -0
  170. package/v2/model/BatchCopyDRequestBody.ts +13 -0
  171. package/v2/model/BatchCopyDomainRequest.ts +12 -0
  172. package/v2/model/BatchCopyDomainResponse.ts +14 -0
  173. package/v2/model/BatchCopyErrorRsp.ts +12 -0
  174. package/v2/model/BatchCopyErrorRspError.ts +28 -0
  175. package/v2/model/BatchCopyResultVo.ts +38 -0
  176. package/v2/model/CacheRules.ts +88 -0
  177. package/v2/model/CacheUrlParameterFilter.ts +16 -0
  178. package/v2/model/CommonRemoteAuth.ts +31 -0
  179. package/v2/model/Compress.ts +29 -0
  180. package/v2/model/Configs.ts +304 -0
  181. package/v2/model/ConfigsGetBody.ts +304 -0
  182. package/v2/model/CustomArgs.ts +24 -0
  183. package/v2/model/DomainOriginHost.ts +40 -0
  184. package/v2/model/Domains.ts +214 -0
  185. package/v2/model/DomainsWithPort.ts +119 -0
  186. package/v2/model/DownloadRegionCarrierExcelRequest.ts +96 -0
  187. package/v2/model/DownloadRegionCarrierExcelResponse.ts +8 -0
  188. package/v2/model/DownloadStatisticsExcelRequest.ts +92 -0
  189. package/v2/model/DownloadStatisticsExcelResponse.ts +8 -0
  190. package/v2/model/EpResourceTag.ts +18 -0
  191. package/v2/model/ErrMsg.ts +30 -0
  192. package/v2/model/ErrRsp.ts +13 -0
  193. package/v2/model/ErrorCodeCache.ts +16 -0
  194. package/v2/model/ErrorCodeRedirectRules.ts +42 -0
  195. package/v2/model/FlexibleOrigins.ts +49 -0
  196. package/v2/model/ForceRedirectConfig.ts +28 -0
  197. package/v2/model/HttpGetBody.ts +105 -0
  198. package/v2/model/HttpPutBody.ts +105 -0
  199. package/v2/model/HttpResponseHeader.ts +23 -0
  200. package/v2/model/IpFilter.ts +17 -0
  201. package/v2/model/ListDomainsRequest.ts +105 -0
  202. package/v2/model/ListDomainsResponse.ts +19 -0
  203. package/v2/model/ModifyDomainConfigRequestBody.ts +12 -0
  204. package/v2/model/OriginRequestHeader.ts +23 -0
  205. package/v2/model/OriginRequestUrlRewrite.ts +47 -0
  206. package/v2/model/RefererConfig.ts +28 -0
  207. package/v2/model/RemoteAuthRuleVo.ts +176 -0
  208. package/v2/model/RequestLimitRules.ts +40 -0
  209. package/v2/model/SetChargeModesBody.ts +42 -0
  210. package/v2/model/SetChargeModesRequest.ts +12 -0
  211. package/v2/model/SetChargeModesResponse.ts +68 -0
  212. package/v2/model/ShowBandwidthCalcRequest.ts +76 -0
  213. package/v2/model/ShowBandwidthCalcResponse.ts +19 -0
  214. package/v2/model/ShowChargeModesRequest.ts +34 -0
  215. package/v2/model/ShowChargeModesResponse.ts +13 -0
  216. package/v2/model/ShowDomainDetailByNameRequest.ts +29 -0
  217. package/v2/model/ShowDomainDetailByNameResponse.ts +14 -0
  218. package/v2/model/ShowDomainFullConfigRequest.ts +40 -0
  219. package/v2/model/ShowDomainFullConfigResponse.ts +14 -0
  220. package/v2/model/ShowDomainLocationStatsRequest.ts +102 -0
  221. package/v2/model/ShowDomainLocationStatsResponse.ts +24 -0
  222. package/v2/model/ShowDomainStatsRequest.ts +98 -0
  223. package/v2/model/ShowDomainStatsResponse.ts +13 -0
  224. package/v2/model/ShowTopDomainNamesRequest.ts +69 -0
  225. package/v2/model/ShowTopDomainNamesResponse.ts +19 -0
  226. package/v2/model/ShowTopUrlRequest.ts +76 -0
  227. package/v2/model/ShowTopUrlResponse.ts +31 -0
  228. package/v2/model/Sources.ts +74 -0
  229. package/v2/model/SourcesConfig.ts +96 -0
  230. package/v2/model/TopUrlSummary.ts +49 -0
  231. package/v2/model/UpdateDomainFullConfigRequest.ts +35 -0
  232. package/v2/model/UpdateDomainFullConfigResponse.ts +8 -0
  233. package/v2/model/UrlAuth.ts +91 -0
  234. package/v2/model/UrlAuthGetBody.ts +88 -0
  235. package/v2/model/UserAgentFilter.ts +28 -0
  236. package/v2/model/VideoSeek.ts +51 -0
  237. package/v2/model/WebSocketSeek.ts +18 -0
  238. package/v2/{public-api.d.ts → public-api.ts} +1 -0
  239. package/LICENSE +0 -13
  240. package/README.md +0 -1
  241. package/huaweicloud-sdk-cdn.d.ts +0 -3
  242. package/huaweicloud-sdk-cdn.js +0 -32
  243. package/v1/CdnClient.d.ts +0 -1357
  244. package/v1/CdnRegion.d.ts +0 -6
  245. package/v1/CdnRegion.js +0 -25
  246. package/v1/model/BatchDeleteTagsRequest.d.ts +0 -6
  247. package/v1/model/BatchDeleteTagsRequest.js +0 -13
  248. package/v1/model/BatchDeleteTagsResponse.d.ts +0 -4
  249. package/v1/model/BatchDeleteTagsResponse.js +0 -27
  250. package/v1/model/BlackWhiteListBody.d.ts +0 -9
  251. package/v1/model/BlackWhiteListBody.js +0 -28
  252. package/v1/model/CacheConfig.d.ts +0 -17
  253. package/v1/model/CacheConfig.js +0 -45
  254. package/v1/model/CacheConfigRequest.d.ts +0 -17
  255. package/v1/model/CacheConfigRequest.js +0 -45
  256. package/v1/model/CacheConfigRequestBody.d.ts +0 -8
  257. package/v1/model/CacheConfigRequestBody.js +0 -24
  258. package/v1/model/CacheRules.d.ts +0 -31
  259. package/v1/model/CacheRules.js +0 -107
  260. package/v1/model/CacheUrlParameterFilter.d.ts +0 -7
  261. package/v1/model/CacheUrlParameterFilter.js +0 -17
  262. package/v1/model/CdnIps.d.ts +0 -13
  263. package/v1/model/CdnIps.js +0 -29
  264. package/v1/model/Compress.d.ts +0 -7
  265. package/v1/model/Compress.js +0 -18
  266. package/v1/model/CompressRequest.d.ts +0 -7
  267. package/v1/model/CompressRequest.js +0 -23
  268. package/v1/model/CompressResponse.d.ts +0 -12
  269. package/v1/model/CompressResponse.js +0 -38
  270. package/v1/model/CompressRules.d.ts +0 -11
  271. package/v1/model/CompressRules.js +0 -37
  272. package/v1/model/Configs.d.ts +0 -86
  273. package/v1/model/Configs.js +0 -235
  274. package/v1/model/ConfigsGetBody.d.ts +0 -86
  275. package/v1/model/ConfigsGetBody.js +0 -235
  276. package/v1/model/CreateDomainRequest.d.ts +0 -6
  277. package/v1/model/CreateDomainRequest.js +0 -13
  278. package/v1/model/CreateDomainRequestBody.d.ts +0 -6
  279. package/v1/model/CreateDomainRequestBody.js +0 -14
  280. package/v1/model/CreateDomainResponse.d.ts +0 -7
  281. package/v1/model/CreateDomainResponse.js +0 -31
  282. package/v1/model/CreateDomainResponseBodyContent.d.ts +0 -67
  283. package/v1/model/CreateDomainResponseBodyContent.js +0 -211
  284. package/v1/model/CreatePreheatingTasksRequest.d.ts +0 -10
  285. package/v1/model/CreatePreheatingTasksRequest.js +0 -27
  286. package/v1/model/CreatePreheatingTasksResponse.d.ts +0 -8
  287. package/v1/model/CreatePreheatingTasksResponse.js +0 -41
  288. package/v1/model/CreateRefreshTasksRequest.d.ts +0 -10
  289. package/v1/model/CreateRefreshTasksRequest.js +0 -27
  290. package/v1/model/CreateRefreshTasksResponse.d.ts +0 -8
  291. package/v1/model/CreateRefreshTasksResponse.js +0 -41
  292. package/v1/model/CreateTagsRequest.d.ts +0 -6
  293. package/v1/model/CreateTagsRequest.js +0 -13
  294. package/v1/model/CreateTagsRequestBody.d.ts +0 -9
  295. package/v1/model/CreateTagsRequestBody.js +0 -29
  296. package/v1/model/CreateTagsResponse.d.ts +0 -4
  297. package/v1/model/CreateTagsResponse.js +0 -27
  298. package/v1/model/DeleteDomainRequest.d.ts +0 -11
  299. package/v1/model/DeleteDomainRequest.js +0 -38
  300. package/v1/model/DeleteDomainResponse.d.ts +0 -7
  301. package/v1/model/DeleteDomainResponse.js +0 -31
  302. package/v1/model/DeleteTagsRequestBody.d.ts +0 -9
  303. package/v1/model/DeleteTagsRequestBody.js +0 -29
  304. package/v1/model/DisableDomainRequest.d.ts +0 -11
  305. package/v1/model/DisableDomainRequest.js +0 -38
  306. package/v1/model/DisableDomainResponse.d.ts +0 -7
  307. package/v1/model/DisableDomainResponse.js +0 -31
  308. package/v1/model/DomainBody.d.ts +0 -41
  309. package/v1/model/DomainBody.js +0 -94
  310. package/v1/model/DomainItemDetail.d.ts +0 -21
  311. package/v1/model/DomainItemDetail.js +0 -55
  312. package/v1/model/DomainItemLocationDetails.d.ts +0 -18
  313. package/v1/model/DomainItemLocationDetails.js +0 -55
  314. package/v1/model/DomainOriginHost.d.ts +0 -15
  315. package/v1/model/DomainOriginHost.js +0 -52
  316. package/v1/model/DomainRegion.d.ts +0 -17
  317. package/v1/model/DomainRegion.js +0 -37
  318. package/v1/model/Domains.d.ts +0 -91
  319. package/v1/model/Domains.js +0 -267
  320. package/v1/model/DomainsWithPort.d.ts +0 -88
  321. package/v1/model/DomainsWithPort.js +0 -263
  322. package/v1/model/EnableDomainRequest.d.ts +0 -11
  323. package/v1/model/EnableDomainRequest.js +0 -38
  324. package/v1/model/EnableDomainResponse.d.ts +0 -7
  325. package/v1/model/EnableDomainResponse.js +0 -31
  326. package/v1/model/EpResourceTag.d.ts +0 -7
  327. package/v1/model/EpResourceTag.js +0 -19
  328. package/v1/model/ErrorCodeCache.d.ts +0 -7
  329. package/v1/model/ErrorCodeCache.js +0 -17
  330. package/v1/model/ErrorCodeRedirectRules.d.ts +0 -15
  331. package/v1/model/ErrorCodeRedirectRules.js +0 -54
  332. package/v1/model/Follow302StatusBody.d.ts +0 -19
  333. package/v1/model/Follow302StatusBody.js +0 -46
  334. package/v1/model/Follow302StatusRequest.d.ts +0 -15
  335. package/v1/model/Follow302StatusRequest.js +0 -33
  336. package/v1/model/ForceRedirect.d.ts +0 -11
  337. package/v1/model/ForceRedirect.js +0 -38
  338. package/v1/model/ForceRedirectConfig.d.ts +0 -11
  339. package/v1/model/ForceRedirectConfig.js +0 -32
  340. package/v1/model/HeaderBody.d.ts +0 -6
  341. package/v1/model/HeaderBody.js +0 -13
  342. package/v1/model/HeaderMap.d.ts +0 -27
  343. package/v1/model/HeaderMap.js +0 -93
  344. package/v1/model/HttpGetBody.d.ts +0 -27
  345. package/v1/model/HttpGetBody.js +0 -93
  346. package/v1/model/HttpInfoRequest.d.ts +0 -6
  347. package/v1/model/HttpInfoRequest.js +0 -14
  348. package/v1/model/HttpInfoRequestBody.d.ts +0 -32
  349. package/v1/model/HttpInfoRequestBody.js +0 -103
  350. package/v1/model/HttpInfoResponseBody.d.ts +0 -36
  351. package/v1/model/HttpInfoResponseBody.js +0 -115
  352. package/v1/model/HttpPutBody.d.ts +0 -31
  353. package/v1/model/HttpPutBody.js +0 -107
  354. package/v1/model/HttpResponseHeader.d.ts +0 -9
  355. package/v1/model/HttpResponseHeader.js +0 -23
  356. package/v1/model/HttpsDetail.d.ts +0 -44
  357. package/v1/model/HttpsDetail.js +0 -143
  358. package/v1/model/IpFilter.d.ts +0 -7
  359. package/v1/model/IpFilter.js +0 -18
  360. package/v1/model/ListDomainsRequest.d.ts +0 -71
  361. package/v1/model/ListDomainsRequest.js +0 -170
  362. package/v1/model/ListDomainsResponse.d.ts +0 -9
  363. package/v1/model/ListDomainsResponse.js +0 -35
  364. package/v1/model/LogObject.d.ts +0 -21
  365. package/v1/model/LogObject.js +0 -63
  366. package/v1/model/ModelMap.d.ts +0 -7
  367. package/v1/model/ModelMap.js +0 -18
  368. package/v1/model/ModifyDomainConfigRequestBody.d.ts +0 -6
  369. package/v1/model/ModifyDomainConfigRequestBody.js +0 -13
  370. package/v1/model/OriginHostBody.d.ts +0 -19
  371. package/v1/model/OriginHostBody.js +0 -47
  372. package/v1/model/OriginHostRequest.d.ts +0 -8
  373. package/v1/model/OriginHostRequest.js +0 -24
  374. package/v1/model/OriginRangeBody.d.ts +0 -19
  375. package/v1/model/OriginRangeBody.js +0 -46
  376. package/v1/model/OriginRequest.d.ts +0 -6
  377. package/v1/model/OriginRequest.js +0 -14
  378. package/v1/model/OriginRequestHeader.d.ts +0 -9
  379. package/v1/model/OriginRequestHeader.js +0 -23
  380. package/v1/model/OriginRequestUrlRewrite.d.ts +0 -17
  381. package/v1/model/OriginRequestUrlRewrite.js +0 -58
  382. package/v1/model/PreheatingTaskRequest.d.ts +0 -8
  383. package/v1/model/PreheatingTaskRequest.js +0 -24
  384. package/v1/model/PreheatingTaskRequestBody.d.ts +0 -5
  385. package/v1/model/PreheatingTaskRequestBody.js +0 -14
  386. package/v1/model/Quotas.d.ts +0 -15
  387. package/v1/model/Quotas.js +0 -45
  388. package/v1/model/RangeStatusRequest.d.ts +0 -15
  389. package/v1/model/RangeStatusRequest.js +0 -33
  390. package/v1/model/Referer.d.ts +0 -15
  391. package/v1/model/Referer.js +0 -52
  392. package/v1/model/RefererBody.d.ts +0 -6
  393. package/v1/model/RefererBody.js +0 -14
  394. package/v1/model/RefererConfig.d.ts +0 -11
  395. package/v1/model/RefererConfig.js +0 -32
  396. package/v1/model/RefererRsp.d.ts +0 -15
  397. package/v1/model/RefererRsp.js +0 -51
  398. package/v1/model/RefreshTaskRequest.d.ts +0 -8
  399. package/v1/model/RefreshTaskRequest.js +0 -24
  400. package/v1/model/RefreshTaskRequestBody.d.ts +0 -25
  401. package/v1/model/RefreshTaskRequestBody.js +0 -40
  402. package/v1/model/ResourceBody.d.ts +0 -6
  403. package/v1/model/ResourceBody.js +0 -14
  404. package/v1/model/Rules.d.ts +0 -17
  405. package/v1/model/Rules.js +0 -53
  406. package/v1/model/ShowBlackWhiteListRequest.d.ts +0 -11
  407. package/v1/model/ShowBlackWhiteListRequest.js +0 -38
  408. package/v1/model/ShowBlackWhiteListResponse.d.ts +0 -10
  409. package/v1/model/ShowBlackWhiteListResponse.js +0 -45
  410. package/v1/model/ShowCacheRulesRequest.d.ts +0 -11
  411. package/v1/model/ShowCacheRulesRequest.js +0 -38
  412. package/v1/model/ShowCacheRulesResponse.d.ts +0 -9
  413. package/v1/model/ShowCacheRulesResponse.js +0 -41
  414. package/v1/model/ShowCertificatesHttpsInfoRequest.d.ts +0 -23
  415. package/v1/model/ShowCertificatesHttpsInfoRequest.js +0 -79
  416. package/v1/model/ShowCertificatesHttpsInfoResponse.d.ts +0 -9
  417. package/v1/model/ShowCertificatesHttpsInfoResponse.js +0 -35
  418. package/v1/model/ShowDomainDetailRequest.d.ts +0 -11
  419. package/v1/model/ShowDomainDetailRequest.js +0 -38
  420. package/v1/model/ShowDomainDetailResponse.d.ts +0 -7
  421. package/v1/model/ShowDomainDetailResponse.js +0 -31
  422. package/v1/model/ShowDomainFullConfigRequest.d.ts +0 -11
  423. package/v1/model/ShowDomainFullConfigRequest.js +0 -38
  424. package/v1/model/ShowDomainFullConfigResponse.d.ts +0 -7
  425. package/v1/model/ShowDomainFullConfigResponse.js +0 -31
  426. package/v1/model/ShowDomainItemDetailsRequest.d.ts +0 -27
  427. package/v1/model/ShowDomainItemDetailsRequest.js +0 -97
  428. package/v1/model/ShowDomainItemDetailsResponse.d.ts +0 -9
  429. package/v1/model/ShowDomainItemDetailsResponse.js +0 -41
  430. package/v1/model/ShowDomainItemLocationDetailsRequest.d.ts +0 -27
  431. package/v1/model/ShowDomainItemLocationDetailsRequest.js +0 -93
  432. package/v1/model/ShowDomainItemLocationDetailsResponse.d.ts +0 -9
  433. package/v1/model/ShowDomainItemLocationDetailsResponse.js +0 -41
  434. package/v1/model/ShowDomainLocationStatsRequest.d.ts +0 -37
  435. package/v1/model/ShowDomainLocationStatsRequest.js +0 -118
  436. package/v1/model/ShowDomainLocationStatsResponse.d.ts +0 -14
  437. package/v1/model/ShowDomainLocationStatsResponse.js +0 -45
  438. package/v1/model/ShowDomainStatsRequest.d.ts +0 -35
  439. package/v1/model/ShowDomainStatsRequest.js +0 -120
  440. package/v1/model/ShowDomainStatsResponse.d.ts +0 -10
  441. package/v1/model/ShowDomainStatsResponse.js +0 -31
  442. package/v1/model/ShowHistoryTaskDetailsRequest.d.ts +0 -27
  443. package/v1/model/ShowHistoryTaskDetailsRequest.js +0 -88
  444. package/v1/model/ShowHistoryTaskDetailsResponse.d.ts +0 -31
  445. package/v1/model/ShowHistoryTaskDetailsResponse.js +0 -97
  446. package/v1/model/ShowHistoryTasksRequest.d.ts +0 -53
  447. package/v1/model/ShowHistoryTasksRequest.js +0 -143
  448. package/v1/model/ShowHistoryTasksResponse.d.ts +0 -9
  449. package/v1/model/ShowHistoryTasksResponse.js +0 -35
  450. package/v1/model/ShowHttpInfoRequest.d.ts +0 -11
  451. package/v1/model/ShowHttpInfoRequest.js +0 -38
  452. package/v1/model/ShowHttpInfoResponse.d.ts +0 -7
  453. package/v1/model/ShowHttpInfoResponse.js +0 -31
  454. package/v1/model/ShowIpInfoRequest.d.ts +0 -9
  455. package/v1/model/ShowIpInfoRequest.js +0 -28
  456. package/v1/model/ShowIpInfoResponse.d.ts +0 -9
  457. package/v1/model/ShowIpInfoResponse.js +0 -41
  458. package/v1/model/ShowLogsRequest.d.ts +0 -27
  459. package/v1/model/ShowLogsRequest.js +0 -94
  460. package/v1/model/ShowLogsResponse.d.ts +0 -9
  461. package/v1/model/ShowLogsResponse.js +0 -35
  462. package/v1/model/ShowOriginHostRequest.d.ts +0 -11
  463. package/v1/model/ShowOriginHostRequest.js +0 -38
  464. package/v1/model/ShowOriginHostResponse.d.ts +0 -9
  465. package/v1/model/ShowOriginHostResponse.js +0 -41
  466. package/v1/model/ShowQuotaRequest.d.ts +0 -3
  467. package/v1/model/ShowQuotaRequest.js +0 -9
  468. package/v1/model/ShowQuotaResponse.d.ts +0 -7
  469. package/v1/model/ShowQuotaResponse.js +0 -31
  470. package/v1/model/ShowReferRequest.d.ts +0 -11
  471. package/v1/model/ShowReferRequest.js +0 -38
  472. package/v1/model/ShowReferResponse.d.ts +0 -7
  473. package/v1/model/ShowReferResponse.js +0 -31
  474. package/v1/model/ShowResponseHeaderRequest.d.ts +0 -11
  475. package/v1/model/ShowResponseHeaderRequest.js +0 -38
  476. package/v1/model/ShowResponseHeaderResponse.d.ts +0 -7
  477. package/v1/model/ShowResponseHeaderResponse.js +0 -31
  478. package/v1/model/ShowTagsRequest.d.ts +0 -7
  479. package/v1/model/ShowTagsRequest.js +0 -24
  480. package/v1/model/ShowTagsResponse.d.ts +0 -6
  481. package/v1/model/ShowTagsResponse.js +0 -31
  482. package/v1/model/ShowTopUrlRequest.d.ts +0 -43
  483. package/v1/model/ShowTopUrlRequest.js +0 -115
  484. package/v1/model/ShowTopUrlResponse.d.ts +0 -13
  485. package/v1/model/ShowTopUrlResponse.js +0 -55
  486. package/v1/model/ShowUrlTaskInfoRequest.d.ts +0 -27
  487. package/v1/model/ShowUrlTaskInfoRequest.js +0 -81
  488. package/v1/model/ShowUrlTaskInfoResponse.d.ts +0 -15
  489. package/v1/model/ShowUrlTaskInfoResponse.js +0 -53
  490. package/v1/model/SourceWithPort.d.ts +0 -40
  491. package/v1/model/SourceWithPort.js +0 -120
  492. package/v1/model/Sources.d.ts +0 -32
  493. package/v1/model/Sources.js +0 -92
  494. package/v1/model/SourcesConfig.d.ts +0 -29
  495. package/v1/model/SourcesConfig.js +0 -100
  496. package/v1/model/TasksObject.d.ts +0 -43
  497. package/v1/model/TasksObject.js +0 -93
  498. package/v1/model/TopUrlSummary.d.ts +0 -19
  499. package/v1/model/TopUrlSummary.js +0 -59
  500. package/v1/model/UpdateBlackWhiteListRequest.d.ts +0 -14
  501. package/v1/model/UpdateBlackWhiteListRequest.js +0 -42
  502. package/v1/model/UpdateBlackWhiteListResponse.d.ts +0 -10
  503. package/v1/model/UpdateBlackWhiteListResponse.js +0 -39
  504. package/v1/model/UpdateCacheRulesRequest.d.ts +0 -14
  505. package/v1/model/UpdateCacheRulesRequest.js +0 -42
  506. package/v1/model/UpdateCacheRulesResponse.d.ts +0 -9
  507. package/v1/model/UpdateCacheRulesResponse.js +0 -41
  508. package/v1/model/UpdateDomainFullConfigRequest.d.ts +0 -14
  509. package/v1/model/UpdateDomainFullConfigRequest.js +0 -42
  510. package/v1/model/UpdateDomainFullConfigResponse.d.ts +0 -4
  511. package/v1/model/UpdateDomainFullConfigResponse.js +0 -27
  512. package/v1/model/UpdateDomainMultiCertificatesRequest.d.ts +0 -10
  513. package/v1/model/UpdateDomainMultiCertificatesRequest.js +0 -27
  514. package/v1/model/UpdateDomainMultiCertificatesRequestBody.d.ts +0 -6
  515. package/v1/model/UpdateDomainMultiCertificatesRequestBody.js +0 -13
  516. package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.d.ts +0 -40
  517. package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.js +0 -131
  518. package/v1/model/UpdateDomainMultiCertificatesResponse.d.ts +0 -7
  519. package/v1/model/UpdateDomainMultiCertificatesResponse.js +0 -31
  520. package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.d.ts +0 -40
  521. package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.js +0 -130
  522. package/v1/model/UpdateDomainOriginRequest.d.ts +0 -14
  523. package/v1/model/UpdateDomainOriginRequest.js +0 -42
  524. package/v1/model/UpdateDomainOriginResponse.d.ts +0 -7
  525. package/v1/model/UpdateDomainOriginResponse.js +0 -31
  526. package/v1/model/UpdateFollow302SwitchRequest.d.ts +0 -14
  527. package/v1/model/UpdateFollow302SwitchRequest.js +0 -42
  528. package/v1/model/UpdateFollow302SwitchResponse.d.ts +0 -9
  529. package/v1/model/UpdateFollow302SwitchResponse.js +0 -41
  530. package/v1/model/UpdateHttpsInfoRequest.d.ts +0 -14
  531. package/v1/model/UpdateHttpsInfoRequest.js +0 -42
  532. package/v1/model/UpdateHttpsInfoResponse.d.ts +0 -7
  533. package/v1/model/UpdateHttpsInfoResponse.js +0 -31
  534. package/v1/model/UpdateOriginHostRequest.d.ts +0 -14
  535. package/v1/model/UpdateOriginHostRequest.js +0 -42
  536. package/v1/model/UpdateOriginHostResponse.d.ts +0 -9
  537. package/v1/model/UpdateOriginHostResponse.js +0 -41
  538. package/v1/model/UpdatePrivateBucketAccessBody.d.ts +0 -5
  539. package/v1/model/UpdatePrivateBucketAccessBody.js +0 -13
  540. package/v1/model/UpdatePrivateBucketAccessRequest.d.ts +0 -14
  541. package/v1/model/UpdatePrivateBucketAccessRequest.js +0 -42
  542. package/v1/model/UpdatePrivateBucketAccessResponse.d.ts +0 -6
  543. package/v1/model/UpdatePrivateBucketAccessResponse.js +0 -31
  544. package/v1/model/UpdateRangeSwitchRequest.d.ts +0 -14
  545. package/v1/model/UpdateRangeSwitchRequest.js +0 -42
  546. package/v1/model/UpdateRangeSwitchResponse.d.ts +0 -9
  547. package/v1/model/UpdateRangeSwitchResponse.js +0 -41
  548. package/v1/model/UpdateReferRequest.d.ts +0 -14
  549. package/v1/model/UpdateReferRequest.js +0 -42
  550. package/v1/model/UpdateReferResponse.d.ts +0 -7
  551. package/v1/model/UpdateReferResponse.js +0 -31
  552. package/v1/model/UpdateResponseHeaderRequest.d.ts +0 -14
  553. package/v1/model/UpdateResponseHeaderRequest.js +0 -42
  554. package/v1/model/UpdateResponseHeaderResponse.d.ts +0 -7
  555. package/v1/model/UpdateResponseHeaderResponse.js +0 -31
  556. package/v1/model/UrlAuth.d.ts +0 -17
  557. package/v1/model/UrlAuth.js +0 -50
  558. package/v1/model/UrlAuthGetBody.d.ts +0 -15
  559. package/v1/model/UrlAuthGetBody.js +0 -46
  560. package/v1/model/UrlObject.d.ts +0 -21
  561. package/v1/model/UrlObject.js +0 -63
  562. package/v1/model/Urls.d.ts +0 -27
  563. package/v1/model/Urls.js +0 -81
  564. package/v1/model/UserAgentFilter.d.ts +0 -7
  565. package/v1/model/UserAgentFilter.js +0 -18
  566. package/v1/public-api.js +0 -178
  567. package/v2/CdnClient.d.ts +0 -648
  568. package/v2/CdnRegion.d.ts +0 -6
  569. package/v2/CdnRegion.js +0 -25
  570. package/v2/model/BackSources.d.ts +0 -23
  571. package/v2/model/BackSources.js +0 -81
  572. package/v2/model/BatchCopyConfigs.d.ts +0 -15
  573. package/v2/model/BatchCopyConfigs.js +0 -54
  574. package/v2/model/BatchCopyDRequestBody.d.ts +0 -6
  575. package/v2/model/BatchCopyDRequestBody.js +0 -14
  576. package/v2/model/BatchCopyDomainRequest.d.ts +0 -6
  577. package/v2/model/BatchCopyDomainRequest.js +0 -13
  578. package/v2/model/BatchCopyDomainResponse.d.ts +0 -7
  579. package/v2/model/BatchCopyDomainResponse.js +0 -31
  580. package/v2/model/BatchCopyErrorRsp.d.ts +0 -6
  581. package/v2/model/BatchCopyErrorRsp.js +0 -13
  582. package/v2/model/BatchCopyErrorRspError.d.ts +0 -11
  583. package/v2/model/BatchCopyErrorRspError.js +0 -37
  584. package/v2/model/BatchCopyResultVo.d.ts +0 -19
  585. package/v2/model/BatchCopyResultVo.js +0 -42
  586. package/v2/model/CacheRules.d.ts +0 -31
  587. package/v2/model/CacheRules.js +0 -107
  588. package/v2/model/CacheUrlParameterFilter.d.ts +0 -7
  589. package/v2/model/CacheUrlParameterFilter.js +0 -17
  590. package/v2/model/CommonRemoteAuth.d.ts +0 -12
  591. package/v2/model/CommonRemoteAuth.js +0 -39
  592. package/v2/model/Compress.d.ts +0 -11
  593. package/v2/model/Compress.js +0 -33
  594. package/v2/model/Configs.d.ts +0 -117
  595. package/v2/model/Configs.js +0 -323
  596. package/v2/model/ConfigsGetBody.d.ts +0 -117
  597. package/v2/model/ConfigsGetBody.js +0 -323
  598. package/v2/model/CustomArgs.d.ts +0 -9
  599. package/v2/model/CustomArgs.js +0 -24
  600. package/v2/model/DomainOriginHost.d.ts +0 -15
  601. package/v2/model/DomainOriginHost.js +0 -52
  602. package/v2/model/Domains.d.ts +0 -87
  603. package/v2/model/Domains.js +0 -253
  604. package/v2/model/DomainsWithPort.d.ts +0 -51
  605. package/v2/model/DomainsWithPort.js +0 -137
  606. package/v2/model/DownloadRegionCarrierExcelRequest.d.ts +0 -35
  607. package/v2/model/DownloadRegionCarrierExcelRequest.js +0 -113
  608. package/v2/model/DownloadRegionCarrierExcelResponse.d.ts +0 -4
  609. package/v2/model/DownloadRegionCarrierExcelResponse.js +0 -27
  610. package/v2/model/DownloadStatisticsExcelRequest.d.ts +0 -33
  611. package/v2/model/DownloadStatisticsExcelRequest.js +0 -115
  612. package/v2/model/DownloadStatisticsExcelResponse.d.ts +0 -4
  613. package/v2/model/DownloadStatisticsExcelResponse.js +0 -27
  614. package/v2/model/EpResourceTag.d.ts +0 -7
  615. package/v2/model/EpResourceTag.js +0 -19
  616. package/v2/model/ErrMsg.d.ts +0 -11
  617. package/v2/model/ErrMsg.js +0 -39
  618. package/v2/model/ErrRsp.d.ts +0 -6
  619. package/v2/model/ErrRsp.js +0 -14
  620. package/v2/model/ErrorCodeCache.d.ts +0 -7
  621. package/v2/model/ErrorCodeCache.js +0 -17
  622. package/v2/model/ErrorCodeRedirectRules.d.ts +0 -15
  623. package/v2/model/ErrorCodeRedirectRules.js +0 -54
  624. package/v2/model/FlexibleOrigins.d.ts +0 -18
  625. package/v2/model/FlexibleOrigins.js +0 -59
  626. package/v2/model/ForceRedirectConfig.d.ts +0 -11
  627. package/v2/model/ForceRedirectConfig.js +0 -32
  628. package/v2/model/HttpGetBody.d.ts +0 -39
  629. package/v2/model/HttpGetBody.js +0 -135
  630. package/v2/model/HttpPutBody.d.ts +0 -39
  631. package/v2/model/HttpPutBody.js +0 -135
  632. package/v2/model/HttpResponseHeader.d.ts +0 -9
  633. package/v2/model/HttpResponseHeader.js +0 -23
  634. package/v2/model/IpFilter.d.ts +0 -7
  635. package/v2/model/IpFilter.js +0 -18
  636. package/v2/model/ListDomainsRequest.d.ts +0 -39
  637. package/v2/model/ListDomainsRequest.js +0 -135
  638. package/v2/model/ListDomainsResponse.d.ts +0 -9
  639. package/v2/model/ListDomainsResponse.js +0 -35
  640. package/v2/model/ModifyDomainConfigRequestBody.d.ts +0 -6
  641. package/v2/model/ModifyDomainConfigRequestBody.js +0 -13
  642. package/v2/model/OriginRequestHeader.d.ts +0 -9
  643. package/v2/model/OriginRequestHeader.js +0 -23
  644. package/v2/model/OriginRequestUrlRewrite.d.ts +0 -17
  645. package/v2/model/OriginRequestUrlRewrite.js +0 -58
  646. package/v2/model/RefererConfig.d.ts +0 -11
  647. package/v2/model/RefererConfig.js +0 -32
  648. package/v2/model/RemoteAuthRuleVo.d.ts +0 -62
  649. package/v2/model/RemoteAuthRuleVo.js +0 -219
  650. package/v2/model/RequestLimitRules.d.ts +0 -15
  651. package/v2/model/RequestLimitRules.js +0 -47
  652. package/v2/model/SetChargeModesBody.d.ts +0 -15
  653. package/v2/model/SetChargeModesBody.js +0 -54
  654. package/v2/model/SetChargeModesRequest.d.ts +0 -6
  655. package/v2/model/SetChargeModesRequest.js +0 -13
  656. package/v2/model/SetChargeModesResponse.d.ts +0 -26
  657. package/v2/model/SetChargeModesResponse.js +0 -101
  658. package/v2/model/ShowBandwidthCalcRequest.d.ts +0 -27
  659. package/v2/model/ShowBandwidthCalcRequest.js +0 -97
  660. package/v2/model/ShowBandwidthCalcResponse.d.ts +0 -14
  661. package/v2/model/ShowBandwidthCalcResponse.js +0 -41
  662. package/v2/model/ShowChargeModesRequest.d.ts +0 -13
  663. package/v2/model/ShowChargeModesRequest.js +0 -42
  664. package/v2/model/ShowChargeModesResponse.d.ts +0 -10
  665. package/v2/model/ShowChargeModesResponse.js +0 -31
  666. package/v2/model/ShowDomainDetailByNameRequest.d.ts +0 -11
  667. package/v2/model/ShowDomainDetailByNameRequest.js +0 -38
  668. package/v2/model/ShowDomainDetailByNameResponse.d.ts +0 -7
  669. package/v2/model/ShowDomainDetailByNameResponse.js +0 -31
  670. package/v2/model/ShowDomainFullConfigRequest.d.ts +0 -15
  671. package/v2/model/ShowDomainFullConfigRequest.js +0 -52
  672. package/v2/model/ShowDomainFullConfigResponse.d.ts +0 -7
  673. package/v2/model/ShowDomainFullConfigResponse.js +0 -31
  674. package/v2/model/ShowDomainLocationStatsRequest.d.ts +0 -37
  675. package/v2/model/ShowDomainLocationStatsRequest.js +0 -118
  676. package/v2/model/ShowDomainLocationStatsResponse.d.ts +0 -14
  677. package/v2/model/ShowDomainLocationStatsResponse.js +0 -45
  678. package/v2/model/ShowDomainStatsRequest.d.ts +0 -35
  679. package/v2/model/ShowDomainStatsRequest.js +0 -120
  680. package/v2/model/ShowDomainStatsResponse.d.ts +0 -10
  681. package/v2/model/ShowDomainStatsResponse.js +0 -31
  682. package/v2/model/ShowTopDomainNamesRequest.d.ts +0 -25
  683. package/v2/model/ShowTopDomainNamesRequest.js +0 -86
  684. package/v2/model/ShowTopDomainNamesResponse.d.ts +0 -14
  685. package/v2/model/ShowTopDomainNamesResponse.js +0 -41
  686. package/v2/model/ShowTopUrlRequest.d.ts +0 -27
  687. package/v2/model/ShowTopUrlRequest.js +0 -97
  688. package/v2/model/ShowTopUrlResponse.d.ts +0 -13
  689. package/v2/model/ShowTopUrlResponse.js +0 -55
  690. package/v2/model/Sources.d.ts +0 -32
  691. package/v2/model/Sources.js +0 -92
  692. package/v2/model/SourcesConfig.d.ts +0 -33
  693. package/v2/model/SourcesConfig.js +0 -114
  694. package/v2/model/TopUrlSummary.d.ts +0 -19
  695. package/v2/model/TopUrlSummary.js +0 -59
  696. package/v2/model/UpdateDomainFullConfigRequest.d.ts +0 -14
  697. package/v2/model/UpdateDomainFullConfigRequest.js +0 -42
  698. package/v2/model/UpdateDomainFullConfigResponse.d.ts +0 -4
  699. package/v2/model/UpdateDomainFullConfigResponse.js +0 -27
  700. package/v2/model/UrlAuth.d.ts +0 -33
  701. package/v2/model/UrlAuth.js +0 -109
  702. package/v2/model/UrlAuthGetBody.d.ts +0 -33
  703. package/v2/model/UrlAuthGetBody.js +0 -106
  704. package/v2/model/UserAgentFilter.d.ts +0 -11
  705. package/v2/model/UserAgentFilter.js +0 -32
  706. package/v2/model/VideoSeek.d.ts +0 -19
  707. package/v2/model/VideoSeek.js +0 -66
  708. package/v2/model/WebSocketSeek.d.ts +0 -7
  709. package/v2/model/WebSocketSeek.js +0 -19
  710. package/v2/public-api.js +0 -88
@@ -1,75 +1,126 @@
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 ListDomainsRequest_1 = require("./model/ListDomainsRequest");
24
- var SetChargeModesRequest_1 = require("./model/SetChargeModesRequest");
25
- var ShowBandwidthCalcRequest_1 = require("./model/ShowBandwidthCalcRequest");
26
- var ShowChargeModesRequest_1 = require("./model/ShowChargeModesRequest");
27
- var ShowDomainDetailByNameRequest_1 = require("./model/ShowDomainDetailByNameRequest");
28
- var ShowDomainFullConfigRequest_1 = require("./model/ShowDomainFullConfigRequest");
29
- var ShowDomainLocationStatsRequest_1 = require("./model/ShowDomainLocationStatsRequest");
30
- var ShowDomainStatsRequest_1 = require("./model/ShowDomainStatsRequest");
31
- var ShowTopDomainNamesRequest_1 = require("./model/ShowTopDomainNamesRequest");
32
- var ShowTopUrlRequest_1 = require("./model/ShowTopUrlRequest");
33
- var UpdateDomainFullConfigRequest_1 = require("./model/UpdateDomainFullConfigRequest");
34
- var CdnClient = /** @class */ (function () {
35
- function CdnClient(client) {
1
+ import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient";
2
+ import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
3
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
4
+
5
+ import { BackSources } from './model/BackSources';
6
+ import { BatchCopyConfigs } from './model/BatchCopyConfigs';
7
+ import { BatchCopyDRequestBody } from './model/BatchCopyDRequestBody';
8
+ import { BatchCopyDomainRequest } from './model/BatchCopyDomainRequest';
9
+ import { BatchCopyDomainResponse } from './model/BatchCopyDomainResponse';
10
+ import { BatchCopyErrorRsp } from './model/BatchCopyErrorRsp';
11
+ import { BatchCopyErrorRspError } from './model/BatchCopyErrorRspError';
12
+ import { BatchCopyResultVo } from './model/BatchCopyResultVo';
13
+ import { CacheRules } from './model/CacheRules';
14
+ import { CacheUrlParameterFilter } from './model/CacheUrlParameterFilter';
15
+ import { CommonRemoteAuth } from './model/CommonRemoteAuth';
16
+ import { Compress } from './model/Compress';
17
+ import { Configs } from './model/Configs';
18
+ import { ConfigsGetBody } from './model/ConfigsGetBody';
19
+ import { CustomArgs } from './model/CustomArgs';
20
+ import { DomainOriginHost } from './model/DomainOriginHost';
21
+ import { Domains } from './model/Domains';
22
+ import { DomainsWithPort } from './model/DomainsWithPort';
23
+ import { DownloadRegionCarrierExcelRequest } from './model/DownloadRegionCarrierExcelRequest';
24
+ import { DownloadRegionCarrierExcelResponse } from './model/DownloadRegionCarrierExcelResponse';
25
+ import { DownloadStatisticsExcelRequest } from './model/DownloadStatisticsExcelRequest';
26
+ import { DownloadStatisticsExcelResponse } from './model/DownloadStatisticsExcelResponse';
27
+ import { EpResourceTag } from './model/EpResourceTag';
28
+ import { ErrMsg } from './model/ErrMsg';
29
+ import { ErrRsp } from './model/ErrRsp';
30
+ import { ErrorCodeCache } from './model/ErrorCodeCache';
31
+ import { ErrorCodeRedirectRules } from './model/ErrorCodeRedirectRules';
32
+ import { FlexibleOrigins } from './model/FlexibleOrigins';
33
+ import { ForceRedirectConfig } from './model/ForceRedirectConfig';
34
+ import { HttpGetBody } from './model/HttpGetBody';
35
+ import { HttpPutBody } from './model/HttpPutBody';
36
+ import { HttpResponseHeader } from './model/HttpResponseHeader';
37
+ import { IpFilter } from './model/IpFilter';
38
+ import { ListDomainsRequest } from './model/ListDomainsRequest';
39
+ import { ListDomainsResponse } from './model/ListDomainsResponse';
40
+ import { ModifyDomainConfigRequestBody } from './model/ModifyDomainConfigRequestBody';
41
+ import { OriginRequestHeader } from './model/OriginRequestHeader';
42
+ import { OriginRequestUrlRewrite } from './model/OriginRequestUrlRewrite';
43
+ import { RefererConfig } from './model/RefererConfig';
44
+ import { RemoteAuthRuleVo } from './model/RemoteAuthRuleVo';
45
+ import { RequestLimitRules } from './model/RequestLimitRules';
46
+ import { SetChargeModesBody } from './model/SetChargeModesBody';
47
+ import { SetChargeModesRequest } from './model/SetChargeModesRequest';
48
+ import { SetChargeModesResponse } from './model/SetChargeModesResponse';
49
+ import { ShowBandwidthCalcRequest } from './model/ShowBandwidthCalcRequest';
50
+ import { ShowBandwidthCalcResponse } from './model/ShowBandwidthCalcResponse';
51
+ import { ShowChargeModesRequest } from './model/ShowChargeModesRequest';
52
+ import { ShowChargeModesResponse } from './model/ShowChargeModesResponse';
53
+ import { ShowDomainDetailByNameRequest } from './model/ShowDomainDetailByNameRequest';
54
+ import { ShowDomainDetailByNameResponse } from './model/ShowDomainDetailByNameResponse';
55
+ import { ShowDomainFullConfigRequest } from './model/ShowDomainFullConfigRequest';
56
+ import { ShowDomainFullConfigResponse } from './model/ShowDomainFullConfigResponse';
57
+ import { ShowDomainLocationStatsRequest } from './model/ShowDomainLocationStatsRequest';
58
+ import { ShowDomainLocationStatsResponse } from './model/ShowDomainLocationStatsResponse';
59
+ import { ShowDomainStatsRequest } from './model/ShowDomainStatsRequest';
60
+ import { ShowDomainStatsResponse } from './model/ShowDomainStatsResponse';
61
+ import { ShowTopDomainNamesRequest } from './model/ShowTopDomainNamesRequest';
62
+ import { ShowTopDomainNamesResponse } from './model/ShowTopDomainNamesResponse';
63
+ import { ShowTopUrlRequest } from './model/ShowTopUrlRequest';
64
+ import { ShowTopUrlResponse } from './model/ShowTopUrlResponse';
65
+ import { Sources } from './model/Sources';
66
+ import { SourcesConfig } from './model/SourcesConfig';
67
+ import { TopUrlSummary } from './model/TopUrlSummary';
68
+ import { UpdateDomainFullConfigRequest } from './model/UpdateDomainFullConfigRequest';
69
+ import { UpdateDomainFullConfigResponse } from './model/UpdateDomainFullConfigResponse';
70
+ import { UrlAuth } from './model/UrlAuth';
71
+ import { UrlAuthGetBody } from './model/UrlAuthGetBody';
72
+ import { UserAgentFilter } from './model/UserAgentFilter';
73
+ import { VideoSeek } from './model/VideoSeek';
74
+ import { WebSocketSeek } from './model/WebSocketSeek';
75
+
76
+ export class CdnClient {
77
+ public static newBuilder(): ClientBuilder<CdnClient> {
78
+ return new ClientBuilder<CdnClient>(newClient);
79
+ }
80
+
81
+ private hcClient: HcClient;
82
+ public constructor(client: HcClient) {
36
83
  this.hcClient = client;
37
84
  }
38
- CdnClient.newBuilder = function () {
39
- return new ClientBuilder_1.ClientBuilder(newClient);
40
- };
41
- CdnClient.prototype.getPath = function () {
85
+
86
+ public getPath() {
42
87
  return __dirname;
43
- };
88
+ }
89
+
90
+
44
91
  /**
45
- * 批量域名复制接口
46
- *
92
+ * 批量域名复制接口。
93
+ * &gt; 将某个加速域名的配置批量复制到其他域名。
94
+ *
47
95
  * Please refer to HUAWEI cloud API Explorer for details.
48
96
  *
49
97
  * @summary 批量域名复制
50
- * @param {BatchCopyDRequestBody} batchCopyDRequestBody 域名复制参数请求体
98
+ * @param {BatchCopyDRequestBody} batchCopyDRequestBody 域名复制参数请求体。
51
99
  * @param {*} [options] Override http request option.
52
100
  * @throws {RequiredError}
53
101
  */
54
- CdnClient.prototype.batchCopyDomain = function (batchCopyDomainRequest) {
55
- var options = (0, exports.ParamCreater)().batchCopyDomain(batchCopyDomainRequest);
56
- // @ts-ignore
102
+ public batchCopyDomain(batchCopyDomainRequest?: BatchCopyDomainRequest): Promise<BatchCopyDomainResponse> {
103
+ const options = ParamCreater().batchCopyDomain(batchCopyDomainRequest);
104
+
105
+ // @ts-ignore
57
106
  options['responseHeaders'] = [''];
107
+
58
108
  return this.hcClient.sendRequest(options);
59
- };
109
+ }
110
+
60
111
  /**
61
112
  * - 下载区域运营商指标数据表格文件。
62
- *
113
+ *
63
114
  * - 支持下载90天内的指标数据表格。
64
- *
115
+ *
65
116
  * - 时间跨度不能超过31天。
66
- *
117
+ *
67
118
  * - 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
68
- *
119
+ *
69
120
  * - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
70
- *
121
+ *
71
122
  * - 单租户调用频率:10次/min。
72
- *
123
+ *
73
124
  * Please refer to HUAWEI cloud API Explorer for details.
74
125
  *
75
126
  * @summary 下载区域运营商指标数据表格文件
@@ -86,25 +137,28 @@ var CdnClient = /** @class */ (function () {
86
137
  * @param {*} [options] Override http request option.
87
138
  * @throws {RequiredError}
88
139
  */
89
- CdnClient.prototype.downloadRegionCarrierExcel = function (downloadRegionCarrierExcelRequest) {
90
- var options = (0, exports.ParamCreater)().downloadRegionCarrierExcel(downloadRegionCarrierExcelRequest);
91
- // @ts-ignore
140
+ public downloadRegionCarrierExcel(downloadRegionCarrierExcelRequest?: DownloadRegionCarrierExcelRequest): Promise<DownloadRegionCarrierExcelResponse> {
141
+ const options = ParamCreater().downloadRegionCarrierExcel(downloadRegionCarrierExcelRequest);
142
+
143
+ // @ts-ignore
92
144
  options['responseHeaders'] = [''];
145
+
93
146
  return this.hcClient.sendRequest(options);
94
- };
147
+ }
148
+
95
149
  /**
96
150
  * - 下载统计指标数据表格文件。
97
- *
151
+ *
98
152
  * - 支持下载90天内的指标数据。
99
- *
153
+ *
100
154
  * - 时间跨度不能超过31天。
101
- *
155
+ *
102
156
  * - 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
103
- *
157
+ *
104
158
  * - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
105
- *
159
+ *
106
160
  * - 单租户调用频率:10次/min。
107
- *
161
+ *
108
162
  * Please refer to HUAWEI cloud API Explorer for details.
109
163
  *
110
164
  * @summary 下载统计指标数据表格文件
@@ -119,15 +173,18 @@ var CdnClient = /** @class */ (function () {
119
173
  * @param {*} [options] Override http request option.
120
174
  * @throws {RequiredError}
121
175
  */
122
- CdnClient.prototype.downloadStatisticsExcel = function (downloadStatisticsExcelRequest) {
123
- var options = (0, exports.ParamCreater)().downloadStatisticsExcel(downloadStatisticsExcelRequest);
124
- // @ts-ignore
176
+ public downloadStatisticsExcel(downloadStatisticsExcelRequest?: DownloadStatisticsExcelRequest): Promise<DownloadStatisticsExcelResponse> {
177
+ const options = ParamCreater().downloadStatisticsExcel(downloadStatisticsExcelRequest);
178
+
179
+ // @ts-ignore
125
180
  options['responseHeaders'] = [''];
181
+
126
182
  return this.hcClient.sendRequest(options);
127
- };
183
+ }
184
+
128
185
  /**
129
- * 查询加速域名
130
- *
186
+ * 查询加速域名。
187
+ *
131
188
  * Please refer to HUAWEI cloud API Explorer for details.
132
189
  *
133
190
  * @summary 查询加速域名
@@ -135,31 +192,34 @@ var CdnClient = /** @class */ (function () {
135
192
  * @param {string} [businessType] 加速域名的业务类型。取值: - web(网站加速) - download(文件下载加速) - video(点播加速) - wholeSite(全站加速)
136
193
  * @param {string} [domainStatus] 加速域名状态。取值意义: - online表示“已开启” - offline表示“已停用” - configuring表示“配置中” - configure_failed表示“配置失败” - checking表示“审核中” - check_failed表示“审核未通过” - deleting表示“删除中”。
137
194
  * @param {string} [serviceArea] 华为云CDN提供的加速服务范围,包含: - mainland_china 中国大陆 - outside_mainland_china 中国大陆境外 - global 全球。
138
- * @param {number} [pageSize] 每页的数量,取值范围1-10000,不设值时默认值为30。
139
- * @param {number} [pageNumber] 查询的页码。取值范围1-65535,不设值时默认值为1。
195
+ * @param {number} [pageSize] 每页加速域名的数量。
196
+ * @param {number} [pageNumber] 查询的页码,即:从哪一页开始查询。
140
197
  * @param {boolean} [showTags] 展示标签标识 true:不展示 false:展示。
141
198
  * @param {boolean} [exactMatch] 精准匹配 true:开启 false:关闭。
142
199
  * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\&quot;all\&quot;表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
143
200
  * @param {*} [options] Override http request option.
144
201
  * @throws {RequiredError}
145
202
  */
146
- CdnClient.prototype.listDomains = function (listDomainsRequest) {
147
- var options = (0, exports.ParamCreater)().listDomains(listDomainsRequest);
148
- // @ts-ignore
203
+ public listDomains(listDomainsRequest?: ListDomainsRequest): Promise<ListDomainsResponse> {
204
+ const options = ParamCreater().listDomains(listDomainsRequest);
205
+
206
+ // @ts-ignore
149
207
  options['responseHeaders'] = [''];
208
+
150
209
  return this.hcClient.sendRequest(options);
151
- };
210
+ }
211
+
152
212
  /**
153
213
  * - 设置用户计费模式。
154
- *
214
+ *
155
215
  * - 服务区域仅支持mainland_china(国内)
156
- *
216
+ *
157
217
  * - 计费模式仅支持设置flux(流量),v2及以上客户支持bw(带宽)
158
- *
218
+ *
159
219
  * - 加速类型仅支持base(基础加速)
160
- *
220
+ *
161
221
  * - 单租户调用频率:10次/min。
162
- *
222
+ *
163
223
  * Please refer to HUAWEI cloud API Explorer for details.
164
224
  *
165
225
  * @summary 设置用户计费模式
@@ -167,27 +227,30 @@ var CdnClient = /** @class */ (function () {
167
227
  * @param {*} [options] Override http request option.
168
228
  * @throws {RequiredError}
169
229
  */
170
- CdnClient.prototype.setChargeModes = function (setChargeModesRequest) {
171
- var options = (0, exports.ParamCreater)().setChargeModes(setChargeModesRequest);
172
- // @ts-ignore
230
+ public setChargeModes(setChargeModesRequest?: SetChargeModesRequest): Promise<SetChargeModesResponse> {
231
+ const options = ParamCreater().setChargeModes(setChargeModesRequest);
232
+
233
+ // @ts-ignore
173
234
  options['responseHeaders'] = [''];
235
+
174
236
  return this.hcClient.sendRequest(options);
175
- };
237
+ }
238
+
176
239
  /**
177
240
  * - 查询域名带宽峰值类数据。
178
- *
241
+ *
179
242
  * - 支持查询90天内的数据。
180
- *
243
+ *
181
244
  * - 查询时间跨度不能超过31天。
182
- *
245
+ *
183
246
  * - 起始时间和结束时间,左闭右开。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
184
- *
247
+ *
185
248
  * - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
186
- *
249
+ *
187
250
  * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、峰值类指标单位统一为bps(比特率),请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
188
- *
251
+ *
189
252
  * - 单租户调用频率:2次/s。
190
- *
253
+ *
191
254
  * Please refer to HUAWEI cloud API Explorer for details.
192
255
  *
193
256
  * @summary 查询域名带宽峰值类数据
@@ -200,23 +263,26 @@ var CdnClient = /** @class */ (function () {
200
263
  * @param {*} [options] Override http request option.
201
264
  * @throws {RequiredError}
202
265
  */
203
- CdnClient.prototype.showBandwidthCalc = function (showBandwidthCalcRequest) {
204
- var options = (0, exports.ParamCreater)().showBandwidthCalc(showBandwidthCalcRequest);
205
- // @ts-ignore
266
+ public showBandwidthCalc(showBandwidthCalcRequest?: ShowBandwidthCalcRequest): Promise<ShowBandwidthCalcResponse> {
267
+ const options = ParamCreater().showBandwidthCalc(showBandwidthCalcRequest);
268
+
269
+ // @ts-ignore
206
270
  options['responseHeaders'] = [''];
271
+
207
272
  return this.hcClient.sendRequest(options);
208
- };
273
+ }
274
+
209
275
  /**
210
276
  * - 查询用户计费模式。
211
- *
277
+ *
212
278
  * - 服务区域仅支持mainland_china(国内,默认)和outside_mainland_china(海外)
213
- *
279
+ *
214
280
  * - 计费模式状态支持active(已生效),upcoming(待生效)两种状态,默认为active(已生效)
215
- *
281
+ *
216
282
  * - 加速类型仅支持base(基础加速)
217
- *
283
+ *
218
284
  * - 单租户调用频率:5次/s。
219
- *
285
+ *
220
286
  * Please refer to HUAWEI cloud API Explorer for details.
221
287
  *
222
288
  * @summary 查询用户计费模式
@@ -226,33 +292,39 @@ var CdnClient = /** @class */ (function () {
226
292
  * @param {*} [options] Override http request option.
227
293
  * @throws {RequiredError}
228
294
  */
229
- CdnClient.prototype.showChargeModes = function (showChargeModesRequest) {
230
- var options = (0, exports.ParamCreater)().showChargeModes(showChargeModesRequest);
231
- // @ts-ignore
295
+ public showChargeModes(showChargeModesRequest?: ShowChargeModesRequest): Promise<ShowChargeModesResponse> {
296
+ const options = ParamCreater().showChargeModes(showChargeModesRequest);
297
+
298
+ // @ts-ignore
232
299
  options['responseHeaders'] = [''];
300
+
233
301
  return this.hcClient.sendRequest(options);
234
- };
302
+ }
303
+
235
304
  /**
236
- * 加速域名详情信息接口
237
- *
305
+ * 加速域名详情信息接口。
306
+ *
238
307
  * Please refer to HUAWEI cloud API Explorer for details.
239
308
  *
240
309
  * @summary 查询加速域名详情
241
- * @param {string} domainName 加速域名名称,获取方法请参见查询加速域名。
310
+ * @param {string} domainName 加速域名名称。
242
311
  * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\&quot;all\&quot;表示所有项目。注意:当使用帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
243
312
  * @param {*} [options] Override http request option.
244
313
  * @throws {RequiredError}
245
314
  */
246
- CdnClient.prototype.showDomainDetailByName = function (showDomainDetailByNameRequest) {
247
- var options = (0, exports.ParamCreater)().showDomainDetailByName(showDomainDetailByNameRequest);
248
- // @ts-ignore
315
+ public showDomainDetailByName(showDomainDetailByNameRequest?: ShowDomainDetailByNameRequest): Promise<ShowDomainDetailByNameResponse> {
316
+ const options = ParamCreater().showDomainDetailByName(showDomainDetailByNameRequest);
317
+
318
+ // @ts-ignore
249
319
  options['responseHeaders'] = [''];
320
+
250
321
  return this.hcClient.sendRequest(options);
251
- };
322
+ }
323
+
252
324
  /**
253
325
  * 查询域名配置接口,
254
- * 支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、回源跟随、ipv6设置、智能压缩、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转、高级回源、回源是否校验Etag、回源超时时间、远程鉴权配置、webSocket配置、视频拖拽、请求限速。
255
- *
326
+ * 支持查询回源请求头、业务类型、服务区域、HTTP header配置、URL鉴权、证书、源站、回源协议、回源跟随、ipv6设置、智能压缩、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转、高级回源、回源是否校验Etag、回源超时时间、远程鉴权配置、webSocket配置、视频拖拽、请求限速。
327
+ *
256
328
  * Please refer to HUAWEI cloud API Explorer for details.
257
329
  *
258
330
  * @summary 查询域名配置接口
@@ -262,30 +334,33 @@ var CdnClient = /** @class */ (function () {
262
334
  * @param {*} [options] Override http request option.
263
335
  * @throws {RequiredError}
264
336
  */
265
- CdnClient.prototype.showDomainFullConfig = function (showDomainFullConfigRequest) {
266
- var options = (0, exports.ParamCreater)().showDomainFullConfig(showDomainFullConfigRequest);
267
- // @ts-ignore
337
+ public showDomainFullConfig(showDomainFullConfigRequest?: ShowDomainFullConfigRequest): Promise<ShowDomainFullConfigResponse> {
338
+ const options = ParamCreater().showDomainFullConfig(showDomainFullConfigRequest);
339
+
340
+ // @ts-ignore
268
341
  options['responseHeaders'] = [''];
342
+
269
343
  return this.hcClient.sendRequest(options);
270
- };
344
+ }
345
+
271
346
  /**
272
347
  * - 支持查询90天内的数据。
273
- *
348
+ *
274
349
  * - 支持多指标同时查询,不超过5个。
275
- *
350
+ *
276
351
  * - 最多同时指定20个域名。
277
- *
352
+ *
278
353
  * - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
279
- *
354
+ *
280
355
  * - action取值:location_detail,location_summary
281
- *
356
+ *
282
357
  * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。
283
- *
358
+ *
284
359
  * - 单租户调用频率:15次/s。
285
- *
360
+ *
286
361
  * Please refer to HUAWEI cloud API Explorer for details.
287
362
  *
288
- * @summary 查询域名统计区域运营商数据
363
+ * @summary 按区域运营商查询域名统计数据
289
364
  * @param {string} action - 动作名称,可选location_summary、location_detail。 - location_summary:查询汇总数据 - location_detail:查询数据详情。
290
365
  * @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)
291
366
  * @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)
@@ -300,27 +375,30 @@ var CdnClient = /** @class */ (function () {
300
375
  * @param {*} [options] Override http request option.
301
376
  * @throws {RequiredError}
302
377
  */
303
- CdnClient.prototype.showDomainLocationStats = function (showDomainLocationStatsRequest) {
304
- var options = (0, exports.ParamCreater)().showDomainLocationStats(showDomainLocationStatsRequest);
305
- // @ts-ignore
378
+ public showDomainLocationStats(showDomainLocationStatsRequest?: ShowDomainLocationStatsRequest): Promise<ShowDomainLocationStatsResponse> {
379
+ const options = ParamCreater().showDomainLocationStats(showDomainLocationStatsRequest);
380
+
381
+ // @ts-ignore
306
382
  options['responseHeaders'] = [''];
383
+
307
384
  return this.hcClient.sendRequest(options);
308
- };
385
+ }
386
+
309
387
  /**
310
388
  * - 支持查询90天内的数据。
311
- *
389
+ *
312
390
  * - 支持多指标同时查询,不超过5个。
313
- *
391
+ *
314
392
  * - 最多同时指定20个域名。
315
- *
393
+ *
316
394
  * - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
317
- *
395
+ *
318
396
  * - action取值:detail,summary
319
- *
397
+ *
320
398
  * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
321
- *
399
+ *
322
400
  * - 单租户调用频率:15次/s。
323
- *
401
+ *
324
402
  * Please refer to HUAWEI cloud API Explorer for details.
325
403
  *
326
404
  * @summary 查询域名统计基础数据
@@ -336,27 +414,30 @@ var CdnClient = /** @class */ (function () {
336
414
  * @param {*} [options] Override http request option.
337
415
  * @throws {RequiredError}
338
416
  */
339
- CdnClient.prototype.showDomainStats = function (showDomainStatsRequest) {
340
- var options = (0, exports.ParamCreater)().showDomainStats(showDomainStatsRequest);
341
- // @ts-ignore
417
+ public showDomainStats(showDomainStatsRequest?: ShowDomainStatsRequest): Promise<ShowDomainStatsResponse> {
418
+ const options = ParamCreater().showDomainStats(showDomainStatsRequest);
419
+
420
+ // @ts-ignore
342
421
  options['responseHeaders'] = [''];
422
+
343
423
  return this.hcClient.sendRequest(options);
344
- };
424
+ }
425
+
345
426
  /**
346
427
  * - 查询TOP域名。
347
- *
428
+ *
348
429
  * - 支持查询90天内的数据。
349
- *
430
+ *
350
431
  * - 查询时间跨度不能超过1天。
351
- *
432
+ *
352
433
  * - 起始时间和结束时间,左闭右开,必须同时指定。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
353
- *
434
+ *
354
435
  * - 起始时间、结束时间必须传整点毫秒级时间戳。
355
- *
436
+ *
356
437
  * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
357
- *
438
+ *
358
439
  * - 单租户调用频率:5次/s。
359
- *
440
+ *
360
441
  * Please refer to HUAWEI cloud API Explorer for details.
361
442
  *
362
443
  * @summary 查询TOP域名
@@ -369,27 +450,30 @@ var CdnClient = /** @class */ (function () {
369
450
  * @param {*} [options] Override http request option.
370
451
  * @throws {RequiredError}
371
452
  */
372
- CdnClient.prototype.showTopDomainNames = function (showTopDomainNamesRequest) {
373
- var options = (0, exports.ParamCreater)().showTopDomainNames(showTopDomainNamesRequest);
374
- // @ts-ignore
453
+ public showTopDomainNames(showTopDomainNamesRequest?: ShowTopDomainNamesRequest): Promise<ShowTopDomainNamesResponse> {
454
+ const options = ParamCreater().showTopDomainNames(showTopDomainNamesRequest);
455
+
456
+ // @ts-ignore
375
457
  options['responseHeaders'] = [''];
458
+
376
459
  return this.hcClient.sendRequest(options);
377
- };
460
+ }
461
+
378
462
  /**
379
463
  * - 查询TOP100 URL明细。
380
- *
464
+ *
381
465
  * - 支持查询90天内的数据。
382
- *
466
+ *
383
467
  * - 查询跨度不能超过31天。
384
- *
468
+ *
385
469
  * - 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。
386
- *
470
+ *
387
471
  * - 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。
388
- *
472
+ *
389
473
  * - 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
390
- *
474
+ *
391
475
  * - 单租户调用频率:5次/s。
392
- *
476
+ *
393
477
  * Please refer to HUAWEI cloud API Explorer for details.
394
478
  *
395
479
  * @summary 查询TOP100 URL明细
@@ -402,43 +486,49 @@ var CdnClient = /** @class */ (function () {
402
486
  * @param {*} [options] Override http request option.
403
487
  * @throws {RequiredError}
404
488
  */
405
- CdnClient.prototype.showTopUrl = function (showTopUrlRequest) {
406
- var options = (0, exports.ParamCreater)().showTopUrl(showTopUrlRequest);
407
- // @ts-ignore
489
+ public showTopUrl(showTopUrlRequest?: ShowTopUrlRequest): Promise<ShowTopUrlResponse> {
490
+ const options = ParamCreater().showTopUrl(showTopUrlRequest);
491
+
492
+ // @ts-ignore
408
493
  options['responseHeaders'] = [''];
494
+
409
495
  return this.hcClient.sendRequest(options);
410
- };
496
+ }
497
+
411
498
  /**
412
499
  * 修改域名配置接口,
413
- * 支持修改回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、回源跟随、ipv6设置、智能压缩、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转、高级回源、回源是否校验Etag、回源超时时间、远程鉴权配置、webSocket配置、视频拖拽、请求限速。
414
- *
500
+ * 支持修改回源请求头、业务类型、服务区域、HTTP header配置、URL鉴权、证书、源站、回源协议、回源跟随、ipv6设置、智能压缩、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转、高级回源、回源是否校验Etag、回源超时时间、远程鉴权配置、webSocket配置、视频拖拽、请求限速。
501
+ *
415
502
  * Please refer to HUAWEI cloud API Explorer for details.
416
503
  *
417
504
  * @summary 修改域名全量配置接口
418
- * @param {string} domainName 加速域名
505
+ * @param {string} domainName 加速域名。
419
506
  * @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\&quot;all\&quot;代表所有项目。 &gt; 当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
420
- * @param {ModifyDomainConfigRequestBody} [modifyDomainConfigRequestBody] 域名配置
507
+ * @param {ModifyDomainConfigRequestBody} [modifyDomainConfigRequestBody] 域名配置。
421
508
  * @param {*} [options] Override http request option.
422
509
  * @throws {RequiredError}
423
510
  */
424
- CdnClient.prototype.updateDomainFullConfig = function (updateDomainFullConfigRequest) {
425
- var options = (0, exports.ParamCreater)().updateDomainFullConfig(updateDomainFullConfigRequest);
426
- // @ts-ignore
511
+ public updateDomainFullConfig(updateDomainFullConfigRequest?: UpdateDomainFullConfigRequest): Promise<UpdateDomainFullConfigResponse> {
512
+ const options = ParamCreater().updateDomainFullConfig(updateDomainFullConfigRequest);
513
+
514
+ // @ts-ignore
427
515
  options['responseHeaders'] = [''];
516
+
428
517
  return this.hcClient.sendRequest(options);
429
- };
430
- return CdnClient;
431
- }());
432
- exports.CdnClient = CdnClient;
433
- var ParamCreater = function () {
518
+ }
519
+ }
520
+
521
+ export const ParamCreater = function () {
434
522
  return {
523
+
435
524
  /**
436
- * 批量域名复制接口
437
- *
525
+ * 批量域名复制接口。
526
+ * &gt; 将某个加速域名的配置批量复制到其他域名。
527
+ *
438
528
  * Please refer to HUAWEI cloud API Explorer for details.
439
529
  */
440
- batchCopyDomain: function (batchCopyDomainRequest) {
441
- var options = {
530
+ batchCopyDomain(batchCopyDomainRequest?: BatchCopyDomainRequest) {
531
+ const options = {
442
532
  method: "POST",
443
533
  url: "/v1.0/cdn/configuration/domains/batch-copy",
444
534
  contentType: "application/json",
@@ -447,41 +537,46 @@ var ParamCreater = function () {
447
537
  headers: {},
448
538
  data: {}
449
539
  };
450
- var localVarHeaderParameter = {};
451
- var body;
540
+ const localVarHeaderParameter = {} as any;
541
+
542
+ let body: any;
543
+
452
544
  if (batchCopyDomainRequest !== null && batchCopyDomainRequest !== undefined) {
453
- if (batchCopyDomainRequest instanceof BatchCopyDomainRequest_1.BatchCopyDomainRequest) {
454
- body = batchCopyDomainRequest.body;
455
- }
456
- else {
545
+ if (batchCopyDomainRequest instanceof BatchCopyDomainRequest) {
546
+ body = batchCopyDomainRequest.body
547
+ } else {
457
548
  body = batchCopyDomainRequest['body'];
458
549
  }
459
550
  }
551
+
552
+
460
553
  if (body === null || body === undefined) {
461
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
554
+ throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
462
555
  }
463
556
  localVarHeaderParameter['Content-Type'] = 'application/json';
557
+
464
558
  options.data = body !== undefined ? body : {};
465
559
  options.headers = localVarHeaderParameter;
466
560
  return options;
467
561
  },
562
+
468
563
  /**
469
564
  * - 下载区域运营商指标数据表格文件。
470
- *
565
+ *
471
566
  * - 支持下载90天内的指标数据表格。
472
- *
567
+ *
473
568
  * - 时间跨度不能超过31天。
474
- *
569
+ *
475
570
  * - 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
476
- *
571
+ *
477
572
  * - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
478
- *
573
+ *
479
574
  * - 单租户调用频率:10次/min。
480
- *
575
+ *
481
576
  * Please refer to HUAWEI cloud API Explorer for details.
482
577
  */
483
- downloadRegionCarrierExcel: function (downloadRegionCarrierExcelRequest) {
484
- var options = {
578
+ downloadRegionCarrierExcel(downloadRegionCarrierExcelRequest?: DownloadRegionCarrierExcelRequest) {
579
+ const options = {
485
580
  method: "GET",
486
581
  url: "/v1.0/cdn/statistics/region-carrier-excel",
487
582
  contentType: "application/json",
@@ -489,20 +584,31 @@ var ParamCreater = function () {
489
584
  pathParams: {},
490
585
  headers: {}
491
586
  };
492
- var localVarHeaderParameter = {};
493
- var localVarQueryParameter = {};
494
- var startTime;
495
- var endTime;
496
- var domainName;
497
- var excelType;
498
- var interval;
499
- var country;
500
- var excelLanguage;
501
- var enterpriseProjectId;
502
- var region;
503
- var carrier;
587
+ const localVarHeaderParameter = {} as any;
588
+ const localVarQueryParameter = {} as any;
589
+
590
+ let startTime;
591
+
592
+ let endTime;
593
+
594
+ let domainName;
595
+
596
+ let excelType;
597
+
598
+ let interval;
599
+
600
+ let country;
601
+
602
+ let excelLanguage;
603
+
604
+ let enterpriseProjectId;
605
+
606
+ let region;
607
+
608
+ let carrier;
609
+
504
610
  if (downloadRegionCarrierExcelRequest !== null && downloadRegionCarrierExcelRequest !== undefined) {
505
- if (downloadRegionCarrierExcelRequest instanceof DownloadRegionCarrierExcelRequest_1.DownloadRegionCarrierExcelRequest) {
611
+ if (downloadRegionCarrierExcelRequest instanceof DownloadRegionCarrierExcelRequest) {
506
612
  startTime = downloadRegionCarrierExcelRequest.startTime;
507
613
  endTime = downloadRegionCarrierExcelRequest.endTime;
508
614
  domainName = downloadRegionCarrierExcelRequest.domainName;
@@ -513,8 +619,7 @@ var ParamCreater = function () {
513
619
  enterpriseProjectId = downloadRegionCarrierExcelRequest.enterpriseProjectId;
514
620
  region = downloadRegionCarrierExcelRequest.region;
515
621
  carrier = downloadRegionCarrierExcelRequest.carrier;
516
- }
517
- else {
622
+ } else {
518
623
  startTime = downloadRegionCarrierExcelRequest['start_time'];
519
624
  endTime = downloadRegionCarrierExcelRequest['end_time'];
520
625
  domainName = downloadRegionCarrierExcelRequest['domain_name'];
@@ -527,26 +632,28 @@ var ParamCreater = function () {
527
632
  carrier = downloadRegionCarrierExcelRequest['carrier'];
528
633
  }
529
634
  }
635
+
636
+
530
637
  if (startTime === null || startTime === undefined) {
531
- throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling downloadRegionCarrierExcel.');
638
+ throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling downloadRegionCarrierExcel.');
532
639
  }
533
640
  if (startTime !== null && startTime !== undefined) {
534
641
  localVarQueryParameter['start_time'] = startTime;
535
642
  }
536
643
  if (endTime === null || endTime === undefined) {
537
- throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling downloadRegionCarrierExcel.');
644
+ throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling downloadRegionCarrierExcel.');
538
645
  }
539
646
  if (endTime !== null && endTime !== undefined) {
540
647
  localVarQueryParameter['end_time'] = endTime;
541
648
  }
542
649
  if (domainName === null || domainName === undefined) {
543
- throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling downloadRegionCarrierExcel.');
650
+ throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling downloadRegionCarrierExcel.');
544
651
  }
545
652
  if (domainName !== null && domainName !== undefined) {
546
653
  localVarQueryParameter['domain_name'] = domainName;
547
654
  }
548
655
  if (excelType === null || excelType === undefined) {
549
- throw new RequiredError('excelType', 'Required parameter excelType was null or undefined when calling downloadRegionCarrierExcel.');
656
+ throw new RequiredError('excelType','Required parameter excelType was null or undefined when calling downloadRegionCarrierExcel.');
550
657
  }
551
658
  if (excelType !== null && excelType !== undefined) {
552
659
  localVarQueryParameter['excel_type'] = excelType;
@@ -569,27 +676,29 @@ var ParamCreater = function () {
569
676
  if (carrier !== null && carrier !== undefined) {
570
677
  localVarQueryParameter['carrier'] = carrier;
571
678
  }
679
+
572
680
  options.queryParams = localVarQueryParameter;
573
681
  options.headers = localVarHeaderParameter;
574
682
  return options;
575
683
  },
684
+
576
685
  /**
577
686
  * - 下载统计指标数据表格文件。
578
- *
687
+ *
579
688
  * - 支持下载90天内的指标数据。
580
- *
689
+ *
581
690
  * - 时间跨度不能超过31天。
582
- *
691
+ *
583
692
  * - 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
584
- *
693
+ *
585
694
  * - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
586
- *
695
+ *
587
696
  * - 单租户调用频率:10次/min。
588
- *
697
+ *
589
698
  * Please refer to HUAWEI cloud API Explorer for details.
590
699
  */
591
- downloadStatisticsExcel: function (downloadStatisticsExcelRequest) {
592
- var options = {
700
+ downloadStatisticsExcel(downloadStatisticsExcelRequest?: DownloadStatisticsExcelRequest) {
701
+ const options = {
593
702
  method: "GET",
594
703
  url: "/v1.0/cdn/statistics/statistics-excel",
595
704
  contentType: "application/json",
@@ -597,18 +706,27 @@ var ParamCreater = function () {
597
706
  pathParams: {},
598
707
  headers: {}
599
708
  };
600
- var localVarHeaderParameter = {};
601
- var localVarQueryParameter = {};
602
- var startTime;
603
- var endTime;
604
- var domainName;
605
- var excelType;
606
- var excelLanguage;
607
- var serviceArea;
608
- var interval;
609
- var enterpriseProjectId;
709
+ const localVarHeaderParameter = {} as any;
710
+ const localVarQueryParameter = {} as any;
711
+
712
+ let startTime;
713
+
714
+ let endTime;
715
+
716
+ let domainName;
717
+
718
+ let excelType;
719
+
720
+ let excelLanguage;
721
+
722
+ let serviceArea;
723
+
724
+ let interval;
725
+
726
+ let enterpriseProjectId;
727
+
610
728
  if (downloadStatisticsExcelRequest !== null && downloadStatisticsExcelRequest !== undefined) {
611
- if (downloadStatisticsExcelRequest instanceof DownloadStatisticsExcelRequest_1.DownloadStatisticsExcelRequest) {
729
+ if (downloadStatisticsExcelRequest instanceof DownloadStatisticsExcelRequest) {
612
730
  startTime = downloadStatisticsExcelRequest.startTime;
613
731
  endTime = downloadStatisticsExcelRequest.endTime;
614
732
  domainName = downloadStatisticsExcelRequest.domainName;
@@ -617,8 +735,7 @@ var ParamCreater = function () {
617
735
  serviceArea = downloadStatisticsExcelRequest.serviceArea;
618
736
  interval = downloadStatisticsExcelRequest.interval;
619
737
  enterpriseProjectId = downloadStatisticsExcelRequest.enterpriseProjectId;
620
- }
621
- else {
738
+ } else {
622
739
  startTime = downloadStatisticsExcelRequest['start_time'];
623
740
  endTime = downloadStatisticsExcelRequest['end_time'];
624
741
  domainName = downloadStatisticsExcelRequest['domain_name'];
@@ -629,26 +746,28 @@ var ParamCreater = function () {
629
746
  enterpriseProjectId = downloadStatisticsExcelRequest['enterprise_project_id'];
630
747
  }
631
748
  }
749
+
750
+
632
751
  if (startTime === null || startTime === undefined) {
633
- throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling downloadStatisticsExcel.');
752
+ throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling downloadStatisticsExcel.');
634
753
  }
635
754
  if (startTime !== null && startTime !== undefined) {
636
755
  localVarQueryParameter['start_time'] = startTime;
637
756
  }
638
757
  if (endTime === null || endTime === undefined) {
639
- throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling downloadStatisticsExcel.');
758
+ throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling downloadStatisticsExcel.');
640
759
  }
641
760
  if (endTime !== null && endTime !== undefined) {
642
761
  localVarQueryParameter['end_time'] = endTime;
643
762
  }
644
763
  if (domainName === null || domainName === undefined) {
645
- throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling downloadStatisticsExcel.');
764
+ throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling downloadStatisticsExcel.');
646
765
  }
647
766
  if (domainName !== null && domainName !== undefined) {
648
767
  localVarQueryParameter['domain_name'] = domainName;
649
768
  }
650
769
  if (excelType === null || excelType === undefined) {
651
- throw new RequiredError('excelType', 'Required parameter excelType was null or undefined when calling downloadStatisticsExcel.');
770
+ throw new RequiredError('excelType','Required parameter excelType was null or undefined when calling downloadStatisticsExcel.');
652
771
  }
653
772
  if (excelType !== null && excelType !== undefined) {
654
773
  localVarQueryParameter['excel_type'] = excelType;
@@ -665,17 +784,19 @@ var ParamCreater = function () {
665
784
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
666
785
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
667
786
  }
787
+
668
788
  options.queryParams = localVarQueryParameter;
669
789
  options.headers = localVarHeaderParameter;
670
790
  return options;
671
791
  },
792
+
672
793
  /**
673
- * 查询加速域名
674
- *
794
+ * 查询加速域名。
795
+ *
675
796
  * Please refer to HUAWEI cloud API Explorer for details.
676
797
  */
677
- listDomains: function (listDomainsRequest) {
678
- var options = {
798
+ listDomains(listDomainsRequest?: ListDomainsRequest) {
799
+ const options = {
679
800
  method: "GET",
680
801
  url: "/v1.0/cdn/domains",
681
802
  contentType: "application/json",
@@ -683,19 +804,29 @@ var ParamCreater = function () {
683
804
  pathParams: {},
684
805
  headers: {}
685
806
  };
686
- var localVarHeaderParameter = {};
687
- var localVarQueryParameter = {};
688
- var domainName;
689
- var businessType;
690
- var domainStatus;
691
- var serviceArea;
692
- var pageSize;
693
- var pageNumber;
694
- var showTags;
695
- var exactMatch;
696
- var enterpriseProjectId;
807
+ const localVarHeaderParameter = {} as any;
808
+ const localVarQueryParameter = {} as any;
809
+
810
+ let domainName;
811
+
812
+ let businessType;
813
+
814
+ let domainStatus;
815
+
816
+ let serviceArea;
817
+
818
+ let pageSize;
819
+
820
+ let pageNumber;
821
+
822
+ let showTags;
823
+
824
+ let exactMatch;
825
+
826
+ let enterpriseProjectId;
827
+
697
828
  if (listDomainsRequest !== null && listDomainsRequest !== undefined) {
698
- if (listDomainsRequest instanceof ListDomainsRequest_1.ListDomainsRequest) {
829
+ if (listDomainsRequest instanceof ListDomainsRequest) {
699
830
  domainName = listDomainsRequest.domainName;
700
831
  businessType = listDomainsRequest.businessType;
701
832
  domainStatus = listDomainsRequest.domainStatus;
@@ -705,8 +836,7 @@ var ParamCreater = function () {
705
836
  showTags = listDomainsRequest.showTags;
706
837
  exactMatch = listDomainsRequest.exactMatch;
707
838
  enterpriseProjectId = listDomainsRequest.enterpriseProjectId;
708
- }
709
- else {
839
+ } else {
710
840
  domainName = listDomainsRequest['domain_name'];
711
841
  businessType = listDomainsRequest['business_type'];
712
842
  domainStatus = listDomainsRequest['domain_status'];
@@ -718,6 +848,8 @@ var ParamCreater = function () {
718
848
  enterpriseProjectId = listDomainsRequest['enterprise_project_id'];
719
849
  }
720
850
  }
851
+
852
+
721
853
  if (domainName !== null && domainName !== undefined) {
722
854
  localVarQueryParameter['domain_name'] = domainName;
723
855
  }
@@ -745,25 +877,27 @@ var ParamCreater = function () {
745
877
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
746
878
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
747
879
  }
880
+
748
881
  options.queryParams = localVarQueryParameter;
749
882
  options.headers = localVarHeaderParameter;
750
883
  return options;
751
884
  },
885
+
752
886
  /**
753
887
  * - 设置用户计费模式。
754
- *
888
+ *
755
889
  * - 服务区域仅支持mainland_china(国内)
756
- *
890
+ *
757
891
  * - 计费模式仅支持设置flux(流量),v2及以上客户支持bw(带宽)
758
- *
892
+ *
759
893
  * - 加速类型仅支持base(基础加速)
760
- *
894
+ *
761
895
  * - 单租户调用频率:10次/min。
762
- *
896
+ *
763
897
  * Please refer to HUAWEI cloud API Explorer for details.
764
898
  */
765
- setChargeModes: function (setChargeModesRequest) {
766
- var options = {
899
+ setChargeModes(setChargeModesRequest?: SetChargeModesRequest) {
900
+ const options = {
767
901
  method: "PUT",
768
902
  url: "/v1.0/cdn/charge/charge-modes",
769
903
  contentType: "application/json",
@@ -772,43 +906,48 @@ var ParamCreater = function () {
772
906
  headers: {},
773
907
  data: {}
774
908
  };
775
- var localVarHeaderParameter = {};
776
- var body;
909
+ const localVarHeaderParameter = {} as any;
910
+
911
+ let body: any;
912
+
777
913
  if (setChargeModesRequest !== null && setChargeModesRequest !== undefined) {
778
- if (setChargeModesRequest instanceof SetChargeModesRequest_1.SetChargeModesRequest) {
779
- body = setChargeModesRequest.body;
780
- }
781
- else {
914
+ if (setChargeModesRequest instanceof SetChargeModesRequest) {
915
+ body = setChargeModesRequest.body
916
+ } else {
782
917
  body = setChargeModesRequest['body'];
783
918
  }
784
919
  }
920
+
921
+
785
922
  if (body === null || body === undefined) {
786
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
923
+ throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
787
924
  }
788
925
  localVarHeaderParameter['Content-Type'] = 'application/json';
926
+
789
927
  options.data = body !== undefined ? body : {};
790
928
  options.headers = localVarHeaderParameter;
791
929
  return options;
792
930
  },
931
+
793
932
  /**
794
933
  * - 查询域名带宽峰值类数据。
795
- *
934
+ *
796
935
  * - 支持查询90天内的数据。
797
- *
936
+ *
798
937
  * - 查询时间跨度不能超过31天。
799
- *
938
+ *
800
939
  * - 起始时间和结束时间,左闭右开。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
801
- *
940
+ *
802
941
  * - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
803
- *
942
+ *
804
943
  * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、峰值类指标单位统一为bps(比特率),请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
805
- *
944
+ *
806
945
  * - 单租户调用频率:2次/s。
807
- *
946
+ *
808
947
  * Please refer to HUAWEI cloud API Explorer for details.
809
948
  */
810
- showBandwidthCalc: function (showBandwidthCalcRequest) {
811
- var options = {
949
+ showBandwidthCalc(showBandwidthCalcRequest?: ShowBandwidthCalcRequest) {
950
+ const options = {
812
951
  method: "GET",
813
952
  url: "/v1.0/cdn/statistics/bandwidth-calc",
814
953
  contentType: "application/json",
@@ -816,24 +955,30 @@ var ParamCreater = function () {
816
955
  pathParams: {},
817
956
  headers: {}
818
957
  };
819
- var localVarHeaderParameter = {};
820
- var localVarQueryParameter = {};
821
- var startTime;
822
- var endTime;
823
- var domainName;
824
- var calcType;
825
- var serviceArea;
826
- var enterpriseProjectId;
958
+ const localVarHeaderParameter = {} as any;
959
+ const localVarQueryParameter = {} as any;
960
+
961
+ let startTime;
962
+
963
+ let endTime;
964
+
965
+ let domainName;
966
+
967
+ let calcType;
968
+
969
+ let serviceArea;
970
+
971
+ let enterpriseProjectId;
972
+
827
973
  if (showBandwidthCalcRequest !== null && showBandwidthCalcRequest !== undefined) {
828
- if (showBandwidthCalcRequest instanceof ShowBandwidthCalcRequest_1.ShowBandwidthCalcRequest) {
974
+ if (showBandwidthCalcRequest instanceof ShowBandwidthCalcRequest) {
829
975
  startTime = showBandwidthCalcRequest.startTime;
830
976
  endTime = showBandwidthCalcRequest.endTime;
831
977
  domainName = showBandwidthCalcRequest.domainName;
832
978
  calcType = showBandwidthCalcRequest.calcType;
833
979
  serviceArea = showBandwidthCalcRequest.serviceArea;
834
980
  enterpriseProjectId = showBandwidthCalcRequest.enterpriseProjectId;
835
- }
836
- else {
981
+ } else {
837
982
  startTime = showBandwidthCalcRequest['start_time'];
838
983
  endTime = showBandwidthCalcRequest['end_time'];
839
984
  domainName = showBandwidthCalcRequest['domain_name'];
@@ -842,26 +987,28 @@ var ParamCreater = function () {
842
987
  enterpriseProjectId = showBandwidthCalcRequest['enterprise_project_id'];
843
988
  }
844
989
  }
990
+
991
+
845
992
  if (startTime === null || startTime === undefined) {
846
- throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showBandwidthCalc.');
993
+ throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showBandwidthCalc.');
847
994
  }
848
995
  if (startTime !== null && startTime !== undefined) {
849
996
  localVarQueryParameter['start_time'] = startTime;
850
997
  }
851
998
  if (endTime === null || endTime === undefined) {
852
- throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showBandwidthCalc.');
999
+ throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showBandwidthCalc.');
853
1000
  }
854
1001
  if (endTime !== null && endTime !== undefined) {
855
1002
  localVarQueryParameter['end_time'] = endTime;
856
1003
  }
857
1004
  if (domainName === null || domainName === undefined) {
858
- throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showBandwidthCalc.');
1005
+ throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showBandwidthCalc.');
859
1006
  }
860
1007
  if (domainName !== null && domainName !== undefined) {
861
1008
  localVarQueryParameter['domain_name'] = domainName;
862
1009
  }
863
1010
  if (calcType === null || calcType === undefined) {
864
- throw new RequiredError('calcType', 'Required parameter calcType was null or undefined when calling showBandwidthCalc.');
1011
+ throw new RequiredError('calcType','Required parameter calcType was null or undefined when calling showBandwidthCalc.');
865
1012
  }
866
1013
  if (calcType !== null && calcType !== undefined) {
867
1014
  localVarQueryParameter['calc_type'] = calcType;
@@ -872,25 +1019,27 @@ var ParamCreater = function () {
872
1019
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
873
1020
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
874
1021
  }
1022
+
875
1023
  options.queryParams = localVarQueryParameter;
876
1024
  options.headers = localVarHeaderParameter;
877
1025
  return options;
878
1026
  },
1027
+
879
1028
  /**
880
1029
  * - 查询用户计费模式。
881
- *
1030
+ *
882
1031
  * - 服务区域仅支持mainland_china(国内,默认)和outside_mainland_china(海外)
883
- *
1032
+ *
884
1033
  * - 计费模式状态支持active(已生效),upcoming(待生效)两种状态,默认为active(已生效)
885
- *
1034
+ *
886
1035
  * - 加速类型仅支持base(基础加速)
887
- *
1036
+ *
888
1037
  * - 单租户调用频率:5次/s。
889
- *
1038
+ *
890
1039
  * Please refer to HUAWEI cloud API Explorer for details.
891
1040
  */
892
- showChargeModes: function (showChargeModesRequest) {
893
- var options = {
1041
+ showChargeModes(showChargeModesRequest?: ShowChargeModesRequest) {
1042
+ const options = {
894
1043
  method: "GET",
895
1044
  url: "/v1.0/cdn/charge/charge-modes",
896
1045
  contentType: "application/json",
@@ -898,25 +1047,30 @@ var ParamCreater = function () {
898
1047
  pathParams: {},
899
1048
  headers: {}
900
1049
  };
901
- var localVarHeaderParameter = {};
902
- var localVarQueryParameter = {};
903
- var productType;
904
- var status;
905
- var serviceArea;
1050
+ const localVarHeaderParameter = {} as any;
1051
+ const localVarQueryParameter = {} as any;
1052
+
1053
+ let productType;
1054
+
1055
+ let status;
1056
+
1057
+ let serviceArea;
1058
+
906
1059
  if (showChargeModesRequest !== null && showChargeModesRequest !== undefined) {
907
- if (showChargeModesRequest instanceof ShowChargeModesRequest_1.ShowChargeModesRequest) {
1060
+ if (showChargeModesRequest instanceof ShowChargeModesRequest) {
908
1061
  productType = showChargeModesRequest.productType;
909
1062
  status = showChargeModesRequest.status;
910
1063
  serviceArea = showChargeModesRequest.serviceArea;
911
- }
912
- else {
1064
+ } else {
913
1065
  productType = showChargeModesRequest['product_type'];
914
1066
  status = showChargeModesRequest['status'];
915
1067
  serviceArea = showChargeModesRequest['service_area'];
916
1068
  }
917
1069
  }
1070
+
1071
+
918
1072
  if (productType === null || productType === undefined) {
919
- throw new RequiredError('productType', 'Required parameter productType was null or undefined when calling showChargeModes.');
1073
+ throw new RequiredError('productType','Required parameter productType was null or undefined when calling showChargeModes.');
920
1074
  }
921
1075
  if (productType !== null && productType !== undefined) {
922
1076
  localVarQueryParameter['product_type'] = productType;
@@ -927,17 +1081,19 @@ var ParamCreater = function () {
927
1081
  if (serviceArea !== null && serviceArea !== undefined) {
928
1082
  localVarQueryParameter['service_area'] = serviceArea;
929
1083
  }
1084
+
930
1085
  options.queryParams = localVarQueryParameter;
931
1086
  options.headers = localVarHeaderParameter;
932
1087
  return options;
933
1088
  },
1089
+
934
1090
  /**
935
- * 加速域名详情信息接口
936
- *
1091
+ * 加速域名详情信息接口。
1092
+ *
937
1093
  * Please refer to HUAWEI cloud API Explorer for details.
938
1094
  */
939
- showDomainDetailByName: function (showDomainDetailByNameRequest) {
940
- var options = {
1095
+ showDomainDetailByName(showDomainDetailByNameRequest?: ShowDomainDetailByNameRequest) {
1096
+ const options = {
941
1097
  method: "GET",
942
1098
  url: "/v1.0/cdn/configuration/domains/{domain_name}",
943
1099
  contentType: "application/json",
@@ -945,39 +1101,45 @@ var ParamCreater = function () {
945
1101
  pathParams: {},
946
1102
  headers: {}
947
1103
  };
948
- var localVarHeaderParameter = {};
949
- var localVarQueryParameter = {};
950
- var domainName;
951
- var enterpriseProjectId;
1104
+ const localVarHeaderParameter = {} as any;
1105
+ const localVarQueryParameter = {} as any;
1106
+
1107
+ let domainName;
1108
+
1109
+ let enterpriseProjectId;
1110
+
952
1111
  if (showDomainDetailByNameRequest !== null && showDomainDetailByNameRequest !== undefined) {
953
- if (showDomainDetailByNameRequest instanceof ShowDomainDetailByNameRequest_1.ShowDomainDetailByNameRequest) {
1112
+ if (showDomainDetailByNameRequest instanceof ShowDomainDetailByNameRequest) {
954
1113
  domainName = showDomainDetailByNameRequest.domainName;
955
1114
  enterpriseProjectId = showDomainDetailByNameRequest.enterpriseProjectId;
956
- }
957
- else {
1115
+ } else {
958
1116
  domainName = showDomainDetailByNameRequest['domain_name'];
959
1117
  enterpriseProjectId = showDomainDetailByNameRequest['enterprise_project_id'];
960
1118
  }
961
1119
  }
1120
+
1121
+
962
1122
  if (domainName === null || domainName === undefined) {
963
- throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showDomainDetailByName.');
1123
+ throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainDetailByName.');
964
1124
  }
965
1125
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
966
1126
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
967
1127
  }
1128
+
968
1129
  options.queryParams = localVarQueryParameter;
969
1130
  options.pathParams = { 'domain_name': domainName, };
970
1131
  options.headers = localVarHeaderParameter;
971
1132
  return options;
972
1133
  },
1134
+
973
1135
  /**
974
1136
  * 查询域名配置接口,
975
- * 支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、回源跟随、ipv6设置、智能压缩、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转、高级回源、回源是否校验Etag、回源超时时间、远程鉴权配置、webSocket配置、视频拖拽、请求限速。
976
- *
1137
+ * 支持查询回源请求头、业务类型、服务区域、HTTP header配置、URL鉴权、证书、源站、回源协议、回源跟随、ipv6设置、智能压缩、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转、高级回源、回源是否校验Etag、回源超时时间、远程鉴权配置、webSocket配置、视频拖拽、请求限速。
1138
+ *
977
1139
  * Please refer to HUAWEI cloud API Explorer for details.
978
1140
  */
979
- showDomainFullConfig: function (showDomainFullConfigRequest) {
980
- var options = {
1141
+ showDomainFullConfig(showDomainFullConfigRequest?: ShowDomainFullConfigRequest) {
1142
+ const options = {
981
1143
  method: "GET",
982
1144
  url: "/v1.1/cdn/configuration/domains/{domain_name}/configs",
983
1145
  contentType: "application/json",
@@ -985,25 +1147,30 @@ var ParamCreater = function () {
985
1147
  pathParams: {},
986
1148
  headers: {}
987
1149
  };
988
- var localVarHeaderParameter = {};
989
- var localVarQueryParameter = {};
990
- var domainName;
991
- var enterpriseProjectId;
992
- var showSpecialConfigs;
1150
+ const localVarHeaderParameter = {} as any;
1151
+ const localVarQueryParameter = {} as any;
1152
+
1153
+ let domainName;
1154
+
1155
+ let enterpriseProjectId;
1156
+
1157
+ let showSpecialConfigs;
1158
+
993
1159
  if (showDomainFullConfigRequest !== null && showDomainFullConfigRequest !== undefined) {
994
- if (showDomainFullConfigRequest instanceof ShowDomainFullConfigRequest_1.ShowDomainFullConfigRequest) {
1160
+ if (showDomainFullConfigRequest instanceof ShowDomainFullConfigRequest) {
995
1161
  domainName = showDomainFullConfigRequest.domainName;
996
1162
  enterpriseProjectId = showDomainFullConfigRequest.enterpriseProjectId;
997
1163
  showSpecialConfigs = showDomainFullConfigRequest.showSpecialConfigs;
998
- }
999
- else {
1164
+ } else {
1000
1165
  domainName = showDomainFullConfigRequest['domain_name'];
1001
1166
  enterpriseProjectId = showDomainFullConfigRequest['enterprise_project_id'];
1002
1167
  showSpecialConfigs = showDomainFullConfigRequest['show_special_configs'];
1003
1168
  }
1004
1169
  }
1170
+
1171
+
1005
1172
  if (domainName === null || domainName === undefined) {
1006
- throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showDomainFullConfig.');
1173
+ throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainFullConfig.');
1007
1174
  }
1008
1175
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1009
1176
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
@@ -1011,30 +1178,32 @@ var ParamCreater = function () {
1011
1178
  if (showSpecialConfigs !== null && showSpecialConfigs !== undefined) {
1012
1179
  localVarQueryParameter['show_special_configs'] = showSpecialConfigs;
1013
1180
  }
1181
+
1014
1182
  options.queryParams = localVarQueryParameter;
1015
1183
  options.pathParams = { 'domain_name': domainName, };
1016
1184
  options.headers = localVarHeaderParameter;
1017
1185
  return options;
1018
1186
  },
1187
+
1019
1188
  /**
1020
1189
  * - 支持查询90天内的数据。
1021
- *
1190
+ *
1022
1191
  * - 支持多指标同时查询,不超过5个。
1023
- *
1192
+ *
1024
1193
  * - 最多同时指定20个域名。
1025
- *
1194
+ *
1026
1195
  * - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
1027
- *
1196
+ *
1028
1197
  * - action取值:location_detail,location_summary
1029
- *
1198
+ *
1030
1199
  * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。
1031
- *
1200
+ *
1032
1201
  * - 单租户调用频率:15次/s。
1033
- *
1202
+ *
1034
1203
  * Please refer to HUAWEI cloud API Explorer for details.
1035
1204
  */
1036
- showDomainLocationStats: function (showDomainLocationStatsRequest) {
1037
- var options = {
1205
+ showDomainLocationStats(showDomainLocationStatsRequest?: ShowDomainLocationStatsRequest) {
1206
+ const options = {
1038
1207
  method: "GET",
1039
1208
  url: "/v1.0/cdn/statistics/domain-location-stats",
1040
1209
  contentType: "application/json",
@@ -1042,21 +1211,33 @@ var ParamCreater = function () {
1042
1211
  pathParams: {},
1043
1212
  headers: {}
1044
1213
  };
1045
- var localVarHeaderParameter = {};
1046
- var localVarQueryParameter = {};
1047
- var action;
1048
- var startTime;
1049
- var endTime;
1050
- var domainName;
1051
- var statType;
1052
- var interval;
1053
- var country;
1054
- var province;
1055
- var isp;
1056
- var groupBy;
1057
- var enterpriseProjectId;
1214
+ const localVarHeaderParameter = {} as any;
1215
+ const localVarQueryParameter = {} as any;
1216
+
1217
+ let action;
1218
+
1219
+ let startTime;
1220
+
1221
+ let endTime;
1222
+
1223
+ let domainName;
1224
+
1225
+ let statType;
1226
+
1227
+ let interval;
1228
+
1229
+ let country;
1230
+
1231
+ let province;
1232
+
1233
+ let isp;
1234
+
1235
+ let groupBy;
1236
+
1237
+ let enterpriseProjectId;
1238
+
1058
1239
  if (showDomainLocationStatsRequest !== null && showDomainLocationStatsRequest !== undefined) {
1059
- if (showDomainLocationStatsRequest instanceof ShowDomainLocationStatsRequest_1.ShowDomainLocationStatsRequest) {
1240
+ if (showDomainLocationStatsRequest instanceof ShowDomainLocationStatsRequest) {
1060
1241
  action = showDomainLocationStatsRequest.action;
1061
1242
  startTime = showDomainLocationStatsRequest.startTime;
1062
1243
  endTime = showDomainLocationStatsRequest.endTime;
@@ -1068,8 +1249,7 @@ var ParamCreater = function () {
1068
1249
  isp = showDomainLocationStatsRequest.isp;
1069
1250
  groupBy = showDomainLocationStatsRequest.groupBy;
1070
1251
  enterpriseProjectId = showDomainLocationStatsRequest.enterpriseProjectId;
1071
- }
1072
- else {
1252
+ } else {
1073
1253
  action = showDomainLocationStatsRequest['action'];
1074
1254
  startTime = showDomainLocationStatsRequest['start_time'];
1075
1255
  endTime = showDomainLocationStatsRequest['end_time'];
@@ -1083,32 +1263,34 @@ var ParamCreater = function () {
1083
1263
  enterpriseProjectId = showDomainLocationStatsRequest['enterprise_project_id'];
1084
1264
  }
1085
1265
  }
1266
+
1267
+
1086
1268
  if (action === null || action === undefined) {
1087
- throw new RequiredError('action', 'Required parameter action was null or undefined when calling showDomainLocationStats.');
1269
+ throw new RequiredError('action','Required parameter action was null or undefined when calling showDomainLocationStats.');
1088
1270
  }
1089
1271
  if (action !== null && action !== undefined) {
1090
1272
  localVarQueryParameter['action'] = action;
1091
1273
  }
1092
1274
  if (startTime === null || startTime === undefined) {
1093
- throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showDomainLocationStats.');
1275
+ throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showDomainLocationStats.');
1094
1276
  }
1095
1277
  if (startTime !== null && startTime !== undefined) {
1096
1278
  localVarQueryParameter['start_time'] = startTime;
1097
1279
  }
1098
1280
  if (endTime === null || endTime === undefined) {
1099
- throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showDomainLocationStats.');
1281
+ throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showDomainLocationStats.');
1100
1282
  }
1101
1283
  if (endTime !== null && endTime !== undefined) {
1102
1284
  localVarQueryParameter['end_time'] = endTime;
1103
1285
  }
1104
1286
  if (domainName === null || domainName === undefined) {
1105
- throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showDomainLocationStats.');
1287
+ throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainLocationStats.');
1106
1288
  }
1107
1289
  if (domainName !== null && domainName !== undefined) {
1108
1290
  localVarQueryParameter['domain_name'] = domainName;
1109
1291
  }
1110
1292
  if (statType === null || statType === undefined) {
1111
- throw new RequiredError('statType', 'Required parameter statType was null or undefined when calling showDomainLocationStats.');
1293
+ throw new RequiredError('statType','Required parameter statType was null or undefined when calling showDomainLocationStats.');
1112
1294
  }
1113
1295
  if (statType !== null && statType !== undefined) {
1114
1296
  localVarQueryParameter['stat_type'] = statType;
@@ -1131,29 +1313,31 @@ var ParamCreater = function () {
1131
1313
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1132
1314
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
1133
1315
  }
1316
+
1134
1317
  options.queryParams = localVarQueryParameter;
1135
1318
  options.headers = localVarHeaderParameter;
1136
1319
  return options;
1137
1320
  },
1321
+
1138
1322
  /**
1139
1323
  * - 支持查询90天内的数据。
1140
- *
1324
+ *
1141
1325
  * - 支持多指标同时查询,不超过5个。
1142
- *
1326
+ *
1143
1327
  * - 最多同时指定20个域名。
1144
- *
1328
+ *
1145
1329
  * - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
1146
- *
1330
+ *
1147
1331
  * - action取值:detail,summary
1148
- *
1332
+ *
1149
1333
  * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
1150
- *
1334
+ *
1151
1335
  * - 单租户调用频率:15次/s。
1152
- *
1336
+ *
1153
1337
  * Please refer to HUAWEI cloud API Explorer for details.
1154
1338
  */
1155
- showDomainStats: function (showDomainStatsRequest) {
1156
- var options = {
1339
+ showDomainStats(showDomainStatsRequest?: ShowDomainStatsRequest) {
1340
+ const options = {
1157
1341
  method: "GET",
1158
1342
  url: "/v1.0/cdn/statistics/domain-stats",
1159
1343
  contentType: "application/json",
@@ -1161,19 +1345,29 @@ var ParamCreater = function () {
1161
1345
  pathParams: {},
1162
1346
  headers: {}
1163
1347
  };
1164
- var localVarHeaderParameter = {};
1165
- var localVarQueryParameter = {};
1166
- var action;
1167
- var startTime;
1168
- var endTime;
1169
- var domainName;
1170
- var statType;
1171
- var interval;
1172
- var groupBy;
1173
- var serviceArea;
1174
- var enterpriseProjectId;
1348
+ const localVarHeaderParameter = {} as any;
1349
+ const localVarQueryParameter = {} as any;
1350
+
1351
+ let action;
1352
+
1353
+ let startTime;
1354
+
1355
+ let endTime;
1356
+
1357
+ let domainName;
1358
+
1359
+ let statType;
1360
+
1361
+ let interval;
1362
+
1363
+ let groupBy;
1364
+
1365
+ let serviceArea;
1366
+
1367
+ let enterpriseProjectId;
1368
+
1175
1369
  if (showDomainStatsRequest !== null && showDomainStatsRequest !== undefined) {
1176
- if (showDomainStatsRequest instanceof ShowDomainStatsRequest_1.ShowDomainStatsRequest) {
1370
+ if (showDomainStatsRequest instanceof ShowDomainStatsRequest) {
1177
1371
  action = showDomainStatsRequest.action;
1178
1372
  startTime = showDomainStatsRequest.startTime;
1179
1373
  endTime = showDomainStatsRequest.endTime;
@@ -1183,8 +1377,7 @@ var ParamCreater = function () {
1183
1377
  groupBy = showDomainStatsRequest.groupBy;
1184
1378
  serviceArea = showDomainStatsRequest.serviceArea;
1185
1379
  enterpriseProjectId = showDomainStatsRequest.enterpriseProjectId;
1186
- }
1187
- else {
1380
+ } else {
1188
1381
  action = showDomainStatsRequest['action'];
1189
1382
  startTime = showDomainStatsRequest['start_time'];
1190
1383
  endTime = showDomainStatsRequest['end_time'];
@@ -1196,32 +1389,34 @@ var ParamCreater = function () {
1196
1389
  enterpriseProjectId = showDomainStatsRequest['enterprise_project_id'];
1197
1390
  }
1198
1391
  }
1392
+
1393
+
1199
1394
  if (action === null || action === undefined) {
1200
- throw new RequiredError('action', 'Required parameter action was null or undefined when calling showDomainStats.');
1395
+ throw new RequiredError('action','Required parameter action was null or undefined when calling showDomainStats.');
1201
1396
  }
1202
1397
  if (action !== null && action !== undefined) {
1203
1398
  localVarQueryParameter['action'] = action;
1204
1399
  }
1205
1400
  if (startTime === null || startTime === undefined) {
1206
- throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showDomainStats.');
1401
+ throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showDomainStats.');
1207
1402
  }
1208
1403
  if (startTime !== null && startTime !== undefined) {
1209
1404
  localVarQueryParameter['start_time'] = startTime;
1210
1405
  }
1211
1406
  if (endTime === null || endTime === undefined) {
1212
- throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showDomainStats.');
1407
+ throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showDomainStats.');
1213
1408
  }
1214
1409
  if (endTime !== null && endTime !== undefined) {
1215
1410
  localVarQueryParameter['end_time'] = endTime;
1216
1411
  }
1217
1412
  if (domainName === null || domainName === undefined) {
1218
- throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showDomainStats.');
1413
+ throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainStats.');
1219
1414
  }
1220
1415
  if (domainName !== null && domainName !== undefined) {
1221
1416
  localVarQueryParameter['domain_name'] = domainName;
1222
1417
  }
1223
1418
  if (statType === null || statType === undefined) {
1224
- throw new RequiredError('statType', 'Required parameter statType was null or undefined when calling showDomainStats.');
1419
+ throw new RequiredError('statType','Required parameter statType was null or undefined when calling showDomainStats.');
1225
1420
  }
1226
1421
  if (statType !== null && statType !== undefined) {
1227
1422
  localVarQueryParameter['stat_type'] = statType;
@@ -1238,29 +1433,31 @@ var ParamCreater = function () {
1238
1433
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1239
1434
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
1240
1435
  }
1436
+
1241
1437
  options.queryParams = localVarQueryParameter;
1242
1438
  options.headers = localVarHeaderParameter;
1243
1439
  return options;
1244
1440
  },
1441
+
1245
1442
  /**
1246
1443
  * - 查询TOP域名。
1247
- *
1444
+ *
1248
1445
  * - 支持查询90天内的数据。
1249
- *
1446
+ *
1250
1447
  * - 查询时间跨度不能超过1天。
1251
- *
1448
+ *
1252
1449
  * - 起始时间和结束时间,左闭右开,必须同时指定。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
1253
- *
1450
+ *
1254
1451
  * - 起始时间、结束时间必须传整点毫秒级时间戳。
1255
- *
1452
+ *
1256
1453
  * - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
1257
- *
1454
+ *
1258
1455
  * - 单租户调用频率:5次/s。
1259
- *
1456
+ *
1260
1457
  * Please refer to HUAWEI cloud API Explorer for details.
1261
1458
  */
1262
- showTopDomainNames: function (showTopDomainNamesRequest) {
1263
- var options = {
1459
+ showTopDomainNames(showTopDomainNamesRequest?: ShowTopDomainNamesRequest) {
1460
+ const options = {
1264
1461
  method: "GET",
1265
1462
  url: "/v1/cdn/statistics/top-domain-names",
1266
1463
  contentType: "application/json",
@@ -1268,24 +1465,30 @@ var ParamCreater = function () {
1268
1465
  pathParams: {},
1269
1466
  headers: {}
1270
1467
  };
1271
- var localVarHeaderParameter = {};
1272
- var localVarQueryParameter = {};
1273
- var startTime;
1274
- var endTime;
1275
- var statType;
1276
- var serviceArea;
1277
- var limit;
1278
- var enterpriseProjectId;
1468
+ const localVarHeaderParameter = {} as any;
1469
+ const localVarQueryParameter = {} as any;
1470
+
1471
+ let startTime;
1472
+
1473
+ let endTime;
1474
+
1475
+ let statType;
1476
+
1477
+ let serviceArea;
1478
+
1479
+ let limit;
1480
+
1481
+ let enterpriseProjectId;
1482
+
1279
1483
  if (showTopDomainNamesRequest !== null && showTopDomainNamesRequest !== undefined) {
1280
- if (showTopDomainNamesRequest instanceof ShowTopDomainNamesRequest_1.ShowTopDomainNamesRequest) {
1484
+ if (showTopDomainNamesRequest instanceof ShowTopDomainNamesRequest) {
1281
1485
  startTime = showTopDomainNamesRequest.startTime;
1282
1486
  endTime = showTopDomainNamesRequest.endTime;
1283
1487
  statType = showTopDomainNamesRequest.statType;
1284
1488
  serviceArea = showTopDomainNamesRequest.serviceArea;
1285
1489
  limit = showTopDomainNamesRequest.limit;
1286
1490
  enterpriseProjectId = showTopDomainNamesRequest.enterpriseProjectId;
1287
- }
1288
- else {
1491
+ } else {
1289
1492
  startTime = showTopDomainNamesRequest['start_time'];
1290
1493
  endTime = showTopDomainNamesRequest['end_time'];
1291
1494
  statType = showTopDomainNamesRequest['stat_type'];
@@ -1294,20 +1497,22 @@ var ParamCreater = function () {
1294
1497
  enterpriseProjectId = showTopDomainNamesRequest['enterprise_project_id'];
1295
1498
  }
1296
1499
  }
1500
+
1501
+
1297
1502
  if (startTime === null || startTime === undefined) {
1298
- throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showTopDomainNames.');
1503
+ throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showTopDomainNames.');
1299
1504
  }
1300
1505
  if (startTime !== null && startTime !== undefined) {
1301
1506
  localVarQueryParameter['start_time'] = startTime;
1302
1507
  }
1303
1508
  if (endTime === null || endTime === undefined) {
1304
- throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showTopDomainNames.');
1509
+ throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showTopDomainNames.');
1305
1510
  }
1306
1511
  if (endTime !== null && endTime !== undefined) {
1307
1512
  localVarQueryParameter['end_time'] = endTime;
1308
1513
  }
1309
1514
  if (statType === null || statType === undefined) {
1310
- throw new RequiredError('statType', 'Required parameter statType was null or undefined when calling showTopDomainNames.');
1515
+ throw new RequiredError('statType','Required parameter statType was null or undefined when calling showTopDomainNames.');
1311
1516
  }
1312
1517
  if (statType !== null && statType !== undefined) {
1313
1518
  localVarQueryParameter['stat_type'] = statType;
@@ -1321,29 +1526,31 @@ var ParamCreater = function () {
1321
1526
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1322
1527
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
1323
1528
  }
1529
+
1324
1530
  options.queryParams = localVarQueryParameter;
1325
1531
  options.headers = localVarHeaderParameter;
1326
1532
  return options;
1327
1533
  },
1534
+
1328
1535
  /**
1329
1536
  * - 查询TOP100 URL明细。
1330
- *
1537
+ *
1331
1538
  * - 支持查询90天内的数据。
1332
- *
1539
+ *
1333
1540
  * - 查询跨度不能超过31天。
1334
- *
1541
+ *
1335
1542
  * - 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。
1336
- *
1543
+ *
1337
1544
  * - 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。
1338
- *
1545
+ *
1339
1546
  * - 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
1340
- *
1547
+ *
1341
1548
  * - 单租户调用频率:5次/s。
1342
- *
1549
+ *
1343
1550
  * Please refer to HUAWEI cloud API Explorer for details.
1344
1551
  */
1345
- showTopUrl: function (showTopUrlRequest) {
1346
- var options = {
1552
+ showTopUrl(showTopUrlRequest?: ShowTopUrlRequest) {
1553
+ const options = {
1347
1554
  method: "GET",
1348
1555
  url: "/v1.0/cdn/statistics/top-url",
1349
1556
  contentType: "application/json",
@@ -1351,24 +1558,30 @@ var ParamCreater = function () {
1351
1558
  pathParams: {},
1352
1559
  headers: {}
1353
1560
  };
1354
- var localVarHeaderParameter = {};
1355
- var localVarQueryParameter = {};
1356
- var startTime;
1357
- var endTime;
1358
- var domainName;
1359
- var statType;
1360
- var serviceArea;
1361
- var enterpriseProjectId;
1561
+ const localVarHeaderParameter = {} as any;
1562
+ const localVarQueryParameter = {} as any;
1563
+
1564
+ let startTime;
1565
+
1566
+ let endTime;
1567
+
1568
+ let domainName;
1569
+
1570
+ let statType;
1571
+
1572
+ let serviceArea;
1573
+
1574
+ let enterpriseProjectId;
1575
+
1362
1576
  if (showTopUrlRequest !== null && showTopUrlRequest !== undefined) {
1363
- if (showTopUrlRequest instanceof ShowTopUrlRequest_1.ShowTopUrlRequest) {
1577
+ if (showTopUrlRequest instanceof ShowTopUrlRequest) {
1364
1578
  startTime = showTopUrlRequest.startTime;
1365
1579
  endTime = showTopUrlRequest.endTime;
1366
1580
  domainName = showTopUrlRequest.domainName;
1367
1581
  statType = showTopUrlRequest.statType;
1368
1582
  serviceArea = showTopUrlRequest.serviceArea;
1369
1583
  enterpriseProjectId = showTopUrlRequest.enterpriseProjectId;
1370
- }
1371
- else {
1584
+ } else {
1372
1585
  startTime = showTopUrlRequest['start_time'];
1373
1586
  endTime = showTopUrlRequest['end_time'];
1374
1587
  domainName = showTopUrlRequest['domain_name'];
@@ -1377,26 +1590,28 @@ var ParamCreater = function () {
1377
1590
  enterpriseProjectId = showTopUrlRequest['enterprise_project_id'];
1378
1591
  }
1379
1592
  }
1593
+
1594
+
1380
1595
  if (startTime === null || startTime === undefined) {
1381
- throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showTopUrl.');
1596
+ throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showTopUrl.');
1382
1597
  }
1383
1598
  if (startTime !== null && startTime !== undefined) {
1384
1599
  localVarQueryParameter['start_time'] = startTime;
1385
1600
  }
1386
1601
  if (endTime === null || endTime === undefined) {
1387
- throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showTopUrl.');
1602
+ throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showTopUrl.');
1388
1603
  }
1389
1604
  if (endTime !== null && endTime !== undefined) {
1390
1605
  localVarQueryParameter['end_time'] = endTime;
1391
1606
  }
1392
1607
  if (domainName === null || domainName === undefined) {
1393
- throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showTopUrl.');
1608
+ throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showTopUrl.');
1394
1609
  }
1395
1610
  if (domainName !== null && domainName !== undefined) {
1396
1611
  localVarQueryParameter['domain_name'] = domainName;
1397
1612
  }
1398
1613
  if (statType === null || statType === undefined) {
1399
- throw new RequiredError('statType', 'Required parameter statType was null or undefined when calling showTopUrl.');
1614
+ throw new RequiredError('statType','Required parameter statType was null or undefined when calling showTopUrl.');
1400
1615
  }
1401
1616
  if (statType !== null && statType !== undefined) {
1402
1617
  localVarQueryParameter['stat_type'] = statType;
@@ -1407,18 +1622,20 @@ var ParamCreater = function () {
1407
1622
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1408
1623
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
1409
1624
  }
1625
+
1410
1626
  options.queryParams = localVarQueryParameter;
1411
1627
  options.headers = localVarHeaderParameter;
1412
1628
  return options;
1413
1629
  },
1630
+
1414
1631
  /**
1415
1632
  * 修改域名配置接口,
1416
- * 支持修改回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、回源跟随、ipv6设置、智能压缩、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转、高级回源、回源是否校验Etag、回源超时时间、远程鉴权配置、webSocket配置、视频拖拽、请求限速。
1417
- *
1633
+ * 支持修改回源请求头、业务类型、服务区域、HTTP header配置、URL鉴权、证书、源站、回源协议、回源跟随、ipv6设置、智能压缩、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转、高级回源、回源是否校验Etag、回源超时时间、远程鉴权配置、webSocket配置、视频拖拽、请求限速。
1634
+ *
1418
1635
  * Please refer to HUAWEI cloud API Explorer for details.
1419
1636
  */
1420
- updateDomainFullConfig: function (updateDomainFullConfigRequest) {
1421
- var options = {
1637
+ updateDomainFullConfig(updateDomainFullConfigRequest?: UpdateDomainFullConfigRequest) {
1638
+ const options = {
1422
1639
  method: "PUT",
1423
1640
  url: "/v1.1/cdn/configuration/domains/{domain_name}/configs",
1424
1641
  contentType: "application/json",
@@ -1427,56 +1644,58 @@ var ParamCreater = function () {
1427
1644
  headers: {},
1428
1645
  data: {}
1429
1646
  };
1430
- var localVarHeaderParameter = {};
1431
- var localVarQueryParameter = {};
1432
- var body;
1433
- var domainName;
1434
- var enterpriseProjectId;
1647
+ const localVarHeaderParameter = {} as any;
1648
+ const localVarQueryParameter = {} as any;
1649
+ let body: any;
1650
+
1651
+ let domainName;
1652
+
1653
+ let enterpriseProjectId;
1654
+
1435
1655
  if (updateDomainFullConfigRequest !== null && updateDomainFullConfigRequest !== undefined) {
1436
- if (updateDomainFullConfigRequest instanceof UpdateDomainFullConfigRequest_1.UpdateDomainFullConfigRequest) {
1656
+ if (updateDomainFullConfigRequest instanceof UpdateDomainFullConfigRequest) {
1437
1657
  domainName = updateDomainFullConfigRequest.domainName;
1438
1658
  enterpriseProjectId = updateDomainFullConfigRequest.enterpriseProjectId;
1439
- body = updateDomainFullConfigRequest.body;
1440
- }
1441
- else {
1659
+ body = updateDomainFullConfigRequest.body
1660
+ } else {
1442
1661
  domainName = updateDomainFullConfigRequest['domain_name'];
1443
1662
  enterpriseProjectId = updateDomainFullConfigRequest['enterprise_project_id'];
1444
1663
  body = updateDomainFullConfigRequest['body'];
1445
1664
  }
1446
1665
  }
1666
+
1667
+
1447
1668
  if (domainName === null || domainName === undefined) {
1448
- throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling updateDomainFullConfig.');
1669
+ throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling updateDomainFullConfig.');
1449
1670
  }
1450
1671
  if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
1451
1672
  localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
1452
1673
  }
1453
1674
  localVarHeaderParameter['Content-Type'] = 'application/json';
1675
+
1454
1676
  options.data = body !== undefined ? body : {};
1455
1677
  options.queryParams = localVarQueryParameter;
1456
1678
  options.pathParams = { 'domain_name': domainName, };
1457
1679
  options.headers = localVarHeaderParameter;
1458
1680
  return options;
1459
1681
  },
1460
- };
1682
+
1683
+ }
1461
1684
  };
1462
- exports.ParamCreater = ParamCreater;
1463
- function newClient(client) {
1685
+
1686
+ function newClient(client: HcClient): CdnClient {
1464
1687
  return new CdnClient(client);
1465
1688
  }
1689
+
1466
1690
  /**
1467
1691
  *
1468
1692
  * @export
1469
1693
  * @class RequiredError
1470
1694
  * @extends {Error}
1471
1695
  */
1472
- var RequiredError = /** @class */ (function (_super) {
1473
- __extends(RequiredError, _super);
1474
- function RequiredError(field, msg) {
1475
- var _this = _super.call(this, msg) || this;
1476
- _this.field = field;
1477
- _this.name = "RequiredError";
1478
- return _this;
1696
+ export class RequiredError extends Error {
1697
+ name: "RequiredError" = "RequiredError";
1698
+ constructor(public field: string, msg?: string) {
1699
+ super(msg);
1479
1700
  }
1480
- return RequiredError;
1481
- }(Error));
1482
- exports.RequiredError = RequiredError;
1701
+ }